TraeSkill: Skill for Claude Code

.trae/Skills/07_Security_Specialist/SKILL.md

Security Specialist is a skill for Claude Code, Codex from boshi-xixixi/TraeSkill. It costs 119 tokens per session (4,696 once invoked), scanned A, original, MIT.

A security guide for designing and reviewing software. It covers login systems, access control, data protection, privacy-law checks such as GDPR, common web weaknesses, and secure accessibility.

In plain words
What is it for?
Use it to design JWT, OAuth2, OIDC, or session-based login flows, review security-sensitive code, assess privacy-related database fields, and check accessible login forms.
Why use it?
It helps find security and privacy problems before they reach users or production. It provides checks for risks such as unauthorized access, SQL injection, and leaked secrets.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

This is boshi-xixixi/TraeSkill's own configuration. It tells Claude Code and Codex how to work on TraeSkill itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything TraeSkill configures →

Reuse

Borrowing it

Nothing to install: this file belongs to boshi-xixixi/TraeSkill. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/boshi-xixixi/TraeSkill/main/.trae/Skills/07_Security_Specialist/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/boshi-xixixi/TraeSkill

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Security Specialist

README.md
[![agentmods](https://agentmods.dev/badge/skills/boshi-xixixi/traeskill/07_security_specialist/github.svg)](https://agentmods.dev/skills/boshi-xixixi/traeskill/07_security_specialist)
Your own site
<a href="https://agentmods.dev/skills/boshi-xixixi/traeskill/07_security_specialist"><img src="https://agentmods.dev/badge/skills/boshi-xixixi/traeskill/07_security_specialist/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Security Specialist

Your own site · 80×15
<a href="https://agentmods.dev/skills/boshi-xixixi/traeskill/07_security_specialist"><img src="https://agentmods.dev/badge/skills/boshi-xixixi/traeskill/07_security_specialist.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 119 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,696 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00119 $0.04696
Opus 5.5 $0.00048 $0.01878
Sonnet 5.5 $0.00024 $0.00939
Haiku 4.5 $0.00012 $0.00470

Measured 8d ago against content hash 7c66f38e025b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Security Specialist scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.trae/Skills/07_Security_Specialist/SKILL.md · 598 lines

How it starts

The opening of the file, as written. The whole thing — 598 lines — stays where its author put it; the contents beside it link to each section on GitHub.

⚠️ 性能提示: 此 Skill 包含完整的安全审计流程和无障碍安全指南。日常开发可只关注 OWASP Top 10 和快速安全检查清单。


Security Specialist Skills

🤖 智能体与 MCP 增强 (Agent & MCP Enhancements)

本 Skill 支持并推荐配合特定的智能体角色和 MCP 工具使用,以获得最佳效果。

推荐智能体角色

  • Security Auditor: 详见 AGENTS.md。
    • 该角色具备"零信任"和"攻击者视角",能够主动发现潜在风险。
    • 启用后,AI 将强制执行 OWASP 安全检查清单。

推荐 MCP 工具

  • Git MCP: 用于扫描历史提交中的敏感信息泄露。
  • Filesystem MCP: 用于检查文件权限和 .gitignore 配置。

提供全方位的安全保障,确保应用符合安全标准与法规。


包含的技能模块

1. 安全需求提取 (Security Requirements)

  • 核心价值: 在设计阶段识别安全风险。
  • 关键技术: 威胁建模, STRIDE 分析, 安全用户故事.
  • 使用场景: 新功能安全评审、架构设计。

2. 认证实现模式 (Authentication)

  • 核心价值: 实现安全可靠的用户身份验证。
  • 关键技术: JWT, OAuth2, OIDC, Session 管理.
  • 使用场景: 登录注册系统开发、第三方登录集成。

3. GDPR 数据处理 (GDPR Compliance)

  • 核心价值: 确保数据处理符合 GDPR 等隐私法规。
  • 关键技术: 数据最小化, 被遗忘权实现, 数据加密.
  • 使用场景: 出海应用开发、隐私合规审计。

4. 无障碍安全设计 (Accessibility Security)

  • 核心价值: 确保残障用户的安全使用体验。
  • 关键技术: 安全焦点管理, ARIA 安全使用, 验证码无障碍设计.
  • 使用场景: 无障碍网站安全审计、屏幕阅读器安全。

如何使用

  • 登录设计: "请参考认证实现模式,帮我设计一个安全的 JWT 登录流程。"
  • 合规检查: "请检查我的数据库字段设计是否符合 GDPR 要求。"
  • 无障碍安全: "请检查我的登录表单是否对屏幕阅读器用户安全且可访问。"

无障碍安全设计 (Accessibility Security)

为什么无障碍与安全相关?

无障碍设计不仅仅是可用性要求,也涉及安全层面:

安全问题 无障碍风险 安全影响
验证码绕过 视觉验证码无法被屏幕阅读器访问 可能迫使视障用户使用不安全的替代方案
焦点管理 模态框焦点泄漏 敏感信息可能被意外暴露
ARIA 滥用 aria-hidden 滥用 隐藏敏感内容被屏幕阅读器读取
输入验证 错误提示不清晰 用户可能重复提交导致安全问题

1. 验证码无障碍设计

问题

传统验证码(CAPTCHA)对视障用户构成严重障碍:

  • 视觉谜题无法被屏幕阅读器识别
  • 音频验证码可能泄露信息
  • 复杂的验证码增加认知负担
解决方案
<!-- ❌ 不合规:纯视觉验证码 -->
<div class="captcha">
  <img src="/captcha.png" alt="验证码图片" />
  <input type="text" placeholder="请输入验证码" />
</div>

<!-- ✅ 合规:提供多种验证方式 -->
<div class="captcha" role="group" aria-labelledby="captcha-label">
  <span id="captcha-label" class="sr-only">安全验证</span>

  <!-- 首选:隐形验证码 -->
  <div data-captcha="invisible"></div>

  <!-- 备选:音频验证码 -->
  <button type="button" aria-describedby="audio-desc">
    播放音频验证码
    <span id="audio-desc" class="sr-only">
      如有视觉障碍,请点击此处获取音频验证码
    </span>
  </button>

  <label for="captcha-input" class="sr-only">请输入您听到的字符</label>
  <input type="text" id="captcha-input" autocomplete="off" />
</div>

Read the full file on GitHub · 598 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 598 lines · 119 tokens per session scan A 7c66f38e025b

Subscribe to this mod's changes

Security Specialist is a skill published in the GitHub repository boshi-xixixi/TraeSkill (288 stars, last pushed 9d ago), licensed MIT. It adds 119 tokens to every session and 4,696 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-22.

Related

Security Specialist compared with skills from other repositories

Security Specialist next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Security Specialistboshi-xixixi/TraeSkillSkill2889d agoMITA119Claude Code, Codex
code-reviewLion-1209/Lion-SkillsSkill55mo agoMITA23Claude Code
chinese-code-reviewjnMetaCode/superpowers-zhSkill8.6k14d agoMITA62Claude Code
receiving-code-reviewjnMetaCode/superpowers-zhSkill8.6k14d agoMITA50Claude Code
requesting-code-reviewjnMetaCode/superpowers-zhSkill8.6k14d agoMITA24Claude Code
criticism-self-criticismHughYau/qiushi-skillSkill4.0k2d agoMITA197Claude Code
preflightRune-kit/runeSkill962d agoMITA46Claude Code