agentleFS
tanbopptanbopp/ai-development-framework/.agents/skills/security-context-manager/SKILL.md

security-context-manager

Skill1 starsChanged 18 days agoMITView on GitHub

Collaborates in Phase 1 and Phase 3 using .agents/security-context.yaml (and optional Aegis MCP) to produce a project-specific threat model at docs/project/THREAT_MODEL.md.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read .agents/security-context.yaml, docs/project/PRD.md, and docs/project/STACK.md (when available).

    line 14
  2. Very specific:

    If Aegis MCP is available, call aegis_assess to validate threat model completeness during planning/design, and aegis_review to verify …

    line 22

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Security Context Manager

Trigger

Phase 1 (Planning) and Phase 3 (Design).

Process

  1. Read .agents/security-context.yaml, docs/project/PRD.md, and docs/project/STACK.md (when available).
  2. Collaborate with the user (or derive from PRD/NFRs under /auto-build with explicit ADR recording) to fill out every section of the threat model template:
    • trust_boundaries (for example client-to-API, API-to-database, IPC, webhooks)
    • data_classifications (PII, PHI, PCI, internal, public)
    • authentication_required and authorization/IDOR rules
    • input_validation_standard (for example Zod, Joi, Pydantic, Rust serde)
    • output_encoding_required and safe error handling
    • secrets_management and compliance_standards (OWASP ASVS, SOC2, HIPAA, etc.)
  3. If Aegis MCP is available, call aegis_assess to validate threat model completeness during planning/design, and aegis_review to verify generated code adheres to the threat model.
  4. Save the finalized project threat model to docs/project/THREAT_MODEL.md.

Output Contract

docs/project/THREAT_MODEL.md containing a complete, project-specific threat model covering all fields defined in .agents/security-context.yaml.

Checklist

  • .agents/security-context.yaml schema fields all evaluated and populated
  • PII/PHI/PCI data flows, trust boundaries, and validation standards documented
  • aegis_assess / aegis_review invoked when Aegis MCP is connected
  • Finalized threat model saved to docs/project/THREAT_MODEL.md

Prohibitions

  • Proceeding past Phase 3 without a project-specific docs/project/THREAT_MODEL.md.
  • Assuming "no authentication or validation needed" when user data or network endpoints exist.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.