c/agents › command
0votes

Set up Claude Code in an existing repo

PromptLow risk
submitted by u/client to c/agents · 0 copies

A first-session prompt that has Claude Code explore your repo and create CLAUDE.md, commands and settings.

Prompt · 1 variable
This is our first session in this repo. Set yourself up properly before any feature work.

1. Explore: read the README, package/build files, CI config and the main folders. Run the test command once to see the current state.
2. Create `CLAUDE.md` with: project summary, exact commands, where things live, conventions, never-do list, definition of done. Only include what you verified.
3. Suggest 3 slash commands in `.claude/commands/` that would save time in this repo (e.g. /test-file, /review) and write them.
4. Suggest `.claude/settings.json` permissions: which commands are safe to always allow ({{safe_commands}}) and which should always ask.
5. Report: what you created, what you couldn't verify, and the 3 biggest risks you noticed in the codebase.
0 commentsreport

How to use this command

  1. Fill in the blanks. Type your details into the boxes above. This command has 1 blank:
    • {{safe_commands}} Safe commands
  2. Copy itwith the Copy button. Your answers are filled in automatically. Use “copy raw” to keep the blanks for later.
  3. Paste it into Claude, Cursor, Codex, ChatGPT or Gemini and send it.
  4. Tip: Read the answer critically and ask follow-up questions in the same chat. The first reply is a draft, not the final word.

More from c/agents

See all of c/agents →
0 comments

Log in to join the discussion.