Skip to content

Chapter 101

Claude Code: your assistant in the repository

What Claude Code reads from your project, and how CLAUDE.md, settings, agents, commands and skills steer it

Talqeen wrote this chapter and no editor has reviewed it yet. Search engines are not shown this page until it is reviewed.

Claude Code is a tool that runs in your terminal and your editor, inside your repository: it reads files, runs the commands you allow, and proposes and writes changes. That makes it closer to a colleague sitting at the code with you than to a chat window. But a new colleague needs an introduction to the project, and that is what this chapter is about: what Claude Code reads, and how to steer it so it works the way your team works.

CLAUDE.md: the project's memory

The first thing Claude Code reads in every session is the CLAUDE.md file at the root of the repository. Write in it what you tell every new developer on their first day: how the project is built and tested, where things live, and the rules that are never broken. The /init command writes a first draft after reading the repository; you then review it and add what the code does not show.

A vague file

Write clean code and follow best practices.

A useful file

Run pnpm test before every commit. Every user-facing string goes through the translation files. Never put a secret in a variable that starts with NEXT_PUBLIC.

The difference is that the second can be checked. "Clean code" means nothing in particular; "run the tests before every commit" is a step the model either takes or does not.

The .claude folder: how it works

Next to CLAUDE.md, Claude Code reads the project's .claude/ folder:

  • settings.json

    Permissions: what is allowed without asking, and what is always denied, such as reading .env files.

  • agents/

    Subagents, each with a description and its own tools, such as a code reviewer or a test writer.

  • commands/

    Slash commands: each is a Markdown file holding the prompt sent when you type it.

  • skills/

    Skills: a folder with a SKILL.md saying when and how to use it, loaded when the model needs it.

And a .mcp.json file at the root connects Claude Code to MCP servers, such as your project's server in Talqeen, which gives it the phases, the tasks and their status.

How to ask it for work

The best requests to Claude Code look like good tasks in any team: one goal, the files involved, and how we know it is done. For larger tasks, ask it to plan first and read the plan before it starts: fixing a plan is much easier than fixing twenty files.

A clear request for a task

Only the prompt in the box is sent to that site, nothing from your projects.

Summary

Claude Code is as strong as the context you give it. A short, precise CLAUDE.md, clear permissions, and requests with a measurable end: these three make most of the difference. The Claude Code kit Talqeen prepares for your project writes these files from your own plan.

Test yourself

1. Where do you write the rules Claude Code must follow in every session?
2. What is the best start for settings.json?