security-evaluator
Evaluate a code change for web-security flaws — OWASP Top 10:2025 classes as source-review classes, taint signals from source to sink, and a per-language sink appendix. Use after writing or editing code that handles input, auth, data access, templating, deserialization, or external requests; when asked to security-review a change, check for injection/XSS/SSRF/authz flaws, or evaluate the security of what was just written. Report-only, candidate-tier by construction.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- lane
- coding
- name
- security-evaluator
- strictness
- standard
- description
- Evaluate a code change for web-security flaws — OWASP Top 10:2025 classes as source-review classes, taint signals from source to sink, and a per-language sink appendix. Use after writing or editing code that handles input, auth, data access, templating, deserialization, or external requests; when asked to security-review a change, check for injection/XSS/SSRF/authz flaws, or evaluate the security of what was just written. Report-only, candidate-tier by construction.
- allowed-tools
- Read, Bash, Skill
- security_ref_version
- 1
02 资源文件 5
- 参考文档references/cross-file-detection.md4.5 KB
- 参考文档references/guards.md4.9 KB
- 参考文档references/native-tool-map.md5.2 KB
- 参考文档references/security-taxonomy.md17.7 KB
- 参考文档references/version.md2.8 KB
03 SKILL.md 正文
Security Evaluator
Reviews a change for the web-security flaw classes an AI coder commonly introduces. Language-agnostic: the spine is the OWASP Top 10:2025 categories restated as source-review classes, each with a grep-able signal; the per-language sinks are a surface appendix read only for the ecosystem a change actually touches. Grounded in a strict safety model — grep proposes candidates, a real analyzer and human review decide. All findings are report-only and candidate-tier; the design-policy classes (access control, business logic) are flagged for review and never reported green.
Interface
| Row | Contract |
|---|---|
Invoke |
/security-evaluator [review [path] | sweep] |
Returns |
Report-only, candidate-tier findings against the OWASP Top 10:2025 source-review classes, each traced source to sink and tiered. Never edits the change it reviews; access-control and business-logic classes are flagged for review and never reported green. |
Fails |
No exit codes declared — the skill ships no script. Its one mechanical check is the catalog drift anchor: a grep -c of the security-ref-version marker across the four reference files must return 4. |
Commands
| Command | Layer | Action |
|---|---|---|
/security-evaluator review [path] |
L2 (post-write) | Review a diff or path just written against the taxonomy; trace source→sink taint; tier findings; report only |
/security-evaluator sweep |
L3 (full codebase) | Whole-tree security-class scan, report-only at scale |
Workflow
Steps
- Candidate set follows the mode.
review→ the diff.sweep→ the whole tree, report-only. - Read the grounding files below before detecting anything.
- Run the native-tool gate first (the real analyzer named in
native-tool-map.mdfor the ecosystem touched —semgrepcross-language, per-language taint engines, secrets and supply-chain scanners), then the ripgrep signal pipeline; reconcile every finding againstreferences/guards.md. - Trace taint source → sink per
references/cross-file-detection.md— a signal in isolation is a candidate; a signal reachable from untrusted input is a finding. - Tier every finding and display the plan. Report only — a security-evaluator never edits the change it reviews; the fix is the code owner's, verified by their own check.
- Never report a design-policy class green. Access control and business-logic flaws are flagged for review; absence of a signal is not proof of their absence.
Grounding
- references/cross-file-detection.md — source→sink taint tracing, cross-handler authz consistency, second-order taint (read first)
- references/guards.md — false-positive clearances (read before flagging anything)
- references/security-taxonomy.md — the OWASP Top 10:2025 source-review classes, each with its signal and CWE mapping, plus the per-language sink appendix
- references/native-tool-map.md — which real analyzer supersedes the grep, per ecosystem
Verification
- Check:
grep -c 'security-ref-version: 1' references/security-taxonomy.md references/native-tool-map.md references/guards.md references/cross-file-detection.md— expect 4 (every catalog file carries the matching drift anchor). A change to the catalog bumpsversion.mdand every file's anchor together, or a per-file drift check is impossible. - The catalog grep is the tier-3 self-check any IC runs; tier-4 dispatched review against the full taxonomy is this evaluator's own job.
04 同仓库更多 Skills
ui-design
Set a RENDERED interface's design direction before it is built, then evaluate what shipped. `direct` reads the project's CSS stack, asks about the case, researches real references for the job each screen does, hands the pick to the user, and writes the project's design record; `review` and `sweep` grade declared-vs-rendered slots (no missing or placeholder art), applied theme vs framework default, visual hierarchy, typography, colour roles, CTA, WCAG 2.2 AA contrast and focus, reflow at 320 CSS pixels, situation ergonomics, and AI-slop/templated-default tells. Use `direct` before the first UI build on a surface or for a new component pattern; use `review` after a UI-shipping change is written, when asked to design-review a page, or to decide whether a surface looks right to ship. Grades against a cited catalog with stable rule IDs and BLOCKS on hard-fail red flags. `review` and `sweep` are report-only.
timezone
Set the time zone Claude Code shows times in — the "done 7:55 PM" at the end of a turn, and the clock every command Claude runs sees. Use when the user asks to change, pick, set, fix or clear their time zone, or says the times shown are wrong (a remote server on UTC is the usual cause). Writes one key, env.TZ, into the user's own settings file.
text-eval
Evaluate written prose for AI-generation tells and register drift — mechanical character and punctuation defects, clustered judgment-class signals, citation integrity, and conversational register. Use after writing or editing any prose a person will read, when asked to check whether text reads as AI-generated, or before publishing copy. Grades against a cited catalog with clustering thresholds and hard rows that fire on first occurrence. Report-only.
shared-artifact
The house style for any shareable online artifact — a claude.ai Artifact, a published HTML page, a report or brief someone will be sent a link to. Use before writing or republishing any artifact page, when asked to create, share, publish or clean up an online artifact, and when deciding between an HTML page and a Claude Docs document. Carries the token set, the dark-mode contract, the briefing-binder layout, a starter template, and the sharing hygiene rules.
records-code-map
The code map for this project — where a file's sections and definitions are by line number, which files and lines mention a topic, and which checks, fixtures and cases cover a file. Use before searching or reading code to find something, before changing a file, and when deciding which test to run after an edit. The map is generated from the files on every call and never stored.
code-evaluator
Evaluate code to prevent common AI coding mistakes — dead code, duplication, complexity hotspots, reinvented helpers, leftover scaffolding. Two functions plus a pre-write advisor. Use after writing or editing code, when asked to review code quality, clean up the codebase, find unused code, find duplicates, check complexity, or evaluate what an AI just wrote. Commands: review (post-write), sweep (full codebase).