Manages agent context files (AGENTS.md, CLAUDE.md, rules, memory, skills, subagents). Provides session capture, codebase mapping, and code search with rg, ast-grep, and zg.
Ships in supermodel-skills. 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.
Every line is loaded on every trigger. If it doesn't change agent behavior, cut it. This file covers AGENTS.md, rules, and memory; load the doc for any other artifact or job.
| Job | Doc |
|---|---|
| Author or audit a skill, write descriptions, frontmatter | skills, then skill-descriptions, skill-metadata, skill-scaffold |
| Design a subagent | subagents, then the platform doc it links |
| Map an unfamiliar codebase or package and leave durable context | map-codebase |
| Capture what this session learned | capture-session |
| Mine past sessions for uncaptured knowledge | capture-from-history |
| Distill a new or updated upstream skill into our spines | upstream-fold |
rg or the built-in grep is the default for code. Reach for another tool only when the question fits its row; a snippet that answers the question counts as read.
| Question | Tool | Doc |
|---|---|---|
| A word, identifier, path, error text, or config key you expect in the target | rg or built-in grep | |
| A known function, component, or code pattern; AST constructs, rewrite targets | ast-grep run, ast-grep scan | ast-grep |
| Structural map of files, imports, and exports before reading source | ast-grep outline | ast-grep |
| Only a description, in an unfamiliar codebase whose docs don't point to it | zg query | zvec-grep |
| Why a decision was made, how something was done before, prior instructions | agentsview session search | agentsview session search --help |
| Markdown knowledge bases and the girlOS vault | qmd | the obsidian skill |
[!NOTE]
AGENTS.mdand.agents/are both real and stand-ins. They're the shared cross-agent standard adopted by most non-Claude tools, and the generic model for agent-specific equivalents (CLAUDE.md,GEMINI.md,.codex/, etc.). Guidance here applies to all of them.
Refactoring overgrown files, Git commits). Product names keep their own casing: Herdr configuration rules because Herdr capitalizes at sentence starts in its own docs, dbt guidance because dbt never does.Include only what an agent can't infer from the code:
fd/tree)Exclude generic language idioms, README content, and vague directives ("write clean code").
The recommended progressive-disclosure approach:
docs/ with descriptive filenames (adding-shadcn-components.md)@-imports# Shopping app agent guidance
docs/adding-shadcn-components.md
docs/using-drizzle-with-supabase.md
docs/adding-v2-api-endpoints.md
The agent picks what to load. For projects with clear splits (frontend/backend), scope subdirectory indexes:
src/frontend/AGENTS.md → src/frontend/docs/...
src/backend/AGENTS.md → src/backend/docs/...
| Type | Purpose | Scope |
|---|---|---|
| Rule | How something should be done, always (workflow, conventions) | User-level if global, project-level if specific |
| Doc | State of something / how it works (API, architecture) | Skill if cross-project, docs/ if project-specific |
@reference imports. Most agents inline them fully on encounter. Treat as inlined content; recursive loading (Claude Code: depth 5) compounds bloat. The one sanctioned use is SPEC.md's domain-spec index, which is opened deliberately rather than loaded at session start.@-importing every file. Reserve for genuinely universal rules.After significant work, update AGENTS.md with new structure, patterns, or decisions. Universally relevant → root; area-specific → docs/ with index entry.
For AGENTS.md past ~60 lines or with poor structure:
docs/ files; add index entriesEvery tool repository uses one layout so agents find the same things in the same places:
AGENTS.md canonical, tracked
CLAUDE.md -> AGENTS.md symlink
.agents/docs/ project docs for agents
.agents/skills/ project-scoped skills
.claude/settings.json Claude Code settings; .claude/skills -> ../.agents/skills
.codex/config.toml Codex sandbox policy (workspace-write, no absolute paths)
docs/ how the system works now, indexed from AGENTS.md
Agent-specific directories hold only what that agent needs; shared content lives once under .agents/ or docs/. The project-tooling bootstrap lays this down.
| Location | Shared With | Loaded |
|---|---|---|
AGENTS.md / .agents/AGENTS.md | Team (tracked) | Always |
.agents/rules/*.md | Team (tracked) | Always |
AGENTS.local.md | User (untracked) | Always |
~/.agents/AGENTS.md | User (all projects) | Always |
~/.agents/* | User (all projects) | Varies by agent |
Use fully qualified names: ServerName:tool_name (e.g., BigQuery:bigquery_schema). Bare tool names may not resolve when many MCP servers are connected.
ast-grep-rules.md (opens in a new tab)ast-grep.md (opens in a new tab)capture-from-history.md (opens in a new tab)capture-session.md (opens in a new tab)map-codebase.md (opens in a new tab)skill-descriptions.md (opens in a new tab)skill-metadata.md (opens in a new tab)skill-scaffold.md (opens in a new tab)skills.md (opens in a new tab)subagents-claude-code.md (opens in a new tab)subagents-codex.md (opens in a new tab)subagents-opencode.md (opens in a new tab)subagents.md (opens in a new tab)upstream-fold.md (opens in a new tab)zvec-grep.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
agent-context, codebase-mapping, code-search, session-capture, ast-grep
/supermodel-skills:context-engineeringfrom supermodel-skills
npx claudepluginhub gwenwindflower/dotfiles --plugin supermodel-skills22 skills in this plugin
/agent-configCoding agent harness config - Claude Code hooks and settings, Codex config.toml layers, sandbox and approvals, permission profiles, MCP, plugins./analytics-engineeringAnalytics engineering - dbt projects, maintainable SQL as CTE pipelines, event patterns (funnels, sessions, retention, window functions, MATCH_RECOGNIZE)./ascii-animationsASCII and Unicode terminal animations - spinners, logo reveals, particles. Frame loops, character grids, per-character state, performance./browser-automationBrowser automation with agent-browser - navigating, forms, screenshots, scraping, web app QA and dogfooding, Electron apps. Version-matched guides served by the CLI./bunBun runtime - native APIs over Node, bun build --compile, single-file HTML bundles, tsconfig. For repos with bun.lock or bun imports./chezmoichezmoi dotfiles - source state, file attributes, templates, run scripts, ignore rules, dry-run verification.Other plugins' skills for the same job