Tools Games AI
Back to Docs

Claude Code: Terminal Agent Prompt Templates

Claude Code Is Repo-Native

Claude Code operates on your filesystem with tools (read, edit, bash). Treat it like a junior engineer with sudo: powerful, needs guardrails.

Session Kickoff

"Read README and package.json scripts first. Summarize how to run tests and lint. Do not edit files until you confirm the task scope with me."

Implementation Request

"Implement issue #42: add pagination to /api/users. Only modify files under api/users and related tests. Run the test script after edits. If lint fails, fix once. Propose commit message in conventional commits format."

Read-Only Investigation

"Investigation onlyโ€”no writes. Trace why production logs show 502 on /checkout. Search codebase for timeout settings; list top 3 hypotheses with file references."

Rollback Safety

"Before large refactors, create a checkpoint summary of files you will touch and why. Prefer small commits. Never force-push or amend published commits."