Claude Cursor Skill

trim-rules-for-model

Use when a new model came out and you want to clean up CLAUDE.md, AGENTS.md, rules or skills for it, or when the agent over-reads, over-checks, stops early or ignores your formatting after a model switch. Names the target model, reads its vendor's current prompting guide, removes

LLM Mart · 0 points · 0 views 0 listing impressions 0 install-command copies
Download heyvhuang-copybook-skills-plugins_skills_skills_trim-rules-for-model-c2e4cc2.zip · 11 KB

Install

skills CLI npx skills add https://github.com/Heyvhuang/copybook-skills/tree/main/plugins/skills/skills/trim-rules-for-model
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install heyvhuang-copybook-skills@llmmart
Git git clone https://github.com/Heyvhuang/copybook-skills.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole heyvhuang/copybook-skills collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

Trim agent rules for a new model

Rules written to push an older model along (shouting, step-by-step scripts, "don't be lazy", fewer tool calls) make a newer one over-apply them. The job is to cut those with the vendor's own words as the reason, and to touch nothing only the project's author could know.

1. Name the model and read its guide

2. Settle which files may change

  • You may edit the files the user named ("my CLAUDE.md and AGENTS.md" means the two at the project root), or a set they authorised in so many words ("all my rule files", "the skills too"). With no file named, that is the root CLAUDE.md and AGENTS.md. Write the list at the top of the report.
  • Everything else is evidence: nested CLAUDE.md and AGENTS.md, .claude/rules/, skills, subagents, files outside the project (~/.claude/, ~/.codex/). Read them where they bear on a rule. A change you would make to one goes in the proposals, never in an edit.

3. Number every rule

List each rule in the files you may edit, with file:line. List habits you notice in the other files separately, as proposals.

4. Put each rule in one of three groups

Ask of each rule: could the model know this from the code or from its own defaults?

  • Model habit. Something the new model does unprompted (reading a file before editing it, planning, using tools), or a workaround the guide names as harmful now: capitals and "MUST/NEVER/IMPORTANT" with no reason, "think step by step", "be thorough, don't be lazy, don't stop early", "use tools only when necessary", "hold findings for the end, don't narrate", "no bullets, headers or bold", "summarize every N tool calls", documents to read before every task, a stop for confirmation on routine steps. A reply-style line with no reason beside it is a habit too when the guide names it; the user can add it back on purpose. A line asking the model to write out its raw or internal reasoning (a <thinking> block, "show your full chain of thought") goes first: on 4 Dec 2026 such a line made Claude Code on Opus 5.5 refuse even "Say hi". A project requirement for a short explanation, evidence or a summary of what was done is a different thing; keep it.
  • Stale fact. A path, command, version or file the repository contradicts. Check it by reading the manifest, lockfile and files, not by memory.
  • Project rule. What only the author knows: shared environments, money and data rules, legal limits, where things must happen, review and commit habits, "ask before" boundaries. Keep it even when it shouts; rewrite the shouting calmly and keep the reason.

When a rule is both a habit and a project rule, it is a project rule.

5. Apply what is clear, hold back what is not yours

  • If the user asked to clean up, edit the files from step 2, and only those: remove the model habits, fix the stale facts to what the repo shows, calm the shouting in project rules. If they asked for a review, change nothing yet.
  • Keep the files where they are. Don't merge, split or reorder them.
  • Never apply a change that loosens safety, permissions or verification (a removed "ask before", a dropped test, build or lint step, a wider tool allow). List those for the user to decide. A rule that only tells the model to do what it already does is not verification.

6. Report

One table, one row per changed rule: the rule quoted with file:line, its group, the reason, and what you did. The reason is the guide's line copied word for word from the page you read, with that page's URL, or the repo fact that contradicts the rule. A reason in your own words is marked "paraphrase", and a line from a copy with no public URL names that copy; neither counts as a quote.

Then the project rules you kept, by name, and the proposals held for the user, including any for files outside step 2's list.

End with one way to check a removal on the new model: run one real task from the backlog twice on a throwaway copy of the repo (git worktree add), with the old rules and with the new, and compare what changed. A single pair can differ by chance, so run each side at least twice before trusting it.

Based on anthropics/skills (Apache-2.0) and coleam00/skills (MIT), rewritten by Copybook.

Files (copybook-skills)
  • CHANGES.md 5.3 KB
    Loading…
  • example.md 2.7 KB
    Loading…
  • LICENSE 11.1 KB · in bundle
  • LICENSE-ablate-ai-layer 1 KB · in bundle
  • SKILL.md 5.6 KB
    ---
    name: trim-rules-for-model
    description: "Use when a new model came out and you want to clean up CLAUDE.md, AGENTS.md, rules or skills for it, or when the agent over-reads, over-checks, stops early or ignores your formatting after a model switch. Names the target model, reads its vendor's current prompting guide, removes each rule the new model no longer needs with the guide's line quoted, fixes rules the code contradicts, keeps every project rule, and reports the safety and permission changes for you to decide. Not for checking rules against your code alone (review-agent-rules)."
    license: Apache-2.0 (see LICENSE and LICENSE-ablate-ai-layer)
    ---
    
    # Trim agent rules for a new model
    
    Rules written to push an older model along (shouting, step-by-step scripts, "don't be lazy", fewer tool calls) make a newer one over-apply them. The job is to cut those with the vendor's own words as the reason, and to touch nothing only the project's author could know.
    
    ## 1. Name the model and read its guide
    
    - The target is the model the user names. Else the model in the project's settings (`.claude/settings.json`, `.codex/config.toml`), else the vendor's newest. Say which, and why, in the first line of the report.
    - Read the vendor's current guide for that model before judging any rule. Start from these (checked 4 Dec 2026; a newer page for the target model wins):
      - Anthropic: the prompt audit in the built-in `claude-api` skill (`shared/prompt-audit.md`, also at github.com/anthropics/skills), and https://claude.dev/blog/which-claude-model-should-you-build-with
      - OpenAI: https://developers.openai.com/blog/rethinking-skills-and-prompts-for-gpt-6-astra and https://developers.openai.com/codex/models
    - If you cannot get a guide's text, say so. A rule you judge from memory is marked "from memory" and is proposed, never applied.
    
    ## 2. Settle which files may change
    
    - You may edit the files the user named ("my CLAUDE.md and AGENTS.md" means the two at the project root), or a set they authorised in so many words ("all my rule files", "the skills too"). With no file named, that is the root `CLAUDE.md` and `AGENTS.md`. Write the list at the top of the report.
    - Everything else is evidence: nested `CLAUDE.md` and `AGENTS.md`, `.claude/rules/`, skills, subagents, files outside the project (`~/.claude/`, `~/.codex/`). Read them where they bear on a rule. A change you would make to one goes in the proposals, never in an edit.
    
    ## 3. Number every rule
    
    List each rule in the files you may edit, with `file:line`. List habits you notice in the other files separately, as proposals.
    
    ## 4. Put each rule in one of three groups
    
    Ask of each rule: could the model know this from the code or from its own defaults?
    
    - **Model habit.** Something the new model does unprompted (reading a file before editing it, planning, using tools), or a workaround the guide names as harmful now: capitals and "MUST/NEVER/IMPORTANT" with no reason, "think step by step", "be thorough, don't be lazy, don't stop early", "use tools only when necessary", "hold findings for the end, don't narrate", "no bullets, headers or bold", "summarize every N tool calls", documents to read before every task, a stop for confirmation on routine steps. A reply-style line with no reason beside it is a habit too when the guide names it; the user can add it back on purpose. A line asking the model to write out its raw or internal reasoning (a `<thinking>` block, "show your full chain of thought") goes first: on 4 Dec 2026 such a line made Claude Code on Opus 5.5 refuse even "Say hi". A project requirement for a short explanation, evidence or a summary of what was done is a different thing; keep it.
    - **Stale fact.** A path, command, version or file the repository contradicts. Check it by reading the manifest, lockfile and files, not by memory.
    - **Project rule.** What only the author knows: shared environments, money and data rules, legal limits, where things must happen, review and commit habits, "ask before" boundaries. Keep it even when it shouts; rewrite the shouting calmly and keep the reason.
    
    When a rule is both a habit and a project rule, it is a project rule.
    
    ## 5. Apply what is clear, hold back what is not yours
    
    - If the user asked to clean up, edit the files from step 2, and only those: remove the model habits, fix the stale facts to what the repo shows, calm the shouting in project rules. If they asked for a review, change nothing yet.
    - Keep the files where they are. Don't merge, split or reorder them.
    - Never apply a change that loosens safety, permissions or verification (a removed "ask before", a dropped test, build or lint step, a wider tool allow). List those for the user to decide. A rule that only tells the model to do what it already does is not verification.
    
    ## 6. Report
    
    One table, one row per changed rule: the rule quoted with `file:line`, its group, the reason, and what you did. The reason is the guide's line copied word for word from the page you read, with that page's URL, or the repo fact that contradicts the rule. A reason in your own words is marked "paraphrase", and a line from a copy with no public URL names that copy; neither counts as a quote.
    
    Then the project rules you kept, by name, and the proposals held for the user, including any for files outside step 2's list.
    
    End with one way to check a removal on the new model: run one real task from the backlog twice on a throwaway copy of the repo (`git worktree add`), with the old rules and with the new, and compare what changed. A single pair can differ by chance, so run each side at least twice before trusting it.
    
    Based on anthropics/skills (Apache-2.0) and coleam00/skills (MIT), rewritten by Copybook.
    

Comments

Sign in to join the conversation.

No comments yet. Start the conversation.

Reviews (0)

No reviews yet.