Context Engineering
abashev/vfs-s3
Optimizes agent context setup. An agent skill from abashev/vfs-s3.
Audits a repository's agent-readable context, from AGENTS.md and CLAUDE.md to skills and PRODUCT or TECH specs, and recommends the smallest useful improvements.
$ npx skills add majiayu000/spellbook --skill repo-agent-context-audit -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install majiayu000/spellbook repo-agent-context-audit --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/majiayu000/spellbook.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/repo-agent-context-audit .claude/skills/repo-agent-context-audit && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "repo-agent-context-audit" agent skill from https://github.com/majiayu000/spellbook/tree/main/skills/repo-agent-context-audit into .claude/skills/repo-agent-context-audit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "repo-agent-context-audit", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/majiayu000/spellbook/tree/main/skills/repo-agent-context-auditType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add majiayu000/spellbook --skill repo-agent-context-audit -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install majiayu000/spellbook repo-agent-context-audit --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/majiayu000/spellbook.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/repo-agent-context-audit .agents/skills/repo-agent-context-audit && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "repo-agent-context-audit" agent skill from https://github.com/majiayu000/spellbook/tree/main/skills/repo-agent-context-audit into .agents/skills/repo-agent-context-audit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "repo-agent-context-audit", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add majiayu000/spellbook --skill repo-agent-context-audit -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install majiayu000/spellbook repo-agent-context-audit --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/majiayu000/spellbook.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/repo-agent-context-audit .cursor/skills/repo-agent-context-audit && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "repo-agent-context-audit" agent skill from https://github.com/majiayu000/spellbook/tree/main/skills/repo-agent-context-audit into .cursor/skills/repo-agent-context-audit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "repo-agent-context-audit", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/majiayu000/spellbook.git --path skills/repo-agent-context-audit--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add majiayu000/spellbook --skill repo-agent-context-audit -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install majiayu000/spellbook repo-agent-context-audit --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/majiayu000/spellbook.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/repo-agent-context-audit .gemini/skills/repo-agent-context-audit && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "repo-agent-context-audit" agent skill from https://github.com/majiayu000/spellbook/tree/main/skills/repo-agent-context-audit into .gemini/skills/repo-agent-context-audit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "repo-agent-context-audit", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install majiayu000/spellbook repo-agent-context-auditInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add majiayu000/spellbook --skill repo-agent-context-audit -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/majiayu000/spellbook.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/repo-agent-context-audit .github/skills/repo-agent-context-audit && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "repo-agent-context-audit" agent skill from https://github.com/majiayu000/spellbook/tree/main/skills/repo-agent-context-audit into .github/skills/repo-agent-context-audit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "repo-agent-context-audit", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add majiayu000/spellbook --skill repo-agent-context-audit -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install majiayu000/spellbook repo-agent-context-audit --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/majiayu000/spellbook.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/repo-agent-context-audit .opencode/skills/repo-agent-context-audit && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "repo-agent-context-audit" agent skill from https://github.com/majiayu000/spellbook/tree/main/skills/repo-agent-context-audit into .opencode/skills/repo-agent-context-audit/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "repo-agent-context-audit", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
repo-agent-context-auditAudits a repository's agent-readable context, from AGENTS.md and CLAUDE.md to skills and PRODUCT or TECH specs, and recommends the smallest useful improvements.
This skill audits whether a repository gives coding agents a small, usable context stack: a short top-level instruction file, task-specific skills, and behavior and implementation specs for larger work. It covers files such as `AGENTS.md`, `CLAUDE.md`, `WARP.md`, `CONTRIBUTING.md`, `.agents/skills` and `specs/` with PRODUCT and TECH files. The audit is read-only by default with minimal recommendations; it edits high-context files only when you explicitly ask.
The default standard has three layers: a top-level `AGENTS.md` of 80 to 150 lines that only routes, reusable skill workflows for fragile tasks, and checked-in product and tech contracts for each substantial feature. A coherent existing equivalent is mapped onto these layers instead of forced into them. The flow is discover, using the read-only scanner `scan_repo_context.py` plus direct inspection that records scope and precedence when files overlap, then classify, then score.
Classification uses six states: healthy, missing a top-level router, overloaded top-level file, complex repo without specs, stale or divergent instructions, and unsafe to modify. Scoring follows a rubric in `references/standards.md` covering routing quality, progressive disclosure, procedural workflows, decision gates, production examples and spec quality. Generating or applying `AGENTS.md` files is handed to the separate `agentsmd-scaffold` skill, and the text available here ends within the scoring step.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit ed52af7. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 1 file in scripts/ (Python), which the agent can run.
Shell commands in SKILL.md call:
python3From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Repo Agent Context Audit loads about 1.9k tokens when it runs, and up to ~3.7k if it reads all its reference files. Until then it costs about 117 tokens; SKILL.md has 866 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from majiayu000/spellbook at commit ed52af7, republished under its MIT licence (© majiayu000). 866 words, ~1,919 tokens.
.claude/skills/repo-agent-context-audit/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.Assess whether a repository has a small, usable agent context stack: a short top-level instruction file, task-specific skills, and behavior/implementation specs for substantial work. Default to a read-only audit and minimal recommendations; create or edit high-context files only when the user explicitly asks.
If the user asks to generate, split, or apply root/scoped AGENTS.md files,
handoff to agentsmd-scaffold. This skill may identify that scaffold as the
smallest useful change, but should not duplicate the generation workflow.
Prefer this three-layer shape:
AGENTS.md or repo-equivalent: 80-150 lines, top-level routing only..agents/skills/<task>/SKILL.md: reusable workflows for common fragile tasks.specs/<id>/PRODUCT.md and specs/<id>/TECH.md: checked-in contracts for substantial features.Do not force this exact layout when a repo already has a coherent equivalent, such as WARP.md, CLAUDE.md, CONTRIBUTING.md, or framework-specific instruction files. Map existing files to the layers first, then fill only the real gaps.
Run the read-only scanner when possible:
# From this skill directory:
python3 scripts/scan_repo_context.py <repo-root>Then inspect the important files directly. Always search before creating:
AGENTS.md, CLAUDE.md, WARP.md, .claude/instructions.mdCONTRIBUTING.md, README.md, .github/copilot-instructions.md.agents/skills/*/SKILL.mdspecs/**/{PRODUCT,product,TECH,tech}.mdIf multiple instruction files overlap, record their scopes and precedence instead of merging them by default.
Classify the repo into one of these states:
Use the rubric in references/standards.md for:
Lead with the smallest useful change. Good recommendations usually look like:
AGENTS.md that points to existing docs instead of duplicating them..agents/skills/write-product-spec and .agents/skills/write-tech-spec only if spec writing is repeated.specs/<id>/PRODUCT.md and TECH.md templates only if the repo ships substantial features.When the user explicitly asks to generate, split, or apply root/scoped
AGENTS.md files, use agentsmd-scaffold instead of duplicating that workflow.
When the user asks for exact PRODUCT/TECH spec templates or non-AGENTS context
scaffolding, read references/templates.md and adapt the templates to the repo.
Before editing:
AGENTS.md or equivalent whose scope covers the target path| Case | Action |
|---|---|
| Small bugfix repo with README and clear tests | No spec system; maybe add a short AGENTS.md router |
| Repeated feature work with review churn | Add PRODUCT/TECH spec workflow |
User asks to generate or apply root/scoped AGENTS.md files | Use agentsmd-scaffold |
Existing CLAUDE.md or WARP.md is good | Link it from AGENTS.md or leave it as the repo-equivalent |
| Multiple teams or nested packages | Use scoped nested AGENTS.md only where rules genuinely differ |
| High-context file over 200 lines | Split into top-level router plus referenced skills/docs |
| User asks for bulk normalization | Audit first; do not batch edit until 2-3 repos have been manually validated |
Direct actions:
agentsmd-scaffold.Escalate before:
AGENTS.md, CLAUDE.md, WARP.md, hooks, settings, or generated docs.Evidence-backed pushback:
Feedback loop:
AGENTS.md just because it is missing. If CLAUDE.md, WARP.md, or CONTRIBUTING.md already works as a coherent router, recommend a pointer or no change.PRODUCT.md vs product.md, then ask before changing conventions.Return concise findings:
## Agent Context Audit
- state: <classification>
- top-level router: <present/missing/overloaded>
- reusable skills: <present/missing/not needed>
- specs: <present/missing/inconsistent/not needed>
- main risk: <one sentence>
## Smallest Useful Change
1. <change> - <why> - <estimated effort>
## Evidence
- <file>:<line> - <what it proves>
## Optional Scaffold
- <files to create or update, only if requested>scripts/scan_repo_context.py: read-only repo scanner for high-context files, skills, and specs.references/standards.md: scoring rubric and design rules. Read for audits.references/templates.md: minimal AGENTS.md, PRODUCT.md, and TECH.md templates. Read only when scaffolding or proposing exact file contents.© majiayu000, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 3 other files (scripts, references) in skills/repo-agent-context-audit of majiayu000/spellbook.
Open the folder on GitHubat commit ed52af7
Repo Agent Context Audit next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Repo Agent Context Audit this skillmajiayu000/spellbook | 287 | — | ~1.9k | Automated safety check: Pass | MIT | |
| Context Engineeringabashev/vfs-s3 | 106 | 9 repos | ~2.6k | Automated safety check: Notes | Apache-2.0 | |
| Dotagents Standardgetknit/knit | 133 | — | ~4.1k | Automated safety check: Pass | MIT | |
| Reconcile ContextApocrathia/home-assistant-config | 179 | — | ~931 | Automated safety check: Pass | None | |
| Verify Agent ContextLuligu/matterbridge | 985 | — | ~525 | Automated safety check: Pass | Apache-2.0 | |
| Setup Calibercaliber-ai-org/ai-setup | 1.3k | — | ~1.9k | Automated safety check: Pass | MIT |
abashev/vfs-s3
Optimizes agent context setup. An agent skill from abashev/vfs-s3.
getknit/knit
Set up, author, and navigate the dotagents standard — a slim AGENTS.md "router" at the repository root plus a hidden .agents/ directory (rules, context, memory, personas, skills, specs, logs, tasks)…
Apocrathia/home-assistant-config
Fix drift in Home Assistant Homelab agent context (AGENTS.md, CLAUDE.md, .agents/context/, rules, skills, agents) against the repo.
Luligu/matterbridge
Verify which coding agent is running and that it loaded the shared Matterbridge instructions, rules and skills from AGENTS.md and .agents/.
caliber-ai-org/ai-setup
Sets up Caliber for automatic AI agent context sync. An agent skill from caliber-ai-org/ai-setup.
jeremylongshore/tons-of-skills-marketplace
Execute proactive auto-loading: automatically detects and loads agents.md files.
majiayu000/spellbook
Audits and repairs how coding-agent Skills are owned, copied and exposed across runtimes, from canonical sources to quarantine and retirement.
majiayu000/spellbook
Scans a repository for real evidence and proposes, or on request writes, a small stack of root and scoped AGENTS.md files with validation commands and generated-file boundaries.
majiayu000/spellbook
Plans, produces or diagnoses evidence-backed product demo videos: script, capture plan, pacing checks and verified final media built on real product behavior.
majiayu000/spellbook
Single entry point that routes long or ambiguous agent tasks, checks live state, bounds autonomous loops and leaves a resumable handoff.
majiayu000/spellbook
Scans a repository, its lockfiles and node_modules for known malicious npm package versions and install-time indicators, using a read-only Python scanner.
majiayu000/spellbook
Product management helpers: a RICE scoring script, an interview transcript analyzer and PRD templates for prioritizing features, synthesizing research and writing requirements.
Categories
Audits a repository's agent-readable context, from AGENTS.md and CLAUDE.md to skills and PRODUCT or TECH specs, and recommends the smallest useful improvements. This skill audits whether a repository gives coding agents a small, usable context stack: a short top-level instruction file, task-specific skills, and behavior and implementation specs for larger work.agents/skills` and `specs/` with PRODUCT and TECH files.
Repo Agent Context Audit fits situations like: reviewing how well a repository's AGENTS.md and related files guide coding agents; scoring agent onboarding documentation across repositories with one rubric; deciding whether a repo needs task skills or PRODUCT and TECH specs; standardizing agent-context conventions across repositories.
Run `npx skills add majiayu000/spellbook --skill repo-agent-context-audit -a claude-code`. Or copy the skill folder (skills/repo-agent-context-audit in majiayu000/spellbook) into .claude/skills/repo-agent-context-audit in your project. Claude Code loads it when a task matches its description.
Run `npx skills add majiayu000/spellbook --skill repo-agent-context-audit -a codex`. Or copy the skill folder (skills/repo-agent-context-audit in majiayu000/spellbook) into .agents/skills/repo-agent-context-audit in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add majiayu000/spellbook --skill repo-agent-context-audit -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/repo-agent-context-audit, .gemini/skills/repo-agent-context-audit, .github/skills/repo-agent-context-audit and .opencode/skills/repo-agent-context-audit in your project.
Going by SKILL.md and its folder, Repo Agent Context Audit needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python, for the optional scanner script.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Repo Agent Context Audit is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.9k tokens (SKILL.md is roughly 7.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.8k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Repo Agent Context Audit: Context Engineering (abashev/vfs-s3, 106 stars), Dotagents Standard (getknit/knit, 133 stars), Reconcile Context (Apocrathia/home-assistant-config, 179 stars) and Verify Agent Context (Luligu/matterbridge, 985 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
majiayu000 (a GitHub user) maintains it in majiayu000/spellbook, which has 287 GitHub stars. The repository holds 97 skills in this directory. The repository was last updated on October 8, 2026.
Source: majiayu000/spellbook on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.