threat-model
Generate a STRIDE-based security threat model for a repository. Use when setting up security review for a new repo, after architecture changes, or when the user asks for a threat model or security baseline.
- License 许可
- MIT
- 最近更新
- 2026-09-20
- Stars
- ★ 4
- Forks
- 0
01 前言 Front Matter
- name
- threat-model
- description
- Generate a STRIDE-based security threat model for a repository. Use when setting up security review for a new repo, after architecture changes, or when the user asks for a threat model or security baseline.
- user-invocable
- false
02 资源文件 1
- 参考文档references/stride-template.md9.7 KB
03 SKILL.md 正文
Threat Model
Generate a repository threat model using the STRIDE methodology.
Output Files
Create or refresh:
.agent-security/threat-model.md.agent-security/security-config.json
Workflow
1. Analyze the Repository
Identify:
- Primary languages and frameworks
- Entry points
- External interfaces
- Data stores
- Queues, jobs, caches, and third-party services
2. Map Trust Boundaries
Define:
- Public entry points
- Authenticated surfaces
- Internal-only paths
- Admin-only operations
3. Inventory Critical Assets
Document:
- PII
- Credentials and secrets
- Business-critical data
- High-value admin actions
4. Run STRIDE Analysis
For each major boundary and component, evaluate:
- Spoofing
- Tampering
- Repudiation
- Information disclosure
- Denial of service
- Elevation of privilege
5. Write the Threat Model
The markdown file should include:
- System overview
- Trust boundaries
- Asset inventory
- Threat analysis
- Existing mitigations
- Vulnerability pattern library
- Review cadence and update triggers
The JSON config should include severity thresholds and any repository-specific review hints.
Gotchas
- The point is practical review guidance, not compliance theater.
- Keep the model specific to the actual architecture.
- Refresh it after significant auth, infrastructure, or data-flow changes.
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.