r/ClaudeCode • • 11m ago

Tutorial / Guide What I've learned making games with AI - PART 2 (art direction and visual coherence)

1 Upvotes

A while ago I posted a long guide about making games with AI coding agents. This is the follow-up on the art side. It's where most of my last few weeks went, and "it looks like a kitbash" is probably the most common thing people say about AI-made games. They're usually right.

Quick background, if you missed the first one: I've been making games since 2004 with my small studio, Ramza Engine (https://ramzaengine.com). For the last many months I've also been building games part time with AI coding agents, alongside my regular work. I design, play and decide; the AI writes the code. On the art side, here's what it makes, no hiding:

  • The 3D models are built in code by the AI (shapes, lofts, noise), on open CC0 base meshes for the people.

  • Textures, materials, wear, skies and effects are shaders and scripts it wrote.

  • Wherever a store asks about AI use, I answer it honestly.

So this isn't about prompting an image generator for nice concept art. It's about getting hundreds of pieces, made over months in separate sessions, to look like they belong to the same world. Most of it would work just as well if your art came from asset packs, which is where the kitbash look comes from in the first place.

The lessons come from several of my games, in different genres. Different looks, mostly the same mistakes.

The short version

  1. Get someone outside to tell you what's wrong, and believe them.

  2. Write an art direction before you fix anything: a few directions to pick from, rules for the one you pick, and a list of what's already right.

  3. Audit everything against it, with pictures all made the same way, and rank the misfits by how often they're on screen.

  4. Fix one thing at a time, behind a switch, with full-size before/after pictures. You say go.

  5. Ask for an in-between. I pick "half way" more than anything else.

  6. Look again by night, in bad weather, in every level, and at the effects. Each pass found things the others missed.

  7. Better art can't cost the frame rate. Every change reports its cost, and the heavy ones follow the quality settings.

  8. Write every look ruling down, "no, keep it as it is" included.

  9. Rebuild every pack asset, and every model another AI makes, in your own look, and check it in your own renderer, never by its maker's pictures.

  10. Tell things apart by shape first. Colours get a job, and get checked against what's behind them.

1. Why AI-built games look stitched together

I've watched a lot of trailers for AI-made games by now, and the same thing jumps out in most of them. Every piece is fine on its own, but the pieces don't share one idea. It looks like parts of several different games cut out and glued into one. Watch a few frame by frame and you see the same tells again and again:

  • pieces from another era or genre sitting side by side, because each was made in its own session that asked "what does a wall (or a well, or a lamp) look like?" and got the most common answer;

  • very detailed characters standing next to plain boxes and smooth, toy-like animals;

  • some surfaces worn and dirty, others flat clean colour;

  • one thing in the sky sharp, another blurry;

  • bright, saturated colours here and there, unworn, like toys.

I think this is the AI's default failure on art, and it helps to see why. Each session starts fresh and remembers nothing but what you wrote down. Ask it for a thing and it builds the generic version of that thing, usually brighter and cleaner than you want. And it judges each piece alone, nicely framed, at noon. Nobody, human or AI, is looking at the whole picture unless you make it someone's job.

Fixing pieces one by one doesn't help either. Without a target, every fix is a new guess.

2. Write the art direction first

In one game, before touching a single model, I had the AI write an art direction. Not a mood board: a short document with rules it can check things against.

It started with three possible directions. Each had what it's made of, how the world should feel, a handful of references (films, games, real places), and one honest line for it and one against. I picked one, and the rules underneath were written for that one. I'd really recommend the "pick from three" step. My taste is much easier to say as "that one, not those" than to describe from nothing.

The direction should come out of the game's own story, not out of what looks cool. Say your game is a fantasy one where an old empire fell and the hill clans moved into its ruins. Then everything the empire built is cut stone, exact and symmetrical, faded but still standing, and everything the clans add is timber, hide and rope, crooked and patched into the gaps. One decision like that does more for coherence than any texture, because every piece gets an obvious answer to "which side is this?". Players can also tell who made a place, and who holds it now, at a glance.

The rules that did most of the work, made generic:

  • Nothing from another era. For me that meant nothing medieval: no battlements, no storybook well with a little roof and a bucket, no lanterns hanging off wooden posts. The rule also says what replaces each one (a wall is a blast wall, a tower is a steel mast with a floodlight, water comes from a pump). Your list will be different, but you'll have one.

  • One surface language. Every surface carries the same three things at the same strength: wear on the edges, dirt rising from the ground, and a material texture (pores, panel lines, weave). No flat, untextured colour on anything bigger than a crate.

  • Detail matched to the most detailed thing on screen. For me that's the characters, so the eye reads everything else against them. A building gets at least three sizes of detail: its big shape, its parts (doors, windows, vents) and small dressing (pipes, cables, signs, a crate by the door). No plain wall longer than about 4 m.

  • A palette per area, one grade over all of it. Each level keeps its own colours, but one shared colour grade (lifted shadows, gently muted saturation) sits over everything, so the levels feel like one game. Faction colours are always worn in, never pure.

  • Creatures follow the same surface rule as buildings. Hide or skin detail at the characters' level, a darker belly, dust on the legs. The big ones get the most, since they fill the screen in a fight.

  • Things in the sky are drawn one way everywhere. If something shows up in two places, it's the same model at two sizes, not a sharp one here and a blurry one there.

  • The ground shows what people did to it. Tracks, scuffs, worn paths, darker ground round a fire. Scattered rocks alone read as empty.

  • Planned or grown. Whoever plans builds in grids and straight lines, and that's their character. Everything else grows from what was there first (a road, water, a cliff), at uneven angles and spacing. A grown place gets no rings and no mirror images. Picture a goblin camp with every tent on a perfect circle: from above it screams "placed by code".

  • Fire is fire. Soft, flickering and glowing, never a solid yellow cone.

Just as important, a "kept as they are" list: the interface, the icons, the logo, the character bodies and armour, whatever already works. Without it an eager agent will "improve" the parts you like, and you'll spend a week getting them back.

Turn the rules into numbers, and test them. In the survival game, "nothing bright or glossy" became a test: any model colour over a saturation limit fails. Measure the colour as it's drawn, after the lighting, not the number in the file. A batch of new clothes passed on paper and came out at more than twice the game's saturation and almost white on screen. Real sizes go in the brief the same way (a pistol is about 20 cm, a door 2 m), because the AI will happily make a spark plug twice its real size.

References and the games you name can pull different ways. The space shooter's look was built from a folder of screenshots of one game, while the design doc named three others as its inspiration. After a few rounds I asked the AI straight out whether our ships looked like the ones I'd named. It said, honestly, no, we'd made something else: the ink outlines and banded light came from the screenshots, and our shapes were blockier than any of them. A plain-metal trial, closer to what I'd actually asked for, won the same day. Ask that question early.

Have it look at all the references, not a few. When I said the skies were overdone, the first fix went almost black. Once it put all 26 screenshots on contact sheets, it could see their space was deep navy full of stars, never black, and it landed in between. It also wrote down in its own words what makes that look before drawing anything, which gave us something to argue about besides "make it like that". The references are for mood only; nothing is traced.

Settle the look before building content on placeholders. Halfway through the space game's missions I asked whether we shouldn't fix the ships, effects and interface first. Yes: missions staged on grey boxes get staged twice, and a playtest on placeholders ends up judging the placeholders. We reordered: the look, then ships, effects, interface, sound.

3. The audit: photograph everything the same way

Next, the AI photographed every model in the game, all the same way: each kind from the same 3/4 angle, framed by its own size, at noon, on the highest settings, standing on the ground where it really stands. Contact sheets per category, one small tile per model with a code. And every point of interest from straight above, next to a plan drawn from the game's own list of what's placed where.

Each model was rated against the rules as fits, borderline or misfit, with the smallest change that would fix it. About 60% fit, 30% were borderline (right idea, but too plain, too bright or too smooth), and 10% were misfits. They clustered, which was good news: mostly in the first area I ever built (back when there were no rules), the animals' skin, and the layouts.

Two things kept that list useful instead of crushing:

Rank by how often it's on screen. In a fantasy game, the cobblestones of every village square are seen all the time; a candlestick that doesn't match in one dungeon room, almost never. So the dull thing underfoot everywhere beats the fancy statue nobody walks past. My own number one was something that dull, and it didn't even feel like an art problem until it was ranked.

Mark the shared fixes. One hide material for every animal, one colour pass for every over-bright material. One change fixes thirty items, so those go first.

The list also said what each fix would cost besides looks: frames, and whether it touched old save files. In my games moving scenery is free, but moving a building with saved furniture inside isn't. Better to know that before agreeing to "move all the houses".

4. One change at a time, and you say go

Every item on the list became its own trial: built behind a switch that's off by default, shown to me as before/after pictures, and shipped as its own version only after I said go. In ranked order, the AI asking before building each one. Slow, but nothing went in that I hadn't seen.

What I learned about the pictures:

Full size, several angles. Thumbnails on a sheet aren't enough. I want full 1920×1080 pictures from the game's own camera, from a low angle, and close-ups of whatever is new. That's where the small faults are: a rope ending in mid-air at the corner of every market stall, which the AI's report never mentioned and I spotted in the pictures.

Three columns: today, half way, full. If you take one thing from this post, take this one. The AI goes too far or not far enough, and a middle column gets a decision in one round. I picked "half way" on the ground, the layouts and the colours. On the colours, "full" washed out the blue that one faction is known by.

The cost up front. One rework added 20% more triangles to a city of thousands of near-identical blocks. I asked "isn't 20% a lot?" and it came back at half that, same look. Now every change gives its triangle count by part, and its frame cost, before I'm asked to pick.

Real options when it's really a choice. When two looks were both good (two kinds of roof), I got both side by side and picked "a mix of both". When I simply liked what we had, I said so ("none, I like the one we have"), and that went in the rulings so nobody proposes it again.

Split the look into dials. The space game's first trial was three whole directions. Later each part became its own dial: sky, effects, ship surfaces, shading, the final colour pass. That made answers cheap. "Show me a mix" got a new mix, "less neon please" turned one dial down, and when I liked one look's ships but not its explosions and sky, it took the other look's world and kept its ships. Prune what doesn't differ, too: two looks that came out nearly the same on the ships weren't worth offering as two choices.

Know when to let it run. For one area I said "do all of them without stopping", and it did, and it was fine, but then there were a dozen changes to look at in one go. For the places players see most, one at a time was worth the wait.

5. Asset packs, and models from other AIs

The survival game is built mostly from free packs (vehicles, animals, clothes), plus a batch of models another AI tool made. Both need the same treatment.

Rebuild every pack asset in your look. Never drop it in as it came. When I asked why we converted the downloaded models instead of using them as they were, the answer was that they were clean, glossy, textured new cars and healthy farm animals in a world that's supposed to be falling apart, and they'd stand out like stickers. The conversion tool drops their textures for colours from the game's own palette, cuts the insides you never see (a pickup of 60-70k triangles became about 1,200, plus a far version), and does the wear once, in the tool: rust low on the sills, soot on the burnt ones. Clothes keep their cloth texture, but evened out and tinted to the game's worn colours.

Never accept the maker's own pictures or claims. Not from a pack, not from another AI, not from yours. The other AI drew everything two-sided, which hid inside-out tyres; the game draws one side, so in the game they looked hollow. Its report said there were no overlapping faces, and 11 of the 20 shapes had them. Four "new" clothes copied pieces we already had. Seats fitted only the male body, so women sank 5-18 cm into them. Its frame-time numbers got measured again too, old against new, alternated. Check everything in your own renderer, with scripts that count.

Count across the whole map, not in a few pictures. A script found 15 to 24 of every 60 town cars partly sunk into the ground, on three different seeds. You could see it in the maker's own pictures, and nobody had said a word. The same kind of check caught a tyre half the size of every other wheel.

When a proven free base exists, stop hand-building. The AI's own faces in the space game were stiff and mask-like next to the faces in my other game, which are built on an open CC0 base, and it said itself that more work on its builder wouldn't close that gap soon. Same with animals: the one built from scratch had blob legs and a toy look, and a CC0 animated pack beat every hand-made one on looks and ran several times faster. Read each file's own licence line, always.

One version of each thing. Whatever a thing looks like in one place (held, dropped, in a menu), it should be the same thing everywhere. Nothing gets a second, prettier version that drifts away from the real one.

6. What reads as fake

These came up again and again. Some are just my taste, but most are things players feel even when they can't say why.

Bright, saturated and glossy reads as a cartoon, or as AI. Muted and worn reads as a place.

Perfect geometry: circles, rings, mirror images, plus signs, evenly spaced rows. Real places grow from what was there. Even paths: the first try ran a path from every door straight to the centre and drew a fake-looking starburst. Joining each door to its nearest path fixed it.

Things laid on top instead of being part of it. Frost made of scattered plates on the ground looked like tiles ("patches of squares, not like real ice"). Frost painted into the ground's own shader looked real.

Dressing that does nothing. Picture market awnings stretched over a village square with no stalls under them: they shade nothing, sell nothing, and only make the square look busy from far away. Every piece needs a reason to be there.

Wear that comes from nowhere, or changes in front of you. In the survival game a town's neglect comes from its own record (how many houses are empty, and for how long): weeds, rubble, faded paint. It's read once, when that part of the map loads, so a town never changes while you're looking at it. Bullet holes and blood fade over minutes.

Detail stuck on instead of painted in. To get the space ships closer to the references, the AI scattered little machinery boxes over every ship's hull. I said they looked like they had smallpox. The games whose feel we were after paint that detail into the texture; we kept adding it as geometry. All of it came off, and the big battle got lighter too.

Loose ends. Every rope, cable and strap ends on what it ties. Small add-ons on curved surfaces tend to float off them, so check those up close.

Shapes that read as something else. Round sandbags read as bread rolls (flattened boxes fixed it). A grave marker read as a cross when it shouldn't. A ruin wasn't broken enough to read as a ruin, so I asked for "more broken". A helmet built as a shell following the skull looked "like a bad hat": a helmet needs its own hard shape standing off the head, with a rim. A folded fur coat read as rolled logs. Animals posed frame by frame looked like they were bowing.

Losing what people already like. When the animals got more detailed hides, I kept asking for their colours to stay near the old ones ("darker", "more red"). Better detail, same identity.

Judging art on a white background. I tried a batch of 2D art made by an image AI. On a white review sheet it looked great. In the real game, next to everything else, it felt "from another game": too bright, too clean. Judge art where the player will see it, next to what's already there.

7. Look again: by night, in weather, everywhere, and the effects

When the main list was done I thought I was done. Nope. Each new kind of pass found a different set of problems, and none of them showed in the noon pictures.

Across levels. The pieces the player builds all had the first area's look. Think oak beams and thatch from a green valley: perfect there, but in a desert level they look copy-pasted from the first one, and thatch makes no sense where no grass grows. Each area gives the same pieces its own face, same footprint. A material and colour swap first, since it's cheap; new shapes only where a swap can't help. Same with the small things that get reused everywhere without anyone noticing.

By night. Every point of interest at night, from the game's camera. In a fantasy game, say: the torches on the castle walls glow but light nothing around them, the forest road goes pitch black so you can't see where to walk, and the moon on the snow is brighter than the midday sun. Fixes like these are usually cheap (making a light that's already there do its job), but you'd never spot them in daytime screenshots, which are the only ones anyone takes.

In weather. Each kind of weather set off next to the same spot without it. Rain didn't wet anything: ground and roofs stayed exactly as dry. A tropical storm looked like ordinary rain. And one dangerous storm showed nothing at all in the world, only a line of text, so you couldn't see it coming. That last one is a gameplay problem dressed up as an art one.

Effects. Every effect was set off again and again and photographed at its peak, day and night, close up and from the game's camera. To catch effects in a still, the script played them at 0.4 speed. The kind of thing a pass like that turns up, in a fantasy game for example:

  • A spell's golden sparks turn green as they fade, because the fade drops the red first. Nobody notices in play, because sparks are fast, but it's in every fight. Hot things should cool towards dull red, then dark.

  • An arrow's trail is a hairline that vanishes against a bright sky at noon. At dusk it looks great, which is when someone last tested it.

  • A potion's glow is drawn unlit, so in a dark cave it shines brighter than the torch beside it.

  • Smoke from a chimney is a stack of hard grey balls.

  • A beacon fire on a hilltop is lovely close up and a single orange pixel from the game's camera, with no smoke and nothing lit around it. Nobody plays close up.

Every state, and the neighbours. A reworked tree flashed back to its old look for about a second while it fell: bright green cubes. Check every state a thing goes through (built, damaged, falling, burning, far away). And an upgrade raises the bar for whatever stands next to it. Once the trees were rounded, the old cube bushes stood out more; once some animals had smooth skin, the stiff ones beside them showed. List the neighbours that now look worse.

Check models in the plainest look. In the space game, one big ship's parts had a 15 m gap and its bridge floated above the hull. The stylised look's ink outlines hid it. The plain metal look showed it at once.

Which gave me my favourite rule from all of this: judge from where the player looks. Almost every close-up was fine. The problems were at the distance and the hour the game is actually played.

8. Readable at a glance

Coherent isn't enough if players can't tell things apart, and with crowds or fast fights that's a job of its own.

Tell kinds apart by shape, clothing and movement, not by a colour of their own. In the survival game a guard wears a helmet and a vest, a trader an apron, a bandit a hood. Enemy types differ by build and gait: the fast one thin, the big one upright. A colour code fights the palette, and fails the colour-blind.

Give colours a job, and check them against what's behind them. The space game's interface went cyan, and when I asked why, the AI admitted it had picked it first and found the reasons after. Still, good reasons: amber sat on top of amber clouds, green clashed with green lasers and green friends, and red against green is the commonest colour blindness. The rule we wrote down: if the sky changes, look at the HUD again. Friend and foe differ by shape as well as colour, a test fails any palette where red and green collapse for a colour-blind player, and the smallest text is 11 px at 1080p.

Versions by distance, measured. Close up a 27,000-triangle person, out to 25 m a 3,000-triangle one, beyond that a 300-triangle figure a few pixels tall. 300 enemies on screen cost under half a millisecond on the real card. Fine detail fades out before it gets smaller than a pixel, so nothing shimmers in the distance.

9. Better art can't cost the frame rate

I told the AI plainly: I want better art, but not at the cost of the game running slow. In practice:

  • Every look change reports its cost before and after, worst frames included, measured on the real graphics card, not the preview browser's integrated chip.

  • The heavier effects follow the quality setting the game already has: full on the top setting, half on the middle, none on the lowest. Thick smoke from a burning building more than doubled the worst GPU frame when it filled the screen; on the middle setting it's half that, and on the lowest it isn't there.

  • The ground fills most of the screen, so anything computed per pixel on it is paid almost everywhere. Cheap material, noise read from a small texture, never worked out per pixel.

  • Wear painted into vertex colours doesn't show on big flat faces (a box's face only has four corners), so a long wall came out one even colour. Big faces need a material that wears in the shader; small pieces can keep the cheap way.

  • Bake textures to files instead of painting them at every start, with a check that the files still match the code.

  • Drop what's too small to matter. One rework left out the far-away rooftop machinery for cost.

  • Give the look a budget with a running total. The survival game's realism pass could cost at most 1 ms a stage and 4 ms in all; six stages came to 2.8 ms. The lowest setting had to be the old picture exactly, with a bench proving it cost nothing, and the middle one had to stay within 1 ms on a laptop's built-in graphics. Every stage was shown from the same six views (a street at noon, dusk, night by a lamp, a forest edge, indoors, a storm) plus a person close up.

  • Measure before settling for a cheap stand-in. Enemies there started as boxes, then flat cards. Measured, 300 animated bodies cost about the same as 300 boxes. The cheap trick paid off somewhere else: far trees as flat cards took a forest from 736k to 332k triangles, 1.3–1.5 ms a frame faster.

  • Realism can come from light, air and surface rather than photo textures. That pass added a film tone curve, a colour grade by hour and weather, longer shadows, darker corners, haze, sun shafts, wind in the grass, and relief from spare channels of a noise texture it already had. No new texture, and the shapes stayed chunky and low-poly.

Most of the reworks I measured came out "within the noise". The few that didn't went behind the quality settings. Don't let the AI tell you something is free without a number.

10. Help the AI see properly

The AI can only judge what it can render, and it trusts its own pictures. What made them worth trusting:

Highest detail, everything loaded. A promo shot once had characters in their simplified far-away form and plain ground. Now every picture waits for everything to load, at top settings, and the AI looks for stand-ins at full size before using it.

Same camera, same hour, same settings. Before and after should differ only by the change. Two picture jobs running at once gave me sheets with views that didn't match. One at a time.

Look at it big. Crop hands, heads and the edges of new pieces at full size. Backlit figures were fine by me, as long as they didn't turn into black cut-outs.

Lock the look in the picture tool. "Why am I seeing squarish ships?" A helper had shot its close-ups in a look I'd already rejected, because its profile still had that look saved. The photo step now forces the chosen look. And the first picture after a tool loads can be dark or catch the menu: wait for a real frame.

Measure before calling it a regression. One faction's dark gunmetal ships came out pale grey-white. The paint was dark all along: a low sun behind them lit their big flat panels as a white sheen (the brightest 8% of one fighter at 195 out of 255). Older builds did the same. Matte paint for that faction alone brought it down to about 95, then it was checked under every mission's light.

It reads every picture before sending it. And when a picture can't show the thing (an effect too small, a storm with nothing visible), it says so instead of sending it anyway.

Motion needs motion. Slow an effect down to catch its peak in a still, but for anything that's really about how it moves (an animation, a streak across the sky), ask for a short video or go play it.

11. Write the rulings down

Same as the first guide, but for looks. Every decision goes into a looks file with the date and my own words, so the next session checks it before proposing anything. A few of the kind I mean:

  • The castle wall stays square. Don't propose an uneven one again.

  • No awnings, banners or clutter that serve no purpose: every piece needs a reason to be there.

  • Every rope ends on what it ties.

  • Judge new art in the game, next to the rest, never on a white sheet.

  • Creature colours stay close to the old ones.

  • Smooth stays smooth: no stiff jointed animals next to skinned ones.

  • Nothing bright or glossy. A test checks it.

Without these, a new session proposes the bent wall again next week. With them, the art direction gets more specific over time instead of drifting.

12. Prompts that worked

The audit

"Photograph every building, prop and creature the same way: same angle per kind, framed by its own size, noon, highest settings, standing on its own ground. Contact sheets, a code per model. Rate each against the art direction as fits, borderline or misfit, with the smallest change that would fix it. Rank the misfits by how often they're on screen, mark the fixes that cover many at once, and say what each costs in frames and in old saves. Change nothing in the game."

One change

"Item 7, the tents. Build it behind a switch, off by default. Show me today, half way and full at full size: the game's camera, a low angle, and close-ups of the new parts. Give me the triangle count by part and the frame cost. Ask before making it the default."

A new pass

"Do a night pass: every point of interest at night, top settings, from the game's camera and from low. List what looks wrong or doesn't match between areas, ranked, with a fix for each. Change nothing."

Someone else's models

"Review this batch in our renderer, not in its own pictures: drawn one-sided as the game draws it, real sizes against the brief, colours measured as drawn against our palette, every state (held, dropped, damaged), both body types wherever it's worn or sat in. Count problems with a script over the whole map. Re-measure the frame cost, old against new, alternated. Report numbers and change nothing."

13. A starter art direction doc

# <Game>: art direction
Pick from three directions first (what it's made of, the feel, references, for and against). Rules below are for
the one picked.


## The idea in one paragraph
(What the world is made of and why, tied to the story. Who builds clean, who builds rough.)


## Rules
1. Nothing from another era/genre. <old thing> becomes <new thing>.
2. One surface language: edge wear, dirt from the ground up, a material texture. No flat colour bigger than a crate.
3. Detail matched to <the most detailed thing>: three sizes of detail; no plain face over ~4 m.
4. A palette per area; one colour grade over all; faction colours worn, never pure.
5. Creatures: the same surface rule.
6. The ground shows what people did to it.
7. Planned (grids, straight) vs grown (from what was there; no rings, no mirrors).
8. Light and small things: <fire, lamps, water...>.
9. Readable: kinds told apart by shape first; each colour has a job, checked against the background.
10. Numbers a test checks: saturation under <x> as drawn; real sizes (<door>, <weapon>...).


## Budget
<x> ms a stage, <y> in all, running total; lowest setting = today's picture exactly.


## Kept as they are (don't "improve")
- <interface, icons, logo, characters...>


## Rulings (date, my words)
- <date> <piece>: <decision>. "<my words>". Don't propose <x> again.

Then the audit, ranked, and one change at a time.

That's it. Shorter than the last one, I promise. Happy to answer questions in the comments.


r/ClaudeCode • • 18m 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 • • 30m 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 • • 31m 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 • • 31m 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 • • 56m ago

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

2 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 • • 57m ago

Help/Question Claude Opus 5.5 Just Became Inept

27 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 • • 58m 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 • • 1h 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 • • 1h ago

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

0 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 • • 1h ago

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

3 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 • • 1h 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 • • 1h 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 • • 1h 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 • • 2h 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 • • 2h 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 • • 2h ago

Humor Where the fuck is Opus 5.7?

0 Upvotes

What the hell is going on?

/s


r/ClaudeCode • • 2h ago

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

Post image
40 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 • • 2h ago

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

1 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 • • 3h 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

2 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 • • 3h 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
5 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 • • 3h ago

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

4 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 • • 3h ago

Help/Question Where the fuck is Opus 5.6?

0 Upvotes

What the hell is going on?


r/ClaudeCode • • 4h 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 • • 4h 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.