active/ag-dir/SKILL.md
Create or audit Agent Project Directory docs and status structure.
npx skillsauth add kevinslin/skills ag-dirInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when creating, auditing, or updating a durable AG directory (AGD) for one task.
Use $mem schema and the bundled ag-dir schema as the source of truth for layout,
boilerplate, file descriptions, insertion routing, and template sections. Inspect the
schema before creating or auditing an AGD:
../mem/scripts/mem.py schema show ag-dir
When this skill and the schema disagree, prefer the schema and update stale skill text rather than inventing a third layout.
Use $mem schema to create missing AGD notes instead of hand-writing boilerplate.
Create or backfill the AGD skeleton:
../mem/scripts/mem.py schema materialize ag-dir \
--out "$ROOT_DIR" \
--unmanaged \
--var project_title="Example Project" \
--var spec_num=01 \
--var spec_name=bootstrap \
--include design \
--include memory \
--include progress \
--include docs/spec-01-bootstrap \
--include .agents/runs/spec-01/handoff \
--include .agents/runs/spec-01/progress \
--include .agents/runs/spec-01/learnings \
--skip-existing
Add a new active spec plus matching run notes to an existing AGD:
../mem/scripts/mem.py schema materialize ag-dir \
--out "$ROOT_DIR" \
--unmanaged \
--var project_title="Example Project" \
--var spec_num=02 \
--var spec_name=workflow-cleanup \
--include docs/spec-02-workflow-cleanup \
--include .agents/runs/spec-02/handoff \
--include .agents/runs/spec-02/progress \
--include .agents/runs/spec-02/learnings \
--skip-existing
Materialize an archived spec note only when you explicitly need the optional archive branch:
../mem/scripts/mem.py schema materialize ag-dir \
--out "$ROOT_DIR" \
--unmanaged \
--var project_title="Example Project" \
--var spec_num=02 \
--var spec_name=workflow-cleanup \
--var archived_spec_num=00 \
--var archived_spec_name=landed-work \
--include docs/.archive/spec-00-landed-work \
--skip-existing
$mem schema with the ag-dir schema to inspect layout or materialize missing notes before creating new boilerplate by hand.memory.md concise and durable; remove stale hypotheses once resolved.spec-01, spec-02, ...). Avoid renaming active specs.ag-dir with $mem schema to confirm the current layout.--skip-existing.design.md.docs/..agents/runs/spec-{num}/.progress.md.docs/.archive/ and leave a current handoff.md when another agent needs to resume.Shortcuts are self-contained workflows triggered only when the user explicitly asks to use one.
When invoked, follow the mapped workflow section exactly.
Invoke them through $dev.shortcuts with trigger:<shortcut>, for example trigger:handoff spec14.
Write or refresh .agents/runs/spec-{num}/handoff.md for the requested spec.
[spec] from forms like spec14, spec-14, or 14 to the folder name spec-14.docs/ using docs/spec-{num}-*.md..agents/runs/spec-{num}/ or handoff.md is missing, materialize the missing run notes with $mem schema. Reuse the slug from the matching docs/spec-{num}-<name>.md file as spec_name..agents/runs/spec-{num}/handoff.md using the existing template sections.Write or refresh .agents/runs/spec-{num}/progress.md for the requested spec.
[spec] to spec-{num}.$mem schema using the matching docs/spec-{num}-*.md slug..agents/runs/spec-{num}/progress.md with the current state, next steps, and any spec-local notes.Write or refresh .agents/runs/spec-{num}/learnings.md for the requested spec.
[spec] to spec-{num}.$mem schema using the matching docs/spec-{num}-*.md slug..agents/runs/spec-{num}/learnings.md with concrete takeaways using the existing template sections.development
Create, rename, audit, or close a tracked Codex task whose turns and status are persisted in the local thread ledger. Only use when directly invoked.
testing
Manage Git preflight, branch and worktree creation, and completed-work cleanup. Use when explicitly invoked.
databases
Automatically use for durable knowledge, configured project-context lookup, and schema-backed artifact layouts.
content-media
Create, update, or optimize skills and SKILL.md content.