All skills
SKILL.md / en

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.

  1. Download the skill folder (the one with SKILL.md) from GitHub and zip it. The folder name must match the skill name.
  2. In Settings, Capabilities, turn on code execution and file creation.
  3. 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/spellbook

Example 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 only

Open 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

Get the free Claude Code skills PDF

A short guide to the skills worth installing first, sent in Telegram by Anton Shumeiko. It also opens the free Claude Skills course.

Open in Telegram

About the agentsmd-optimize skill

agentsmd-optimize is an Agent Skill from the majiayu000/spellbook GitHub repository, which has 287 stars and 26 forks. The skill file is skills/agentsmd-optimize/SKILL.md on the main branch: open it on GitHub.

Description: 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.

Repository licence: MIT. Categories: LLM & AI, Content, Productivity. Source updated: 2026-10-02.

Start of SKILL.md

Optimize Agent Instructions Audit or improve existing AGENTS.md / CLAUDE.md files and the related skills or agent definitions that influence their behavior. Make the instruction set coherent, appropriately scoped, and maintainable while preserving its owner's choices. Work in the user's language. Use the available filesystem or the user's specified access…

Install agentsmd-optimize in 1 command

Claude Code: npx skills add majiayu000/spellbook --skill agentsmd-optimize -a claude-code

Codex: npx skills add majiayu000/spellbook --skill agentsmd-optimize -a codex

claude.ai: download the skill folder from GitHub and zip it, turn on code execution and file creation in Settings, Capabilities, then upload the zip in Customize, Skills, Create skill, Upload a skill. Read SKILL.md and any scripts first. Step-by-step guides: install in Claude Code, install in Codex and the security checklist.

Example prompt

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.

More skills from majiayu000/spellbook

Related skills

  • scrapling-official (D4Vinci/Scrapling): Scrape web pages using Scrapling with anti-bot bypass (like Cloudflare Turnstile), stealth headless browsing, spiders framework, adaptive scraping, and JavaScript…
  • agentic-workflows (mono/SkiaSharp): Route gh-aw workflow design/create/debug/upgrade requests to the right prompts.
  • adversarial-review (a5c-ai/babysitter): Fresh adversarial code review with binary PASS/FAIL verdicts, evidence citations, and anchoring bias prevention via fresh reviewer spawning.
  • blume (haydenbleasel/blume): Build and maintain documentation sites with Blume, the markdown-first docs framework on Astro and Vite. Use when working in a project that depends on `blume`, when…
  • bom (aklofas/kicad-happy): BOM (Bill of Materials) management for electronics projects — the workflow skill that coordinates DigiKey, Mouser, LCSC, element14, JLCPCB, PCBWay, and KiCad skills…
  • benchmark-due-diligence (daymade/claude-code-skills): Runs adversarial due-diligence on a benchmark the user envies — a founder, KOL, company, or product whose claimed success looks inflated — splitting marketing bubble…

Browse the free Claude skills catalogue