Write AGENTS.md / CLAUDE.md

PromptIntermediateContext and instructions

It reads the repository and writes a permanent context file with the commands and rules.

The prompt
Read this repository (package.json or pyproject.toml, the folder structure and the configuration files).
Write a concise AGENTS.md file (under 60 lines) that includes: the install, run and test commands, the folder structure, style rules inferred from the current code, and a list of prohibitions (no secrets in the code, no new libraries without asking). Do not invent commands that do not exist in the repository.

Suitable tools