clauderc 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +221 -0
- package/bin/cli.js +802 -0
- package/package.json +44 -0
- package/src/detector.js +387 -0
- package/src/project.js +435 -0
- package/src/stacks.js +299 -0
- package/templates/agents/project-setup-wizard.md +230 -0
- package/templates/commands/lint.md +33 -0
- package/templates/commands/pr.md +46 -0
- package/templates/commands/setup.md +51 -0
- package/templates/commands/test.md +33 -0
- package/templates/commands/verify.md +69 -0
- package/templates/manifest.json +93 -0
- package/templates/project-setup/AGENTS_TEMPLATE.md +100 -0
- package/templates/project-setup/CLAUDE_MD_TEMPLATE.md +49 -0
- package/templates/project-setup/COMMANDS_TEMPLATE.md +92 -0
- package/templates/project-setup/SKILLS_TEMPLATE.md +113 -0
- package/templates/project-setup/TEAM_DOCS_TEMPLATE.md +102 -0
- package/templates/skills/claude-code-templates/SKILL.md +260 -0
- package/templates/skills/project-analysis/SKILL.md +184 -0
package/README.md
ADDED
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
# clauderc
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<strong>Setup Claude Code with best practices - agents, skills, commands, and templates.</strong>
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
<a href="#quick-start">Quick Start</a> •
|
|
9
|
+
<a href="#what-gets-installed">What's Included</a> •
|
|
10
|
+
<a href="#commands">Commands</a> •
|
|
11
|
+
<a href="#best-practices">Best Practices</a>
|
|
12
|
+
</p>
|
|
13
|
+
|
|
14
|
+
<p align="center">
|
|
15
|
+
<img src="https://img.shields.io/npm/v/clauderc?color=blue" alt="npm version">
|
|
16
|
+
<img src="https://img.shields.io/badge/platform-macOS%20%7C%20Linux%20%7C%20Windows-lightgrey" alt="platform">
|
|
17
|
+
<img src="https://img.shields.io/badge/node-%3E%3D16.7-green" alt="node version">
|
|
18
|
+
</p>
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
Based on tips from [Boris Cherny](https://twitter.com/bcherny) (Claude Code creator) and official documentation.
|
|
23
|
+
|
|
24
|
+
## Quick Start
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
# Global setup (agents, skills, commands, templates)
|
|
28
|
+
npx clauderc init
|
|
29
|
+
|
|
30
|
+
# Project setup (CLAUDE.md, .claude/, settings)
|
|
31
|
+
npx clauderc project
|
|
32
|
+
|
|
33
|
+
# Update to latest version
|
|
34
|
+
npx clauderc update
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Works on **macOS**, **Linux**, and **Windows**.
|
|
38
|
+
|
|
39
|
+
## Two-Level Setup
|
|
40
|
+
|
|
41
|
+
### Global (`~/.claude/`)
|
|
42
|
+
|
|
43
|
+
Shared components available to all projects:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
npx clauderc init
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
~/.claude/
|
|
51
|
+
├── agents/
|
|
52
|
+
│ └── project-setup-wizard.md # Setup Claude Code for any project
|
|
53
|
+
├── skills/
|
|
54
|
+
│ ├── project-analysis/ # Systematic project analysis
|
|
55
|
+
│ └── claude-code-templates/ # Quick reference for templates
|
|
56
|
+
├── commands/
|
|
57
|
+
│ ├── test.md # /test - run tests
|
|
58
|
+
│ ├── lint.md # /lint - lint and format
|
|
59
|
+
│ ├── verify.md # /verify - full validation
|
|
60
|
+
│ ├── pr.md # /pr - create pull request
|
|
61
|
+
│ └── setup.md # /setup - install dependencies
|
|
62
|
+
└── templates/project-setup/
|
|
63
|
+
└── ... # Reference templates
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### Project (`.claude/` + `CLAUDE.md`)
|
|
67
|
+
|
|
68
|
+
Project-specific configuration:
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
cd your-project
|
|
72
|
+
npx clauderc project
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
your-project/
|
|
77
|
+
├── CLAUDE.md # Project context for Claude
|
|
78
|
+
└── .claude/
|
|
79
|
+
├── settings.json # Permissions & hooks
|
|
80
|
+
└── commands/ # Project-specific commands
|
|
81
|
+
├── dev.md
|
|
82
|
+
├── test.md
|
|
83
|
+
├── lint.md
|
|
84
|
+
└── ...
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Supported Stacks
|
|
88
|
+
|
|
89
|
+
Auto-detection for 11+ languages:
|
|
90
|
+
|
|
91
|
+
| Stack | Detection | Package Managers |
|
|
92
|
+
|-------|-----------|------------------|
|
|
93
|
+
| Node.js/TypeScript | `package.json` | npm, pnpm, yarn, bun |
|
|
94
|
+
| Python | `pyproject.toml`, `requirements.txt` | poetry, pipenv, uv, pip |
|
|
95
|
+
| Go | `go.mod` | go mod |
|
|
96
|
+
| Rust | `Cargo.toml` | cargo |
|
|
97
|
+
| Java/Kotlin | `pom.xml`, `build.gradle` | maven, gradle |
|
|
98
|
+
| PHP | `composer.json` | composer |
|
|
99
|
+
| Ruby | `Gemfile` | bundler |
|
|
100
|
+
| C#/.NET | `*.csproj`, `*.sln` | dotnet |
|
|
101
|
+
| Elixir | `mix.exs` | mix |
|
|
102
|
+
| Swift | `Package.swift` | swift |
|
|
103
|
+
| Dart/Flutter | `pubspec.yaml` | pub, flutter |
|
|
104
|
+
|
|
105
|
+
Also detects: Monorepos (Turborepo, Nx, Lerna), CI/CD (GitHub Actions, GitLab CI, etc.)
|
|
106
|
+
|
|
107
|
+
## Commands
|
|
108
|
+
|
|
109
|
+
### init
|
|
110
|
+
|
|
111
|
+
Install global components to `~/.claude/`:
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
npx clauderc init
|
|
115
|
+
|
|
116
|
+
# Force overwrite existing files
|
|
117
|
+
npx clauderc init --force
|
|
118
|
+
|
|
119
|
+
# Preview changes without applying
|
|
120
|
+
npx clauderc init --dry-run
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### project
|
|
124
|
+
|
|
125
|
+
Setup current project with interactive wizard:
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
npx clauderc project
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
Features:
|
|
132
|
+
- Auto-detects stack, package manager, framework
|
|
133
|
+
- Generates appropriate `CLAUDE.md`
|
|
134
|
+
- Creates `.claude/settings.json` with permissions
|
|
135
|
+
- Creates project-specific commands
|
|
136
|
+
|
|
137
|
+
### update
|
|
138
|
+
|
|
139
|
+
Update global components to latest version:
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
npx clauderc update
|
|
143
|
+
|
|
144
|
+
# Preview what would be updated
|
|
145
|
+
npx clauderc update --dry-run
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
Features:
|
|
149
|
+
- Automatic backup of modified files
|
|
150
|
+
- Shows changelog between versions
|
|
151
|
+
- Only updates files that changed
|
|
152
|
+
|
|
153
|
+
### list
|
|
154
|
+
|
|
155
|
+
Show installed components:
|
|
156
|
+
|
|
157
|
+
```bash
|
|
158
|
+
npx clauderc list
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
### changelog
|
|
162
|
+
|
|
163
|
+
Show version history:
|
|
164
|
+
|
|
165
|
+
```bash
|
|
166
|
+
npx clauderc changelog
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
## Usage in Claude Code
|
|
170
|
+
|
|
171
|
+
After installation:
|
|
172
|
+
|
|
173
|
+
```bash
|
|
174
|
+
# Setup wizard for any project
|
|
175
|
+
"Use the project-setup-wizard agent to configure Claude Code for this project"
|
|
176
|
+
|
|
177
|
+
# Quick commands
|
|
178
|
+
/test # Run project tests
|
|
179
|
+
/lint # Lint and format code
|
|
180
|
+
/verify # Full verification (lint + test + build)
|
|
181
|
+
/pr # Create a pull request
|
|
182
|
+
/setup # Install dependencies
|
|
183
|
+
|
|
184
|
+
# Skills
|
|
185
|
+
"Use project-analysis skill to analyze this codebase"
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
## Best Practices (from Boris Cherny)
|
|
189
|
+
|
|
190
|
+
1. **Multiple instances** - Run 5+ Claudes in parallel for independent tasks
|
|
191
|
+
2. **Opus 4.5 with thinking** - Best model for coding, faster overall
|
|
192
|
+
3. **Shared CLAUDE.md** - Team commits and updates regularly
|
|
193
|
+
4. **Plan Mode** - Use for complex tasks (Shift+Tab twice)
|
|
194
|
+
5. **Slash commands** - Automate repetitive workflows
|
|
195
|
+
6. **PostToolUse hooks** - Auto-format code after edits
|
|
196
|
+
7. **Permissions** - Pre-authorize safe commands instead of `--dangerously-skip-permissions`
|
|
197
|
+
8. **Feedback loop** - Give Claude a way to verify its work
|
|
198
|
+
|
|
199
|
+
## Contributing
|
|
200
|
+
|
|
201
|
+
Contributions are welcome! Feel free to:
|
|
202
|
+
- Add new commands, skills, or agents
|
|
203
|
+
- Improve existing templates
|
|
204
|
+
- Report issues or suggest features
|
|
205
|
+
|
|
206
|
+
## Author
|
|
207
|
+
|
|
208
|
+
**Matheus Kindrazki**
|
|
209
|
+
|
|
210
|
+
- GitHub: [@matheuskindrazki](https://github.com/matheuskindrazki)
|
|
211
|
+
- Twitter: [@kindraScript](https://x.com/kindraScript)
|
|
212
|
+
|
|
213
|
+
## License
|
|
214
|
+
|
|
215
|
+
MIT
|
|
216
|
+
|
|
217
|
+
---
|
|
218
|
+
|
|
219
|
+
<p align="center">
|
|
220
|
+
<strong>⭐ If this helped you, consider giving it a star!</strong>
|
|
221
|
+
</p>
|