How to detect and follow a repo's conventions — File Map lookup, check commands, code patterns to mirror, commit style. Use when investigating or implementing in any command of this workflow.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Repo Conventions?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/eusilvio-repo-conventions)
---
name: repo-conventions
description: "How to detect and follow a repo's conventions — File Map lookup, check commands, code patterns to mirror, commit style. Use when investigating or implementing in any command of this workflow."
user-invocable: false
---
# Repo conventions
Never assume script names or patterns. Detect them in the current repo.
## File Map (check first)
Use `${CLAUDE_PLUGIN_ROOT}/scripts/codemap.py find <terms>` before grepping. It merges two layers: symbols with
line numbers (extracted from the code, refreshed per changed file on every
query, so never stale) and the one-line purpose of each file from the repo's
File Map docs (markdown rows `| \`path\` | purpose |`), when it has them.
`${CLAUDE_PLUGIN_ROOT}/scripts/codemap.py file <path>` outlines a file before you read it. Only grep for what the
index does not cover. `${CLAUDE_PLUGIN_ROOT}/scripts/codemap.py check` lists files missing from the File Map and
rows pointing at files that no longer exist.
## Detecting check commands
1. Read `CLAUDE.md` — if it lists commands, that is the primary source.
2. Read the `scripts` in `package.json` (or `Makefile`, `pyproject`, etc. per
stack). Look for test, lint, typecheck, and an aggregate CI target.
3. Names vary (`test`, `lint`, `check`, `typecheck`, `ci`). Do not assume —
confirm. If a target does not exist, do not invent it.
## Code patterns to mirror
- Before writing, find the existing analogue in the codebase and mirror it
(same flow, same error handling, same naming convention).
- Do not introduce a new pattern, lib or abstraction when an established path
for the same problem already exists.
- Respect the repo's auto-formatter (Biome/Prettier/ESLint/etc.).
## Commit style
- Follow the history's pattern (`git log --oneline -20` to infer). If the repo
uses Conventional Commits, follow it; otherwise mirror the dominant style.