agentleFS
GitHubKnown publishergithub/gh-aw/.github/skills/security-advisory-compat-enforcer/SKILL.md

security-advisory-compat-enforcer

Skill5.3k starsChanged 6 months agoMITView on GitHub

Review a GitHub security advisory and safely update .github/aw/compat.json with evidence-backed version enforcement.

Trending

Quiet since March.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 2 mentionsMar 2026: 1 mentionApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the github/gh-aw repository that our weekly crawl found: only 3 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    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:

    Use this skill to translate a GitHub repository security advisory into the smallest safe update to .github/aw/compat.json.

    line 8
  2. Very specific:

    If authentication is unavailable or access fails, try the public global advisory endpoint: gh api advisories/GHSA-ID (or its equivalent …

    line 21
  3. Distinctive:

    Verify the proposed patched version independently.

    line 27
  4. Distinctive:

    Use exact bounded ranges and do not broaden the advisory's claims.

    line 55
  5. Distinctive:

    Do not invent commands, CVE identifiers, affected configurations, mitigations, or timelines.

    line 71
  6. Very specific:

    When changing blockedVersions, update .github/aw/compat.md in the same change.

    line 84
  7. Very specific:

    Run the repository's Validate compat.json structure and version formats task from .github/workflows/cgo.yml.

    line 94
  8. Distinctive:

    Do not claim validation that was not run.

    line 107

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

Use this skill to translate a GitHub repository security advisory into the smallest safe update to .github/aw/compat.json.

Required inputs

Record the repository, GHSA identifier, requested enforcement policy, and any patched version supplied by the user. Treat a user-supplied version as a target to verify, not as evidence for advisory details.

Evidence retrieval

  1. Attempt authenticated retrieval first: gh api repos/OWNER/REPO/security-advisories/GHSA-ID.
  2. If authentication is unavailable or access fails, try the public global advisory endpoint: gh api advisories/GHSA-ID (or its equivalent REST URL).
  3. Record the endpoint and outcome of each attempt. If both sources are inaccessible, state that explicitly. Never infer or invent the affected package, vulnerable range, severity, CVE, publication state, or patched version.
  4. Verify the proposed patched version independently. Prefer a published repository release or tag, then package-registry metadata when applicable. Cite the exact URL or command result. Do not update compatibility policy if the target cannot be verified, unless the user explicitly directs use of a supplied target despite inaccessible advisory metadata; document that limitation without converting it into fabricated advisory evidence.

Choose the correct policy field

  • minimumVersion is a hard floor: activation fails for every compiler version below it. Change it only when the requested remediation is a universal minimum-version enforcement.
  • blockedVersions rejects listed versions exactly. Change it only when evidence or explicit instructions identify exact versions to deny and a continuous minimum floor would be inaccurate.
  • minRecommendedVersion only warns below the value. Change it only for an explicitly requested recommendation, never as a substitute for enforcement.
  • Agent rows under agent-compat-v1 select compatible agent versions; they are unrelated to compiler security enforcement unless separate evidence requires an agent compatibility change.

Write remediation guidance

Provide concise, actionable remediation in .github/aw/compat.md and the final report. Follow established security-advisory terminology:

  1. Identify the affected product or component, GHSA identifier, CVE identifier when assigned, affected versions, and first fixed or unaffected version. Use exact bounded ranges and do not broaden the advisory's claims.
  2. State the permanent remediation in imperative language. Give exact, copyable upgrade and regeneration commands verified against official documentation. For compiler advisories, explain whether existing generated workflows must be recompiled and redeployed; blocking a vulnerable version prevents execution but does not repair generated artifacts.
  3. Separate remediation from mitigations and workarounds. Include a temporary measure only when the advisory documents it. If the retrieved advisory does not identify one, say so without claiming that no workaround exists.
  4. Include a verification step that checks the installed version and any regenerated artifacts. Do not treat a successful install alone as proof that deployed workflows were remediated.
  5. Link the advisory, fixed release, and authoritative upgrade documentation. Mention severity, CVSS, known exploitation, CISA KEV status, deadlines, or urgency only when verified from authoritative evidence.

Do not invent commands, CVE identifiers, affected configurations, mitigations, or timelines. If remediation details cannot be verified, identify the missing evidence and leave the instructions explicitly incomplete.

Safe edit procedure

  1. Parse the current JSON and record all four policy areas above.
  2. Compare semantic versions numerically. A minimum is monotonic: never lower a non-empty minimumVersion or minRecommendedVersion. Stop and report a requested downgrade rather than applying it.
  3. Make the narrowest evidence-backed edit. Preserve blockedVersions, minRecommendedVersion, every agent-compat-v1 row, key ordering, and formatting unless the selected policy specifically requires changing them.
  4. When changing blockedVersions, update .github/aw/compat.md in the same change. Account for every blocked version, state why each version or contiguous range is blocked, link to the corresponding advisory, and provide the remediation and verification steps defined above.
  5. Review the final diff and reject unrelated changes.

Required validation

Before reporting completion:

  1. Run the repository's Validate compat.json structure and version formats task from .github/workflows/cgo.yml.
  2. Validate .github/aw/compat.json against .github/aw/compat.schema.json with a JSON Schema Draft 7 validator. JSON parsing or ad hoc field checks are not substitutes for schema validation.
  3. Confirm .github/aw/compat.md accounts for every blockedVersions entry and that each documented range links to its advisory.
  4. Exercise the runtime policy semantics with versions immediately below, at, and above the changed boundary; confirm only the intended hard-fail, warning, or exact-block behavior changed.
  5. Confirm semantic-version monotonicity and byte-for-byte preservation of unrelated policy fields and agent rows.

Do not claim validation that was not run. If repository constraints prohibit a required check, report it as outstanding.

Report

Cite advisory retrieval attempts and patched-version verification. State which field changed, old and new values, why that policy is correct, which fields were preserved, and the compatibility task, schema, documentation, and runtime validation results. Include the remediation, any advisory-supported temporary mitigation, and verification steps. Clearly separate verified facts, user-provided inputs, and unavailable advisory details.

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.