/foundation:fa-foundation-create-agentfrom foundation
Provides house rules for defining custom agents that stay in their lane: one role per file, clear descriptions, anti-missions, output contracts, and scoped tools. Use when adding agents, fixing invocation issues, resolving role overlap, or rationalizing agent sprawl.
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.
Read when SKILL.md points to them.
Use this skill to keep Gaia's custom agents clear, distinct, and aligned with the global contract.
Use this skill when:
Do not use this skill when:
disallowedTools) or model overrides the role needsCLAUDE.md, or whichever file the tree's convention makes canonical) instead of a role file — never an interop pointer such as an AGENTS.md that only points at the canonical file.tools and inherit everything (including MCP tools); a role that must not mutate or execute expresses that with disallowedTools.description if it has one — e.g. one instance per scope, because two instances in the same subtree overwrite each other's edits.Agents are routinely launched several at a time — multiple Task-tool invocations in a single coordinator message — so author every role to fan out safely: keep it single-responsibility, state explicitly what it must NOT own, and give concurrent agents disjoint file scopes. Two agents writing in one scope overwrite each other; where scopes must overlap, isolate each in its own git worktree and merge deliberately. The full parallel-composition rules are in the agent specification.
Start from the assumption that the answer is a skill. An agent earns a file only for a property a skill cannot provide: a context of its own (a long orchestration that would flood the invoking session, or a worker dispatched many times in parallel over disjoint scopes), independence (a judge that did not write the thing it judges), or a tool restriction (a reviewer that cannot edit). A role whose body amounts to "follow skill X" is that skill with a hand-off in front of it — every hand-off drops context, and every agent description is loaded into every session. One orchestrator per skill set, plus whichever independent judge the workflow needs, is the usual ceiling.
Narrower than the bar for a new skill. Both, or extend an existing role:
If one existing agent plus a different scope line covers the case, that is the answer — a per-project variant of a per-scope agent is sprawl, not precision. Only then decide the invocation signal, any deliberate tool restriction, and how overlap will be prevented.
| Failure mode | Recovery | Owner | Escalation |
|---|---|---|---|
| overlap with existing role | merge or narrow the proposal | maintainer | reject new role if still redundant |
| unclear tool scope | inherit by default; restrict via disallowedTools | maintainer | block adoption until explicit |
| weak description | rewrite for invocation quality | maintainer | compare against neighboring roles |
| contract mismatch | update local role or contract as appropriate | maintainer | involve architecture if the operating model changed |
tools when omitting the field inherits them robustlydisallowedTools restriction) and delegation rules are explicitname + description present) and would actually launch — no invalid tool namesWhat 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-auditProvides the whole-repository context-layer drift sweep — every instruction file, every MEMORY.md and topic store, and every skills directory reconciled against inspected reality rather than against what the files claim. Use it when the periodic sweep is due, after a long dormancy, before any decision that depends on the context layer or the registry being literally true, when more than one scope looks untrustworthy at once, or when a previous sweep's findings need verifying rather than re-deriving. It checks what those files and registries claim against what is on disk; it never re-derives what they should say from a project's source — a tree with no context layer, or one to rebuild from source, is `fa-foundation-optimize-directory-tree`'s./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-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