8 questionsQuestion · Short answer
Claude Code
Use /clear for a new, unrelated objective, /compact to keep working on the same objective with summarized history, and /resume to reopen a previous conversation whose goal and repository still match. Use /context before you compact to see…
Claude Code
Start Claude Code in the intended repository and use a concise CLAUDE.md for broadly applicable build and test commands, navigation, conventions, and review expectations. Put independently maintained guidance in .claude/rules/ ; use…
Claude Code
For an ordinary single-value Claude Code setting, check managed policy first, then the invocation’s --settings value, then project-local .claude/settings.local.json , shared .claude/settings.json , and user ~/.claude/settings.json . A…
Claude Code
Use a built-in slash command for an explicit session action such as inspecting context. Use a Skill when you want a reusable workflow with instructions and reference files. Use a custom subagent when a bounded task needs its own working…
Claude Code
Review a Claude Code plugin as a dependency that can install several extensions together. Identify the marketplace, trusted repository or package, approved version or immutable source revision where the distribution method supports one,…
Claude Code
Use Claude Code interactively when you expect clarification, inspection, or action-by-action review. For a script, use claude -p and pick the output format by what the caller needs. The default text format is readable, --output-format…
Claude Code
Use a deterministic command hook at a supported pre-action event when a rule can be expressed in code. For a tool action, match the relevant tools on PreToolUse , parse the documented event JSON, and return the documented denial for a…
Claude Code
Use Claude Code permission rules to control tool requests and the shell sandbox to constrain filesystem and network access for covered commands on supported platforms. Built-in file tools such as Read, Edit, and Write use permissions.…