agentleFS
mnaimfaizymnaimfaizy/agent-kit/.claude/skills/security-response/SKILL.md

security-response

Skill2 starsChanged 5 days agoMITView on GitHub

Run a maintainer's response to private draft security advisories as a Security Response Run, a private local board that tracks and resumes the work; reconcile the run against GitHub and git, prioritize next work, run triage, and coordinate guarded remediation when explicitly authorized.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    Before the first write of a run, pass the ignore gate in RUN.md: if tmp/security-response/ is not ignored, offer the .gitignore line and …

    line 39
  2. Distinctive:

    After each call, the run reads the advisory back and moves the board only on what it shows (RUN.md).

    line 51
  3. Distinctive:

    Never expose advisory bodies, exploit steps, or secrets publicly.

    line 57
  4. Very specific:

    Prefer concept-id over report-local F<n> identifiers.

    line 58
  5. Very specific:

    Never publish, close, or request a CVE for an advisory without record approve for that action, and never past its gate.

    line 64
  6. Distinctive:

    If authorized and reproducible, implement a minimal root-cause fix and validate it.

    line 72
  7. Very specific:

    Update the board, log the change in activity.md, and report with public-safe wording.

    line 73

≈ “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 response

Drives the backlog and remediation of security findings as a Security Response Run: one pass of the maintainer's response to every open draft security advisory, kept in a private local board with one row per concept id.

This skill is portable and does not include product-specific playbooks, threat packs, or ledgers. Consumers provide those assets.

Requires the security-finding-triage skill, installed alongside this one: triage mode runs it.

The run folder, the board and the states: RUN.md. Load it before any mode.

Modes

A <target> is a concept id or a GHSA:F<n>; fix also takes next.

  • status: prints the board (RUN.md) in the local terminal
  • next: recommend one prioritized next action. Once every row and every advisory is final, it recommends close (RUN.md), and nothing closes on its own
  • triage <target>: run evidence-first triage for one finding with the security-finding-triage skill, and land its outcome on the board (RUN.md)
  • fix <target>: only with explicit authorization; implement and validate fix. Opening the fix pull request on the private fork (or, for a below-floor row, an ordinary public pull request on the repository) moves the row to fix PR open, with the PR number in its Record (RUN.md). A row found in triage and confirmed at Medium or above needs a draft advisory first (RUN.md)
  • reconcile: reconcile only (RUN.md): check the run against GitHub and git, and do nothing else
  • record <what>: land a human step from a closed set, and verify whatever the run can (RUN.md); after record approve, publish, close or request a CVE for an advisory through gh api (Advisory actions)
  • close: once every row and every advisory is final, write the findings ledger through one public pull request the human merges, and close the run (RUN.md)

The run

Every mode starts by opening or resuming the Security Response Run, as RUN.md says: an open run is resumed; with none open and draft advisories present, a run is opened; with no drafts and no open run, the skill reports "nothing to respond to" and writes nothing. There are no open or resume modes.

Reconcile is step one of every mode: once the run is opened or resumed, check it against GitHub and git, as RUN.md says, before the mode does its own work.

Before the first write of a run, pass the ignore gate in RUN.md: if tmp/security-response/ is not ignored, offer the .gitignore line and write nothing without a yes.

This skill is the only writer of the run folder. Each change to the board is logged in activity.md.

Advisory actions

The run publishes, closes, or requests a CVE for an advisory only after record approve for that action, and only once the advisory passes its gate in RUN.md. Each is one gh api call, made with the human's own gh login (the repo scope, or a fine-grained token with "Repository security advisories" write); there is no gh advisory command:

  • Publish: gh api --method PATCH repos/<owner>/<repo>/security-advisories/<GHSA-id> -f state=published
  • Close: gh api --method PATCH repos/<owner>/<repo>/security-advisories/<GHSA-id> -f state=closed
  • Request a CVE: gh api --method POST repos/<owner>/<repo>/security-advisories/<GHSA-id>/cve

After each call, the run reads the advisory back and moves the board only on what it shows (RUN.md).

record approve close takes a list of GHSAs, each named, with no wildcard: the human names every draft the run closes. A draft with no findings (a clean run, a format mismatch, a failed run, or another draft with no F<n>) is one advisories line with Rows 0 (<kind>), and its only final state is closed (RUN.md).

Guardrails

  • Never expose advisory bodies, exploit steps, or secrets publicly. Nothing in the run folder leaves the machine.
  • Prefer concept-id over report-local F<n> identifiers.
  • status/next/triage do not authorize code fixes by default.
  • The findings ledger is not edited before close: triage lands its outcome on the board, and triage's Proposed ledger row waits in triage/<concept-id>.md.
  • close writes the findings ledger through one ledger PR the human merges: the ledger is never pushed to the default branch directly, and nothing private is copied into it.
  • fix still requires safe reproducible evidence before implementation.
  • Save each advisory to the run's originals/ before any PATCH that rewrites it publicly.
  • Never publish, close, or request a CVE for an advisory without record approve for that action, and never past its gate.

Flow

  1. Open or resume the run (The run), and check the default branch's tip for the board header.
  2. Reconcile the run against GitHub and git (RUN.md).
  3. Prioritize based on evidence, impact, exposure, and blast radius.
  4. Triage to confirm or reject before fixing.
  5. If authorized and reproducible, implement a minimal root-cause fix and validate it.
  6. Update the board, log the change in activity.md, and report with public-safe wording.

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.