agentsmd-optimize
majiayu000/spellbook
Audit and organize AI coding-agent instructions, including AGENTS.md, CLAUDE.md, skills, and agent definitions. Use when the user asks to diagnose conflicting instructions, excessive approval pauses, broad skill triggers, duplicate guidance, or broken instruction references, or to clean up that instruction set. Ordinary code review, Markdown editing, or application debugging alone does not trigger this workflow. Inspection stays read-only; apply changes when authorized.
Install agentsmd-optimize in 1 command
skills CLI: The skills CLI downloads this skill from GitHub and puts the folder where your agent looks for skills. Add -g to install it for every project instead of the current one.
Claude Code
Run in your terminal, inside the project.
npx skills add majiayu000/spellbook --skill agentsmd-optimize -a claude-code
Codex
Installs into .agents/skills for Codex.
npx skills add majiayu000/spellbook --skill agentsmd-optimize -a codex
claude.ai
No terminal needed. Works on Free, Pro, Max, Ultra, Team and Enterprise plans.
- Download the skill folder (the one with SKILL.md) from GitHub and zip it. The folder name must match the skill name.
- In Settings, Capabilities, turn on code execution and file creation.
- Open Customize, Skills, click +, Create skill, Upload a skill, pick the zip and switch it on.
Read SKILL.md and any scripts before you run it. Claude Code guide · Codex guide · Security checklist
What it does
Audit and organize AI coding-agent instructions, including AGENTS.md, CLAUDE.md, skills, and agent definitions. Use when the user asks to diagnose conflicting instructions, excessive approval pauses, broad skill triggers, duplicate guidance, or broken instruction references, or to clean up that instruction set. Ordinary code review, Markdown editing, or application debugging alone does not trigger this workflow. Inspection stays read-only; apply changes when authorized.
Source on GitHub: majiayu000/spellbookExample prompt
Paste this after installing. Replace the task with your own.
Use the agentsmd-optimize skill for this task: [describe what you want in one or two sentences]. Before you change anything, list the files you will read or edit and the steps you will take.
Or let your agent review and install it
Paste this prompt into Claude Code or Codex in your project. Your agent can review the source and install the complete folder.
GitHub file
- Path
- skills/agentsmd-optimize/SKILL.md
- Source updated
- 02/10/2026
SKILL.md
read onlyOpen the full file on GitHub
Read the current instructions on GitHub. Full text appears here only when the repository has a recognized license.
Read SKILL.md on GitHub