I've been an engineer for almost ten years, and I've never seen process matter this much. You can spin up a fleet of decent engineers whenever you want, but none of them remember anything they did yesterday.
That weirdness forces you to write things down. If the agent has no memory, your process has to carry the memory for it. So I've spent the last year turning my process into a repo of Claude Code skills.
Some of them I touch once a month. Five I use every single day, and they've visibly lifted the quality of the code that comes out of my sessions. Here's what each one does, when I fire it, and what I'd set up first.
Quick Tips Before You Start
One folder per skill
Each skill gets its own directory with a markdown file inside — keep the trigger line at the top.
Shorter beats longer
My most effective skill is three sentences. Say what the model must do, not everything it could do.
Fire on a trigger
Write the header as 'use when X' — that's what the model matches your request against.
Test one skill at a time
Add a skill, use it for a week, then decide if it stays. Five at once and you won't know what's working.
Split user vs project
User-level skills go in every repo; project-level ones stay where they make sense. Suffix with -user when needed.
1. A skills repo that replaces agent memory

You already know the memory problem if you've watched an agent forget your whole architecture overnight. Here's why I stopped treating that as a prompt-writing problem: a fleet of middling-to-good engineers you can deploy any time sounds great until you realise every one of them shows up with no memory of anything they did before. So the repo has to do the remembering.
Mine holds every skill I've designed, each one its own file. Some I pull out a few times a year. Five I use every single day, and together they cover the whole loop from idea to tested code, so fifty files would just be clutter. Each file encodes a process so the model has a strict path to walk instead of improvising its way to something plausible.
The payoff isn't subtle. The code coming out of my sessions got noticeably better once the process was written down, because the agent stopped guessing at what done meant. But a skill is only as strict as the process inside it. A vague skill hands the model a vague path, and you get the same mediocre output with extra ceremony. Here's the test I actually use: if you couldn't hand the file to a new hire and have them follow it, it isn't ready.
💡 Tip: Write the trigger line first, then the process. If you can't say in one sentence when the skill should fire, you haven't decided what it's for.
| Skill | When it fires | What it hands you | Typical cost |
|---|---|---|---|
| grill-me | Plan mode coughed up a plan too early | A shared understanding, question by question | 10-45 min, 16-50 questions |
| write-a-PRD | The idea is grilled and you're ready to commit | A PRD filed as a GitHub issue | 5 steps, often skipped to step 4 |
| PRD-to-issues | The PRD exists and needs slicing | Child issues with blocking links | 4 vertical slices on the demo feature |
| TDD | An agent is about to write implementation code | Red-green-refactor, one test at a time | 28 tests on the demo editing engine |
| improve-codebase-architecture | Weekly, or after a big feature push | Interface candidates and a refactor RFC | 3-5 sub-agents, one candidate at a time |
2. The three-sentence grill-me skill

That memory fix only pays off if there's something worth remembering, which is why this next skill matters so much. A plan written too early is the biggest source of rework, and this is the one I reach for most: three sentences long, and it saves me more time than anything else in the repo. First, interview me relentlessly about every aspect of the plan until we reach a shared understanding. Second, descend through every branch of the design tree, settling the dependencies among decisions one at a time. Third, if a question can be answered by exploring the codebase, explore the codebase instead.
The design tree comes from Frederick P. Brooks's The Design of Design, and a concrete example makes it obvious: designing a search page, advanced search versus a plain text box is your first branch, then the filters and sorting methods sit underneath if you pick advanced. Fire it the second plan mode hands you a plan before you feel ready.
On a feature I added to my course video editor's write page, it asked sixteen numbered questions, from where the document lives to the shape of the edit tool. Longer sessions run thirty to forty-five minutes and thirty to fifty questions, from three sentences.
💡 Tip: Answer the questions in the chat, not in your head. The model uses your answers to walk the next branch.
3. From PRD to issues an agent can grab

Once the grilling settles what you're building, write-a-PRD turns that conversation into a document an agent can act on. Its five steps run in order: ask for a long detailed description, explore the repo to verify your assertions, interview relentlessly using the same grill-me instructions, sketch the major modules to build or modify, then write from the template and submit the result as a GitHub issue. The skill can skip steps, and on the write-page feature it jumped straight to step four because the grilling had already done the interviewing for it.
The PRD that landed had a problem statement I'd heard come up in the interview: the page regenerated the whole document on every AI interaction. The proposed solution was a split pane with chat on the left and a document panel on the right, plus many user stories. What surprised me was how many implementation decisions it deliberately left open, and that's on purpose, so they stay true as the code moves underneath them.
PRD-to-issues picks up the destination and builds the route to it. It locates and fetches the PRD, explores the code if needed, and drafts vertical slices that cut through every integration layer end to end, tracer bullets rather than a horizontal slice of a single layer. It front-loads the slices that flush out unknown unknowns, like integrating with a service you've never touched.
On that feature it produced four child issues referencing the parent PRD, with blocking links: issue three blocked by the editing engine, issue four by issue two. That kept issue two free to run in parallel and left obvious room to bolt on QA issues once the core pieces existed.
💡 PRO TIP
Keep the PRD non-prescriptive
Over-specify implementation decisions in a PRD and they go stale the moment the code moves — then they fight the implementer. Put the problem statement and user stories in the PRD, and the how of a single slice in the child issue that carries it.
4. The long TDD skill that lifts output

The moment an agent starts writing implementation code is where all the earlier work gets tested, and it's exactly where output quality tends to fall apart. My TDD skill is unusually long, and that's on purpose: it carries notes on refactoring, mocking and what deep modules are, not just the loop itself.
The workflow runs in order. Establish with the user which interface changes are required, confirm which behaviours to test, design the interfaces for testability via a linked doc, then write one failing test at a time and the code to pass it until it's complete, then do a refactor-candidate pass. That first step is worth slowing down for, because an interface change is a real decision, not a detail to rush past.
Deep modules are the reason it holds together. A few larger modules behind thin exported interfaces are far easier for an agent to work through and to test at the boundaries than a scatter of tiny undifferentiated files. Test at those interfaces and the test boundaries stop being a mystery.
The honest failure: models are reluctant to refactor code that's still sitting in their context window. Clear the context and they'll be less precious about it, but then you've wiped everything else too, so it's a trade-off you make deliberately rather than a clean fix.
And TDD demands as much of your codebase as it does of the agent. In a badly structured repo the test boundaries are unclear, and the skill just exposes that. That's the gap the fifth skill exists to fill.
💡 Tip: This is the skill my automated issue loop is prompted with. Every issue it picks up runs red-green-refactor.
🛠️ The full process, start to finish
Grill the idea
Fire grill-me and answer questions until you share an understanding.
Write the PRD
Run write-a-PRD to file the destination as a GitHub issue.
Slice into issues
PRD-to-issues cuts vertical slices with blocking links.
Build with TDD
Each issue runs red-green-refactor, one failing test at a time.
Tidy the architecture
Run the architecture skill weekly to deepen shallow modules.
5. The architecture skill and the lesson behind it

If TDD pressures the codebase, this one repairs it, because it's about the repo rather than the feature. It explores the repo the way an agent naturally would and surfaces five kinds of confusion: where understanding one concept means bouncing between many small files, where a module is so shallow the interface rivals the implementation, where pure functions were extracted only for testability while the bugs hide in how they're called, where tight coupling creates risk in the seams, and which parts are untested or hard to test.
Then it presents a numbered list of deepening opportunities for you to pick from, spawns three sub-agents in parallel so each produces a radically different interface design (five for one large refactor), gives a strong opinionated recommendation or a hybrid, and files an RFC with gh issue create. That usually goes straight into PRD-to-issues. Run one candidate at a time, weekly or after a surge of feature work adds a new wing, because the decisions need human taste.
The lesson underneath all five is the whole point: treat the agents like humans with odd constraints, cloned, no memory, sent straight to work. Garbage codebase in, garbage out. Run this skill repeatedly and the agent's output quality climbs with the repo.
What a skill file actually looks like
Now that a few of these skills have earned their keep, it's worth seeing what one actually contains, because the shape is almost disappointingly simple.
A skill is one directory holding a markdown file. The top is a short header naming the skill and stating when it should be used, and below that sits the process body. That's the whole thing, no plugin system, no DSL.
Where it lives decides how far it reaches. User-level skills go in a directory that loads in every project you open, while project-level skills sit in the repo where they only make sense. That's exactly why invoking one sometimes needs a suffix to tell two same-named skills apart.
Here's the mechanism that trips people up: the model matches your request against the header, so the description is the trigger and the body is the process. Get the trigger wording wrong and the skill just never fires, no error, no warning, you simply wonder why it didn't help.
Keep the body short. The three-sentence grilling skill is living proof that a tiny file does heavy lifting, and padding it out only gives the model more room to wander. For the exact header fields and load order, read the official Claude Code documentation rather than guessing at it.
When the PRD and the code drift apart
That minimalism has a flip side, though, and it shows up the moment a PRD stops matching the code it was supposed to describe.
My demo PRD left implementation decisions deliberately open, and that was a choice, not laziness. Over-specified decisions go stale the second the code moves, and then they sit there fighting the implementer instead of guiding it.
The split I settled on is simple. The problem statement and user stories belong in the PRD, as the durable destination. The how of a single slice belongs in the child issue that actually carries it.
So when a slice forces a change, you amend the PRD issue and record the decision right there, which keeps every child issue tracing back to something still true. Let it drift and you get the familiar mess where nobody can tell whether the doc is the spec or a history lesson.
Two warning signs tell you it's time to rewrite. Your child issues no longer map to any user story, or the implementer has to read the code just to understand the PRD.
A lighter path for a solo developer
All of which sounds like a lot of machinery, and it is, so let me be honest about what you actually need if it's just you.
Start with the grilling skill and the TDD skill. Three sentences and a workflow, and together they change the output of every single session, before you've built any of the heavier scaffolding.
Skip the PRD and issue slicing for anything you can finish in one sitting. Reach for them when a feature spans more than a day, more than one agent, or more than one person, because that's when chasing context in your head stops working.
Add the architecture skill on a weekly-ish cadence, and after any surge of feature work, and run it one candidate at a time rather than refactoring everything at once.
What you lose without the automated issue loop is mostly the blocking links, and those matter most when agents run in parallel. Solo, you can still slice work vertically and pick each slice up by hand. Verify the skill format against the official docs before you commit, then go set up the two that matter.
Frequently Asked Questions
Do I need all five skills on day one?
No. Start with grill-me and TDD — they're the two that change every session. Add write-a-PRD and PRD-to-issues once a feature runs longer than a day, and the architecture skill when you have a codebase worth tidying.
How long should a skill file be?
As short as the process allows. My most effective skill is three sentences. Length isn't the goal; precision is. If the model can follow the path in fewer words, cut the words.
What if my skill never fires?
The header trigger is the usual culprit. The model matches your request against the description, so write it as 'use when X' and test by asking for X directly. If it still doesn't load, check the load order in the official docs.
Can I use these skills with sub-agents running in parallel?
Yes, and the blocking links in PRD-to-issues are what make it work. One issue stays independent so a second agent can grab it while the first is busy. Just don't run the architecture skill in parallel — it needs a human in the loop.
Why do my agents resist refactoring their own code?
Because the code is still in their context window and they're precious about it. Clear the context and they'll be less attached, but you lose everything else too. The refactor-candidate pass in the TDD skill is a partial workaround.
Set Up Grill-Me First, Then TDD
If you only install one skill this week, make it grill-me. Three sentences, and it stops the agent handing you a half-baked plan before you've agreed on anything. Add TDD second — that's the pair that changes every session.
write-a-PRD and PRD-to-issues can wait until a feature spans more than a day or more than one agent. The architecture skill can wait until your codebase has enough shape to be worth tidying.
None of these files are magic. They work because someone wrote down the process precisely enough that a memoryless agent can walk it every time. That's the whole trick.
Set Up Your First Two Today
Open your skills directory, write the three-sentence grilling skill, and run it on the next feature you plan. Then add the TDD workflow and compare the output.