Establish conventions

Research your stack and write the coding rules your repo needs.

pnpm dlx skills add SarthakMishra/skills --skill establish-conventions

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

/establish-conventions Use SPEC.md and our accepted decisions to research the remaining architecture and testing choices. Create a coding skill for this repo.
$establish-conventions Our coding rules don't cover background jobs. Research where job logic and retries should live, then update that part of the skill.

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.