Skip to main content

You Stuffed a Project Procedure Into CLAUDE.md Instead of a skill

PhaseSetup & CollaborationRolesEngineer ยท ArchitectSeverityMediumApplies toClaude Code versions with skillsEvidenceOfficial docs

In one sentence: You drop your "twelve-step release process" and your "full database-migration SOP" straight into CLAUDE.md, figuring I'll always remember them. The result: they sit in context on every session, so even a "fix a typo" task has to read through them first โ€” yet these steps, useful only for specific tasks, belong in a skill that loads on demand.

Symptomโ€‹

I often see a block like this grow inside CLAUDE.md:

# Release process
1. Switch to the release branch and rebase main
2. Run the full test suite, confirm all green
3. Update CHANGELOG in keepachangelog format
4. Bump the version (package.json + three constants)
5. Tag as vX.Y.Z
6. Build artifacts and check their size
7. ... (six more steps)

The content itself is good โ€” clear, specific, each step justified. The problem isn't the content, it's the placement: this is a "procedure used only for a certain kind of task," yet you've welded it into the always-loaded context that gets read on every session.

Why this happensโ€‹

Root project instructions usually remain available in a session. Skill names and descriptions support discovery, while procedure bodies load when used. Unrelated tasks can therefore avoid carrying a release manual; see CLAUDE.md overload.

This is progressive disclosure. It organizes and loads materials without guaranteeing execution of natural-language steps. Client controls cover matching calls, project instructions provide facts and conventions, and skills provide on-demand procedures. Configure execution controls for checks that must be enforced; see instructions and configuration.

Consequencesโ€‹

  • You pay for unused procedures every session. Release SOPs and migration manuals lie in context year-round, crowding attention and raising fixed overhead, while most tasks never trigger them at all.
  • CLAUDE.md keeps swelling. Procedures are the content most prone to growing long; dropping a whole one in quickly pushes the file past the "overload" line and triggers the dilution problems from CLAUDE.md Overload.
  • The procedure is hard to maintain and hard to discover. A set of steps buried in the middle of a several-hundred-line CLAUDE.md is awkward to update on its own, and the team is unlikely to even realize "oh, there's a procedure for this." As a skill it has its own file and can be invoked directly with /.

What to do insteadโ€‹

Load task-specific procedures through skills without treating them as enforcement.

  1. Keep persistent project facts in instruction files. Load procedures when needed, placing long references in supporting files. Names and descriptions also cost discovery context; overhead is not zero.
  2. Set invocation controls for release, migration, and other workflows with side effects. Claude Code's disable-model-invocation: true requires explicit user invocation; it does not replace permissions or approval for the resulting actions.
  3. Review a skill's source, version, scripts, hooks, and pre-approved tools. A โ€œskillโ€ label does not make commands trustworthy. Recheck permission changes after upgrades.
  4. Put checks that must run every time in appropriate hooks/CI. Natural-language skill steps can still be missed. Evaluate triggering, steps, and results on real tasks.
  5. Keep only a short pointer in CLAUDE.md when needed rather than unfolding the whole procedure for every task.

Exampleโ€‹

Before (CLAUDE.md, 200+ resident lines, including the whole release process):

# CLAUDE.md
# Release process
1. Switch to release branch and rebase main
2. Run the full test suite
3. Update CHANGELOG
4. Bump the version
... (12 steps total, loaded every session)

After: CLAUDE.md slims down, the procedure moves to a skill:

# CLAUDE.md
# Workflows
- Releases: use the /release skill (loaded on demand)
# A typo-fixing session: CLAUDE.md has none of those 12 steps, context stays clean
You: Change "recieve" to "receive" in the README.
Me: (just fixes it, undistracted by a release process)

# When you actually release:
You: /release
Me: (only now loads the release process and walks the twelve steps)

The difference isn't whether I can remember the procedure; it's that when you don't need it, it takes no space, and when needed, load it and verify that the important steps and materials are available.

How this differs from CLAUDE.md Overloadโ€‹

CLAUDE.md overload examines redundant/conflicting persistent rules and actual loading. This entry asks whether a particular procedure belongs on demand. Moving it into a skill reduces irrelevant persistent content while leaving source, permission, and step validation necessary.

When the exception appliesโ€‹

"Make the procedure a skill" exists so unrelated tasks don't pay for it. When "on demand" saves nothing, or the "drawer" itself has a cost, leaving the procedure in CLAUDE.md is the better fit:

  • A short procedure almost every task runs. A three-to-five-line convention this repo uses nearly every time ("follow this commit format after every change") โ€” it should be resident anyway, and making it a skill wraps an always-unfolded thing in an on-demand shell, adding a load step for nothing.
  • Too small for the skill's indirection to pay off. In a personal repo or a temp project, creating a directory, a SKILL.md, and remembering to invoke it costs more than a few lines in CLAUDE.md. When the procedure is short and you're its only user, don't split it out.

The test, in one line: ask "does almost every session use this procedure?" โ€” if yes and it's short, keep it in CLAUDE.md; only when it fires for one kind of task and runs long does it belong in a skill.

Version notesโ€‹

Verified 2026-10-29

On-demand loading and enforcement are distinct capabilities. Skill availability, invocation controls, permission fields, and retention after compaction vary by tool/version. This is not an all-version claim or permission to grow a skill indefinitely.

Further reading and sourcesโ€‹