2026-06-28

Claude Code Productivity Tips: Ship Features Faster in 2026

Practical Claude Code productivity tips for 2026: a strong CLAUDE.md, custom slash commands, subagents, hooks, plan mode, and MCP servers that save hours.

Claude Code Productivity Tips: Ship Features Faster in 2026

Most people slow Claude Code down without realizing it. They paste a vague request, watch it wander, then re-explain the same project facts ten times in one session. The tool is fast. The setup around it is usually the bottleneck.

This guide is a working developer's list of habits that pay off every single day: a CLAUDE.md that answers questions before you ask them, slash commands you actually reuse, subagents for parallel work, hooks for the boring steps, and a diff review that catches problems before they reach main.

Last updated: June 28, 2026

Quick answer: what actually moves the needle

If you only change five things this week, change these:

  1. Write a real CLAUDE.md so Claude stops guessing your stack, commands, and gotchas.
  2. Turn repeated prompts into custom slash commands and skills.
  3. Use plan mode for anything that touches more than two files.
  4. Hand off independent work to subagents instead of doing it sequentially.
  5. Read every diff before you let it commit.

Everything below is the longer version, with the exact setup and a concrete end-to-end example. The official Claude Code documentation and Anthropic's Claude Code best practices cover the underlying features in depth.

What goes in a great CLAUDE.md?

CLAUDE.md is the first file Claude reads in a session. A good one removes the back-and-forth where you keep re-stating obvious project facts. Keep it short and high-signal — it is loaded into context every time, so bloat costs you.

Cover the things you would tell a new hire on day one:

  • Stack and versions — framework, language, database, and any version that breaks training-data assumptions.
  • Commands — how to run, build, test, and lint, copied exactly as you type them.
  • Architecture map — what lives in which directory, so edits land in the right place.
  • Gotchas — the non-obvious rules: which port a service uses, which files are generated, what must never be committed.
  • Conventions — naming, formatting, and the libraries you prefer over the obvious default.
## Project: checkout-service

## Commands
- Dev:   make dev
- Test:  pytest -q
- Lint:  ruff check .

## Architecture
- app/api/      HTTP routes
- app/core/     business logic
- app/models/   SQLAlchemy models

## Gotchas
- Migrations are auto-generated — never hand-edit app/models/_gen.py
- Secrets live in .env (gitignored); never paste real keys into prompts

Update CLAUDE.md the moment Claude makes the same mistake twice. That one habit compounds faster than any prompt trick. The Claude Code ultimate guide walks through a full configuration if you want the deep version.

How do custom slash commands and skills save time?

Any prompt you type more than twice should be a slash command. A command is just a Markdown file in .claude/commands/ — Claude runs its contents when you call the name.

<!-- .claude/commands/fix-tests.md -->
Run the test suite. For each failure, find the root cause,
fix it, and re-run until everything passes. Show the final diff.

Call it with /fix-tests. No more retyping the same paragraph. You can pass arguments, chain steps, and keep a small library of these per repo.

Close-up of code on a dark editor screen, the kind of output Claude Code produces in the terminal

Skills go one step further: they bundle instructions, scripts, and reference files that Claude loads only when a task matches. That keeps your base context lean while still giving Claude deep, on-demand know-how for a specific job. The guide on Claude Code skills shows how to structure one so it triggers at the right moment.

Good candidates to codify:

  • A release checklist (bump version, update changelog, tag, push).
  • A security pass over a diff.
  • Your team's PR description format.
  • A scaffold for a new module that follows house conventions.

Run parallel work with subagents

The biggest single speedup is refusing to do independent tasks one at a time. When two pieces of work do not share state, hand each to a subagent and let them run together.

A subagent starts with a clean context, does its job, and reports back a summary — it does not pollute your main session with every file it read. That makes it ideal for fan-out work:

  • One agent writes the API endpoint while another writes its tests.
  • One agent migrates a directory while another updates the docs.
  • A dedicated review agent reads a diff while you keep building.

The catch: subagents are great for parallel and isolated tasks, not for work that needs constant shared context. Use them when the pieces are genuinely independent. Claude Code subagents for team automation covers when delegation pays off and when it just adds overhead.

Automate the boring parts with hooks

Hooks run your own shell commands at fixed points in Claude's loop — for example, after it edits a file or before a session ends. They are deterministic: the harness runs them, not the model, so they fire every time.

Common, high-value hooks:

  • Run the formatter and linter after any file write, so code is always clean.
  • Block edits to protected paths like secrets/ or generated files.
  • Run a quick smoke test before a session stops.
  • Log every command for an audit trail on shared machines.
{
  "hooks": {
    "PostToolUse": [
      { "matcher": "Edit|Write", "command": "ruff format ." }
    ]
  }
}

Hooks turn "please remember to lint" into something that just happens. You stop policing the model and let the pipeline enforce the rule.

Plan mode, /clear, and keeping context lean

Open notebook with a handwritten checklist beside a laptop on a tidy desk

Two free habits prevent most wasted runs.

Plan mode first. For anything beyond a one-line fix, ask for a plan before any edits. You read the approach, correct the wrong assumption, then approve. Catching a bad plan costs one message; unwinding twelve wrong edits costs your afternoon.

Manage context deliberately. A long session fills with stale files and dead ends, which makes answers worse and slower. When you switch tasks, run /clear to start fresh. When you want to preserve a thread, ask for a short summary first, then clear. Treat context like a workbench: clear it between jobs instead of working around the clutter.

A few more context habits worth keeping:

  • Attach only the files that matter to the current task, not the whole directory.
  • Start a new session per feature rather than one marathon thread.
  • Keep CLAUDE.md tight so it is not eating your context budget.

Should you use MCP servers, and when?

Model Context Protocol (MCP) lets Claude Code talk to outside systems — GitHub, a database, an issue tracker, internal APIs — through one standard interface. It is the difference between describing your CI logs and letting Claude read them directly.

Connect an MCP server when the work needs live, external data:

  • Read and comment on pull requests without leaving the terminal.
  • Query a staging database to reproduce a bug.
  • Pull ticket details so a fix matches the actual requirement.

Skip MCP when a plain file or a piped command would do — every connected server is one more thing to configure and secure. The Claude Code MCP integration guide and the official Model Context Protocol site explain setup and the security trade-offs. Grant the narrowest scope that gets the job done.

Headless mode: Claude Code in scripts and CI

Claude Code is not only interactive. The -p flag runs a single prompt and prints the result, which makes it scriptable.

## Review only what changed, straight from CI
git diff origin/main | claude -p "Flag security or correctness risks. Be terse."

## Summarize a noisy log
tail -500 app.log | claude -p "Group these errors by root cause."

This unlocks real automation: a code-review step in your pipeline, a nightly job that triages new errors, or a one-off that rewrites a batch of files. Pipe input in, capture output, treat it like any other CLI tool.

Review every diff before you commit

Minimal, calm workspace with a laptop and coffee on a clean white desk

Speed without review is just faster bugs. Claude moves quickly, which means a wrong assumption ships quickly too. Read the diff like you would review a teammate's PR.

What to check every time:

  • Did it touch files you did not expect?
  • Are there debug prints, commented-out blocks, or stray TODOs?
  • Does the change actually match what you asked for, or a near-miss?
  • Did tests get weakened to pass instead of the bug getting fixed?

Make this the rule: Claude proposes, you approve. Use plan mode for the approach and a real diff read before the commit. That single gate keeps the velocity without the regret.

A new-repo workflow: shipping a feature end to end

Here is the whole loop on a fresh clone. A backend developer is asked to add rate limiting to a public API.

  1. Set the ground rules. Drop in a CLAUDE.md with the run/test/lint commands, the directory map, and the gotcha that middleware lives in app/core/middleware.py.

  2. Plan before code. In plan mode: "Add token-bucket rate limiting to the public API, 100 requests/minute per key, return 429 with a retry header." Read the plan, fix the bucket-store assumption, approve.

  3. Parallelize. One subagent writes the middleware; another writes unit tests against the documented behavior.

  4. Automate the chores. A PostToolUse hook formats and lints on every write, so the diff stays clean on its own.

  5. Run the command you saved. Call /fix-tests to drive the suite green without retyping instructions.

  6. Review the diff. Confirm only the middleware and tests changed, no debug logging snuck in, and the 429 path is actually tested.

  7. Commit and open the PR. Let Claude write the message in your conventional-commit format, then push.

Same loop, every feature. Setup once, reuse forever — that is where the hours come back.

Productivity tips cheat sheet

Tip What it saves / why it helps
Strong CLAUDE.md Stops repeated explaining of stack, commands, and gotchas
Custom slash commands Reuse multi-step prompts instead of retyping them
Skills Deep task know-how loaded only when relevant, keeping context lean
Subagents Independent tasks run in parallel instead of one by one
Hooks Lint, format, and guardrails fire automatically, every time
Plan mode Catch a wrong approach in one message, not twelve edits
/clear between tasks Faster, sharper answers from an uncluttered context
MCP servers Live access to GitHub, databases, and tickets — no copy-paste
Headless -p mode Claude Code as a scriptable step in CI and cron jobs
Diff review before commit Bugs and stray changes caught before they reach main

Workflow checklist: setup, daily use, and review

Stage Do this Payoff
Setup Write CLAUDE.md; add .claude/commands/; configure hooks Sessions start informed, not from zero
Setup Connect only the MCP servers you truly need Live data without extra attack surface
Daily Open plan mode for any multi-file change Approve the approach before edits land
Daily Delegate independent work to subagents Parallel progress, clean main context
Daily /clear when switching tasks No stale files dragging down answers
Review Read the full diff before committing Catch scope creep and weakened tests
Review Let a review agent or -p pass scan the change A second set of eyes, automatically

Key takeaway

Claude Code is fast out of the box; the multiplier is the scaffolding you build around it. A precise CLAUDE.md, a handful of slash commands and skills, subagents for parallel work, hooks for the chores, plan mode for big changes, and a hard diff-review gate — these are the habits that turn a clever assistant into a reliable teammate.

Pick two from the quick-answer list and ship a feature with them this week. Add the rest as they prove themselves. The setup is a one-time cost; the time it gives back shows up on every task after.

Use the free tools while you follow the guide.

Cover image for AI Face Restoration: GFPGAN vs CodeFormer Compared

2026-07-18

AI Face Restoration: GFPGAN vs CodeFormer Compared

GFPGAN and CodeFormer both repair damaged faces, but they trade accuracy for polish differently. Which one to use, how they actually work, and where both can quietly invent a face that isn't the real person.