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.
In this repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- platform-cliSkill
- platform-desktopSkill
- platform-mobileSkill
- platform-pluginSkill
- platform-webSkill
- agentic-security-guardSkill
- architecture-guardSkill
- artifact-analyzerSkill
- boundary-guardSkill
- code-quality-gateSkill
- cognitive-load-auditorSkill
- context-groundingSkill
- copy-auditSkill
- cost-estimatorSkill
- dast-scannerSkill
- database-architectSkill
- design-auditSkill
- design-system-generatorSkill
- design-system-integratorSkill
- environment-preflightSkill
- evidence-gated-blockingSkill
- human-in-the-loopSkill
- lessons-learnedSkill
- mcp-discoverySkill
- meta-judgeSkill
- ponytail-wrapperSkill
- prd-generatorSkill
- prompt-historySkill
- sast-scannerSkill
- sca-secret-scannerSkill
- security-gateSkill
- security-hardeningSkill
- snapshot-rollbackSkill
- stack-advisorSkill
- task-breakdownSkill
- tech-spec-writerSkill
- test-suite-auditorSkill
- ui-interaction-authoritySkill
- viewport-qaSkill
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
- Very specific: line 14
Read .agents/security-context.yaml, docs/project/PRD.md, and docs/project/STACK.md (when available).
- Very specific: line 22
If Aegis MCP is available, call aegis_assess to validate threat model completeness during planning/design, and aegis_review to verify …
≈ “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.
Files
Security Context Manager
Trigger
Phase 1 (Planning) and Phase 3 (Design).
Process
- Read
.agents/security-context.yaml,docs/project/PRD.md, anddocs/project/STACK.md(when available). - Collaborate with the user (or derive from PRD/NFRs under
/auto-buildwith 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_requiredand authorization/IDOR rulesinput_validation_standard(for example Zod, Joi, Pydantic, Rustserde)output_encoding_requiredand safe error handlingsecrets_managementandcompliance_standards(OWASP ASVS, SOC2, HIPAA, etc.)
- If Aegis MCP is available, call
aegis_assessto validate threat model completeness during planning/design, andaegis_reviewto verify generated code adheres to the threat model. - 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.yamlschema fields all evaluated and populated- PII/PHI/PCI data flows, trust boundaries, and validation standards documented
aegis_assess/aegis_reviewinvoked 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.
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
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.

