Tari Ibaba

Tari Ibaba is a software developer with years of experience building websites and apps. He has written extensively on a wide range of programming topics and has created dozens of apps and open-source libraries.

How the Wayfinder skill makes you build much faster without bugs

Wayfinder is an amazing Claude Code skill that helps us plan complex software projects with AI agents without wasting hours rewriting code built on wrong assumptions.

Instead of asking an agent to generate an entire implementation plan upfront, Wayfinder breaks the planning process into smaller decisions that we can resolve across multiple agent sessions.

This gives us much greater clarity on our development goals and helps catch bad architectural decisions before they become expensive implementation problems.

How Wayfinder works

Let’s say we want to add subscription billing to our SaaS application. We could invoke the skill like this:

/wayfinder I want to add subscription billing so customers can subscribe to paid plans and manage their subscriptions.

Wayfinder defines this goal as our destination and creates a central issue called a map. It then creates decision tickets for questions like:

  • Which payment provider should we use?
  • Should customers get a free trial?
  • How should we handle failed payments?

Each ticket represents a question to answer rather than a feature to build. As we resolve these tickets, Wayfinder updates the map until we know enough to begin implementation.

Separates decisions from implementation to avoid costly reworks

Wayfinder makes a strict distinction between deciding what to build and actually building it.

For example, instead of asking an agent to implement subscription upgrades, we first resolve how upgrades should work. Should customers pay the difference immediately or wait until their next billing cycle?

Wayfinder explicitly forbids writing product code. Once we’ve resolved all the necessary decisions, we can use a skill like /to-spec to turn those decisions into a formal specification and a skill like /to-tickets to break the specification into actionable implementation tickets.

This saves us from spending hours reviewing and rewriting code built on wrong assumptions. Changing a decision in an issue is much cheaper than changing an architecture after implementation.

Uses fog of war to prevent misguided planning

We don’t always know every question we need to answer at the beginning of a project. Some questions only become clear after we’ve answered others.

Wayfinder handles this through a central issue labelled wayfinder:map with four sections:

  • Destination: Defines what we’re trying to achieve before creating tickets.
  • Decisions so far: Keeps a short summary of resolved decisions.
  • Not yet specified: Holds uncertainties we can’t yet turn into specific questions. This is the fog of war.
  • Out of scope: Defines what we’re not going to explore or build.

For example, choosing Stripe as our payment provider might reveal new questions about webhook handling and payment retries.

As we resolve tickets, the fog gradually clears and new decision tickets emerge.

This means we don’t have to figure everything out upfront or waste time reviewing speculative plans. We can focus on questions that matter right now without letting the agent expand the project beyond our original goals.

Low-resolution indexing to keep agents effective as projects grow

The longer we spend planning with an AI agent, the more information builds up in its context window.

Wayfinder handles this by treating the map as an index rather than a store.

Each decision lives in its own issue. The main map only contains a short summary and a link to the issue.

Fresh agent sessions read the map for orientation and open the specific tickets they need to work on.

This reduces unnecessary token usage and keeps agents focused on the problem at hand. It also means we can start fresh sessions or switch agents without repeatedly explaining previous decisions or losing hours of planning work.

Specialized sub-skill orchestration to reduce manual supervision

Not every decision ticket requires our direct involvement. Some need our judgment while others simply need technical research.

Wayfinder makes this distinction by classifying tickets as HITL (Human-in-the-Loop) or AFK (Away From Keyboard).

It uses specialized sub-skills to resolve different types of questions:

  • Grilling (HITL): Uses /grilling and /domain-modeling to interview us about things like subscription rules and pricing requirements.
  • Research (AFK): Uses /research to investigate things like which payment provider best fits our requirements. Multiple agents can carry out independent investigations in parallel.
  • Prototyping (HITL): Uses /prototype to build disposable experiments so we can evaluate ideas like different subscription management interfaces before committing to them.

This lets us resolve multiple uncertainties without personally working through every ticket.

We can leave agents to handle technical investigations while we focus on decisions that actually need our judgment. This helps us reach our destination faster without giving agents the freedom to invent business requirements.

Ubiquitous language with tracker agnosticism for seamless collaboration

Wayfinder uses a shared vocabulary built around terms like map, ticket, session and fog of war.

This follows the concept of ubiquitous language from Domain-Driven Design (DDD). It gives us and our agents a consistent mental model across sessions and handoffs.

Wayfinder also reads issue tracker configuration from docs/agents/issue-tracker.md instead of hardcoding a particular platform.

We can use GitHub Issues or GitLab or even local Markdown files.

This means we can bring Wayfinder into our existing development workflow without migrating to another project management tool. Our teammates and agents can work from the same persistent source of truth without relying on someone else’s chat history.

Wayfinder helps us spend less time correcting AI-generated assumptions and more time making decisions that move our projects forward. As writing code becomes cheaper, knowing what code to write becomes more valuable.

How the Wayfinder skill makes you build much faster without bugs Read More »

How the Caveman skill cuts token costs by 87%

This is one of the most powerful Claude Code skills for keeping your token costs as low as possible.

The Caveman Skill massively improves the precision and conciseness of all your agent responses — and it does this using the counterintuitive approach of telling your agent to act like a caveman.

It uses sophisticated prompt engineering and context optimization techniques to remove all the bloat from responses without sacrificing important technical details.

1. Persona anchoring: Spend far fewer tokens and less time reading

If you’ve ever told Claude to be brief, you’ve probably noticed how it slowly goes back to giving long responses. This is partly because AI models learn to be polite and conversational during post-training.

Caveman solves this through persona anchoring. Instead of giving Claude an abstract instruction to use fewer words, it gives Claude a concrete communication style: “talk like a smart caveman”.

The project’s original benchmarks reported an average output-token reduction of 65% and up to 87% in some examples.

But the goal isn’t to make Claude say performative things like “me think it not work” or deliberately use bad grammar. The skill cuts filler words and unnecessary greetings without touching important technical information like code blocks, commands, file paths and error messages.

Filler words cost twice — we pay both for the tokens Claude generates and for our time reading them.

So instead of giving you a long explanation about unnecessary React re-renders, Claude could say:

New object ref each render. Wrap in useMemo.

You spend less time reading responses and more time working on your code — all with lower token consumption.

2. Structured escape hatches: Avoid costly mistakes

One thing I particularly like about Caveman is how it handles situations where brevity can become a problem.

The skill tells Claude to temporarily switch back to normal English when dealing with:

  • Security warnings and irreversible actions.
  • Instructions where the order of steps matters.
  • Users who are confused or repeating questions.
  • Documentation and other content written outside the chat.
  • Questions where short phrases could cause misunderstandings.

If Claude is about to permanently delete your database, saving a few tokens should be the least of your concerns.

These escape hatches help us avoid misunderstandings and potentially costly mistakes without giving up the benefits of compression during everyday coding tasks.

This teaches us something important about designing AI skills: when you give an agent a rule, also tell it when to break that rule.

3. Tunable compression: Get the right amount of detail for every task

The /caveman command lets us choose how brief we want Claude to be.

  • Lite: Removes filler words and greetings while keeping normal grammar.
  • Full: Drops articles and unnecessary connecting words.
  • Ultra: Uses short fragments and compact expressions for maximum compression.
  • Wenyan: Uses Classical Chinese to explore greater linguistic compression.

Claude keeps using your chosen level until you change it or turn it off.

You can use lite mode when exploring an unfamiliar codebase and ultra mode when fixing routine bugs.

This lets you balance your need for detailed explanations with your token budget without constantly rewriting your prompts.

4. Input-side compression: Make your token budget last longer

Most token-saving techniques focus on reducing what AI models generate. Caveman also looks at what we feed them.

The /caveman-compress command compresses instruction files like CLAUDE.md and AGENTS.md.

These files tell our coding agents about our project architecture and coding conventions. They take up space in the context window whenever the agent loads them.

The project’s published examples show an average token reduction of around 46% across sample memory files.

You only need to compress these files once to benefit whenever Claude loads them again. This leaves more room in the context window for actual code and reduces recurring input overhead.

This is where Caveman moves beyond prompt engineering into context engineering.

5. Specialized sub-skills: Speed up everyday development workflows

Caveman also comes with specialized skills for common developer workflows.

/caveman-commit writes short Conventional Commit messages that make our Git history easier to scan and understand.

/caveman-review turns lengthy code reviews into actionable feedback like:

Plain text
L42: bug: user null. Add guard.

This helps us review large pull requests faster and focus on fixing problems rather than reading paragraphs of feedback.

/caveman-stats lets us track token consumption so we can better understand our usage and manage our token budget. Measuring actual savings still requires a reliable baseline.

What makes Caveman interesting isn’t the caveman persona itself but the amount of engineering thought behind such a simple idea. Instead of always looking for more powerful AI models, perhaps we should also explore how to get more value out of every token we use.

How the Caveman skill cuts token costs by 87% Read More »

How the Ponytail Skill saves token costs & boosts code quality

This is one of the most impactful skills/plugins you could upgrade Claude Code with.

Ponytail is an open-source plugin that’s designed to stop AI coding agents from wastefully overengineering your code.

It pushes Claude to reuse existing code and find the simplest solution possible without compromising quality or safety.

According to its official benchmarks, Ponytail delivers 53% less code, 45% fewer tokens and 26% lower costs while increasing the proportion of risky logic covered by tests from 68% to 97%.

You save on token costs, spend far less time cleaning up AI-generated code, and end up with smaller codebases that are much easier to understand and maintain.

The decision ladder: Build much more efficient and maintainable codebases

Ponytail gives Claude a strict decision ladder to follow before writing new code or installing dependencies:

  1. Does this feature even need to exist?
  2. Does the codebase already have something that solves it?
  3. Does the standard library provide it?
  4. Does the platform support it natively?
  5. Can an existing dependency handle it?
  6. Can Claude write it in one clean line?

Ponytail also sets hard safety boundaries. Its rules tell Claude not to sacrifice input validation at trust boundaries or error handling that prevents data loss. The same goes for security controls and accessibility basics.

By making Claude exhaust simpler options first, Ponytail helps you avoid dependency bloat and unnecessary abstractions. You end up with less code to review and debug without sacrificing essential functionality.

Hook-enforced instructions: Get comprehensive and reliable skill activation

Standard Claude Code skills rely on Claude to decide when to use them. But independent testing by JetBrains found that Claude often ignores these skills even when they’re installed.

Ponytail tackles this problem using Node.js lifecycle hooks that automatically inject its active rules at SessionStart and before each user turn.

It also passes these rules to any sub-agents Claude spawns. So when Claude delegates tasks or runs multiple agents in parallel, they all receive the same engineering instructions.

This means you don’t have to keep reminding Claude to avoid unnecessary complexity or worry as much about sub-agents ignoring your engineering preferences. You can spend more time building features and less time managing your agents.

Adjustable aggression modes: Control how Claude approaches your code

You can control how aggressively Ponytail simplifies your code through four modes:

  • /ponytail lite: Claude follows your architectural decisions but suggests simpler alternatives.
  • /ponytail full: The default mode. Claude follows the decision ladder and picks the smallest viable solution.
  • /ponytail ultra: Claude aggressively challenges speculative features and unnecessary abstractions while actively favoring code deletion.
  • /ponytail off: Turns off Ponytail’s rules.

The creator describes Ultra mode as being “for when the codebase has wronged you personally.”

You can switch modes mid-session without restarting Claude Code. This gives you the freedom to preserve intentional architectural decisions when building features or take a more aggressive approach when cleaning up technical debt.

Structured technical debt tracking: Know exactly when your code needs an upgrade

Ponytail recognizes that the simplest solution today might not be good enough tomorrow.

When Claude takes a deliberate shortcut, Ponytail tells it to leave a standardized ponytail comment that documents two things:

  • The ceiling: The limit within which the current implementation works well.
  • The upgrade trigger: The condition that tells you it’s time to replace it.

Running /ponytail-debt scans your repository and turns these comments into a read-only technical debt ledger. It also flags shortcuts that lack clear upgrade triggers.

This lets you ship faster without prematurely optimizing your code or losing track of its limitations. You know what needs upgrading and when it actually needs your attention.

But JetBrains found that Claude sometimes forgets to write these comments. So you might still need to remind it.

Context-aware reviews and local analytics: Catch problems early and track your AI spending

Ponytail gives us two commands for reviewing our codebases.

/ponytail-review reads the surrounding code rather than checking Git diffs in isolation. It looks for missing tests and security flaws alongside performance bottlenecks and unnecessary abstractions.

/ponytail-audit maps entry points and data flow across your entire repository to help you prioritize what to fix or delete.

These commands help you catch problems before they reach production and spend your refactoring time where it matters most.

Ponytail also gives us a native UI status band above the Claude Code prompt with live token usage and costs. You can quickly switch intensity modes or launch reviews and audits.

Its local-first analytics dashboard stores data under ~/.config/ponytail/band/. You can import historical sessions using /ponytail band import and track costs and agent runtime alongside testing activity across projects.

This gives you a clearer picture of where your tokens and money go without having to manually analyze session logs.

Writing code with AI is already easy, but keeping that code clean and maintainable as your application grows is the harder part. Ponytail helps us tackle that problem while giving us more control over the quality and cost of AI-generated code.

How the Ponytail Skill saves token costs & boosts code quality Read More »

How the I Have ADHD Skill saves tokens & boosts your productivity

This Skill is a game changer for Claude Code.

The I Have ADHD Skill massively upgrades the quality and clarity of Claude’s responses by encouraging it to communicate in a much more direct, structured, and action-oriented way.

It removes all the fluff and goes straight to the point — saving you so much in token costs and improving your mental model of the task at hand — which lets you move faster and get things done.

The crucial problem it’s here to solve

AI coding assistants often answer simple questions with long explanations before getting to the solution.

That style can be useful for learning — but when you’re debugging, shipping features, or reviewing code, it creates unnecessary friction.

The “I Have ADHD” skill solves that by encouraging Claude to prioritize the next action instead of lengthy context.

How the Skill works

The skill dramatically changes how Claude structures its responses.

Instead of long introductions, it’s encouraged to:

  • Start with the immediate next step.
  • Break work into numbered tasks.
  • Remove unnecessary filler.
  • Show progress throughout a task.
  • Finish with one clear next action.

You end up getting an AI that isn’t just intelligent, but also extremely easy to work with.

Why so many developers love it

The project quickly gained over 10,000 stars on GitHub within days of launch.

Because it addresses a frustration many developers have long had with AI assistants: too much explanation and not enough execution.

Whether you’re debugging, refactoring, or navigating a new codebase, concise responses reduce cognitive load and help you stay focused.

How to get started with the I Have ADHD skill

Install it easily with these commands:

JavaScript
claude plugin marketplace add ayghri/i-have-adhd claude plugin install i-have-adhd@i-have-adhd

Then type /i-have-adhd in a Claude Code session to activate it — all the responses will be structured according to the rules of the skill for the rest of the session:

How to use it to transform your workflow (5 practical use cases)

1. Debugging production issues

Without the skill

Plain text
There are several reasons your API could be returning a 500 error. Let's begin by understanding how Express middleware works before we explore possible causes...

With the skill

Plain text
1. Check server logs. 2. Verify DATABASE_URL. 3. Run:    curl http://localhost:3000/health 4. Report the output.

Why it matters: When production is down, you need the next action — not a lesson.

2. Refactoring legacy code

Without the skill

Plain text
There are multiple approaches to refactoring this codebase. Before making changes, let's discuss architecture, design patterns, and technical debt...

With the skill

Plain text
Plan: ✓ Identify dead code ✓ Extract duplicate logic □ Add tests □ Rename interfaces Current step: Extract duplicate validation logic.

Why it matters: Breaking work into milestones makes large refactors feel manageable.

3. Building large features

Without the skill

Plain text
Let's build a complete authentication system. First, here's the architecture... [Hundreds of lines covering models, JWTs, middleware, RBAC, testing, deployment, and security.]

With the skill

Plain text
Phase 1 ✓ User model ✓ Login endpoint Phase 2 □ JWT middleware □ Refresh tokens Phase 3 □ Role middleware □ Permissions

Why it matters: You stay focused on one phase instead of being overwhelmed by the entire implementation.

4. Learning an unfamiliar codebase

Without the skill

Plain text
This project uses a layered architecture with controllers, services, repositories, middleware, utilities, shared modules, and configuration files... Let's walk through every directory.

With the skill

Read these first:

Plain text
1. routes.ts 2. auth.ts 3. middleware.ts Ignore everything else for now.

Why it matters: You can understand the project faster by focusing only on the files that matter.

5. Reviewing pull requests

Without the skill

Plain text
Overall this is a solid pull request. I noticed a few issues of varying importance, so let's review each one in detail...

With the skill

Plain text
Critical - SQL injection risk Important - Missing null check Minor - Rename variable Approve after fixing the first two.

Why it matters: Prioritized feedback makes reviews quicker to understand and easier to act on.

Final thoughts

You don’t just need a smarter assistant — you need an assistant that helps you get things done faster.

Sometimes the biggest productivity improvement isn’t giving an AI more knowledge. It’s simply teaching it to get to the point.

How the I Have ADHD Skill saves tokens & boosts your productivity Read More »

7 Claude Code commands that help you keep track of everything

Claude Code can explore your entire codebase, edit hundreds of files, run dozens of commands, and handle all sorts of tasks in the background.

This autonomy is useful, but it also creates a simple problem: keeping track of what’s happening.

How much are you using? What exactly is running in the background? Is your Claude Code setup even working properly?

Fortunately, Claude Code has several slash commands that give you visibility into your sessions. Here are seven worth knowing.

1. /status — Check your current setup

When you want a quick overview of your Claude Code environment, run:

/status

This opens status information about your current setup, including details such as the Claude Code version, model, account, and connectivity.

It’s especially useful after changing models, updating Claude Code, or switching environments. Before debugging your project, it can be worth confirming exactly what setup you’re working with.

2. /usage — Monitor your usage

Claude Code sessions can become surprisingly large. An agent might inspect dozens of files, run tests repeatedly, and iterate on a problem before finishing.

Run:

/usage

to see information about your Claude Code usage, limits, costs, and activity.

This gives you a better idea of how much you’re consuming during longer sessions instead of discovering it only when you approach a limit.

Claude Code also supports /cost as an alias for /usage, so older workflows that use /cost still work.

3. /tasks — See what’s running

Claude Code can perform work in the background while you continue with other things.

To see that work, run:

/tasks

This displays background tasks associated with your session and lets you manage them.

It becomes especially useful when you start using Claude Code more like an agent than a chatbot. If you have multiple processes running and can’t remember what Claude started, /tasks gives you a quick overview.

It’s like small task manager inside Claude Code.

4. /statusline — Keep useful information visible

Some information is useful enough that you shouldn’t need to repeatedly ask for it.

That’s where /statusline comes in.

It lets you configure Claude Code’s terminal status line so important session information remains visible while you work.

Rather than interrupting your workflow to check your environment, you can keep the details you care about directly in your terminal.

It’s a small feature, but good monitoring often works best when you barely have to think about it.

5. /stats — Review your usage patterns

Run:

/stats

to jump into statistics about your Claude Code activity.

In current versions, /stats is an alias for /usage that opens its statistics view.

It’s useful when you want to step back from an individual session and understand your broader usage patterns rather than focusing only on what Claude is doing right now.

6. /insights — Understand how you work

/usage tells you how much you’re using Claude Code. /insights helps you understand how you’re using it.

Run:

/insights

to generate an analysis of your Claude Code sessions, including your projects, interaction patterns, and areas where you commonly encounter friction.

For frequent Claude Code users, this can reveal recurring habits: what you delegate, where you get stuck, and how your agent-assisted workflow is evolving.

7. /doctor — Check Claude Code’s health

Sometimes your code isn’t the problem. Your setup is.

Run:

/doctor

to diagnose your Claude Code installation and configuration.

It checks for potential problems with the environment and settings, helping you identify issues that could cause unexpected behavior.

So before spending half an hour debugging a mysterious Claude Code problem, try /doctor.

More autonomy needs more visibility

The more work you hand to coding agents, the more important it is to be able to easily keep track of everything.

Commands like /status, /usage, /tasks, /statusline, /stats, /insights, and /doctor don’t write code for you.

Instead, they help you understand what Claude Code is doing, what’s running, how much you’re using, and whether everything is working correctly.

And as coding agents become more autonomous, this information becomes increasingly valuable.

7 Claude Code commands that help you keep track of everything Read More »

Claude Code just got two game-changing new commands

Anthropic just released an incredible feature that comes with two new Claude Code commands.

The new Claude Ship feature is such an essential tool to have in every development workflow.

It massively elevates your building and deployment speed by automatically reviewing, fixing, and approving all your changes and pull requests based on your precise preferences.

It reviews all potential bugs in your code and auto-fixes all the typical merge conflicts that could exist across the different branches.

And with the two new commands it comes with, you can start taking advantage of this powerful feature directly from Claude Code right now.

Three-agent GitHub pipeline: Spend less time reviewing and fixing PRs

Claude Ship brings together three specialized agents:

Code Review

Code Review examines PR diffs against the wider codebase using multi-lens verification to catch logic bugs and regressions. It verifies its findings before posting severity-ranked inline comments. You can choose between Quick, Standard and Deep review levels.

Demo: Claude Code Review in action:

PR Steward

PR Steward automatically pushes commits to fix failing CI checks and resolve merge conflicts. It also addresses review feedback and provides a summary of every commit with rollback instructions. You can stop it anytime using @claude stop.

Demo: Claude PR Steward in action:

Claude Approvals

Claude Approvals automatically approves low-risk changes based on your team’s policies and sends sensitive changes to human reviewers.

Demo: Claude Approvals in action:

Together, these agents handle much of the repetitive work that comes with managing PRs. We can spend less time fixing routine issues and waiting for reviews and more time building features.

Together these agents handle much of the repetitive work that comes with managing PRs. We can spend less time fixing routine issues and waiting for reviews and more time building features.

Sophisticated PR approval rules: Get routine changes approved faster

Claude Approvals takes GitHub’s traditional CODEOWNERS mechanism a step further.

Instead of defining approval requirements based only on file paths, you can write rules in plain English and use Code Review findings to determine which changes need human approval. You define these rules in a version-controlled .claude/approvals.yml file.

Demo: Example Claude approvals.yml file:

You could automatically approve simple changes like documentation updates and UI adjustments while requiring human reviews for authentication or payment logic.

Claude reads the policy from the default branch. So a PR that changes the approval rules cannot use its own proposed rules to approve itself.

You can also use observe-only mode to see how Claude makes approval decisions before connecting it to GitHub branch protection rules.

This means we no longer have to wait for a colleague to approve every minor change while still keeping human oversight where it matters.

The new /ship command: Ship features without constant context switching

Anthropic also gave us the /ship command in Claude Code and the desktop app for eligible Pro, Max and Ultra subscribers.

Once you run /ship, Claude will:

  • Commit your local changes.
  • Push your branch to GitHub.
  • Open a PR using the gh CLI.
  • Run an initial code review.
  • Monitor and fix CI failures and merge conflicts.
  • Address incoming review feedback.

Claude can keep watching your PR for up to seven days as long as your local environment remains active.

Imagine finishing a feature and moving on to the next one without constantly checking GitHub or switching back to an old branch to fix a failing test.

Unlike the GitHub-hosted Claude Ship agents that use separate token-based billing, /ship uses your existing Claude Code subscription allowance.

Once everything is ready, you can merge the PR according to your repository’s requirements.

The /steward command: Maintain old PRs while building new features

What if you’ve already opened a pull request and just want Claude to maintain it?

That’s where /steward comes in.

It skips commit creation and PR creation as well as the initial code review. Instead, Claude immediately starts watching your existing PR.

It fixes failing CI checks and resolves merge conflicts while addressing incoming review comments. You can also include feedback from additional review bots or restart a previous watch session.

This is particularly useful when you’re working on multiple features at once. You don’t have to interrupt your current work every time an older PR needs attention.

Separation of duties: Automate more without losing control

Anthropic built clear boundaries between its agents.

PR Steward can modify code and push commits but cannot approve or merge its own work. Claude Approvals can approve changes based on your team’s policies but cannot modify code.

Your team can also choose which agents run on each repository and set monthly spending limits. Existing GitHub branch protections and required checks remain in place.

This lets us automate repetitive tasks without handing over complete control of our codebase to AI.

AI coding agents made writing software faster and Claude Ship aims to make everything that happens after writing it faster too. For us developers, that means less time managing pull requests and more time solving problems and building products.

Claude Code just got two game-changing new commands Read More »

How the /rewind Claude command elevates your productivity

This is one of the most essential Claude Code commands to use in a daily workflow.

It lets you quickly go back to a previous point in the code or conversation without having to use a tool like Git or starting afresh.

And it even has more sophisticated abilities than just undoing code or restoring a conversation.

You get much more flexibility in your workflow for quick experimentation or effortless change of plans.

Multiple restore options let you keep the exact parts that worked

When you run /rewind and pick a checkpoint, Claude Code gives you three restore options.

Restore Code and Conversation takes both your files and chat back to that point.

Use this when the whole attempt went wrong. You can throw away the bad code and the reasoning that led to it.

Restore Code Only is more interesting.

Claude puts the files back but keeps the current conversation. So Claude can still know what it learned during the failed attempt — even though the code itself is gone.

Maybe it found an edge case. Maybe it learned that an API works differently than expected.

You can keep that knowledge and try a better approach.

Restore Conversation Only does the opposite.

Your changed files stay in place. But Claude’s conversation goes back to the earlier checkpoint.

This works well when you like the code but the chat has become messy. You get a cleaner starting point without losing the work already sitting in your files.

So /rewind isn’t just undo — it lets you choose which state you want to keep.

Context summaries keep long coding sessions useful

The /rewind menu isn’t only about undoing things.

It also has “Summarize from here” and “Summarize up to here” for when the context gets long.

These options don’t change your files.

Instead they compress parts of your conversation into a shorter summary. This helps when a long coding session starts filling Claude’s context window.

Maybe you spent 30 minutes debugging an approach that didn’t work.

Claude doesn’t need every message from that process. It may only need to know what you discovered.

You can summarize that section and keep moving.

So /rewind is also a context management tool — not just a recovery tool.

Restored prompts make it faster to fix a bad instruction

Claude Code also saves you from retyping your prompt.

When you restore conversation state, it puts the original prompt from that checkpoint back into the input box.

Claude Code restores the original prompt on rewind:

Say you originally wrote:

Refactor the payment service so retries happen at the transport layer.

Claude tries it. You inspect the result and realize your prompt was too vague.

Rewind and the prompt comes back. Now you can edit it with clearer rules and try again.

The workflow becomes simple:

Prompt → Try → Inspect → Rewind → Edit → Try Again

It’s a small feature — but it makes experimenting much smoother.

Automatic checkpoints let you experiment without managing Git

Claude Code creates checkpoints as it edits files.

This works separately from Git. You don’t need to make a commit before every experiment or create temporary branches just so you have somewhere to return to.

You can ask Claude to try something.

Don’t like it? Rewind.

Then try something else.

This doesn’t replace Git. Git still gives you long-term project history and branches.

/rewind solves a smaller problem — quickly recovering from Claude’s changes while you’re working.

Key limitation to be aware of

There is one big limit.

/rewind tracks changes made through Claude’s file editing tools. It can’t reliably undo side effects from shell commands.

Think about commands like:

Shell
rm file.txt mv old/ new/ npm install

The same warning applies to database migrations and deployments.

If Claude runs a migration that changes your database, /rewind can’t magically return that database to its old state.

So don’t treat checkpoints as a full backup system.

They are a safety net for Claude’s tracked edits.

And that’s what makes /rewind useful.

You can try an idea. Keep what Claude learned. Throw away what didn’t work — then take another shot.

As coding agents make bigger changes to our projects, being able to recover quickly may matter almost as much as getting the first attempt right.

How the /rewind Claude command elevates your productivity Read More »

How “Karpathy Skills” massively improve Claude Code’s accuracy

Karpathy Skills is a powerful set of strict rules and guidelines that drastically improve the accuracy and reliability of your coding agents.

It gives your agent a set of guidelines based on Andrej Karpathy’s observations about LLM coding behavior — tackling common problems like overengineering, unnecessary code changes, hidden assumptions and unverified implementations.

You get much higher-quality code and stop wasting so much time and tokens on re-prompting your agents for better results.

Declarative vs. imperative goals: Code that actually works

Instead of telling the AI exactly how to do something, tell it what success looks like and let it verify its own work.

Imperative instruction:

Add a login check to the API.

Declarative instruction:

Write a test that fails when an unauthorized user tries to use the API. Then modify the code until that test passes.

The first instruction tells the AI what to do. The second gives it a measurable goal to work toward.

This creates a verification loop:

Define success → Implement → Test → Evaluate → Refine.

Instead of writing code and assuming it works, the AI keeps testing and refining its implementation against clear acceptance criteria.

It essentially takes on part of the role of a QA engineer. We still need to review its work, but the AI now has a better way to know when a task is actually complete.

The surgical strike rule: Smaller diffs and easier code reviews

AI coding agents have a habit of cleaning up code as they work. They fix unrelated typos or change formatting in nearby files without you asking them to.

Karpathy’s guidelines push against this behavior.

The rule: Every changed line should trace directly to your request.

The AI should follow your existing coding conventions and only touch the code it needs to complete the task. If it finds an unrelated problem, it should tell you about it rather than fix it on its own.

This helps prevent what we call diff bloat. When reviewing an AI-generated PR, you shouldn’t have to dig through hundreds of lines of unnecessary changes to find the actual logic changes.

The fewer unnecessary changes the AI makes, the easier it is for us to review the code and avoid regressions.

Mandatory confusion injection: Less guesswork and rework

When an AI is 80% sure about what you want, it often guesses the remaining 20% and starts coding.

Karpathy’s approach flips this behavior.

The rule: Don’t assume. Don’t hide confusion. Surface tradeoffs.

If the AI doesn’t fully understand your requirements, it should make its uncertainty known and ask questions. It should also push back when it sees a simpler way to solve the problem.

The idea behind confusion injection isn’t to make the AI confused. It’s to stop it from hiding its confusion.

We want an engineering partner that challenges our assumptions rather than a yes-man that agrees with everything we say and makes up requirements along the way.

A quick clarification can save us hours of unnecessary work.

Anti-future-proofing: Simpler code and less technical debt

AI coding agents love to overengineer things. They add unnecessary abstractions and build flexibility into software for requirements that don’t even exist yet.

The rule: If 200 lines could be 50, rewrite it.

Karpathy’s guidelines discourage abstractions for single-use code and speculative features. They also discourage unnecessary configurability and error handling for impossible scenarios.

This is essentially YAGNI (You Aren’t Gonna Need It) applied to AI coding agents.

As AI makes writing code cheaper, we need to pay more attention to the cost of maintaining it.

This principle helps us fight AI slop and keeps our codebases readable without filling them with unnecessary just-in-case logic.

Just because AI can write more code doesn’t mean it should.

Self-improving memory: Fewer repeated mistakes across sessions

Another useful practice that builds on Karpathy’s four core principles is creating a Learnings File (learnings.md).

Whenever the AI makes a meaningful mistake or you correct it, instruct it to record that lesson in the file. The entry should explain what went wrong and what the AI should do differently next time.

When you start a new session, instruct the AI to read this file before it starts working.

This creates a continuous learning loop:

Make a mistake → Receive correction → Record the lesson → Apply it in future sessions.

We’re not retraining the model. We’re giving it persistent context that survives beyond a single chat window.

Over time, this file becomes an engineering journal that helps the AI learn your project’s conventions and avoid repeating past mistakes.

Karpathy Skills helps us keep the speed of AI-assisted development without sacrificing engineering discipline. The goal isn’t to get AI to write more code but to get it to make better engineering decisions.

How “Karpathy Skills” massively improve Claude Code’s accuracy Read More »

How the To Spec Skill makes you build with high speed & accuracy

This is such an essential Claude Code skill to have in every coding workflow.

The To Spec skill massively elevates your development speed — especially when it comes to fleshing out a detailed, well-structured, and unambiguous set of requirements for a new feature or system.

It turns your conversations with AI coding agents directly into well-defined specifications that other agents can use to build your features.

And it even goes beyond this to handle other parts of the software dev lifecycle.

Future-proof specs that don’t crumble after refactoring

Unskilled AI-generated plans sometimes tell you exactly which files to edit — which makes the plans tightly coupled to your exact implementation.

Like if you’re adding subscription upgrades to your app. An agent might write:

Plain text
Update src/services/subscriptionService.ts to handle upgrades.

But what if you move billing into another module? That instruction becomes useless.

To Spec avoids unnecessary file paths and code snippets. Instead, it records the actual planned high-level decisions:

Plain text
Give users their upgraded features immediately and charge them only for the remaining billing period.

Now you can reorganize your code in the future without rewriting the spec.

The skill focuses on the intended behavior of your software rather than the internal steps needed to achieve it.

This also gives the implementing agent more flexibility to explore your current codebase and find the most suitable implementation. It doesn’t have to blindly follow technical instructions that may no longer make sense.

The skill still includes exact schemas or data structures when you’ve already agreed on them and they make things clearer.

Behavior-focused testing boundaries that save you from constantly rewriting tests

Before writing your spec, To Spec suggests which parts of your feature you should test. It calls these testing boundaries.

The skill prefers testing observable behavior through public interfaces rather than testing internal implementation details.

This means your tests focus on whether your software actually works as intended — not whether it works in a particular way internally.

The skill asks you to approve this testing approach first. It also prefers as few testing boundaries as possible, ideally one.

This helps prevent AI agents from generating unnecessarily large test suites with tightly coupled tests that make future development harder.

You can change your internal code without constantly fixing tests.

And since the testing decisions are part of the spec, other AI agents know exactly where to test the feature and what behavior to verify.

Automatic conversation synthesis that eliminates repetitive questions and speeds up planning

To Spec explicitly tells the AI:

Do NOT interview the user; just synthesize what you already know.

The skill goes through your existing conversation and extracts the requirements, constraints, and technical decisions you’ve already established.

It consolidates decisions scattered across multiple messages into a single structured document. You don’t have to manually gather everything you’ve discussed throughout a long planning session.

It also separates the important decisions from the exploratory discussions that led to them — keeping the spec focused on what you’ve actually agreed to build.

You make decisions during planning. The skill records them afterward.

This creates a much smoother transition from exploring a feature to preparing it for implementation.

No repeating yourself. No reopening questions you’ve already answered.

Codebase-aware specifications that prevent AI agents from building the wrong features

AI can build the wrong thing simply because it misunderstands your project’s terms.

This becomes increasingly problematic as your codebase grows and develops its own domain-specific vocabulary and architectural conventions.

To Spec checks files like GLOSSARY.md and Architectural Decision Records (ADRs) to learn your project’s terms and technical rules.

The glossary helps it use consistent terminology throughout the spec. The ADRs give it context about the architectural decisions your project already follows.

So the specification doesn’t exist in isolation — it reflects the language and established decisions of your actual codebase.

This reduces the chances of another AI agent misinterpreting your requirements or introducing an implementation that conflicts with your existing architecture.

It also creates greater consistency across features developed by different AI agents over time.

Automated issue publishing that lets AI agents move seamlessly from planning to implementation

Most AI-generated specs sit in chat until you copy them into your issue tracker.

To Spec can publish them directly to:

  • GitHub Issues.
  • Linear.
  • Local Markdown files under .scratch/.

The skill can also add the ready-for-agent label to the issue so another AI agent can identify it as ready for the next stage of development.

This creates a persistent source of requirements outside your current conversation. Other agents can work with the spec without needing your original chat history.

It also makes it much easier to separate planning from implementation across different AI sessions.

You can finish planning multiple features and have their specifications ready for other agents to pick up independently.

You save yourself the copy-and-paste work. And the next agent gets the decisions it needs without another long explanation.

The magic of To Spec isn’t simply writing specs. It’s making sure your decisions survive the journey from planning to implementation.

Less repetition, fewer misunderstandings, stronger tests, and smoother handoffs. That’s what makes it worth using.

How the To Spec Skill makes you build with high speed & accuracy Read More »

How the /verify command eliminates all bugs from

This is one of the most essential built-in Claude Code skills to integrate into your workflow.

The /verify command runs comprehensive code checks and helps you fix errors using a sophisticated verification loop.

It also automatically checks your code against project rules and security standards before any deployment.

Far fewer bugs slip through. We spend less time fixing small mistakes and get clear seamless proof that our code works before we ship it.

Self-healing verification loops that catch and fix bugs automatically

The /verify command works using a powerful four-stage loop:

  1. Check: Claude runs tests and looks for errors.
  2. Find: It identifies what went wrong.
  3. Fix: It attempts to correct the problem.
  4. Repeat: It runs the checks again.

The loop continues until the checks pass or Claude reaches a problem it can’t solve.

The loop continues until the checks pass or Claude reaches a problem it can’t solve.

And we’re not limited to unit tests here. We can include type checking, linting, integration tests and build validation in the verification process.

This is especially useful because fixing one error can easily introduce another somewhere else in the codebase.

Imagine we’ve refactored an authentication module. The login tests fail because a function returns the wrong data type.

With /verify, Claude can identify the error, fix the function and rerun the tests.

But suppose that fix breaks another function that depends on the original return type. Claude can detect this new problem during the next verification cycle and attempt to fix it too.

We no longer need to manually copy error messages into Claude or repeatedly ask it to check whether its latest fix works.

We spend less time chasing bugs and more time building features.

Automated security reviews that keep your code aligned with project rules

Our code can pass every test and still break important project rules.

Rules like:

  • Preventing duplicate charges when payments are retried.
  • Keeping each organization’s data separate in a shared database.
  • Updating related database records in a single transaction.
  • Keeping existing API clients working after an API update.
  • Clearing cached data whenever the original data changes.

We can document these requirements in docs/security-policy.md and ask /verify to check changes against them.

This essentially gives us an additional layer of verification that goes beyond what our existing tests cover.

The same approach works for architectural rules. If our project requires all database operations to go through a repository layer, Claude can check whether newly generated code bypasses that layer.

We can also add automated security tools for stronger protection — like dependency vulnerability scanners and static analysis tools.

Combining these deterministic checks with Claude’s contextual understanding helps us catch problems that either approach might miss on its own.

Test integrity checks that prevent AI agents from hiding failures

Green checkmarks don’t always mean our code works.

Sometimes Claude might make failing tests pass by:

  • Removing important assertions.
  • Weakening test expectations.
  • Skipping failing tests.
  • Changing expected values to match incorrect behavior.
  • Mocking the very functionality a test is supposed to verify.

We can also instruct Claude to compare modified tests against their previous versions and explain why each modification was necessary.

Of course, changing tests isn’t always a bad thing. When we intentionally change a feature’s behavior, we may need to update its tests too.

The important thing is to distinguish legitimate test updates from changes that simply hide bugs.

This protects our tests from becoming meaningless just to produce passing results — especially during long autonomous coding sessions where we’re not reviewing every single change.

Custom skill integration that makes verification effortless and consistent

It’s easy to forget verification when we’re rushing to finish a feature.

We can solve this by making /verify part of a custom Claude Code skill.

A refactoring skill could:

  1. Refactor the requested code.
  2. Run /verify.
  3. Fix reported failures.
  4. Run the checks again.
  5. Summarize the results.

Say we’re cleaning up src/services/payment.ts.

Instead of remembering to test everything afterward, we use a custom skill that includes /verify. Claude checks whether the payment calculations still work before finishing.

This makes verification a regular habit rather than an extra task.

Evidence-based verification reports that prove your code actually works

We’ve all seen Claude announce that a task is complete and everything works.

But where’s the proof?

With /verify, we can ask for actual results from tests and code checks.

After adding a checkout feature, we might see:

Plain text
TypeScript: Passed ESLint: 0 errors Unit tests: 142 passed Integration tests: 18 passed Test integrity: No weakened tests found

These are sample results. The available checks depend on our project and how we configure /verify.

If something fails or Claude can’t run a check, we should see that too.

This makes code reviews easier because we can quickly see:

  • What was tested.
  • What passed.
  • What still needs attention.

Claude Code’s /verify helps us catch bugs, follow project rules and build confidence in AI-generated code.

Instead of simply trusting Claude when it says everything works, we can ask it to show us the evidence.

How the /verify command eliminates all bugs from Read More »