repostyle
v0.0.1
Published
Point at any GitHub repo, get a drop-in coding-conventions file for your AI agent (CLAUDE.md, .cursorrules, AGENTS.md, and more).
Maintainers
Readme
repostyle
Point at any GitHub repo, get a drop-in coding-conventions file for your AI agent. Works with Claude Code, Cursor, Aider, Codex, Continue, and Cline.
npx repostyle vercel/next.js
# → writes ./CLAUDE.md (default)
npx repostyle vercel/next.js --target cursor
# → writes ./.cursorrules
npx repostyle vercel/next.js --target codex
# → writes ./AGENTS.mdDrop the generated file into your project. Your AI agent now follows the source repo's file structure, naming, test patterns, and commit conventions.
Why
Every AI-augmented dev has wished their agent would code like a repo they admire. Built-in commands like claude init only analyse the current repo. repostyle imports style from another repo into yours.
Usage
npx repostyle <owner/repo>
npx repostyle https://github.com/<owner>/<repo>
npx repostyle shadcn-ui/ui --target cursor --out ./.cursorrulesFlags
| Flag | Default | Effect |
|------|---------|--------|
| --target <agent> | claude | Output format: claude, cursor, aider, codex, continue, cline |
| --out <path> | (auto) | Where to write. Defaults to that target's conventional path. |
| --depth <n> | 50 | How many files to sample |
| -v, --version | — | Print version |
| -h, --help | — | Show help |
Target output paths
| Target | Default output |
|--------|----------------|
| claude | ./CLAUDE.md |
| cursor | ./.cursorrules |
| codex | ./AGENTS.md |
| aider | ./CONVENTIONS.md |
| continue | ./.continuerules |
| cline | ./.clinerules |
What it captures
- File structure conventions
- Naming patterns (files, components, functions)
- Test layout and framework choices
- Lint/format config quirks
- Commit message style
- Common anti-patterns from git history
Status
v0.0.1 — scaffold. Real extraction lands this weekend.
Community-built. Not affiliated with or endorsed by Anthropic, Cursor, OpenAI, or any AI vendor.
License
MIT
