security-scan
Analyze code changes for security vulnerabilities using STRIDE patterns and repository context. Use when the user wants a security scan of staged changes, a pull request, a branch diff, or a commit range.
- License 许可
- MIT
- 最近更新
- 2026-09-20
- Stars
- ★ 4
- Forks
- 0
01 前言 Front Matter
- name
- security-scan
- description
- Analyze code changes for security vulnerabilities using STRIDE patterns and repository context. Use when the user wants a security scan of staged changes, a pull request, a branch diff, or a commit range.
- user-invocable
- false
03 SKILL.md 正文
Security Scan
Analyze code changes using LLM reasoning plus a repository threat model.
Prerequisites
This skill expects:
.agent-security/threat-model.md.agent-security/security-config.json
If either is missing, generate them first with the threat-model skill.
Input
If the user does not specify a scope, default to staged changes.
Supported scopes:
- Pull request
- Commit
- Commit range
- Staged changes
- Uncommitted changes
- Branch comparison
Workflow
1. Resolve the Scan Scope
Use git diff, git show, or gh pr diff as appropriate.
2. Load Security Context
Read:
.agent-security/threat-model.md.agent-security/security-config.json
3. Inspect the Changed Files
For each changed file, check for STRIDE patterns including:
- auth and session flaws
- injection
- XSS
- path traversal
- insecure deserialization
- secret exposure
- missing authorization
- denial-of-service risks
4. Record Findings
Write findings to:
.agent-security/findings.json
Each finding should include:
- file
- line or code region
- category
- severity
- explanation
- suggested fix
5. Summarize for the User
Report the highest-signal findings first. Separate confirmed issues from weaker suspicions.
Gotchas
- Read full file context before flagging a sink.
- Framework defaults may already neutralize some classes of bugs.
- Diff-only review is not enough when the sink and source live in different files.
04 同仓库更多 Skills
writing-shape
Take a markdown file of raw material and shape it into an article through a conversational session — drafting candidate openings, growing the piece paragraph by paragraph, arguing about format (lists, tables, callouts, quotes) at each step. Use when the user has a pile of notes, fragments, or a rough draft and wants help turning it into something publishable.
writing-fragments
Grilling session that mines the user for fragments — heterogeneous nuggets of writing (claims, vignettes, sharp sentences, half-thoughts) — and appends them to a single document as raw material for a future article. Use when the user wants to develop ideas before imposing structure, or mentions "fragments", "ideate", or "raw material" for writing.
writing-beats
Shape an article as a journey of beats, choose-your-own-adventure style. The user picks a starting beat from the raw material, you write only that beat, then offer options for where to pivot next, beat by beat, until the article reaches a natural end. Use when the user has raw material and wants to assemble it as a narrative rather than an argument.
stop-slop
Remove AI writing patterns from prose. Use when drafting, editing, or reviewing text to eliminate predictable AI tells.
humanizer
Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, passive voice, negative parallelisms, and filler phrases.
feedback
Prepare, deliver, and debrief timely interpersonal feedback using a question-first coaching flow, observable behavior, owned experience, and concrete impact. Use when drafting feedback, coaching managers, rehearsing a feedback conversation, praising specific behavior, or reviewing whether feedback landed.