---
title: "Establish conventions"
url: "https://sarthakmishra.com/skills/establish-conventions"
description: "Create coding rules for your repository with this agent skill. Research the stack, work through open decisions and write examples and checks."
image: "https://sarthakmishra.com/og-images/skills/establish-conventions.webp"
---

[View HTML](https://sarthakmishra.com/skills/establish-conventions) · [Site index](https://sarthakmishra.com/llms.txt)

# Establish conventions

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

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

Use `/establish-conventions` in Claude Code or `$establish-conventions` in Codex. [Read the skill](https://github.com/SarthakMishra/skills/blob/main/skills/engineering/establish-conventions/SKILL.md).

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

```text
/establish-conventions Use SPEC.md and our accepted decisions to research the remaining architecture and testing choices. Create a coding skill for this repo.
```

```text
$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](https://sarthakmishra.com/skills/bootstrap) uses the agreed decisions to create and check a new repository.
- [Code smell](https://sarthakmishra.com/skills/code-smell) updates existing code to follow the conventions.

## Structured data

```json
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "WebSite",
      "@id": "https://sarthakmishra.com/#website",
      "url": "https://sarthakmishra.com/",
      "name": "Sarthak Mishra",
      "publisher": {
        "@id": "https://sarthakmishra.com/#person"
      },
      "inLanguage": "en"
    },
    {
      "@type": "Person",
      "@id": "https://sarthakmishra.com/#person",
      "name": "Sarthak Mishra",
      "url": "https://sarthakmishra.com/about",
      "jobTitle": "Design Engineer",
      "image": "https://sarthakmishra.com/og-images/sarthak-mishra.webp",
      "sameAs": [
        "https://github.com/SarthakMishra",
        "https://www.linkedin.com/in/itssarthakmishra/",
        "https://x.com/MishraMishry"
      ]
    },
    {
      "@type": "WebPage",
      "@id": "https://sarthakmishra.com/skills/establish-conventions#webpage",
      "url": "https://sarthakmishra.com/skills/establish-conventions",
      "name": "Coding Conventions Agent Skill - Sarthak Mishra",
      "description": "Create coding rules for your repository with this agent skill. Research the stack, work through open decisions and write examples and checks.",
      "inLanguage": "en",
      "isPartOf": {
        "@id": "https://sarthakmishra.com/#website"
      },
      "about": {
        "@id": "https://sarthakmishra.com/#person"
      }
    }
  ]
}
```
