AGENT SKILL

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

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:

  1. System overview
  2. Trust boundaries
  3. Asset inventory
  4. Threat analysis
  5. Existing mitigations
  6. Vulnerability pattern library
  7. 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

Nairon-AI
Nairon-AI/agentic-starter-pack

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.

内容创作者写作与文案
★ 4
Nairon-AI
Nairon-AI/agentic-starter-pack

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.

内容创作者写作与文案
★ 4
Nairon-AI
Nairon-AI/agentic-starter-pack

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.

内容创作者写作与文案
★ 4
Nairon-AI
Nairon-AI/agentic-starter-pack

stop-slop

Remove AI writing patterns from prose. Use when drafting, editing, or reviewing text to eliminate predictable AI tells.

内容创作者写作与文案
★ 4
Nairon-AI
Nairon-AI/agentic-starter-pack

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.

内容创作者写作与文案
★ 4
Nairon-AI
Nairon-AI/agentic-starter-pack

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.

★ 4