Skill usage audit

From Fr-e-d/GAAI-framework · View interactive version

Skill usage audit is an AI agent skill from the GitHub repository Fr-e-d/GAAI-framework. Scan all artefacts (epics, stories, PRDs) for Base Rule #2 compliance — verify that every artefact declares skills_invoked and related_decs in frontmatter. Produces an audit report with pass/fail per artefact and overall compliance rate.

How to use this skill

Skill file

Skill Usage Audit

Purpose / When to Activate

Activate:

This skill enforces Base Rule #2 (Skill-first) by scanning artefacts for the skills_invoked attestation field. It detects artefacts that were produced from cached knowledge without reading the corresponding skill file.


Process

  1. Scan all Epic files at contexts/artefacts/epics/*.epic.md (exclude _template.epic.md):
  1. Scan all Story files at contexts/artefacts/stories/*.story.md (exclude _template.story.md):
  1. Produce audit report with:

Outputs

Skill Usage Audit Report — {date}

Epics scanned: {count}
Stories scanned: {count}

Non-compliant artefacts:
- {id}: FAIL — missing skills_invoked
- {id}: FAIL — missing related_decs
- {id}: WARN — missing epic field

Compliance rate: {n}/{total} ({pct}%)

Verdict: CLEAN | {n} VIOLATIONS FOUND

Remediation

For each non-compliant artefact, the human or agent must:

  1. Read the corresponding skill file (generate-stories/SKILL.md or generate-epics/SKILL.md)
  2. Verify the artefact content follows all process steps
  3. Add the missing frontmatter fields
  4. Commit the fix

This skill does NOT auto-fix artefacts — it reports only. Remediation is a conscious act.


Quality Checks


Non-Goals

This skill must NOT:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.