I Stopped Asking Claude to “Write Code.”
From the publisher’s feed, collected in the ZeroLabs newsroom.
I Stopped Asking Claude to “Write Code.” These 8 Slash Commands Made It Act Like a Senior Engineer Instead.Most devs treat Claude like autocomplete. The ones who ship faster treat it like a team member with a workflow.Here is the uncomfortable truth most developers won’t say out loud: the gap between a bad Claude session and a great one is rarely the model. It is the prompt.Junior Claude writes code. You ask for a function, you get a function. Sometimes it works. Sometimes it confidently hallucinates an API that does not exist. You patch it. You move on. You tell yourself this is what AI coding feels like.Senior Claude does something different. Senior Claude asks why before it touches a single line. It interviews you about the spec. It writes a failing test before the implementation. It traces the actual root cause instead of patching the loudest symptom. It reads the codebase before suggesting an architecture change.That is not a different model. That is a different input.Specifically, it is one of eight slash commands — small reusable markdown files that live in your .claude/skills/ folder and turn Claude Code from a chatbot into something closer to a disciplined teammate. Below are the eight I use most, what they actually do, and a short example of each one in action.If you only steal one section from this post, steal the first one. It is the multiplier.Table of contents:· 1. /grill-me — Interviews you until the spec is bulletproof· 2. /tdd — Red-green-refactor on autopilot· 3. /to-prd — Turns messy brain dumps into shippable PRDs· 4. /triage — Reads your bug backlog and ranks it· 5. /diagnose — Finds the actual root cause, not the loudest symptom· 6. /improve-codebase-architecture — Audit the structure before tech debt compounds· 7. /to-issues — Converts plans into GitHub-ready tasks· 8. /research — Gathers context and prior art before touching code· How to actually install these· The real takeaway1. /grill-me — Interviews you until the spec is bulletproofWhat it does: Instead of letting you start coding from a vague one-liner, Claude flips the conversation. It asks you ten to twenty hard questions about the feature — edge cases, failure modes, scope, success criteria — and refuses to write anything until your idea actually holds up.Why it matters: Roughly 80% of bad AI output is bad spec. You typed three sentences. Claude filled in the other 97 with assumptions. /grill-me forces those assumptions onto the table where you can argue with them.Example:2. /tdd — Red-green-refactor on autopilotWhat it does: Forces a strict test-driven loop. Claude writes a failing test, runs it, confirms it fails, writes the minimum code to make it pass, runs it again, then refactors. No production code without a failing test first.Why it matters: Most AI-generated code looks plausible and breaks at runtime. TDD inverts that — the test is the proof. You stop debugging “did Claude understand what I wanted” and start debugging actual behavior.Example:/tdd add a function that parses ISO-8601 durations into secondsClaude writes parseDuration_returnsCorrectSeconds_forBasicHours First, watch it fail, then write the parser. If the parser is wrong, the test catches it before you do.3. /to-prd — Turns messy brain dumps into shippable PRDsWhat it does: You paste a stream of consciousness about a feature. Claude turns it into a structured Product Requirements Document — problem statement, goals, non-goals, user stories, acceptance criteria, open questions — that your PM or your future self can actually ship from.Why it matters: The fastest way to lose a week is to start building from a Slack message. This command is the bridge between “I have a vibe” and “I have a plan.”Example input: “users keep asking us to let them undo deletes, but I don’t want to build a full trash bin, and also I’m worried about storage costs”Example output: A 400-word PRD with three options ranked by effort, the storage math, and a recommended scope-cut.4. /triage — Reads your bug backlog and ranks itWhat it does: Points Claude at your GitHub issues, Linear board, or local markdown to-do list, and gets back a ranked list by impact, urgency, and effort. With reasoning attached.Why it matters: Your backlog is not a priority list. It is a graveyard of equal-looking tickets. Triage is the unsexy work nobody does, which is exactly why doing it gives you a week of focus back.Example: Run /triage on a 60-issue backlog and get back something like "Fix #142 first — it blocks 3 customer escalations and is a 30-minute change. #87 looks urgent, but only affects an internal admin tool used twice a quarter."5. /diagnose — Finds the actual root cause, not the loudest symptomWhat it does: A disciplined debugging loop. Reproduce the bug, minimize the repro, form a hypothesis, instrument the code to test the hypothesis, fix the actual cause, and write a regression test.Why it matters: Without this, AI debugging tends to look like “wrap it in a try/catch and hope.” /diagnose forces Claude to behave like a senior engineer who has been burned before.Example: You report “the upload sometimes hangs at 99%.” Without /diagnoseClaude adds a timeout. With /diagnoseClaude asks you to capture network logs, notices the hang correlates with files over 5MB, traces it to a chunking bug in the multipart upload, and then fixes the actual cause.6. /improve-codebase-architecture — Audit the structure before tech debt compoundsWhat it does: Reads your repo holistically — folder structure, module boundaries, coupling, naming consistency — and writes up where the architecture is starting to rot. Not “rewrite everything.” Specific, targeted suggestions.Why it matters: Tech debt is silent until it is not. By the time you feel it, refactoring costs ten times what it would have cost six months ago. This is your early warning system.Example output: “You're the utils/ folder has 47 files, and three of them are doing what looks like business logic. The auth module imports from billing which imports back from auth — that circular dependency will bite you when you try to extract a microservice."7. /to-issues — Converts plans into GitHub-ready tasksWhat it does: Takes a PRD or design doc and breaks it into vertical-slice issues, each scoped to one pull request. Each issue has a title, description, acceptance criteria, and rough size estimate.Why it matters: “I’ll figure out the tasks as I go” is how solo projects die at 70% complete. This command turns a plan into a backlog you can chew through one PR at a time.Pairs perfectly with /to-prd. Run/to-prd, then /to-issues. You go from a fuzzy idea to a tracked backlog in under five minutes.8. /research — Gathers context and prior art before touching codeWhat it does: Before you build, Claude searches the codebase, reads relevant docs, checks how similar problems were solved in the past, and surfaces prior art — internal and external. Then it writes a one-page brief.Why it matters: Half the bugs in any codebase are someone re-implementing a function that already exists three folders away. The other half are people using the wrong library because they did not know the right one existed. /research is the antidote.Example: You ask Claude to add caching. /research first finds that your codebase already has a cache/ module with a The withTTL helper points out that it is unused in the path you are working on, and recommends you extend the existing helper instead of pulling in node-cache.How to actually install theseThese are not built into Claude Code by default. They are skill files — markdown documents with frontmatter that live in either .claude/skills/ (per project) or ~/.claude/skills/ (global). You can:Write your own from scratch. Each one is roughly 30 to 80 lines of structured prompt.Install a community pack. The most maintained one right now is Matt Pocock’s skills repo on GitHub — it ships most of the eight above, plus about twenty others.Use a plugin like ZSL that bundles the engineering loop together.Once installed, you trigger them by typing / followed by the skill name in Claude Code. That's it.The real takeawayMost developers treat Claude like autocomplete. They type a request, get an answer, ship the answer, move on.The developers who get genuinely 5x output do not have a different Claude. They have a workflow layered on top of it — small, reusable prompts that encode how a senior engineer actually thinks. Spec before code. Test before implementation. Root cause before patch. Research before reinvention.The upgrade is not a better model. It is better input.Start with /grill-me. Add /tdd next week. By the end of the month, you will wonder how you ever shipped without them.I Stopped Asking Claude to “Write Code.” was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.