#claude-code
40 items tagged #claude-code.
40 items tagged #claude-code.
Opus 4.7's 1M-token context window is genuinely useful for large cross-file refactors and multi-document synthesis — but most tasks don't need it, and paying for it blindly is expensive.
The anthropic-skills pack ships eight skills with Claude Code. Four handle documents. This is what triggers each one, where each earns its keep, and where you should reach for something else.
The brainstorming skill forces a design-first workflow in Claude Code: one question at a time, proposals with tradeoffs, and a committed spec before any code runs.
Build a focused MCP server from scratch using the TypeScript SDK. Covers protocol basics, a real git-log-search example, wiring into Claude Code, and the iteration loop that makes debugging fast.
Opus costs roughly 5x Sonnet and 20x Haiku. Routing tasks to the right model is the single highest-leverage cost decision in a Claude Code workflow.
Claude Code's default failure mode is guessing at symptoms. The systematic-debugging skill enforces root-cause-first debugging: no fix until the cause is identified.
Claude Code's /fast toggle switches to Opus 4.6 mid-session. Here's which tasks benefit from the faster model and which ones warrant staying on 4.7.
Step-by-step install, first-run auth, and a concrete starting prompt — plus the five mistakes that make beginners give up on Claude Code before it clicks.
PostToolUse fires after every Claude Code tool call and can inject context, run formatters, and build audit trails — without blocking the agent mid-task.
SessionStart fires once before any tool calls, letting you inject real-time context—git state, sprint focus, oncall rotation—directly into the model's system prompt for that session.
Claude Code hooks run shell commands at deterministic lifecycle points. This guide covers all five events, the JSON contracts each one uses, and which hooks can block versus only observe.
Claude Code runs both as a terminal CLI and as IDE extensions for VS Code and JetBrains. The experience differs in ways that matter: here's which surface to use and when.
Starting Claude Code at the wrong directory in a monorepo costs you context. Here's how to manage session roots, per-package CLAUDE.md files, and cross-package edits without losing your mind.
MCP connects Claude Code to external tools without bundling everything into the agent. Here's how to configure servers, understand the tool-naming convention, and debug a server that won't show up.
Postgres, Notion, and Linear MCP servers extend Claude Code with live data access. Each has a clear use case and a specific gotcha that bites you if you skip the setup details.
Native tools and MCP tools look identical to the model. Understanding the lifecycle differences—and what happens when the tool list grows too large—makes MCP integrations reliable.
Claude Code's output token ceiling—not your context window—is what cuts long generations short. Here's how to spot truncation early and structure requests to stay under the limit.
Claude Code's three permission modes gate different levels of agent autonomy. Getting the mode wrong costs you either hours of unnecessary round-trips or a destructive operation you can't undo.
Claude Code's plan mode produces a written proposal with no file edits or commands. Here's when to use it, how to refine plans through dialogue, and when to skip it.
Plugin and skill are related but not interchangeable. A plugin is the installable package; a skill is the unit of behavior inside it. Getting the distinction right changes how you build, version, and share reusable workflows.
Claude Code's prompt caching has a 5-minute TTL. Understanding that clock shapes how you structure sessions and which habits quietly drain your budget.
Claude Code stores conversation history locally. Here's how to resume sessions with --continue and session IDs, when it works well, when it doesn't, and one habit that makes re-entry fast.
Claude Code's orchestrator routes tasks to skills by reading their descriptions. Here's exactly how that matching works, why competing descriptions cause routing failures, and how to fix them.
Claude Code reads a skill's description field to decide when to invoke it. A vague description means the skill never triggers; an overly broad one fires on everything. Here's how to write one that routes correctly.
Claude Code has two extension points: skills run inside the model's loop, hooks run in the harness around it. Knowing which to reach for determines whether your automation is reliable or just suggestive.
Skills shape how Claude Code thinks and works. MCP servers give it new tools to call. Confusing the two leads to building the wrong thing.
Claude Code skills are dynamically loaded behavior packages — only invoked when relevant. Here's why that matters and how the distribution model actually works.
Claude Code's built-in slash commands, user-defined skill triggers, and keybindings.json are all configurable — most users never touch them.
Claude Code streams tokens as they're generated, so you see output in under a second instead of waiting 30 seconds for silence. Here's when that trade is worth it and when it isn't.
Subagents give Claude Code an isolated context window for grunt work. Here's when that matters, when parallel dispatch pays off, and when it backfires.
Superpowers is a community skill pack for Claude Code that enforces a consistent workflow: brainstorm, plan, execute, review. Here's what each skill does and where the suite draws its own boundary.
Claude Code skips the failing-test step without enforcement. The TDD skill closes that gap by requiring a visible failing run before implementation is allowed to start.
A git-tracked shared skill library prevents duplicate work and knowledge loss when engineers leave. This guide covers repo structure, naming conventions, deprecation process, and CLAUDE.md as a skill index.
Extended thinking lets Claude reason silently before answering — useful for hard problems, wasteful on simple ones. Here's how to tell the difference and read the trace when things go sideways.
Claude Code's verification-before-completion skill enforces a simple rule: every 'done' claim must be backed by real output. No test runs summarized from memory. No lint passes assumed.
Run the same multi-file refactor through both tools and the ergonomic gap becomes concrete: Cursor wins on inline completion flow; Claude Code wins on coordinated multi-file changes. The real question is where each fits in your day.
Claude Code skills let you encode repeatable workflows as prompt-driven commands. This guide walks through writing a real skill end to end—frontmatter, body, install, and debugging.
How to use Claude Code's writing-plans and executing-plans skills together — from a vague spec to a checkboxed plan with exact file paths, complete code, and a clean execution run.
Both run in your terminal, read your codebase, and execute autonomous tasks. What's different is how GPT-family and Claude-family models approach the same problem — and those differences are visible and reproducible.