everything-claude-code 1.4.3
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/LICENSE +21 -0
- package/README.md +739 -0
- package/README.zh-CN.md +523 -0
- package/crates/ecc-kernel/Cargo.lock +160 -0
- package/crates/ecc-kernel/Cargo.toml +15 -0
- package/crates/ecc-kernel/src/main.rs +710 -0
- package/docs/ecc.md +117 -0
- package/package.json +45 -0
- package/packs/blueprint.json +8 -0
- package/packs/forge.json +16 -0
- package/packs/instinct.json +16 -0
- package/packs/orchestra.json +15 -0
- package/packs/proof.json +8 -0
- package/packs/sentinel.json +8 -0
- package/prompts/ecc/patch.md +25 -0
- package/prompts/ecc/plan.md +28 -0
- package/schemas/ecc.apply.schema.json +35 -0
- package/schemas/ecc.config.schema.json +37 -0
- package/schemas/ecc.lock.schema.json +34 -0
- package/schemas/ecc.patch.schema.json +25 -0
- package/schemas/ecc.plan.schema.json +32 -0
- package/schemas/ecc.run.schema.json +67 -0
- package/schemas/ecc.verify.schema.json +27 -0
- package/schemas/hooks.schema.json +81 -0
- package/schemas/package-manager.schema.json +17 -0
- package/schemas/plugin.schema.json +13 -0
- package/scripts/ecc/catalog.js +82 -0
- package/scripts/ecc/config.js +43 -0
- package/scripts/ecc/diff.js +113 -0
- package/scripts/ecc/exec.js +121 -0
- package/scripts/ecc/fixtures/basic/patches/impl-core.diff +8 -0
- package/scripts/ecc/fixtures/basic/patches/tests.diff +8 -0
- package/scripts/ecc/fixtures/basic/plan.json +23 -0
- package/scripts/ecc/fixtures/unauthorized/patches/impl-core.diff +8 -0
- package/scripts/ecc/fixtures/unauthorized/plan.json +15 -0
- package/scripts/ecc/git.js +139 -0
- package/scripts/ecc/id.js +37 -0
- package/scripts/ecc/install-kernel.js +344 -0
- package/scripts/ecc/json-extract.js +301 -0
- package/scripts/ecc/json.js +26 -0
- package/scripts/ecc/kernel.js +144 -0
- package/scripts/ecc/lock.js +36 -0
- package/scripts/ecc/paths.js +28 -0
- package/scripts/ecc/plan.js +57 -0
- package/scripts/ecc/project.js +37 -0
- package/scripts/ecc/providers/codex.js +168 -0
- package/scripts/ecc/providers/index.js +23 -0
- package/scripts/ecc/providers/mock.js +49 -0
- package/scripts/ecc/report.js +127 -0
- package/scripts/ecc/run.js +105 -0
- package/scripts/ecc/validate.js +325 -0
- package/scripts/ecc/verify.js +125 -0
- package/scripts/ecc.js +532 -0
- package/scripts/lib/package-manager.js +390 -0
- package/scripts/lib/session-aliases.js +432 -0
- package/scripts/lib/session-manager.js +396 -0
- package/scripts/lib/utils.js +426 -0
package/README.md
ADDED
|
@@ -0,0 +1,739 @@
|
|
|
1
|
+
**Language:** English | [įšéĢ䏿](docs/zh-TW/README.md)
|
|
2
|
+
|
|
3
|
+
# Everything Claude Code
|
|
4
|
+
|
|
5
|
+
[](https://github.com/affaan-m/everything-claude-code/stargazers)
|
|
6
|
+
[](https://github.com/affaan-m/everything-claude-code/network/members)
|
|
7
|
+
[](https://github.com/affaan-m/everything-claude-code/graphs/contributors)
|
|
8
|
+
[](LICENSE)
|
|
9
|
+

|
|
10
|
+

|
|
11
|
+

|
|
12
|
+

|
|
13
|
+

|
|
14
|
+

|
|
15
|
+
|
|
16
|
+
> **41K+ stars** | **5K+ forks** | **22 contributors** | **6 languages supported**
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
<div align="center">
|
|
21
|
+
|
|
22
|
+
**đ Language / č¯č¨ / čĒč¨**
|
|
23
|
+
|
|
24
|
+
[**English**](README.md) | [įŽäŊ䏿](README.zh-CN.md) | [įšéĢ䏿](docs/zh-TW/README.md)
|
|
25
|
+
|
|
26
|
+
</div>
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
**The complete collection of Claude Code configs from an Anthropic hackathon winner.**
|
|
31
|
+
|
|
32
|
+
Production-ready agents, skills, hooks, commands, rules, and MCP configurations evolved over 10+ months of intensive daily use building real products.
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## The Guides
|
|
37
|
+
|
|
38
|
+
This repo is the raw code only. The guides explain everything.
|
|
39
|
+
|
|
40
|
+
<table>
|
|
41
|
+
<tr>
|
|
42
|
+
<td width="50%">
|
|
43
|
+
<a href="https://x.com/affaanmustafa/status/2012378465664745795">
|
|
44
|
+
<img src="https://github.com/user-attachments/assets/1a471488-59cc-425b-8345-5245c7efbcef" alt="The Shorthand Guide to Everything Claude Code" />
|
|
45
|
+
</a>
|
|
46
|
+
</td>
|
|
47
|
+
<td width="50%">
|
|
48
|
+
<a href="https://x.com/affaanmustafa/status/2014040193557471352">
|
|
49
|
+
<img src="https://github.com/user-attachments/assets/c9ca43bc-b149-427f-b551-af6840c368f0" alt="The Longform Guide to Everything Claude Code" />
|
|
50
|
+
</a>
|
|
51
|
+
</td>
|
|
52
|
+
</tr>
|
|
53
|
+
<tr>
|
|
54
|
+
<td align="center"><b>Shorthand Guide</b><br/>Setup, foundations, philosophy. <b>Read this first.</b></td>
|
|
55
|
+
<td align="center"><b>Longform Guide</b><br/>Token optimization, memory persistence, evals, parallelization.</td>
|
|
56
|
+
</tr>
|
|
57
|
+
</table>
|
|
58
|
+
|
|
59
|
+
| Topic | What You'll Learn |
|
|
60
|
+
|-------|-------------------|
|
|
61
|
+
| Token Optimization | Model selection, system prompt slimming, background processes |
|
|
62
|
+
| Memory Persistence | Hooks that save/load context across sessions automatically |
|
|
63
|
+
| Continuous Learning | Auto-extract patterns from sessions into reusable skills |
|
|
64
|
+
| Verification Loops | Checkpoint vs continuous evals, grader types, pass@k metrics |
|
|
65
|
+
| Parallelization | Git worktrees, cascade method, when to scale instances |
|
|
66
|
+
| Subagent Orchestration | The context problem, iterative retrieval pattern |
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## What's New
|
|
71
|
+
|
|
72
|
+
### v1.4.1 â Bug Fix (Feb 2026)
|
|
73
|
+
|
|
74
|
+
- **Fixed instinct import content loss** â `parse_instinct_file()` was silently dropping all content after frontmatter (Action, Evidence, Examples sections) during `/instinct-import`. Fixed by community contributor @ericcai0814 ([#148](https://github.com/affaan-m/everything-claude-code/issues/148), [#161](https://github.com/affaan-m/everything-claude-code/pull/161))
|
|
75
|
+
|
|
76
|
+
### v1.4.0 â Multi-Language Rules, Installation Wizard & PM2 (Feb 2026)
|
|
77
|
+
|
|
78
|
+
- **Interactive installation wizard** â New `configure-ecc` skill provides guided setup with merge/overwrite detection
|
|
79
|
+
- **PM2 & multi-agent orchestration** â 6 new commands (`/pm2`, `/multi-plan`, `/multi-execute`, `/multi-backend`, `/multi-frontend`, `/multi-workflow`) for managing complex multi-service workflows
|
|
80
|
+
- **Multi-language rules architecture** â Rules restructured from flat files into `common/` + `typescript/` + `python/` + `golang/` directories. Install only the languages you need
|
|
81
|
+
- **Chinese (zh-CN) translations** â Complete translation of all agents, commands, skills, and rules (80+ files)
|
|
82
|
+
- **GitHub Sponsors support** â Sponsor the project via GitHub Sponsors
|
|
83
|
+
- **Enhanced CONTRIBUTING.md** â Detailed PR templates for each contribution type
|
|
84
|
+
|
|
85
|
+
### v1.3.0 â OpenCode Plugin Support (Feb 2026)
|
|
86
|
+
|
|
87
|
+
- **Full OpenCode integration** â 12 agents, 24 commands, 16 skills with hook support via OpenCode's plugin system (20+ event types)
|
|
88
|
+
- **3 native custom tools** â run-tests, check-coverage, security-audit
|
|
89
|
+
- **LLM documentation** â `llms.txt` for comprehensive OpenCode docs
|
|
90
|
+
|
|
91
|
+
### v1.2.0 â Unified Commands & Skills (Feb 2026)
|
|
92
|
+
|
|
93
|
+
- **Python/Django support** â Django patterns, security, TDD, and verification skills
|
|
94
|
+
- **Java Spring Boot skills** â Patterns, security, TDD, and verification for Spring Boot
|
|
95
|
+
- **Session management** â `/sessions` command for session history
|
|
96
|
+
- **Continuous learning v2** â Instinct-based learning with confidence scoring, import/export, evolution
|
|
97
|
+
|
|
98
|
+
See the full changelog in [Releases](https://github.com/affaan-m/everything-claude-code/releases).
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## đ Quick Start
|
|
103
|
+
|
|
104
|
+
Get up and running in under 2 minutes:
|
|
105
|
+
|
|
106
|
+
### Step 1: Install the Plugin
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
# Add marketplace
|
|
110
|
+
/plugin marketplace add affaan-m/everything-claude-code
|
|
111
|
+
|
|
112
|
+
# Install plugin
|
|
113
|
+
/plugin install everything-claude-code@everything-claude-code
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### Step 2: Install Rules (Required)
|
|
117
|
+
|
|
118
|
+
> â ī¸ **Important:** Claude Code plugins cannot distribute `rules` automatically. Install them manually:
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
# Clone the repo first
|
|
122
|
+
git clone https://github.com/affaan-m/everything-claude-code.git
|
|
123
|
+
|
|
124
|
+
# Install common rules (required)
|
|
125
|
+
cp -r everything-claude-code/rules/common/* ~/.claude/rules/
|
|
126
|
+
|
|
127
|
+
# Install language-specific rules (pick your stack)
|
|
128
|
+
cp -r everything-claude-code/rules/typescript/* ~/.claude/rules/
|
|
129
|
+
cp -r everything-claude-code/rules/python/* ~/.claude/rules/
|
|
130
|
+
cp -r everything-claude-code/rules/golang/* ~/.claude/rules/
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### Step 3: Start Using
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
# Try a command
|
|
137
|
+
/plan "Add user authentication"
|
|
138
|
+
|
|
139
|
+
# Check available commands
|
|
140
|
+
/plugin list everything-claude-code@everything-claude-code
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
⨠**That's it!** You now have access to 15+ agents, 30+ skills, and 30+ commands.
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
## ECC CLI (Engineering Change Conveyor)
|
|
148
|
+
|
|
149
|
+
This repo also includes **ECC**, a Codex-first engineering delivery engine that produces an auditable evidence chain and applies changes via unified-diff patches in an external git worktree.
|
|
150
|
+
|
|
151
|
+
Quickstart + install docs: [docs/ecc.md](docs/ecc.md)
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
## đ Cross-Platform Support
|
|
156
|
+
|
|
157
|
+
This plugin now fully supports **Windows, macOS, and Linux**. All hooks and scripts have been rewritten in Node.js for maximum compatibility.
|
|
158
|
+
|
|
159
|
+
### Package Manager Detection
|
|
160
|
+
|
|
161
|
+
The plugin automatically detects your preferred package manager (npm, pnpm, yarn, or bun) with the following priority:
|
|
162
|
+
|
|
163
|
+
1. **Environment variable**: `CLAUDE_PACKAGE_MANAGER`
|
|
164
|
+
2. **Project config**: `.claude/package-manager.json`
|
|
165
|
+
3. **package.json**: `packageManager` field
|
|
166
|
+
4. **Lock file**: Detection from package-lock.json, yarn.lock, pnpm-lock.yaml, or bun.lockb
|
|
167
|
+
5. **Global config**: `~/.claude/package-manager.json`
|
|
168
|
+
6. **Fallback**: First available package manager
|
|
169
|
+
|
|
170
|
+
To set your preferred package manager:
|
|
171
|
+
|
|
172
|
+
```bash
|
|
173
|
+
# Via environment variable
|
|
174
|
+
export CLAUDE_PACKAGE_MANAGER=pnpm
|
|
175
|
+
|
|
176
|
+
# Via global config
|
|
177
|
+
node scripts/setup-package-manager.js --global pnpm
|
|
178
|
+
|
|
179
|
+
# Via project config
|
|
180
|
+
node scripts/setup-package-manager.js --project bun
|
|
181
|
+
|
|
182
|
+
# Detect current setting
|
|
183
|
+
node scripts/setup-package-manager.js --detect
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
Or use the `/setup-pm` command in Claude Code.
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
## đĻ What's Inside
|
|
191
|
+
|
|
192
|
+
This repo is a **Claude Code plugin** - install it directly or copy components manually.
|
|
193
|
+
|
|
194
|
+
```
|
|
195
|
+
everything-claude-code/
|
|
196
|
+
|-- .claude-plugin/ # Plugin and marketplace manifests
|
|
197
|
+
| |-- plugin.json # Plugin metadata and component paths
|
|
198
|
+
| |-- marketplace.json # Marketplace catalog for /plugin marketplace add
|
|
199
|
+
|
|
|
200
|
+
|-- agents/ # Specialized subagents for delegation
|
|
201
|
+
| |-- planner.md # Feature implementation planning
|
|
202
|
+
| |-- architect.md # System design decisions
|
|
203
|
+
| |-- tdd-guide.md # Test-driven development
|
|
204
|
+
| |-- code-reviewer.md # Quality and security review
|
|
205
|
+
| |-- security-reviewer.md # Vulnerability analysis
|
|
206
|
+
| |-- build-error-resolver.md
|
|
207
|
+
| |-- e2e-runner.md # Playwright E2E testing
|
|
208
|
+
| |-- refactor-cleaner.md # Dead code cleanup
|
|
209
|
+
| |-- doc-updater.md # Documentation sync
|
|
210
|
+
| |-- go-reviewer.md # Go code review
|
|
211
|
+
| |-- go-build-resolver.md # Go build error resolution
|
|
212
|
+
| |-- python-reviewer.md # Python code review (NEW)
|
|
213
|
+
| |-- database-reviewer.md # Database/Supabase review (NEW)
|
|
214
|
+
|
|
|
215
|
+
|-- skills/ # Workflow definitions and domain knowledge
|
|
216
|
+
| |-- coding-standards/ # Language best practices
|
|
217
|
+
| |-- backend-patterns/ # API, database, caching patterns
|
|
218
|
+
| |-- frontend-patterns/ # React, Next.js patterns
|
|
219
|
+
| |-- continuous-learning/ # Auto-extract patterns from sessions (Longform Guide)
|
|
220
|
+
| |-- continuous-learning-v2/ # Instinct-based learning with confidence scoring
|
|
221
|
+
| |-- iterative-retrieval/ # Progressive context refinement for subagents
|
|
222
|
+
| |-- strategic-compact/ # Manual compaction suggestions (Longform Guide)
|
|
223
|
+
| |-- tdd-workflow/ # TDD methodology
|
|
224
|
+
| |-- security-review/ # Security checklist
|
|
225
|
+
| |-- eval-harness/ # Verification loop evaluation (Longform Guide)
|
|
226
|
+
| |-- verification-loop/ # Continuous verification (Longform Guide)
|
|
227
|
+
| |-- golang-patterns/ # Go idioms and best practices
|
|
228
|
+
| |-- golang-testing/ # Go testing patterns, TDD, benchmarks
|
|
229
|
+
| |-- django-patterns/ # Django patterns, models, views (NEW)
|
|
230
|
+
| |-- django-security/ # Django security best practices (NEW)
|
|
231
|
+
| |-- django-tdd/ # Django TDD workflow (NEW)
|
|
232
|
+
| |-- django-verification/ # Django verification loops (NEW)
|
|
233
|
+
| |-- python-patterns/ # Python idioms and best practices (NEW)
|
|
234
|
+
| |-- python-testing/ # Python testing with pytest (NEW)
|
|
235
|
+
| |-- springboot-patterns/ # Java Spring Boot patterns (NEW)
|
|
236
|
+
| |-- springboot-security/ # Spring Boot security (NEW)
|
|
237
|
+
| |-- springboot-tdd/ # Spring Boot TDD (NEW)
|
|
238
|
+
| |-- springboot-verification/ # Spring Boot verification (NEW)
|
|
239
|
+
| |-- configure-ecc/ # Interactive installation wizard (NEW)
|
|
240
|
+
|
|
|
241
|
+
|-- commands/ # Slash commands for quick execution
|
|
242
|
+
| |-- tdd.md # /tdd - Test-driven development
|
|
243
|
+
| |-- plan.md # /plan - Implementation planning
|
|
244
|
+
| |-- e2e.md # /e2e - E2E test generation
|
|
245
|
+
| |-- code-review.md # /code-review - Quality review
|
|
246
|
+
| |-- build-fix.md # /build-fix - Fix build errors
|
|
247
|
+
| |-- refactor-clean.md # /refactor-clean - Dead code removal
|
|
248
|
+
| |-- learn.md # /learn - Extract patterns mid-session (Longform Guide)
|
|
249
|
+
| |-- checkpoint.md # /checkpoint - Save verification state (Longform Guide)
|
|
250
|
+
| |-- verify.md # /verify - Run verification loop (Longform Guide)
|
|
251
|
+
| |-- setup-pm.md # /setup-pm - Configure package manager
|
|
252
|
+
| |-- go-review.md # /go-review - Go code review (NEW)
|
|
253
|
+
| |-- go-test.md # /go-test - Go TDD workflow (NEW)
|
|
254
|
+
| |-- go-build.md # /go-build - Fix Go build errors (NEW)
|
|
255
|
+
| |-- skill-create.md # /skill-create - Generate skills from git history (NEW)
|
|
256
|
+
| |-- instinct-status.md # /instinct-status - View learned instincts (NEW)
|
|
257
|
+
| |-- instinct-import.md # /instinct-import - Import instincts (NEW)
|
|
258
|
+
| |-- instinct-export.md # /instinct-export - Export instincts (NEW)
|
|
259
|
+
| |-- evolve.md # /evolve - Cluster instincts into skills
|
|
260
|
+
| |-- pm2.md # /pm2 - PM2 service lifecycle management (NEW)
|
|
261
|
+
| |-- multi-plan.md # /multi-plan - Multi-agent task decomposition (NEW)
|
|
262
|
+
| |-- multi-execute.md # /multi-execute - Orchestrated multi-agent workflows (NEW)
|
|
263
|
+
| |-- multi-backend.md # /multi-backend - Backend multi-service orchestration (NEW)
|
|
264
|
+
| |-- multi-frontend.md # /multi-frontend - Frontend multi-service orchestration (NEW)
|
|
265
|
+
| |-- multi-workflow.md # /multi-workflow - General multi-service workflows (NEW)
|
|
266
|
+
|
|
|
267
|
+
|-- rules/ # Always-follow guidelines (copy to ~/.claude/rules/)
|
|
268
|
+
| |-- README.md # Structure overview and installation guide
|
|
269
|
+
| |-- common/ # Language-agnostic principles
|
|
270
|
+
| | |-- coding-style.md # Immutability, file organization
|
|
271
|
+
| | |-- git-workflow.md # Commit format, PR process
|
|
272
|
+
| | |-- testing.md # TDD, 80% coverage requirement
|
|
273
|
+
| | |-- performance.md # Model selection, context management
|
|
274
|
+
| | |-- patterns.md # Design patterns, skeleton projects
|
|
275
|
+
| | |-- hooks.md # Hook architecture, TodoWrite
|
|
276
|
+
| | |-- agents.md # When to delegate to subagents
|
|
277
|
+
| | |-- security.md # Mandatory security checks
|
|
278
|
+
| |-- typescript/ # TypeScript/JavaScript specific
|
|
279
|
+
| |-- python/ # Python specific
|
|
280
|
+
| |-- golang/ # Go specific
|
|
281
|
+
|
|
|
282
|
+
|-- hooks/ # Trigger-based automations
|
|
283
|
+
| |-- hooks.json # All hooks config (PreToolUse, PostToolUse, Stop, etc.)
|
|
284
|
+
| |-- memory-persistence/ # Session lifecycle hooks (Longform Guide)
|
|
285
|
+
| |-- strategic-compact/ # Compaction suggestions (Longform Guide)
|
|
286
|
+
|
|
|
287
|
+
|-- scripts/ # Cross-platform Node.js scripts (NEW)
|
|
288
|
+
| |-- lib/ # Shared utilities
|
|
289
|
+
| | |-- utils.js # Cross-platform file/path/system utilities
|
|
290
|
+
| | |-- package-manager.js # Package manager detection and selection
|
|
291
|
+
| |-- hooks/ # Hook implementations
|
|
292
|
+
| | |-- session-start.js # Load context on session start
|
|
293
|
+
| | |-- session-end.js # Save state on session end
|
|
294
|
+
| | |-- pre-compact.js # Pre-compaction state saving
|
|
295
|
+
| | |-- suggest-compact.js # Strategic compaction suggestions
|
|
296
|
+
| | |-- evaluate-session.js # Extract patterns from sessions
|
|
297
|
+
| |-- setup-package-manager.js # Interactive PM setup
|
|
298
|
+
|
|
|
299
|
+
|-- tests/ # Test suite (NEW)
|
|
300
|
+
| |-- lib/ # Library tests
|
|
301
|
+
| |-- hooks/ # Hook tests
|
|
302
|
+
| |-- run-all.js # Run all tests
|
|
303
|
+
|
|
|
304
|
+
|-- contexts/ # Dynamic system prompt injection contexts (Longform Guide)
|
|
305
|
+
| |-- dev.md # Development mode context
|
|
306
|
+
| |-- review.md # Code review mode context
|
|
307
|
+
| |-- research.md # Research/exploration mode context
|
|
308
|
+
|
|
|
309
|
+
|-- examples/ # Example configurations and sessions
|
|
310
|
+
| |-- CLAUDE.md # Example project-level config
|
|
311
|
+
| |-- user-CLAUDE.md # Example user-level config
|
|
312
|
+
|
|
|
313
|
+
|-- mcp-configs/ # MCP server configurations
|
|
314
|
+
| |-- mcp-servers.json # GitHub, Supabase, Vercel, Railway, etc.
|
|
315
|
+
|
|
|
316
|
+
|-- marketplace.json # Self-hosted marketplace config (for /plugin marketplace add)
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
---
|
|
320
|
+
|
|
321
|
+
## đ ī¸ Ecosystem Tools
|
|
322
|
+
|
|
323
|
+
### Skill Creator
|
|
324
|
+
|
|
325
|
+
Two ways to generate Claude Code skills from your repository:
|
|
326
|
+
|
|
327
|
+
#### Option A: Local Analysis (Built-in)
|
|
328
|
+
|
|
329
|
+
Use the `/skill-create` command for local analysis without external services:
|
|
330
|
+
|
|
331
|
+
```bash
|
|
332
|
+
/skill-create # Analyze current repo
|
|
333
|
+
/skill-create --instincts # Also generate instincts for continuous-learning
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
This analyzes your git history locally and generates SKILL.md files.
|
|
337
|
+
|
|
338
|
+
#### Option B: GitHub App (Advanced)
|
|
339
|
+
|
|
340
|
+
For advanced features (10k+ commits, auto-PRs, team sharing):
|
|
341
|
+
|
|
342
|
+
[Install GitHub App](https://github.com/apps/skill-creator) | [ecc.tools](https://ecc.tools)
|
|
343
|
+
|
|
344
|
+
```bash
|
|
345
|
+
# Comment on any issue:
|
|
346
|
+
/skill-creator analyze
|
|
347
|
+
|
|
348
|
+
# Or auto-triggers on push to default branch
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
Both options create:
|
|
352
|
+
- **SKILL.md files** - Ready-to-use skills for Claude Code
|
|
353
|
+
- **Instinct collections** - For continuous-learning-v2
|
|
354
|
+
- **Pattern extraction** - Learns from your commit history
|
|
355
|
+
|
|
356
|
+
### đ§ Continuous Learning v2
|
|
357
|
+
|
|
358
|
+
The instinct-based learning system automatically learns your patterns:
|
|
359
|
+
|
|
360
|
+
```bash
|
|
361
|
+
/instinct-status # Show learned instincts with confidence
|
|
362
|
+
/instinct-import <file> # Import instincts from others
|
|
363
|
+
/instinct-export # Export your instincts for sharing
|
|
364
|
+
/evolve # Cluster related instincts into skills
|
|
365
|
+
```
|
|
366
|
+
|
|
367
|
+
See `skills/continuous-learning-v2/` for full documentation.
|
|
368
|
+
|
|
369
|
+
---
|
|
370
|
+
|
|
371
|
+
## đ Requirements
|
|
372
|
+
|
|
373
|
+
### Claude Code CLI Version
|
|
374
|
+
|
|
375
|
+
**Minimum version: v2.1.0 or later**
|
|
376
|
+
|
|
377
|
+
This plugin requires Claude Code CLI v2.1.0+ due to changes in how the plugin system handles hooks.
|
|
378
|
+
|
|
379
|
+
Check your version:
|
|
380
|
+
```bash
|
|
381
|
+
claude --version
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
### Important: Hooks Auto-Loading Behavior
|
|
385
|
+
|
|
386
|
+
> â ī¸ **For Contributors:** Do NOT add a `"hooks"` field to `.claude-plugin/plugin.json`. This is enforced by a regression test.
|
|
387
|
+
|
|
388
|
+
Claude Code v2.1+ **automatically loads** `hooks/hooks.json` from any installed plugin by convention. Explicitly declaring it in `plugin.json` causes a duplicate detection error:
|
|
389
|
+
|
|
390
|
+
```
|
|
391
|
+
Duplicate hooks file detected: ./hooks/hooks.json resolves to already-loaded file
|
|
392
|
+
```
|
|
393
|
+
|
|
394
|
+
**History:** This has caused repeated fix/revert cycles in this repo ([#29](https://github.com/affaan-m/everything-claude-code/issues/29), [#52](https://github.com/affaan-m/everything-claude-code/issues/52), [#103](https://github.com/affaan-m/everything-claude-code/issues/103)). The behavior changed between Claude Code versions, leading to confusion. We now have a regression test to prevent this from being reintroduced.
|
|
395
|
+
|
|
396
|
+
---
|
|
397
|
+
|
|
398
|
+
## đĨ Installation
|
|
399
|
+
|
|
400
|
+
### Option 1: Install as Plugin (Recommended)
|
|
401
|
+
|
|
402
|
+
The easiest way to use this repo - install as a Claude Code plugin:
|
|
403
|
+
|
|
404
|
+
```bash
|
|
405
|
+
# Add this repo as a marketplace
|
|
406
|
+
/plugin marketplace add affaan-m/everything-claude-code
|
|
407
|
+
|
|
408
|
+
# Install the plugin
|
|
409
|
+
/plugin install everything-claude-code@everything-claude-code
|
|
410
|
+
```
|
|
411
|
+
|
|
412
|
+
Or add directly to your `~/.claude/settings.json`:
|
|
413
|
+
|
|
414
|
+
```json
|
|
415
|
+
{
|
|
416
|
+
"extraKnownMarketplaces": {
|
|
417
|
+
"everything-claude-code": {
|
|
418
|
+
"source": {
|
|
419
|
+
"source": "github",
|
|
420
|
+
"repo": "affaan-m/everything-claude-code"
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
"enabledPlugins": {
|
|
425
|
+
"everything-claude-code@everything-claude-code": true
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
```
|
|
429
|
+
|
|
430
|
+
This gives you instant access to all commands, agents, skills, and hooks.
|
|
431
|
+
|
|
432
|
+
> **Note:** The Claude Code plugin system does not support distributing `rules` via plugins ([upstream limitation](https://code.claude.com/docs/en/plugins-reference)). You need to install rules manually:
|
|
433
|
+
>
|
|
434
|
+
> ```bash
|
|
435
|
+
> # Clone the repo first
|
|
436
|
+
> git clone https://github.com/affaan-m/everything-claude-code.git
|
|
437
|
+
>
|
|
438
|
+
> # Option A: User-level rules (applies to all projects)
|
|
439
|
+
> cp -r everything-claude-code/rules/common/* ~/.claude/rules/
|
|
440
|
+
> cp -r everything-claude-code/rules/typescript/* ~/.claude/rules/ # pick your stack
|
|
441
|
+
> cp -r everything-claude-code/rules/python/* ~/.claude/rules/
|
|
442
|
+
> cp -r everything-claude-code/rules/golang/* ~/.claude/rules/
|
|
443
|
+
>
|
|
444
|
+
> # Option B: Project-level rules (applies to current project only)
|
|
445
|
+
> mkdir -p .claude/rules
|
|
446
|
+
> cp -r everything-claude-code/rules/common/* .claude/rules/
|
|
447
|
+
> cp -r everything-claude-code/rules/typescript/* .claude/rules/ # pick your stack
|
|
448
|
+
> ```
|
|
449
|
+
|
|
450
|
+
---
|
|
451
|
+
|
|
452
|
+
### đ§ Option 2: Manual Installation
|
|
453
|
+
|
|
454
|
+
If you prefer manual control over what's installed:
|
|
455
|
+
|
|
456
|
+
```bash
|
|
457
|
+
# Clone the repo
|
|
458
|
+
git clone https://github.com/affaan-m/everything-claude-code.git
|
|
459
|
+
|
|
460
|
+
# Copy agents to your Claude config
|
|
461
|
+
cp everything-claude-code/agents/*.md ~/.claude/agents/
|
|
462
|
+
|
|
463
|
+
# Copy rules (common + language-specific)
|
|
464
|
+
cp -r everything-claude-code/rules/common/* ~/.claude/rules/
|
|
465
|
+
cp -r everything-claude-code/rules/typescript/* ~/.claude/rules/ # pick your stack
|
|
466
|
+
cp -r everything-claude-code/rules/python/* ~/.claude/rules/
|
|
467
|
+
cp -r everything-claude-code/rules/golang/* ~/.claude/rules/
|
|
468
|
+
|
|
469
|
+
# Copy commands
|
|
470
|
+
cp everything-claude-code/commands/*.md ~/.claude/commands/
|
|
471
|
+
|
|
472
|
+
# Copy skills
|
|
473
|
+
cp -r everything-claude-code/skills/* ~/.claude/skills/
|
|
474
|
+
```
|
|
475
|
+
|
|
476
|
+
#### Add hooks to settings.json
|
|
477
|
+
|
|
478
|
+
Copy the hooks from `hooks/hooks.json` to your `~/.claude/settings.json`.
|
|
479
|
+
|
|
480
|
+
#### Configure MCPs
|
|
481
|
+
|
|
482
|
+
Copy desired MCP servers from `mcp-configs/mcp-servers.json` to your `~/.claude.json`.
|
|
483
|
+
|
|
484
|
+
**Important:** Replace `YOUR_*_HERE` placeholders with your actual API keys.
|
|
485
|
+
|
|
486
|
+
---
|
|
487
|
+
|
|
488
|
+
## đ¯ Key Concepts
|
|
489
|
+
|
|
490
|
+
### Agents
|
|
491
|
+
|
|
492
|
+
Subagents handle delegated tasks with limited scope. Example:
|
|
493
|
+
|
|
494
|
+
```markdown
|
|
495
|
+
---
|
|
496
|
+
name: code-reviewer
|
|
497
|
+
description: Reviews code for quality, security, and maintainability
|
|
498
|
+
tools: ["Read", "Grep", "Glob", "Bash"]
|
|
499
|
+
model: opus
|
|
500
|
+
---
|
|
501
|
+
|
|
502
|
+
You are a senior code reviewer...
|
|
503
|
+
```
|
|
504
|
+
|
|
505
|
+
### Skills
|
|
506
|
+
|
|
507
|
+
Skills are workflow definitions invoked by commands or agents:
|
|
508
|
+
|
|
509
|
+
```markdown
|
|
510
|
+
# TDD Workflow
|
|
511
|
+
|
|
512
|
+
1. Define interfaces first
|
|
513
|
+
2. Write failing tests (RED)
|
|
514
|
+
3. Implement minimal code (GREEN)
|
|
515
|
+
4. Refactor (IMPROVE)
|
|
516
|
+
5. Verify 80%+ coverage
|
|
517
|
+
```
|
|
518
|
+
|
|
519
|
+
### Hooks
|
|
520
|
+
|
|
521
|
+
Hooks fire on tool events. Example - warn about console.log:
|
|
522
|
+
|
|
523
|
+
```json
|
|
524
|
+
{
|
|
525
|
+
"matcher": "tool == \"Edit\" && tool_input.file_path matches \"\\\\.(ts|tsx|js|jsx)$\"",
|
|
526
|
+
"hooks": [{
|
|
527
|
+
"type": "command",
|
|
528
|
+
"command": "#!/bin/bash\ngrep -n 'console\\.log' \"$file_path\" && echo '[Hook] Remove console.log' >&2"
|
|
529
|
+
}]
|
|
530
|
+
}
|
|
531
|
+
```
|
|
532
|
+
|
|
533
|
+
### Rules
|
|
534
|
+
|
|
535
|
+
Rules are always-follow guidelines, organized into `common/` (language-agnostic) + language-specific directories:
|
|
536
|
+
|
|
537
|
+
```
|
|
538
|
+
rules/
|
|
539
|
+
common/ # Universal principles (always install)
|
|
540
|
+
typescript/ # TS/JS specific patterns and tools
|
|
541
|
+
python/ # Python specific patterns and tools
|
|
542
|
+
golang/ # Go specific patterns and tools
|
|
543
|
+
```
|
|
544
|
+
|
|
545
|
+
See [`rules/README.md`](rules/README.md) for installation and structure details.
|
|
546
|
+
|
|
547
|
+
---
|
|
548
|
+
|
|
549
|
+
## đ§Ē Running Tests
|
|
550
|
+
|
|
551
|
+
The plugin includes a comprehensive test suite:
|
|
552
|
+
|
|
553
|
+
```bash
|
|
554
|
+
# Run all tests
|
|
555
|
+
node tests/run-all.js
|
|
556
|
+
|
|
557
|
+
# Run individual test files
|
|
558
|
+
node tests/lib/utils.test.js
|
|
559
|
+
node tests/lib/package-manager.test.js
|
|
560
|
+
node tests/hooks/hooks.test.js
|
|
561
|
+
```
|
|
562
|
+
|
|
563
|
+
---
|
|
564
|
+
|
|
565
|
+
## đ¤ Contributing
|
|
566
|
+
|
|
567
|
+
**Contributions are welcome and encouraged.**
|
|
568
|
+
|
|
569
|
+
This repo is meant to be a community resource. If you have:
|
|
570
|
+
- Useful agents or skills
|
|
571
|
+
- Clever hooks
|
|
572
|
+
- Better MCP configurations
|
|
573
|
+
- Improved rules
|
|
574
|
+
|
|
575
|
+
Please contribute! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
|
|
576
|
+
|
|
577
|
+
### Ideas for Contributions
|
|
578
|
+
|
|
579
|
+
- Language-specific skills (Rust, C#, Swift, Kotlin) â Go, Python, Java already included
|
|
580
|
+
- Framework-specific configs (Rails, Laravel, FastAPI, NestJS) â Django, Spring Boot already included
|
|
581
|
+
- DevOps agents (Kubernetes, Terraform, AWS, Docker)
|
|
582
|
+
- Testing strategies (different frameworks, visual regression)
|
|
583
|
+
- Domain-specific knowledge (ML, data engineering, mobile)
|
|
584
|
+
|
|
585
|
+
---
|
|
586
|
+
|
|
587
|
+
## đ OpenCode Support
|
|
588
|
+
|
|
589
|
+
ECC provides **full OpenCode support** including plugins and hooks.
|
|
590
|
+
|
|
591
|
+
### Quick Start
|
|
592
|
+
|
|
593
|
+
```bash
|
|
594
|
+
# Install OpenCode
|
|
595
|
+
npm install -g opencode
|
|
596
|
+
|
|
597
|
+
# Run in the repository root
|
|
598
|
+
opencode
|
|
599
|
+
```
|
|
600
|
+
|
|
601
|
+
The configuration is automatically detected from `.opencode/opencode.json`.
|
|
602
|
+
|
|
603
|
+
### Feature Parity
|
|
604
|
+
|
|
605
|
+
| Feature | Claude Code | OpenCode | Status |
|
|
606
|
+
|---------|-------------|----------|--------|
|
|
607
|
+
| Agents | â
14 agents | â
12 agents | **Claude Code leads** |
|
|
608
|
+
| Commands | â
30 commands | â
24 commands | **Claude Code leads** |
|
|
609
|
+
| Skills | â
28 skills | â
16 skills | **Claude Code leads** |
|
|
610
|
+
| Hooks | â
3 phases | â
20+ events | **OpenCode has more!** |
|
|
611
|
+
| Rules | â
8 rules | â
8 rules | **Full parity** |
|
|
612
|
+
| MCP Servers | â
Full | â
Full | **Full parity** |
|
|
613
|
+
| Custom Tools | â
Via hooks | â
Native support | **OpenCode is better** |
|
|
614
|
+
|
|
615
|
+
### Hook Support via Plugins
|
|
616
|
+
|
|
617
|
+
OpenCode's plugin system is MORE sophisticated than Claude Code with 20+ event types:
|
|
618
|
+
|
|
619
|
+
| Claude Code Hook | OpenCode Plugin Event |
|
|
620
|
+
|-----------------|----------------------|
|
|
621
|
+
| PreToolUse | `tool.execute.before` |
|
|
622
|
+
| PostToolUse | `tool.execute.after` |
|
|
623
|
+
| Stop | `session.idle` |
|
|
624
|
+
| SessionStart | `session.created` |
|
|
625
|
+
| SessionEnd | `session.deleted` |
|
|
626
|
+
|
|
627
|
+
**Additional OpenCode events**: `file.edited`, `file.watcher.updated`, `message.updated`, `lsp.client.diagnostics`, `tui.toast.show`, and more.
|
|
628
|
+
|
|
629
|
+
### Available Commands (24)
|
|
630
|
+
|
|
631
|
+
| Command | Description |
|
|
632
|
+
|---------|-------------|
|
|
633
|
+
| `/plan` | Create implementation plan |
|
|
634
|
+
| `/tdd` | Enforce TDD workflow |
|
|
635
|
+
| `/code-review` | Review code changes |
|
|
636
|
+
| `/security` | Run security review |
|
|
637
|
+
| `/build-fix` | Fix build errors |
|
|
638
|
+
| `/e2e` | Generate E2E tests |
|
|
639
|
+
| `/refactor-clean` | Remove dead code |
|
|
640
|
+
| `/orchestrate` | Multi-agent workflow |
|
|
641
|
+
| `/learn` | Extract patterns from session |
|
|
642
|
+
| `/checkpoint` | Save verification state |
|
|
643
|
+
| `/verify` | Run verification loop |
|
|
644
|
+
| `/eval` | Evaluate against criteria |
|
|
645
|
+
| `/update-docs` | Update documentation |
|
|
646
|
+
| `/update-codemaps` | Update codemaps |
|
|
647
|
+
| `/test-coverage` | Analyze coverage |
|
|
648
|
+
| `/go-review` | Go code review |
|
|
649
|
+
| `/go-test` | Go TDD workflow |
|
|
650
|
+
| `/go-build` | Fix Go build errors |
|
|
651
|
+
| `/skill-create` | Generate skills from git |
|
|
652
|
+
| `/instinct-status` | View learned instincts |
|
|
653
|
+
| `/instinct-import` | Import instincts |
|
|
654
|
+
| `/instinct-export` | Export instincts |
|
|
655
|
+
| `/evolve` | Cluster instincts into skills |
|
|
656
|
+
| `/setup-pm` | Configure package manager |
|
|
657
|
+
|
|
658
|
+
### Plugin Installation
|
|
659
|
+
|
|
660
|
+
**Option 1: Use directly**
|
|
661
|
+
```bash
|
|
662
|
+
cd everything-claude-code
|
|
663
|
+
opencode
|
|
664
|
+
```
|
|
665
|
+
|
|
666
|
+
**Option 2: Install as npm package**
|
|
667
|
+
```bash
|
|
668
|
+
npm install opencode-ecc
|
|
669
|
+
```
|
|
670
|
+
|
|
671
|
+
Then add to your `opencode.json`:
|
|
672
|
+
```json
|
|
673
|
+
{
|
|
674
|
+
"plugin": ["opencode-ecc"]
|
|
675
|
+
}
|
|
676
|
+
```
|
|
677
|
+
|
|
678
|
+
### Documentation
|
|
679
|
+
|
|
680
|
+
- **Migration Guide**: `.opencode/MIGRATION.md`
|
|
681
|
+
- **OpenCode Plugin README**: `.opencode/README.md`
|
|
682
|
+
- **Consolidated Rules**: `.opencode/instructions/INSTRUCTIONS.md`
|
|
683
|
+
- **LLM Documentation**: `llms.txt` (complete OpenCode docs for LLMs)
|
|
684
|
+
|
|
685
|
+
---
|
|
686
|
+
|
|
687
|
+
## đ Background
|
|
688
|
+
|
|
689
|
+
I've been using Claude Code since the experimental rollout. Won the Anthropic x Forum Ventures hackathon in Sep 2025 building [zenith.chat](https://zenith.chat) with [@DRodriguezFX](https://x.com/DRodriguezFX) - entirely using Claude Code.
|
|
690
|
+
|
|
691
|
+
These configs are battle-tested across multiple production applications.
|
|
692
|
+
|
|
693
|
+
---
|
|
694
|
+
|
|
695
|
+
## â ī¸ Important Notes
|
|
696
|
+
|
|
697
|
+
### Context Window Management
|
|
698
|
+
|
|
699
|
+
**Critical:** Don't enable all MCPs at once. Your 200k context window can shrink to 70k with too many tools enabled.
|
|
700
|
+
|
|
701
|
+
Rule of thumb:
|
|
702
|
+
- Have 20-30 MCPs configured
|
|
703
|
+
- Keep under 10 enabled per project
|
|
704
|
+
- Under 80 tools active
|
|
705
|
+
|
|
706
|
+
Use `disabledMcpServers` in project config to disable unused ones.
|
|
707
|
+
|
|
708
|
+
### Customization
|
|
709
|
+
|
|
710
|
+
These configs work for my workflow. You should:
|
|
711
|
+
1. Start with what resonates
|
|
712
|
+
2. Modify for your stack
|
|
713
|
+
3. Remove what you don't use
|
|
714
|
+
4. Add your own patterns
|
|
715
|
+
|
|
716
|
+
---
|
|
717
|
+
|
|
718
|
+
## đ Star History
|
|
719
|
+
|
|
720
|
+
[](https://star-history.com/#affaan-m/everything-claude-code&Date)
|
|
721
|
+
|
|
722
|
+
---
|
|
723
|
+
|
|
724
|
+
## đ Links
|
|
725
|
+
|
|
726
|
+
- **Shorthand Guide (Start Here):** [The Shorthand Guide to Everything Claude Code](https://x.com/affaanmustafa/status/2012378465664745795)
|
|
727
|
+
- **Longform Guide (Advanced):** [The Longform Guide to Everything Claude Code](https://x.com/affaanmustafa/status/2014040193557471352)
|
|
728
|
+
- **Follow:** [@affaanmustafa](https://x.com/affaanmustafa)
|
|
729
|
+
- **zenith.chat:** [zenith.chat](https://zenith.chat)
|
|
730
|
+
|
|
731
|
+
---
|
|
732
|
+
|
|
733
|
+
## đ License
|
|
734
|
+
|
|
735
|
+
MIT - Use freely, modify as needed, contribute back if you can.
|
|
736
|
+
|
|
737
|
+
---
|
|
738
|
+
|
|
739
|
+
**Star this repo if it helps. Read both guides. Build something great.**
|