/foundation:fa-foundation-context-auditfrom foundation
Sweeps the entire repository context layer — instruction files, MEMORY.md, topic stores, skills directories — reconciling claims against actual disk state. Use for periodic drift sweeps, before decisions depending on context accuracy, or when multiple scopes appear untrustworthy.
Ships in foundation. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill to sweep an entire repository's context layer at once and
reconcile every claim in it against inspected reality. This skill is the
fan-out; refreshing one directory is a fa-foundation-memory-maintenance job,
and closing one working session is a fa-foundation-session-close job.
Use this skill when:
Do not use this skill when:
--scope arguments, with their directory boundariesMEMORY.md, which records the previous pass's findings and its dateMEMORY.md, pruned of everything this pass resolved, not merely appended topython3 ${CLAUDE_PLUGIN_ROOT}/scripts/context-audit.py --scope <dir> --scope <dir> …, adding --registry <path> where the tree carries a central registry file (the registry check is opt-in and silently does nothing without it) and --instruction-file AGENTS.md where that, not CLAUDE.md, carries the rules. It takes seconds and removes the entire class of findings that need no judgement. MEMORY-INDEX-STALE is the cheapest of them: every MEMORY.md is derived from its memory/ topic files, so the fix is --fix-index, never an edit to the index.--fix-index so every index the branches' topic edits invalidated is regenerated in one place — a mid-flight run reports the sweep's own noise, and a mid-flight --fix-index regenerates indexes the branches are still editing.POSSIBLE-STATE-IN-INSTRUCTIONS is the sharp case — a locked rule ("releases are cut from main, always") and a status line ("currently on v3, dormant since March") are the same shape to a regex. A pass that drives that class to zero has almost certainly deleted binding rules. The count going down is not the goal; the count is not a score at all. Expect to close a healthy sweep with findings deliberately left standing, each with its reason recorded so the next sweep does not re-litigate it.MEMORY.md becomes unreadable, and pruning is the part that proves the pass verified something rather than restating it.| Failure mode | Recovery | Owner | Escalation |
|---|---|---|---|
| overlapping agent scopes | discard both reports, redraw disjoint boundaries, re-run those branches | sweep owner | pause the sweep before more writes land |
| judgement class cleared to zero | restore from history and re-read each file whole | sweep owner | involve the human owner if rules were lost |
| script findings from the sweep itself | wait for the fan-out to drain, then re-run before believing any of them | sweep owner | none — expected noise |
| branch left scratch or an uncommitted tree | re-run that branch's close-out; do not clean it from the parent | branch agent | human owner if history was rewritten |
fa-foundation-create-skillfa-foundation-create-agentMEMORY.md is stale after today's work — close that session instead of sweeping the repository.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub frostaura/technologies.fa.gaia --plugin foundation10 skills in this plugin
/fa-foundation-context-authoringProvides cascade-aware authoring for a scope's instruction file (CLAUDE.md or AGENTS.md) and its MEMORY.md topic store, keeping timeless rules strictly separate from dated state and holding every scope to its own delta over its parent. Use it when creating, rewriting or restructuring either file at a single scope whose surrounding cascade already exists, when a nested scope restates content it already inherits, when an instruction file has started asserting status, versions or progress, or when a memory store has no memory/ directory, carries malformed topic frontmatter, or has a hand-written index instead of one generated from its topic files./fa-foundation-create-agentProvides the house rules for an agent definition that actually gets invoked and stays in its lane — one role per file, a description carrying what the agent is for and when to reach for it, an explicit anti-mission, an output contract, and a tool scope no wider than the role needs. Use it when adding an agent, when an agent never fires or fires on the wrong work, when two agents claim the same scope, when a definition's tools no longer match what it does, or when rationalizing a set of agents that has sprawled. It never authors a skill — that is `fa-foundation-create-skill` — and it never audits a whole definition directory, which is the skills auditor's./fa-foundation-create-planProvides a researched, executable plan for work that is large, ambiguous or hard to reverse — requirements clarified with the human first, three identical subagents fanned out to propose plans in parallel, all three critiqued dispassionately, and the best single plan synthesized and written to a file another agent can execute from. Use it before any multi-step build, refactor or migration, when two plausible approaches need deciding between, when the first choice made will be expensive to undo, or when the work will be handed to someone else to carry out. It plans; it never implements, and sequencing an approved architecture into gated delivery tasks is `fa-engineering-planning`'s./fa-foundation-create-skillProvides the house rules for a SKILL.md that actually fires — naming, the frontmatter contract, a description written as a trigger rather than a summary of the body, the standard section shape, references kept one level deep, and the prior decision of whether a new skill is warranted at all. Use it when adding a skill, when a skill never triggers or triggers on the wrong work, when a trap-bearing procedure has been repeated often enough to deserve one, or when consolidating skills that have drifted into each other. It never authors an agent definition — that is `fa-foundation-create-agent`./fa-foundation-memory-maintenanceProvides the deep-refresh procedure for one scope's memory store — the `memory/` topic files, plus the `MEMORY.md` index regenerated from them — re-established against inspected reality, not against what the previous version claimed. Use it when a session shipped, decided, discovered, abandoned or unblocked something; when a topic's `last_verified` is past the repository's freshness window; when an instruction file has accumulated a date, a status, a version pin or a "currently"; or before trusting any recorded status — a git status above all — for a consequential decision. It refreshes a store that already exists; standing stores up across a whole tree is `fa-foundation-optimize-directory-tree`'s./fa-foundation-optimize-directory-treeProvides the whole-tree bootstrap that puts the Gaia context layer onto an existing directory tree — an instruction file and MEMORY.md topic store at every scope that earns one, a root registry, and the retrospective design documentation its projects never had — and re-validates a bootstrapped tree against its projects' source. Use it when a tree of code, research or operational documentation has no context layer, or when one exists that was never derived from what the projects actually are. It never edits one scope's pair inside a cascade that already exists — that is `fa-foundation-context-authoring`; never audits an existing layer against itself — `fa-foundation-context-audit`; never writes one repository's design docs alone — `fa-engineering-architecture`; and never scaffolds application code.Other plugins' skills for the same job