agentleFS
kalshamsikalshamsi/claude-security-skills/skills/_template/SKILL.md

your-skill-name

Skill1 starsChanged 8 months agoMITView on GitHub

Use when [trigger conditions]. Performs [what it does] for [target language/framework].

  • Installs packages

37 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

8 rules. 0 are common, 7 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 20 edited versions we read keep these.

  • 7

    Distinctive

    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:

    When the user asks to...

    line 21
  2. Distinctive:

    When scanning code for...

    line 22
  3. Distinctive:

    When a pull request contains changes to...

    line 24
  4. Distinctive:

    When the user is asking about...

    line 32
  5. Very specific:

    When another skill (e.g., skill-name) already covers...

    line 34
  6. Distinctive:

    If the tool requires an API key or token, note that here.

    line 43
  7. Distinctive:

    Check for [common vulnerability pattern 1]

    line 66
  8. Distinctive:

    Keep steps atomic — one action per step.

    line 82

“Common” is measured: kept by at least 6 in 10 of the 20 edited versions of this file we could read. “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

Your Skill Name

<!-- Replace with a single paragraph explaining what this skill does, what security domain it covers, and what value it provides. Keep it concise — this is the skill's elevator pitch. -->

One paragraph explaining the skill's purpose. For example: "This skill performs static analysis for [vulnerability class] in [language/framework] projects, identifying [specific issues] and mapping findings to CWE/OWASP standards."

When to Use

<!-- Bullet list of conditions that should trigger this skill. Be specific — these are the activation signals Claude uses to decide when to invoke the skill. Include user intent phrases, code patterns, and situational triggers. -->
  • When the user asks to...
  • When scanning code for...
  • When reviewing...
  • When a pull request contains changes to...

When NOT to Use

<!-- Anti-triggers to prevent false activations. List scenarios where this skill should NOT fire, even if keywords partially match. This prevents the skill from being invoked in irrelevant contexts. -->
  • When the user is asking about...
  • For non-security-related...
  • When another skill (e.g., skill-name) already covers...

Prerequisites

Tool Installed (Preferred)

<!-- How to detect the external tool this skill depends on. Include the detection command (e.g., `which toolname` or `toolname --version`) and any setup instructions (install command, minimum version, config files). If the tool requires an API key or token, note that here. -->
# Detection
which toolname || toolname --version

# Installation (if not found)
npm install -g toolname
# or: pip install toolname
# or: brew install toolname

Tool Not Installed (Fallback)

<!-- When the external tool is unavailable, provide the top-10 most critical manual checks Claude can perform using only code analysis. Include a disclaimer that manual checks are less comprehensive than the tool. For pure analysis skills that need no external tool, state: "No external tool required. This skill uses code analysis only." -->

Note: Manual checks are less comprehensive than automated tooling. Consider installing toolname for full coverage.

  1. Check for [common vulnerability pattern 1]
  2. Check for [common vulnerability pattern 2]
  3. Check for [common vulnerability pattern 3]
  4. Check for [common vulnerability pattern 4]
  5. Check for [common vulnerability pattern 5]
  6. Check for [common vulnerability pattern 6]
  7. Check for [common vulnerability pattern 7]
  8. Check for [common vulnerability pattern 8]
  9. Check for [common vulnerability pattern 9]
  10. Check for [common vulnerability pattern 10]

Workflow

<!-- Numbered step-by-step instructions for Claude to follow when executing this skill. Each step should be a concrete, actionable instruction. Include decision points (if/else), loops (for each file), and output expectations. Keep steps atomic — one action per step. -->
  1. Detect project language/framework by inspecting package.json, requirements.txt, go.mod, etc.
  2. Identify target files for scanning (e.g., src/**/*.ts, app/**/*.py)
  3. Scan for [specific vulnerability patterns]
  4. For each finding: a. Determine severity (Critical / High / Medium / Low) b. Map to the relevant CWE identifier c. Map to the relevant OWASP Top 10 category d. Identify the file and line number e. Draft a remediation recommendation
  5. Deduplicate and sort findings by severity (Critical first)
  6. Generate the findings report using the format below
  7. Summarize: total findings, breakdown by severity, top recommendations

Findings Format

<!-- Table format for reporting findings. Every finding produced by this skill must include all of the fields below. Adjust the example row to match your skill's domain. -->

Each finding should include:

FieldDescription
SeverityCritical / High / Medium / Low
CWECWE-XXX identifier
OWASPA01-A10 category
Locationfile:line
IssueDescription of the vulnerability
RemediationHow to fix it

Example Finding

FieldValue
SeverityHigh
CWECWE-79
OWASPA03:2021 - Injection
Locationsrc/components/UserProfile.tsx:42
IssueUser-supplied name is rendered without sanitization via dangerouslySetInnerHTML
RemediationUse React's default text rendering or sanitize input with DOMPurify before rendering

Reference Tables

<!-- CWE and OWASP mappings specific to this skill's domain. List every check the skill performs alongside its CWE, OWASP category, and default severity. This table serves as both documentation and a lookup reference during scanning. -->
CheckCWEOWASPSeverity
Example check 1CWE-79A03High
Example check 2CWE-89A03Critical
Example check 3CWE-200A01Medium
Example check 4CWE-522A07High

Example Usage

<!-- Concrete example showing how a user would invoke this skill and what output to expect. Include both the user prompt and a representative (abbreviated) output. -->

User prompt:

"Run a [your-skill-name] scan on this project"

Expected output (abbreviated):

## [Your Skill Name] Scan Results

Scanned 23 files in src/

### Findings (3 total: 1 Critical, 1 High, 1 Medium)

| # | Severity | CWE | OWASP | Location | Issue |
|---|----------|-----|-------|----------|-------|
| 1 | Critical | CWE-89 | A03 | src/db/queries.ts:18 | SQL query built via string concatenation with user input |
| 2 | High | CWE-79 | A03 | src/views/profile.ejs:7 | Unescaped user output in template |
| 3 | Medium | CWE-200 | A01 | src/errors/handler.ts:34 | Stack trace exposed in production error response |

### Recommendations
1. Use parameterized queries for all database access (Finding #1)
2. Enable auto-escaping in EJS templates (Finding #2)
3. Suppress stack traces when NODE_ENV=production (Finding #3)

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.