agentleFS
ashrafiucseashrafiucse/security-audit-skills/skills/skill-forge/SKILL.md

skill-forge

Skill2 starsChanged 49 days agoMITView on GitHub

Authors NEW custom security skills for this repo — design method, scaffold, fixture+ground-truth rules, self-test wiring, and the hard-won authoring laws from LEARNINGS. Use when creating a skill for a stack, product class, or business domain these skills don't cover (e.g. an internal platform, a niche framework), or when converting a repeated miss/FP into a first-class skill.

49 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use sigma, agent-forge and 3 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • sanyuan0704Skill

    sigma

    Personalized 1-on-1 AI tutor using Bloom's 2-Sigma mastery learning. Guides users through any topic with Socratic questioning, adaptive pacing, and rich visual output (HTML dashboards, Excalidraw concept maps, generated images). Use when user wants to learn something, study a topic, understand a concept, requests tutoring, says 'teach me', 'I want to learn', 'explain X to me step by step', 'help me understand', or invokes /sigma. Triggers on: learn, study, teach, tutor, understand, master, explain step by step.

    Also in 3 projects that use this

  • xyreinsurance119Skill

    agent-forge

    Создание, улучшение и аудит скиллов и агентов OpenClaw. Три режима: создание скилла (11 шагов), создание агента (9 шагов, с памятью и автоулучшением), улучшение существующего (5 шагов). Triggers: 'создай скилл', 'новый скилл', 'создай агента', 'новый агент', 'улучши скилл', 'skill creator', 'agent creator', 'скиллмейкер'.

    Also in 3 projects that use this

  • localSummerSkill

    skill-review

    回顾当前对话,整理 skill 使用情况、代码质量反馈和迭代建议,生成待确认的更新清单

    Also in 3 projects that use this

  • NVIDIASkill

    deep-research

    Queue deep, multi-step research and analysis tasks to the DeepAgents worker. Supports execution depth presets, request-specific rubrics, SubAgent delegation, and RubricMiddleware cross-validation.

    Also in 3 projects that use this

  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 42 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write the one-sentence trigger first ("Use when the repo has X").

    line 20
  2. Distinctive:

    Fixtures demonstrate the individually-clean property: when the class is cross-endpoint/cross-component — plant violations only BETWEEN …

    line 45
  3. Distinctive:

    If it introduces report sections: update the Phase 3 template mention

    line 67

“Common” is measured: kept by at least 6 in 10 of the 42 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

Skill Forge — building your own security skills

The core suite is self-contained (rg/grep + stdlib only). External inputs are fact feeds (OSV/KEV), not dependencies. This is how you extend it with skills no community will ever write — YOUR platform, YOUR framework.

1 — Scope from a persona or a pain

Best skill sources, in order of value:

  1. A real miss (MISSES.md row) that repeats — a class, not a one-off
  2. A business domain you own — walk it as its personas (admin / public buyer / end consumer / support), each surface they touch is a checklist row
  3. A niche stack the generic packs don't cover (internal framework, DSL, template engine)

Write the one-sentence trigger first ("Use when the repo has X"). If you can't say when it loads, it's a reference file, not a skill.

2 — Design: method, not just greps

A skill = enumeration step → sink greps → triage rules → severity + fix shapes. Copy the structure of the strongest existing skills (auth-review census, flow-security invariants). Grep-only skills decay; method+grep skills compound.

3 — Scaffold

bash ../skill-forge/scripts/new_skill.sh <name> "Description with trigger conditions..."

Creates skills/<name>/SKILL.md (frontmatter passes validate.py), references/patterns.md, and evals/fixtures/<name>-vuln-app/expected-findings.md.

4 — Authoring laws (from the eval LEARNINGS — violations have all bitten)

  1. Anchors after writes: expected-findings Where lines come from grep -n AFTER the fixture exists. Never estimate line numbers.
  2. Safe counterparts live in a separate file (safe-*.js/.py), and the raw vulnerable form must have ZERO occurrences there (add a MUST_NOT_MATCH rule).
  3. Fixtures demonstrate the individually-clean property when the class is cross-endpoint/cross-component — plant violations only BETWEEN parts.
  4. Absence findings anchor to the missing thing (requirements.txt:-) and cannot have grep-match selftest rules — ground-truth only.
  5. Adjacent findings stay >2 lines apart per citation anchor (scorer tolerance is ±2).
  6. Every pattern change adds a selftest rule and a fixture row the same commit; run the repo-root validator and selftest in a SEPARATE command after edits (write-race protection).
  7. Inserting a section before an existing ### heading: re-include the heading in the edit or you swallow it (bitten 3×).
  8. Blind-test the skill: dispatch an agent audit of the fixture with --glob '!**/expected-findings.md'; score with score_audit.py --append from the repo root; convert every miss and every "phantom" (phantoms are usually fixture gaps — verify evidence, extend ground truth) the same session.

5 — Wire it in

  • security-audit Phase 1 dispatch table row (what repo signal loads it)
  • README skill table + COVERAGE row (honest rating)
  • MISSES.md row recording why the skill exists
  • If it introduces report sections: update the Phase 3 template mention

6 — What NOT to build here

  • Anything needing non-portable runtime (no npm/pip deps — CONTRIBUTING rule 2)
  • Product-version lookups with no in-repo signal (vuln-db quality bar)
  • Skills that duplicate a dispatch row — extend the existing skill instead

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.