Agent skill

skill-usage-audit

Scan all artefacts (epics, stories, PRDs) for Base Rule

Stars 123
Forks 27

Install this agent skill to your Project

npx add-skill https://github.com/Fr-e-d/GAAI-framework/tree/main/.gaai/core/skills/cross/skill-usage-audit

Metadata

Additional technical details for this skill

id
SKILL-CRS-028
track
governance
author
gaai-framework
status
stable
version
1.0
category
cross
updated at
1774051200

SKILL.md

Skill Usage Audit

Purpose / When to Activate

Activate:

  • Periodically (e.g., after a Discovery session) to verify governance compliance
  • Before a release or milestone to audit artefact quality
  • When trust in agent compliance needs verification
  • On demand by the human (/gaai-status or direct invocation)

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):

    • Check frontmatter for skills_invoked field
    • If present: verify it includes generate-epics
    • If missing: mark as FAIL
  2. Scan all Story files at contexts/artefacts/stories/*.story.md (exclude _template.story.md):

    • Check frontmatter for skills_invoked field
    • If present: verify it includes generate-stories
    • If missing: mark as FAIL
    • Check frontmatter for related_decs field
    • If missing: mark as FAIL (separate from skills_invoked)
    • Check frontmatter for epic field
    • If missing: mark as WARN
  3. Produce audit report with:

    • Per-artefact pass/fail status
    • Compliance rate: (passing artefacts / total artefacts) × 100
    • List of non-compliant artefacts for remediation
    • Timestamp of audit

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

  • Every artefact file in the scan directories is checked (no silent skips)
  • Template files (_template.*) are excluded from the scan
  • The report clearly distinguishes FAIL (blocking) from WARN (advisory)
  • Compliance rate is computed correctly

Non-Goals

This skill must NOT:

  • Auto-fix artefacts (report only — remediation is deliberate)
  • Check artefact content quality (use validate-artefacts for that)
  • Scan non-artefact files (memory, decisions, patterns)

Expand your agent's capabilities with these related and highly-rated skills.

Fr-e-d/GAAI-framework

ci-watch-and-fix

Watch GitHub Actions CI after PR creation, detect failures, extract logs, apply minimal fixes, and re-push — keeping the delivery session alive until CI resolves or escalating after 3 cycles. Activate immediately after gh pr create and before marking the story done.

123 27
Explore
Fr-e-d/GAAI-framework

qa-review

Validate that implemented code fully satisfies Story acceptance criteria, respects rules, and introduces no regressions. This is the hard quality gate — no pass means no delivery. Activate after implementation is complete.

123 27
Explore
Fr-e-d/GAAI-framework

compose-team

Assemble the context bundles for each sub-agent based on evaluate-story output. Produces spawn-ready packages for Planning, Implementation, QA, or MicroDelivery sub-agents. Activate after evaluate-story, before spawning any sub-agent.

123 27
Explore
Fr-e-d/GAAI-framework

coordinate-handoffs

Validate sub-agent handoff artefacts, sequence phase transitions, and manage retry and escalation logic. Activate after each sub-agent terminates to determine next action.

123 27
Explore
Fr-e-d/GAAI-framework

implement

Generate correct, minimal, maintainable code that satisfies a validated Story's acceptance criteria against an execution plan. Activate when a Story is validated, a plan exists, and all prerequisites are unambiguous.

123 27
Explore
Fr-e-d/GAAI-framework

delivery-high-level-plan

Transform validated Stories into a clear, minimal, governed execution plan. Used by the Planning Sub-Agent as the first planning pass before prepare-execution-plan for Tier 2/3, or as the sole planning output for simple Stories.

123 27
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results