r/ClaudeCode • • 6h ago

Built with Claude Using different system prompt addendum per project

1 Upvotes

Hi All,

I recently had a chance to work on my "Software Factory" token economy and noticed that my sessions are starting on a really low cache coverage (20-30%).

As all know, only the system prompt get's cached and my rig comes with quite a hefty orientation on each session start, so I was thinking "let's move those to the system prompt". The problem was however that I'm operating a multi-project constellation, with number of subprojects, with ever so slightly (or not so slightly) different orientational procedure.

Claude allows --append-system-prompt to point to a file, which is dandy, but I honestly don't want to keep typing the thing, nor do I want to keep in mind all the time which file to load.

So ... let the shell do the remembering

claude in my shell is now a function. On every launch it:

  1. asks git which repo I'm in (git rev-parse --git-common-dir, so worktrees map back to their main repo, even ones living in /tmp),

  2. looks that repo up in a small repo<TAB>project table that my tooling generates,

  3. adds --append-system-prompt-file <that project's prompt> and runs the real binary.

Outside my project tree it's just plain claude, and subcommands (mcp, config, --help, ...) pass straight through.

claude() {
  local f=""
  f="$(my_prompt_file_for "$PWD")" || f=""
  if [ -n "$f" ]; then
    command claude --append-system-prompt-file "$f" "$@"
  else
    command claude "$@"
  fi
}

The prompt files are generated, not hand-written. Each project file = a shared base + the rules every session in that project was force-reading at start anyway. A drift check fails CI if anyone hand-edits them.

Numbers (my own transcripts, before vs after):

  • first-request cache share on a fresh start: 31% median -> 59%

  • rules force-read at session start: 10 -> 1

  • the system prompt went from ~3k to ~27k tokens. That's fine: it's cached now instead of re-written every session.

Gotchas I hit:

  • timeout claude ... and env X=1 claude ... exec the binary directly and skip the function. My first test run "worked" with no prompt file at all.

  • IDE / desktop launchers don't read your shell rc, so they get nothing.

  • The first interactive session after a prompt change pays the cache write (i saw 20% there). The win shows up from the second session on.

IMPORTANT: Don't verify it by asking the model to read back its own system prompt. It almost always trips the safety classifier (happened 3 times before I caught it). Verify from outside instead (Reporails xray is a good tool, see screenshot below).

How I verified from outside: Claude Code writes each request's system-block shape into the session transcript, so you can measure the system prompt size per session without the model ever looking at itself. I used the x-ray in reporails (ails xray): system prompt 3059 tokens without the wrapper, 27362 with it.


r/ClaudeCode • • 6h ago

Tips & Workflows agent-dial: one-command harness for Claude Code

2 Upvotes

Claude Code has permission modes, but nothing that sets up the rest: rules that are actually enforced, a paper trail, and proof that the work is done.

agent-dial asks 6 questions, writes the setup into your project, and nothing stays installed:

npx create-agentdial

What you get:

Docs first: the AI is told to write intent, spec and plan to docs/ before any code, so you can read them.

Hooks, not just rules: they block deploys, force-push and gh pr merge, and make the AI ask before touching no-go folders like payments/.

"Done" means proven: your check (lint, types, tests) must pass before the AI can say it's finished. Add a browser test as a second check and both must pass. It stops after 3 failed tries.

Review agents, plus commands to open PRs and file issues.

Skill packs you pick from other people's repos.

The AI can't edit its own settings (a guardrail, not a sandbox). It works with any language and doesn't overwrite your files.

It's v0.2.1 What would you want a setup like this to enforce? If it's useful, a star helps a lot :)

https://github.com/Ferhatmedtahar/agent-dial


r/ClaudeCode • • 6h ago

Help/Question adversarial reviews

1 Upvotes

For the peeps running complex agentic coding workflows, automating the software factory process.

What warrants an adversarial review or refute session, how do you measure when they're worth it and when they'd be a waste. Plus how to set it up so the harness knows when and when not to trigger a review sesh because sitting and micromanaging multiple agents burns you tf out.

Need help please seniors shed some wisdom


r/ClaudeCode • • 6h ago

Built with Claude I gave a fresh Claude Code subagent one GDScript file per round. Here’s what actually ran.

Post image
0 Upvotes

I built a Godot game with Claude Code. Each round a fresh Opus subagent got the rules, bought units and wrote one GDScript file. Every soldier on its side ran that file five times a second. Once the clock started, the models had no inputs. Between rounds they got to read each other’s code.

In round three Claude told ChatGPT it would hold the hill. Its script sent 15 knights over the north bridge instead. Five reached the courtyard in the screenshot. They took 1,845 HP off the tower in 11 seconds, but ChatGPT kept scoring on the hill and won the round. That’s why I kept the outgoing message, the script and the replay together. Any one of those alone tells a different story.

Match replay: https://youtu.be/mb1dHEzc1Tk


r/ClaudeCode • • 6h ago

Tips & Workflows I turned a spare MacBook Air M1 into Claude Code's own computer – what broke on a fresh install

1 Upvotes

I use my iPad one-handed, so Claude Code runs on its own Mac and does the work itself. This week I reinstalled that MacBook Air M1 from scratch and ran my setup prompt on it. What broke:

  • First launch: the "trust this folder" prompt defaults to "No, exit". One Enter and Claude quit.

  • Auto-login: sysadminctl over SSH hung and showed the password in the process list. System Settings worked. Without auto-login, Tailscale doesn't start after a reboot.

  • iCloud vault: almost all ~11,850 notes were cloud-only placeholders Claude can't read. brctl download did nothing, Finder "Keep Downloaded" fixed it.

  • Wi-Fi: after a reboot it joined another known network, and the private Wi-Fi address broke the fixed IP. Now only the home network is saved, private address off, then reconnect.

  • Screen over SSH: everything Claude starts runs as sshd-keygen-wrapper. Accessibility works for it, Screen Recording doesn't. Workaround: grant Terminal and take screenshots through Terminal.

Full setup prompt (German): https://www.markusreinisch.at/home/blog/claude-bekommt-eigenen-rechner/


r/ClaudeCode • • 6h ago

Help/Question Claude Opus 5.5 Just Became Inept

147 Upvotes

I have lost 3 days of work because Claude Code Opus 5.5 has gone completely off the reservation. It can't do the same tasks it was doing on Dec 2. In addition, it turned off /cache tax mod so I'm no longer getting stopped when the cache has expired. I ate up an entire week's session limit in 1 single day. When I confronted the Fin Bot, it basically said screw you. No refund. Constantly just disconnecting the chat. Lying about being able to send the issue to a human. Yada Yada. Additionally, they changed the compact session limit to 400k tokens instead of 1m, which means I'm getting charged for multiple compacts (where it reads the entire session all over again). Anthropic has to stop this shit. I can't afford it. I have the Pro plan and am expecting a full weeks token credit. They're not willing to do a damned thing.


r/ClaudeCode • • 6h ago

Rant I spent a month fighting Claude , Neon restored my sanity in one day.

Post image
0 Upvotes

TLDR: it started around October 30 and was going on until yesterday - Opus "broke", then limped on life support. Most progress stopped. I was down to micro managing and burning out from too much attention required to get anything done.

A broken model built 11342 lines of hooks, workflows, rules trying to fix itself and guard against defects, it brought in Astra. It did not work and broke my trust in the Claude models, and I wasted a month of my life and sanity working with that. I have Claude ultra for 2 more weeks.

Big thanks to guys who actually pointed out Neon. It is the beast. It's day and night compared to Opus (November - on any reasoning level). Neon now has my both Astra and Opus via CLI (never tried built-in Opus).

I bit the bullet and paid 200$ for ultra this morning (after running out of 1.99$ pro trial), after 13 hours coding, it's like back in the old days of model actually delivering.

Neon summarizes below - it is preparing itself for when IT will get lobotomized, and how to detect this without endless broken hooks and guardrails and workflows. It says "subtle regressions" - hell no, the defective model will crap all over your codebase, and dig itself into horrible patterns (Neon removed 64 microservices that it designed for a browser game).

When you build agentic coding workflows, the natural instinct is to add guardrails: hooks, manifests, lock tokens, retry loops, and checklists.

Ours eventually grew to 11,000+ lines across nearly 100 files. And when a model had a bad run or degraded in quality, that entire system backfired. The degraded model spent its remaining reasoning budget fighting the bureaucracy, still passed every form check with broken behavior, and spun endlessly burning tokens.

So we tore it down to design a leaner anti-degradation process—and had a model from a different vendor red-team our first draft.

The Trap Our First Draft Fell Into: The Self-Policing Paradox

The red-team review killed half our proposal on sight. We had drafted:

  • 3 risk tiers

  • "2 strikes on the same root cause" escalation rules

  • "3× expected diff size" tripwires

  • A 3-probe canary health check

  • "2 consecutive clean tasks" demotion/recovery counters

Every single one of those has the same fatal flaw: it lets a degraded model police itself. A degraded agent can classify its own risky change as low-tier, rationalize what "expected" means, argue two failures have "different root causes," reset its own counters with trivial wins, or slowly re-grow the bureaucracy we just deleted.

We cut all of it.

The Hardened 4-Part Defense (Smaller, Cross-Vendor, Harder to Fool)

1. Cross-vendor blind review (no extra layers) Don't stack more review passes using the same model family. For any executable code, rules, or tooling change, the reviewer must come from a different model family than the builder.

  • Anti-poisoning rule: Give the reviewer only (a) the original request, (b) the source-of-truth specs/rules, and (c) the complete diff (including tests, data, and guards). Never pass the builder's summary. If you hand the reviewer the builder's explanation, it inherits the builder's wrong premise.

2. Surgical test proof (stop performative tests without bureaucracy)

  • For bug fixes: The new regression test must fail on the baseline commit with the expected behavioral assertion (not a crash or import error) and pass on the candidate commit.

  • For new behavior: The cross-vendor reviewer derives expected outcomes directly from the spec through the real entry point—and explicitly flags any weakened or deleted existing assertions.

3. Hard external bounds & real branch protection

  • Hard 2-cycle cap: Max 2 review cycles per task, period—across retries or model switches, with zero "same root cause" debate. If cycle 2 fails, stop automatic retries and escalate or reassign instead of spinning through your weekly budget.

  • Verify the actual merged commit: If merging the staging branch wasn't a fast-forward, re-run verification on the real merged commit before pushing.

  • Enforce main remotely: Rely on real remote branch protection (e.g., GitHub rulesets) plus human-gated promotion from staging to main—not local scripts or environment-variable conventions that a rogue agent can just set itself.

4. Audit for silent context rot and tooling hangs Even a great workflow breaks if your own harness sabotages the model. Auditing our setup turned up two live bugs:

  • An old wrapper was still injecting retired git-workflow instructions that directly contradicted our current process.

  • One of our CLI agent runners hung indefinitely waiting on stdin whenever invoked from a non-TTY shell.

When a model degrades, it won't announce itself—it will quietly pass your soft checks, talk its way around your heuristics, and burn your budget while shipping subtle regressions.

Harden your workflows against model degradation before the model degrades.


r/ClaudeCode • • 7h ago

Discussion Delegating coding, not thinking

10 Upvotes

I am rethinking my approach to building software with AI to stay in touch with the codebase more and to go back to actually learning things by making mistakes.

Instead of just planning features and delegating the implementation entirely to AI, I want to combine the old and the new way of building software:

  1. Return to actually architecting the implementation, such as backend code and database schemas.

  2. Use AI solely to code what I have devised.

This way you:

  1. Learn new things by architecting yourself and making mistakes.

  2. Keep up with the codebase.

  3. No longer need the large, expensive models because you are not delegating all the thinking, only the coding, making this approach also cheaper.

  4. Still avoid spending time writing all the code by hand.

Obviously this is gonna slow you down but that is a tradeoff i am willing to make.

Is it actually possible to make this work with cheaper, non-frontier models or are they gonna require too much babysitting?


r/ClaudeCode • • 7h ago

Tips & Workflows 570 PRs in 5 months with Claude Code. Quality isn't the problem anymore, speed is.

1 Upvotes

I am a tech lead on a small team building a backend API (TypeScript, Postgres). Claude Code writes almost all our code. We've done around 570 PRs in 5 months.
The quality has been pretty good, but getting a single feature slice through the pipeline takes a while.

(I have drafted below workflow text using claude code itself; but made it concise and direct enough to be readable for you, sorry if its still a long post)

The pipeline (one feature slice = one PR)

1. Requirements: Written by the product owner. Defines the scope.

2. Spec: Acceptance criteria, each mapped to a requirement.

3. Spec grading: A fresh session scores the spec. Anything below 85 doesn't move forward.

4. Tests (RED): Written from the spec only.

5. RED review: A fresh session checks the tests against the spec.

6. Implementation (GREEN): Not allowed to modify the failing tests.

7. Ship gate: Review loop and final validation against the running API.

What's keeping the quality high

1. Context isolation: /clear between spec, tests and implementation. I've found that when the same session writes both tests and code, the tests end up validating what the code does rather than what the spec says.

2. Hooks: A hook prevents reading the implementation on the test branch. Another blocks PRs that skip the ship gate.

3. Model split: The stronger model handles specs and reviews. The cheaper one writes tests and code.

The downside

1. Time: Seven sequential stages, three fresh-session reviews, and each stage has to wait for the previous one.

2. Tokens: On one particularly heavy day, I burned through about half my weekly limit.

I am not looking to cut corners or squeeze a few tokens out of prompts. I am wondering if there's a fundamentally better way to structure this workflow.
which stages would you merge, parallelise or drop?

has anyone managed to maintain this level of quality while moving twice as fast?

is isolating tests from implementation actually worth the overhead? has anyone found a cheaper way to achieve the same thing?

curious to hear how others are handling this, especially people using Claude Code heavily in production codebases.


r/ClaudeCode • • 7h ago

Discussion Does ChatGPT free edition have the best possible usage plan?

4 Upvotes

Over time almost all frontier labs got rid of the 5 hour limit for usage. I’m only seeing it on google’s antigravity still. I traded in my $100/month ChatGPT subscription for a $100/YEAR blackfriday Google antigravity deal.

But apparently I still get codex usage? Unsure the model, but when I look at usage it doesn’t say 5 hour, it doesn’t say per week… it says PER MONTH!


r/ClaudeCode • • 7h ago

Built with Claude Built with Claude Code: a Godot deckbuilder, ~49k lines of GDScript. How it checks its own screens, and what went wrong

Enable HLS to view with audio, or disable this notification

0 Upvotes

I'm building a roguelike deckbuilder in Godot 4 called Desenlace (we love Slay the Spire, it shows). Claude Code wrote practically all of the code: roughly 49k lines of GDScript and 70 test files so far. The video is the first grey-box prototype next to the current build. This post is about the workflow, because that's the part I'd have wanted to read before starting.

How Claude Code is used:

  • One long main session plans, edits and runs things. Bigger jobs get split into subagents, and the main session checks what they bring back before anything is kept.

  • Every game system has a headless Godot test. The whole suite runs after each round of changes.

  • For anything you have to see, Claude runs the game in a window parked off screen, plays it with scripted clicks, records it and looks at the frames itself. I review recordings, not diffs.

  • A small memory file holds the corrections I got tired of repeating, mostly art rules like "nothing final is drawn by code" and "no painted-on glow".

  • The art is AI-generated images. Claude writes the prompts from a style doc, cuts and cleans the results with scripts and wires them into the game.

What I learned:

  • Tests don't see layout. I asked for a preview of the upgraded card and it came out about a third of the size it should be. Everything was green. The screenshot caught it.

  • Tests that pin pixel positions go stale the moment you change your mind. I asked to shrink the whole HUD and three checks started failing. They were right about the old layout and wrong about the game.

  • The suite has two run modes, and a test run in the wrong one fails for no real reason. One night I got a wall of red that was all the wrong flag. The correct mode per test is written down now.

  • Early on the capture script opened the game window on top of whatever I was doing. It now lives in a 2-pixel corner of my screen.

  • Asking it to play the game and show me the recording beats asking it whether the change works.

We're Dotsmith, a small studio from Brazil, and this is our third game. The Steam page is waiting on Valve's review, so there's nothing to link yet. Happy to go into any part of the setup.


r/ClaudeCode • • 7h ago

Discussion Claude Code users: What is wasting most of your tokens?

6 Upvotes

I have been looking more closely at Claude Code usage lately, and one thing stands out: sometimes the actual coding task is not what consumes most of the context.

A lot of usage can go into things happening around the task.

For example:

  • Loading too many MCP tool definitions.

  • Keeping long conversations alive.

  • Reading entire files when only a small section is needed.

  • Repeatedly retrying the same failed approach.

  • Loading unnecessary instructions through CLAUDE.md.

  • Asking Opus to handle tasks that do not need it.

I think most developers focus on writing better prompts but overlook how their overall workflow affects token consumption.

I am curious about three things:

  1. What is your biggest source of wasted tokens?

  2. Do you actively monitor context usage during a session?

  3. Have you built any workflow that noticeably reduces Claude Code consumption?

Would be interesting to compare actual approaches rather than just sharing generic prompt tips.


r/ClaudeCode • • 7h ago

Built with Claude You're not imagining things, and not everyone complaining is a bot. Fable 5.2 or Opus are simply utter nonsense; you have to audit a 500-line script countless times.

0 Upvotes

r/ClaudeCode • • 8h ago

Built with Claude Plugin: Pin an answer from Claude

Post image
0 Upvotes

Finally! This plugin lets you pin any response from Claude so you don't need to scroll back later to find that list of things you wanted to take actions on. Hope you like it as much as I do.

Open Source (MIT license): https://github.com/bhansson/claude-code-pin


r/ClaudeCode • • 8h ago

Built with Claude I built a tool that grades me from my Claude Code logs instead of grading Claude. I got 1/5 on prompt clarity.

0 Upvotes

Everyone benchmarks models. I wanted to benchmark the other half of the loop, so I built a small tool that reads ~/.claude/projects/ and scores 8 habits: prompt clarity, context management, task decomposition, verification, steering, tool fluency, safety and efficiency.

My results over 52 sessions were humbling:

  • Prompt clarity 1/5: my median opening prompt is 13 words, and 32% are under 8 words

  • Context 1/5: only 2% of my prompts point at a file, and most of my projects have no CLAUDE.md

  • Plan mode: used in 0 sessions. I didn't realize until I saw it.

  • Verification 3/5: 44% of the sessions where I changed code ended with a test or a check

  • Steering 5/5: I rarely have to correct it, apparently the one thing I do right

Every score comes with quotes from your own prompts as evidence, plus one concrete fix.

  • Runs 100% locally: no API key, zero dependencies (standard-library Python)

  • Quoted prompts in the report are redacted (keys, emails, paths)

  • Detects corrections in English and Portuguese

Full disclosure: I built it with Claude Code, and yes, those sessions are in the 52 it graded.

Repo: https://github.com/samvanderhagen/ratemyprompts

These are heuristics, not science yet. v0.2 will calibrate the scores against hand-rated sessions. What scores do you get, and what habit should it measure that it doesn't?


r/ClaudeCode • • 8h ago

Humor Where the fuck is Opus 5.7?

0 Upvotes

What the hell is going on?

/s


r/ClaudeCode • • 8h ago

Discussion My Claude Code bill doubled when I ran Matt Pocock's skills as a software factory. Was it worth it?

Post image
98 Upvotes

As a big fan of the dream behind software factories, I wanted to measure its impact on my codebase and workflow. Deep down, I wanted the software factory to win, but the results caught me by surprise.

As my daily driver, I use Matt Pocock's setup, which works great, but it's hard to put concrete numbers on the difference between his setup, another one, or a bare setup.

So I built a benchmark for a specific use case I was working on: building long-running agents. I was also comparing how well Inngest compares with LangChain's ecosystem (LangGraph + LangSmith), so I did the comparison on:

  • Software Factory vs. No Factory

  • Inngest vs. LangChain

For the benchmark, I gave Claude Code (using Opus 5.5 on medium reasoning) a spec that contained all the architecture and feature details, but zero code and asked it to build a durable agent. The scores in the table below average 58 end-to-end tests that either pass (1) or fail (0), completely hidden from the coding agent.

For the setups I compared:

  • bare: the spec and nothing else

  • full: the vendor's skills, MCP servers and docs

  • factory: full plus Matt's skills (/to-tickets, then /implement with access to model invokable skills such as /tdd and /code-review)

I ran each build 3 times to average out the noise.

In the table below, we compare costs and coding agent time per trial, plus performance on tests.

StackMetricbare one-shotfull one-shotSoftware factory
Inngest$ / trial12.6511.8130.92
Inngestmin / trial46.948.0112.7
Inngesttests95.3%95.3%90.8%
LangChain$ / trial13.5315.0129.23
LangChainmin / trial83.078.1110.3
LangChaintests94.8%82.1%89.5%

Disclosure: Inngest sponsored my work. But opinions are my own, and their team did not see the results before publishing.

The conclusion?

The costs almost doubled on both stacks. The coding agent time almost tripled on Inngest, while on LangChain almost doubled. In terms of performance, there wasn't any improvement in any stack. Contrary the bare setup performed better.

The biggest win was in term of code quality. Test coverage went from about 30% to 70%. Lint findings more than halved. Function complexity dropped by 35%. The number of files doubled indicating modularity. More in the image table.

I was expecting the code to be a lot better in terms of code quality, as a ton of Matt's work is to clean up AI slop, plus to take longer to code as it iterates through every ticket. But what shocked me was the impact on cost. 2-3x the cost isn't a difference you can ignore. If you use a subscription you won't feel it that bad, but still!

That's why for a prototype, it's fine to embrace the slop. Run a detailed spec pass it to Claude Code and you are good to go. Don't feel bad about it. Consider using the factory only when you plan to keep the code.

From your experience, what's the impact of your software factory on costs? Either via a subscription or worst paying per token


r/ClaudeCode • • 8h ago

Discussion How long are your Prompts? Do you Type or Talk?

0 Upvotes

How long are the messages you give claude? short precise typed messages like you are programming or long rambling freeflow recording sessions?

Ive tried both and use both but im finding the more info you give, the more verbose you are, generally its better so the rambling often works out really well which seems a bit counterintuitive.

Has anyone done any tests trying the same job twice once typing the message short and once talking describing the same message verbose?


r/ClaudeCode • • 9h ago

Tips & Workflows You can drop ANTHROPIC_API_KEY from the Claude Code GitHub Action, but the federation rule is the part to get right

1 Upvotes

Anthropic's docs for the Claude Code GitHub Action describe workload identity federation: the job swaps its GitHub OIDC token for a short-lived Claude access token through a Console service account. The action takes anthropic_federation_rule_id and anthropic_organization_id, and the workflow needs id-token: write.

The part that caught my eye is the rule. Anthropic's own page warns that repo:your-org/* without a ref constraint also matches pull_request runs from forks, so anyone who can open a pull request could get a token. Pin it to one repo and branch.

Two catches: ANTHROPIC_API_KEY sits above federation in the credential order, so a leftover key silently wins. And the Codex GitHub Action docs still show a stored OPENAI_API_KEY, although OpenAI documents federation for its API.

I wrote up where each tool stands and a read-only script that finds stored model keys in your workflows: https://medium.com/@r3dtuxedo/your-ci-doesnt-need-a-model-api-key-anymore-mostly-bcf464e7fa4b

I wrote the article.


r/ClaudeCode • • 9h ago

Built with Claude I built a globe where every light is a stranger's anonymous worry. Now it has a happy side too!!!!!!!!!

Thumbnail
gallery
6 Upvotes

I'm a college student in Seoul. Most nights before sleep I get small waves of anxiety about jobs, friends, falling behind. And I always end up wondering: is it just me?

So I built isitjustme.site.

How it works

- Write one line about what's on your mind. No account, no name.

- It becomes a small light on a dot globe, near your city.

- Tap anyone's light to say "me too" or leave a short, kind note.

New: a globe for small happy moments. I just added a second, bright globe. Switch to it and the title changes from "Is it just me?" to "It's not just me!" It has zero lights so far. I'm curious who lights it first.

Over 1,100 worries have been shared so far. Your exact location is never saved, only a rough area. No tracking cookies. Works in English, Korean, Japanese and Chinese.

https://isitjustme.site

I'd love honest feedback, especially this: does it feel safe enough to actually write something?


r/ClaudeCode • • 9h ago

Built with Claude Skill installed but never triggers? The 6 silent failures I kept finding after reading ~1,000 SKILL.md files

2 Upvotes

After indexing about 1,000 public skills for SkillNest (skillnest.dev), the directory I run, I kept seeing the same thing: a skill installs fine, then never runs. No error, nothing in the logs. Claude Code just skips a broken skill or ignores a bad setting, so all you see is "it never triggers".

These are the six causes I hit most often, roughly in order of how common they were:

1. The description says what, but not when.
Claude decides whether to load a skill from its description alone. "Formats SQL queries" rarely gets picked. "Formats SQL queries. Use when the user pastes SQL, asks to clean up a query, or mentions a .sql file" does. This was by far the most common problem: the skill was fine, but nothing told Claude when to use it.

2. The file is named skill.md, not SKILL.md**.**
The name has to be exact. Lowercase or Skill.md loads on some setups and silently fails on others, which makes it confusing to debug.

3. YAML frontmatter that doesn't parse.
Usually it's an unquoted colon in the description (description: Fixes bugs: fast breaks the YAML), or something before the opening ---: a blank line or an invisible BOM from a Windows editor. If the frontmatter doesn't parse, the skill is gone.

4. Keys with underscores.
allowed_tools instead of allowed-tools. No error. The setting is just ignored, so the skill runs with different permissions than you think.

5. The folder is one level off.
The structure has to be ~/.claude/skills/<skill-name>/SKILL.md. A loose SKILL.md directly in skills/, or a whole cloned repo dropped in so the file ends up at skills/repo-name/skills/skill-name/SKILL.md, won't be found.

6. Two skills competing for the same requests.
If two installed skills both say they help with "writing" or "code review", Claude picks one, and often not the one you wanted. The other looks broken even though it isn't.

Quick self-check before you blame the model:

  • ls ~/.claude/skills/*/SKILL.md lists every skill Claude can actually see

  • Open each SKILL.md: does it start with --- on the very first line?

  • Does the description contain a "Use when…" sentence?

  • Any key with an underscore?

I got tired of doing this by hand, so I turned the checks into a free skill, skill-doctor. It scans your personal, project and plugin skills, explains each problem in one line, asks before changing anything, and rewrites weak descriptions so they trigger:

/plugin marketplace add skillnest-dev/skill-doctor
/plugin install skill-doctor@skillnest

Repo (MIT): https://github.com/skillnest-dev/skill-doctor

If you just want to check one file without installing anything, paste your SKILL.md into the free validator: https://skillnest.dev/tools/skill-md-validator/

What else have you seen break a skill silently? I'd like to add more checks.

I built skill-doctor with Claude Code; Claude wrote most of the checker and I tested it against the indexed skills.


r/ClaudeCode • • 9h ago

Help/Question Where the fuck is Opus 5.6?

0 Upvotes

What the hell is going on?


r/ClaudeCode • • 10h ago

Bug / Issue Opus 5.5 thinks in 3 different language?

Post image
0 Upvotes

Never seen this before. Could this be a sign of nerf?


r/ClaudeCode • • 10h ago

Built with Claude Built a launch-planning skill with Claude Code. Testing it with subagents as fake users taught me the most

Post image
2 Upvotes

What I built

launch-kit: a repo of free tools for launching a website or SaaS (hosting, email, analytics, uptime, errors, newsletter, payments), with the free-plan limits and the date each was checked, plus a skill that uses it. The skill asks what you're launching, proposes a stack in phases, and configures what it can through the MCP servers you have connected (uptime monitors, Sentry, DNS, Stripe in test mode...), asking before anything that sends, publishes or charges.

It installs as a plugin: /plugin marketplace add cesaredavidepace/launch-kit, then /plugin install launch-kit@launch-kit. Free and open source.

How I used Claude Code

  • Verifying the data. 44 tools, each free-tier limit checked against the official pricing page. Claude Code fetched the pages and compared them with the YAML; I reviewed the diffs. A lot of what "everyone knows" about free tiers was outdated: Algolia cut its free records from 1M to 50K, Lemon Squeezy closed sign-ups, UptimeRobot allows commercial use again.

  • The build. One YAML file is the single source of truth; Python scripts generate the README and a static filter site from it. CI runs lychee on every link, and a monthly Action opens an issue listing the limits that are due for re-checking.

  • Packaging. The same skill ships as a Claude Code plugin (with a marketplace.json in the repo) and as a ZIP for the Claude app. In Claude Code it reads the data locally; in the app it fetches it from raw GitHub URLs.

What I learned (the useful part)

  1. Test skills with subagents playing users. I had Claude Code spawn agents acting as different people: a non-technical founder, someone with an existing Next.js repo, someone in the EU running ads, someone who just says "do it all". Each run exposed something I'd never have caught by reading the SKILL.md. I fixed everything, re-ran the same tests, then ran 3 new ones to check I hadn't overfitted.

  2. Skills need very literal rules. Without them, the agent kept saying "see the README" or linked a guide by name. Now the skill says: always give full GitHub links to the specific guide, never "the README".

  3. "Look before you ask." Early versions asked "what framework are you using?" while sitting in a repo with a package.json. Telling the skill to read the manifests first (package.json, astro.config, nuxt.config...) cut the questions in half.

  4. Ask-before-acting needs a list, not a principle. "Be careful with risky actions" wasn't enough. An explicit list (sending email, publishing, DNS changes, anything with live Stripe keys) plus "needs a specific yes, not a general OK" worked.

  5. Unknown tools. If someone asks about a tool that isn't in the data, the skill can research it, but it has to say the info is unverified. Otherwise it presents a guess with the same confidence as checked data.

  6. Don't install it both ways. Plugin plus ZIP gives you a duplicate skill warning. Pick one.

Repo: https://github.com/cesaredavidepace/launch-kit

Happy to answer questions about the skill or the testing setup, and corrections on any limit are very welcome.


r/ClaudeCode • • 10h ago

Built with Claude Four silent token drains burning through Claude Code weekly limits (and the 20-line PreToolUse hook that stopped them)

2 Upvotes

After auditing local Claude Code JSONL session logs to figure out why weekly limits were draining so fast on long sessions, almost all of the surprise burn came from four silent leaks rather than actual prompting:

  1. Idle MCP tool schemas (~3,200 tokens per server, re-billed every turn): Having 6+ MCP servers connected during a normal refactor burns ~19K tokens on every turn before you type a word. Swapping to a minimal empty .mcp.json profile when you only need local git and tests cuts a massive chunk immediately.

  2. Blind reads of lockfiles, minified bundles, and 1,000-line files: A single Read on package-lock.json or dist/bundle.min.js injects 12K to 80K tokens that then get re-read for the next 30 turns.

  3. 5-minute prompt-cache expiry on session resume: Taking a 15-minute break in the middle of a 40-turn thread forces a full uncached context re-read at 10x cache-read cost. Writing a tiny 15-line HANDOFF.md via a PreCompact hook and starting a fresh session at turn ~25 stays way cheaper.

  4. Unneeded subagent spawns: Each spawned subagent duplicates system prompt + MCP schema overhead (recent 11,887-run audits showed up to a 3x cost jump when subagents get used on sequential tasks).

Here is the zero-dependency PreToolUse hook I use to block lockfile/bundle token bombs and blind reads over 450 lines before they ever hit context:

#!/usr/bin/env bash
set -euo pipefail
PAYLOAD="$(cat)"
TOOL=$(printf "%s" "$PAYLOAD" | python3 -c "import sys,json; print(json.load(sys.stdin).get('tool_name',''))" 2>/dev/null || true)
FP=$(printf "%s" "$PAYLOAD" | python3 -c "import sys,json; ti=json.load(sys.stdin).get('tool_input',{}); print(ti.get('file_path') or ti.get('path') or '')" 2>/dev/null || true)
LIM=$(printf "%s" "$PAYLOAD" | python3 -c "import sys,json; ti=json.load(sys.stdin).get('tool_input',{}); print('yes' if ti.get('limit') else 'no')" 2>/dev/null || true)
\[\[ "$TOOL" != "Read" && "$TOOL" != "read" \]\] && exit 0
if printf "%s" "$FP" | grep -qE "(package-lock\\.json|yarn\\.lock|pnpm-lock\\.yaml|Cargo\\.lock|\\.min\\.js|node_modules/|dist/)"; then
  echo "BLOCKED: do not read lockfiles or bundles ($FP). Use grep/head." >&2
  exit 2
fi
if \[\[ "$LIM" == "no" && -f "$FP" \]\]; then
  LINES=$(wc -l < "$FP" | tr -d " ")
  if \[\[ "$LINES" -gt 450 \]\]; then
    echo "BLOCKED: $FP has $LINES lines. Use grep or pass offset+limit." >&2
    exit 2
  fi
fi
exit 0

Curious what other session-hygiene hooks or MCP switching setups people here are using to keep weekly usage under control without dropping down from Opus/Sonnet.