Skip to content
Back to skills

Repo Conventions

ASecurity

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.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
developmentgit

Security analysis

A100/100

Scanned December 1, 2026

npx -y skills add eusilvio/claude-workflow --skill repo-conventions --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Repo Conventions?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Repo Conventions
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/eusilvio-repo-conventions/badge)](https://www.skillsdirectory.com/skills/eusilvio-repo-conventions)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.