/superpowers-optimized:claude-md-creatorfrom superpowers-optimized
Creates minimal, high-signal CLAUDE.md and AGENTS.md context files based on empirical best practices. Invoked on /init, 'create CLAUDE.md', or when a repo lacks context.
Ships in superpowers-optimized. 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.
None: SKILL.md is the whole skill.
Creates repository-level context files (CLAUDE.md, AGENTS.md) that give coding agents the minimum guidance needed to work correctly in a repo.
Core principle: Only include what the agent cannot easily discover itself.
Empirical research (Gloaguen et al., "Evaluating AGENTS.md", v3 2026) found that context files did not significantly change task success — LLM-generated ones −0.5% to −2%, developer-written ones +2.4% — while raising cost 20–23%, because agents follow what the file says. Developer-written files did significantly beat LLM-generated ones, which mostly restated existing docs. Every line is an instruction the agent will act on: it costs steps whether or not it helps.
Invoke this skill when any of the following occur:
/init command is runCLAUDE.md or AGENTS.mdCLAUDE.md and the user begins a new project setupbrainstorming or writing-plans when the repo lacks a context fileAgents use a tool almost only when the file names it (uv: 1.6 uses per task when mentioned, under 0.01 otherwise), so naming the project's non-default tooling reliably changes what they run. That is compliance, not proof of benefit: in the same study, testing instructions raised cost without improving success. Include a command only when the agent would otherwise run the wrong one. Spell those out exactly:
npm run test -- --watch
uv run pytest tests/ -x
make lint && make typecheck
Env vars, required services, secrets handling, database setup — things the agent would get wrong without being told.
Focus narrowly on constraints where violating them breaks something:
generated/ — they're overwritten by codegen"legacy/ module uses CommonJS — no ES imports"Only patterns unique to this project that differ from standard practice. If it's what any experienced developer would do by default, leave it out.
These categories were measured to give no benefit (or only cost) in the study, or follow directly from its findings:
Nearly every LLM-generated context file included one (100% for Sonnet 4.5, 95–99% for two other models), yet overviews did not meaningfully reduce the steps agents took before reaching the relevant files. The agent explores the repo anyway — an overview just adds tokens without saving any work.
Same finding: detailed directory structures don't help agents locate relevant files. They navigate codebases by searching, not by reading maps.
Broad architecture descriptions don't help agents solve tasks. If there's an architectural constraint that would cause incorrect behavior (e.g., "this is a monorepo — changes to packages/core require rebuilding all dependents"), include the constraint. Skip the explanation of how the architecture works.
Don't restate what's already in README, docs/, wiki, or inline comments. Duplication is why LLM-generated files didn't help: when researchers removed the repos' documentation, the same files improved performance by 2.7%. With the docs present, they only added cost.
"Write tests", "follow SOLID principles", "use meaningful variable names" — agents already know these. Only include project-specific deviations from standard practice.
Unnecessary requirements make tasks harder. Every rule you add has a cost — the agent spends reasoning tokens processing it and may over-apply it. Include a constraint only if violating it would cause a real problem in this specific repo.
package.json, tsconfig.json, Makefile, CI configs, etc.) and source structure.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
claude-md, agents-md, context-files, project-setup, agent-configuration
24 skills in this plugin
/brainstormingUse when the user wants new features, behavior changes, refactoring with new capabilities, or architecture decisions and no approved design exists yet. Produces a design before any code is written — in the conversation for small changes, as an approved spec document for larger work. Triggers on: "build this", "add a feature", "I want to change", "how should we", "design", "architect", "new project", "refactor", "we need to add/build/create", "implement a new". Routed by using-superpowers, or invoke directly via /brainstorming.
/context-managementUse in long or noisy sessions to persist durable state across session boundaries via state.md. Also generates project-map.md when asked to map the project. Triggers on: user explicitly asks to "save state", "compress context", "map this project", "generate project map", "create project map", cross-session handoff needed, or repeated failures indicate context is getting stale.
/deliberationnpx claudepluginhub repozy/superpowers-optimized --plugin superpowers-optimizedOther plugins' skills for the same job