Establish conventions
Research your stack and write the coding rules your repo needs.
Use /establish-conventions in Claude Code or $establish-conventions in Codex. Read the skill.
Use it during project setup, when coding rules are incomplete, or when a new tool changes how the team should write code. Bring your spec, architecture decision records and any choices you’ve already made.
Example prompts
Your repository’s coding skill
The agent asks about open decisions, researches your stack and tests uncertain choices. If requirements are missing, it helps you establish them before choosing tools or patterns.
It creates or updates a skill, usually named code-conventions, with rules for file organization, code patterns, documentation, testing and tooling. Examples show how to apply the rules; references explain the details, and checks catch violations.
Important choices include the research and reasons behind them. The repository’s agent instructions point to the skill. A revision changes the affected rules and preserves the rest.
Works well with
- Bootstrap uses the agreed decisions to create and check a new repository.
- Code smell updates existing code to follow the conventions.