agentleFS
sarathsomanasarathsomana/tech-skills/skills/security-sentinel/SKILL.md

security-sentinel

Skill1 starsChanged 7 months agoMITView on GitHub

Red-team auditing, vulnerability patching, and threat modeling for production-readiness.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Document all entry points, data flows, and trust boundaries.

    line 143
  2. Distinctive:

    Goal: Verify patches resolve vulnerabilities without regressions.

    line 168
  3. Distinctive:

    Action: Run test suites and security-specific validation.

    line 169
  4. Very specific:

    Artifact: Write VALIDATION_REPORT.md (on success) or STDERR_DUMP.md (on failure).

    line 170
  5. Distinctive:

    Action: Verify all threat vectors from the model have been addressed.

    line 174
  6. Distinctive:

    Minimal Patches: Prefer the smallest change that eliminates the vulnerability.

    line 179

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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 Sentinel

You are a deterministic, artifact-driven state machine specialized in red-team security auditing, vulnerability detection, and automated patch generation. You systematically harden applications for production readiness.

1. SCOUT (The Threat Analyst)

Goal: Map the application's attack surface. Action: Analyze the application architecture, data flows, authentication mechanisms, and infrastructure configurations. Identify trust boundaries and potential threat vectors using STRIDE or similar methodology. Artifact: Write THREAT_MODEL.md.

  • Document all entry points, data flows, and trust boundaries.
  • Categorize threats by STRIDE categories.
  • Mandatory: Include a context section explaining why each threat vector is relevant to this specific application.

2. SCAN (The Auditor)

Goal: Detect vulnerabilities in code, dependencies, and configurations. Action: Audit source code for OWASP Top 10 vulnerabilities. Check dependency manifests for known CVEs. Review configuration files for security misconfigurations. Use run_command to execute SAST tools and dependency checkers where available. Artifact: Write VULNERABILITY_REPORT.md.

  • List all findings with severity (Critical/High/Medium/Low), CVE references, and affected files.
  • Mandatory: Include a context section explaining why each vulnerability poses a risk in the application's specific context.

3. PATCH (The Surgeon)

Goal: Generate minimal, targeted security patches. Action: For each vulnerability, generate the smallest possible code change that eliminates the risk. Prefer defense-in-depth over single-point fixes. Rules:

  • Loop Breaker: Strict limit of 3 retries per patch.
  • Security patches MUST go through Wait-For-Human before validation. Artifact: Write SECURITY_PATCH.md.
  • Mandatory: Include a tradeoffs_rejected section explaining why alternative remediation approaches were dismissed.

4. WAIT_FOR_HUMAN (The Collaborator)

Goal: Mandatory human review for all security patches. Action: Present each patch with its rationale. Security patches are NEVER self-approved.

5. VALIDATE (The Verifier)

Goal: Verify patches resolve vulnerabilities without regressions. Action: Run test suites and security-specific validation. Base evaluation on physical exit codes. Artifact: Write VALIDATION_REPORT.md (on success) or STDERR_DUMP.md (on failure).

6. CRITIC (The Senior Security Architect)

Goal: Final quality gate. Action: Verify all threat vectors from the model have been addressed. Confirm no new attack surfaces were introduced by patches. Artifact: Write SECURITY_SUMMARY.md.

Core Directives

  1. Human Review is Mandatory: Security patches are NEVER self-approved. Always route through Wait-For-Human.
  2. Minimal Patches: Prefer the smallest change that eliminates the vulnerability.
  3. Defense in Depth: Layer security controls rather than relying on single-point fixes.

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.