Skip to content

Commit 5f34461

Browse files
randclaude
andcommitted
feat: v3.0.0 — fix path resolution, modernize plugin, clean up commands
Replace all hardcoded ~/.claude/skills/ and ~/.claude/plugins/cc-polymath/ paths with <cc-polymath-root> placeholder resolved via SessionStart hook. This fixes broken skill cross-references for marketplace installs. - Add hooks/hooks.json with SessionStart hook injecting plugin root path - Replace 1200+ hardcoded path references across 113 files - Remove bash code block markers from Read tool instructions - Bump version to 3.0.0 in plugin.json and marketplace.json - Add skills, agents, hooks fields to plugin.json - Remove 10 redundant commands/discover-*.md (duplicated by gateway skills) - Remove stale commands/skills/ subdirectory (old slash-commands docs) - Reconcile skill counts: 400 skills, 38 gateways, 39 categories - Fix broken cross-ref to discover-collab → discover-collaboration - Remove broken ref to nonexistent protocols/protocol-debugging.md Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 2d9a986 commit 5f34461

247 files changed

Lines changed: 1872 additions & 3414 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude-plugin/marketplace.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cc-polymath-marketplace",
3-
"description": "Official marketplace for cc-polymath: 447 atomic, production-ready skills with progressive loading",
3+
"description": "Official marketplace for cc-polymath: efficient skill management with progressive discovery across 31+ domains",
44
"owner": {
55
"name": "rand",
66
"url": "https://github.com/rand/cc-polymath"
@@ -9,8 +9,8 @@
99
{
1010
"name": "cc-polymath",
1111
"source": "./",
12-
"description": "447 atomic skills across 31+ domains with gateway-based progressive loading. Includes API design, databases, ML, diagrams, infrastructure, cryptography, and more.",
13-
"version": "2.0.0"
12+
"description": "Efficient skill management with progressive discovery — 400 production-ready skills across 31+ domains.",
13+
"version": "3.0.0"
1414
}
1515
]
1616
}

.claude-plugin/plugin.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "cc-polymath",
3-
"version": "2.0.0",
4-
"description": "447 atomic, production-ready skills with gateway-based progressive loading for Claude Code. 31+ domains including API design, databases, ML, diagrams (Mermaid), mathematics, testing, infrastructure, cryptography, protocols, and more. Context-efficient three-tier architecture with auto-discovery gateways.",
3+
"version": "3.0.0",
4+
"description": "Efficient skill management system with progressive discovery — 400 production-ready skills across 31+ domains",
55
"author": {
66
"name": "rand"
77
},
@@ -39,5 +39,8 @@
3939
"dspy",
4040
"context-efficient"
4141
],
42-
"commands": "./commands"
42+
"skills": "./skills",
43+
"agents": "./agents",
44+
"commands": "./commands",
45+
"hooks": "./hooks"
4346
}

MIGRATION.md

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The plugin system provides:
88
-**One-command installation** - No scripts, no manual syncing
99
-**Automatic updates** - Pull latest version with `/plugin update`
1010
-**Cleaner installation** - No files in `~/.claude/skills` or `~/.claude/commands`
11-
-**Better isolation** - Plugin data stays in `~/.claude/plugins/cc-polymath/`
11+
-**Better isolation** - Plugin data stays in `<cc-polymath-root>/`
1212
-**Version management** - Track which version you're using
1313
-**Marketplace distribution** - Discover and share plugins easily
1414

@@ -54,7 +54,7 @@ Install cc-polymath as a plugin:
5454
```
5555

5656
That's it! The plugin system will:
57-
- Download all 292 skills to `~/.claude/plugins/cc-polymath/skills/`
57+
- Download all 400 skills to `<cc-polymath-root>/skills/`
5858
- Register the `/skills` command automatically
5959
- Make everything available immediately
6060

@@ -68,7 +68,7 @@ Check that the plugin is installed:
6868

6969
You should see:
7070
```
71-
cc-polymath (v2.0.0) - 292 atomic skills with gateway-based progressive loading
71+
cc-polymath (v2.0.0) - 400 atomic skills with gateway-based progressive loading
7272
```
7373

7474
Test the `/skills` command:
@@ -86,25 +86,25 @@ If you customized any skills, you can copy them to the plugin directory:
8686
```bash
8787
# Example: Restore a custom skill
8888
cp ~/.claude/skills.backup/custom/my-skill.md \
89-
~/.claude/plugins/cc-polymath/skills/custom/my-skill.md
89+
<cc-polymath-root>/skills/custom/my-skill.md
9090
```
9191

92-
**Note:** The plugin directory is at `~/.claude/plugins/cc-polymath/`, not `~/.claude/skills/`.
92+
**Note:** The plugin directory is at `<cc-polymath-root>/`, not `<cc-polymath-root>/skills/`.
9393

9494
## What Changed
9595

9696
### Installation Location
9797

9898
**Before (Manual):**
9999
```
100-
~/.claude/skills/ # Skills directory
100+
<cc-polymath-root>/skills/ # Skills directory
101101
~/.claude/commands/ # Commands directory
102102
```
103103

104104
**After (Plugin):**
105105
```
106-
~/.claude/plugins/cc-polymath/skills/ # Skills
107-
~/.claude/plugins/cc-polymath/commands/ # Commands
106+
<cc-polymath-root>/skills/ # Skills
107+
<cc-polymath-root>/commands/ # Commands
108108
```
109109

110110
### Installation Method
@@ -151,7 +151,7 @@ git pull
151151

152152
### Skills Structure
153153

154-
The 292 skills across 31 categories are identical:
154+
The 400 skills across 31 categories are identical:
155155
- Same gateway architecture
156156
- Same progressive loading
157157
- Same skill content and guidance
@@ -171,7 +171,7 @@ All discovery mechanisms work exactly the same:
171171
All existing workflows continue to work:
172172
- Gateway skills still activate based on project context
173173
- Skills still compose with each other
174-
- All 28 gateways, 31 categories, 292 skills unchanged
174+
- All 38 gateways, 31 categories, 400 skills unchanged
175175

176176
## Troubleshooting
177177

@@ -193,7 +193,7 @@ All existing workflows continue to work:
193193
**Solution:**
194194
```bash
195195
# Check plugin directory exists
196-
ls ~/.claude/plugins/cc-polymath/skills/
196+
ls <cc-polymath-root>/skills/
197197

198198
# If empty, reinstall plugin
199199
/plugin uninstall cc-polymath
@@ -202,7 +202,7 @@ ls ~/.claude/plugins/cc-polymath/skills/
202202

203203
### Want to keep both installations?
204204

205-
You can keep the manual installation in `~/.claude/skills/` for reference, but:
205+
You can keep the manual installation in `<cc-polymath-root>/skills/` for reference, but:
206206
- Only the plugin version will be used by `/skills` command
207207
- Gateway skills will activate from plugin location
208208
- This may cause confusion - recommended to remove manual installation
@@ -232,17 +232,16 @@ cp ~/.claude/commands.backup/skills.md ~/.claude/commands/skills.md
232232
```
233233

234234
**Manual:**
235-
```bash
236-
cat ~/.claude/skills/README.md | grep "Version:"
237-
```
235+
Read <cc-polymath-root>/skills/README.md | grep "Version:"
236+
238237

239238
### Can I install both?
240239

241240
Technically yes, but not recommended. The plugin system will take precedence for commands and skill discovery.
242241

243242
### Will my custom skills be lost?
244243

245-
No, but you need to manually copy them from `~/.claude/skills/` to `~/.claude/plugins/cc-polymath/skills/` after installing the plugin.
244+
No, but you need to manually copy them from `<cc-polymath-root>/skills/` to `<cc-polymath-root>/skills/` after installing the plugin.
246245

247246
### How do I contribute updates?
248247

@@ -265,7 +264,7 @@ After migration:
265264

266265
If you encounter issues during migration:
267266
1. Check this guide's troubleshooting section
268-
2. Review plugin documentation: `cat ~/.claude/plugins/cc-polymath/PLUGIN.md`
267+
2. Review plugin documentation: `Read <cc-polymath-root>/PLUGIN.md`
269268
3. Open an issue: https://github.com/rand/cc-polymath/issues
270269

271270
---

PLUGIN.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77

88
## Overview
99

10-
cc-polymath is a comprehensive Claude Code plugin that provides 447 atomic, production-ready skills across 31+ domains, plus context-aware skill discovery commands and specialized subagents. It uses a gateway-based progressive loading architecture to minimize context usage while maximizing skill availability.
10+
cc-polymath is a comprehensive Claude Code plugin that provides 400 atomic, production-ready skills across 31+ domains, plus context-aware skill discovery commands and specialized subagents. It uses a gateway-based progressive loading architecture to minimize context usage while maximizing skill availability.
1111

1212
## Plugin Structure
1313

1414
```
1515
cc-polymath/
1616
├── .claude-plugin/
1717
│ └── plugin.json # Plugin manifest
18-
├── skills/ # 447 skills, 31+ domains
18+
├── skills/ # 400 skills, 31+ domains
1919
│ ├── README.md # Master catalog (gateway index)
20-
│ ├── discover-*/ # 28 gateway skills
20+
│ ├── discover-*/ # 38 gateway skills
2121
│ │ └── SKILL.md
2222
│ ├── api/ # Category directories
2323
│ │ └── INDEX.md # Category index
@@ -63,9 +63,9 @@ Install the plugin with a single command:
6363
```
6464

6565
Claude Code will:
66-
1. Clone the repository to `~/.claude/plugins/cc-polymath/`
66+
1. Clone the repository to `<cc-polymath-root>/`
6767
2. Register all slash commands (e.g., `/skills`, `/discover-api`, etc.)
68-
3. Make all 447 skills available for discovery
68+
3. Make all 400 skills available for discovery
6969
4. Register specialized subagents (skill-navigator, architecture-advisor, polyglot-engineer)
7070
5. Enable gateway-based progressive loading
7171

@@ -97,7 +97,7 @@ cd cc-polymath
9797
- Load-on-demand when category is relevant
9898
- Examples: `api/INDEX.md`, `database/INDEX.md`
9999

100-
**Tier 3: Individual Skills (447 skills)**
100+
**Tier 3: Individual Skills (400 skills)**
101101
- Deep, actionable guidance (~320 lines avg)
102102
- Load only when specifically needed
103103
- Contain code examples, best practices, workflows
@@ -118,7 +118,7 @@ Project detected → Gateway activates → Category shown → Skill loaded
118118
```
119119

120120
**Context Savings:**
121-
- Loading all 447 skills: ~143,000 lines
121+
- Loading all 400 skills: ~143,000 lines
122122
- Gateway-based approach: ~200-1,500 lines per session
123123
- **98-99% context reduction**
124124

@@ -174,7 +174,7 @@ These commands complement the auto-discovery system by providing explicit invoca
174174
cc-polymath includes three specialized subagents that leverage the skills library for focused workflows:
175175

176176
### `skill-navigator`
177-
**Purpose:** Expert guide for navigating the 447-skill library
177+
**Purpose:** Expert guide for navigating the 400-skill library
178178

179179
**Use when:**
180180
- Users need help finding relevant skills
@@ -247,7 +247,7 @@ Leverages language-specific skills and can implement solutions in the best-fit l
247247
{
248248
"name": "cc-polymath",
249249
"version": "2.0.0",
250-
"description": "447 atomic, production-ready skills with gateway-based progressive loading for Claude Code. 31+ domains including API design, databases, ML, diagrams (Mermaid), mathematics, testing, infrastructure, cryptography, protocols, and more. Context-efficient three-tier architecture with auto-discovery gateways.",
250+
"description": "400 atomic, production-ready skills with gateway-based progressive loading for Claude Code. 31+ domains including API design, databases, ML, diagrams (Mermaid), mathematics, testing, infrastructure, cryptography, protocols, and more. Context-efficient three-tier architecture with auto-discovery gateways.",
251251
"author": {
252252
"name": "rand"
253253
},
@@ -274,7 +274,7 @@ Leverages language-specific skills and can implement solutions in the best-fit l
274274
- Added 10 gateway discovery slash commands (`/discover-*`)
275275
- Created 3 specialized subagents (skill-navigator, architecture-advisor, polyglot-engineer)
276276
- Added marketplace.json for distribution
277-
- Updated to 447 skills across 31+ domains
277+
- Updated to 400 skills across 31+ domains
278278
- Enhanced keywords for better discoverability
279279
- Converted to Claude Code plugin
280280
- Added plugin manifest
@@ -283,7 +283,7 @@ Leverages language-specific skills and can implement solutions in the best-fit l
283283
- Added LICENSE for marketplace compatibility
284284

285285
- **v1.0.0** - Manual installation
286-
- 292 skills across 31 categories
286+
- 400 skills across 31 categories
287287
- Gateway-based progressive loading
288288
- Manual sync with install.sh
289289

@@ -295,10 +295,10 @@ Leverages language-specific skills and can implement solutions in the best-fit l
295295
```
296296

297297
**Process:**
298-
1. Claude Code clones repository to `~/.claude/plugins/cc-polymath/`
298+
1. Claude Code clones repository to `<cc-polymath-root>/`
299299
2. Reads `.claude-plugin/plugin.json` for metadata
300300
3. Registers commands from `commands/` directory
301-
4. Makes skills available at `~/.claude/plugins/cc-polymath/skills/`
301+
4. Makes skills available at `<cc-polymath-root>/skills/`
302302

303303
### Updates
304304
```bash
@@ -318,7 +318,7 @@ Leverages language-specific skills and can implement solutions in the best-fit l
318318

319319
**Process:**
320320
1. Unregisters all commands
321-
2. Removes `~/.claude/plugins/cc-polymath/` directory
321+
2. Removes `<cc-polymath-root>/` directory
322322
3. Cleans up plugin metadata
323323
4. No traces left in Claude Code configuration
324324

@@ -483,7 +483,7 @@ cat skills/your-category/your-skill.md
483483
**Check:**
484484
```bash
485485
# Verify plugin directory exists
486-
ls ~/.claude/plugins/cc-polymath/skills/
486+
ls <cc-polymath-root>/skills/
487487
488488
# Reinstall if missing
489489
/plugin uninstall cc-polymath
@@ -494,7 +494,7 @@ ls ~/.claude/plugins/cc-polymath/skills/
494494
495495
**Location:**
496496
```bash
497-
cd ~/.claude/plugins/cc-polymath/skills/
497+
cd <cc-polymath-root>/skills/
498498
# Edit skills here
499499
# Changes will persist until plugin update
500500
```
@@ -506,11 +506,11 @@ cd ~/.claude/plugins/cc-polymath/skills/
506506
### File Structure
507507
508508
```
509-
~/.claude/plugins/cc-polymath/
509+
<cc-polymath-root>/
510510
├── .claude-plugin/
511511
│ └── plugin.json # Metadata read by Claude Code
512512
├── skills/ # Discovered by skill system
513-
│ ├── README.md # Master catalog (28 gateways)
513+
│ ├── README.md # Master catalog (38 gateways)
514514
│ ├── discover-*/SKILL.md # Gateway skills
515515
│ └── */INDEX.md # Category indexes
516516
├── commands/ # Auto-registered by plugin system

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Atomic Skills for Claude Code
22

33
[![Claude Code Plugin](https://img.shields.io/badge/Claude%20Code-Plugin-blue)](https://docs.claude.com/en/docs/claude-code/plugins)
4-
[![Skills](https://img.shields.io/badge/Skills-447-green)](skills/)
4+
[![Skills](https://img.shields.io/badge/Skills-400-green)](skills/)
55
[![License](https://img.shields.io/badge/License-MIT-yellow)](LICENSE)
66

77
**Context-efficient development knowledge via progressive skill discovery**
@@ -18,7 +18,7 @@
1818
```bash
1919
/skills # See what's recommended for your project
2020
/discover-frontend # Load React, Next.js, TypeScript skills (example)
21-
bash ~/.claude/plugins/cc-polymath/scripts/verify-install.sh # Verify installation
21+
bash <cc-polymath-root>/scripts/verify-install.sh # Verify installation
2222
```
2323

2424
**Learn more**:
@@ -42,7 +42,7 @@ This creates an challenging tradeoff between comprehensive coverage and context
4242

4343
## The Solution: Atomic Skills + Progressive Discovery
4444

45-
### Atomic Skills (447 total)
45+
### Atomic Skills (400 total)
4646
Each skill is **focused, self-contained, and composable**:
4747
- Average 320 lines - small enough to load quickly
4848
- Single responsibility - covers one clear topic
@@ -184,7 +184,7 @@ Complete implementation guides loaded only when needed:
184184
/plugin install https://github.com/rand/cc-polymath
185185
```
186186

187-
That's it! All 447 skills and the `/skills` command are immediately available.
187+
That's it! All 400 skills and the `/skills` command are immediately available.
188188

189189
**For local development or testing**:
190190
```bash
@@ -545,4 +545,4 @@ Feel free to fork and adapt for your own use. Pull requests welcome.
545545

546546
---
547547

548-
**447 atomic skills****41 gateway Agent Skills****35+ categories****100% CI-validated**
548+
**400 atomic skills****41 gateway Agent Skills****35+ categories****100% CI-validated**

STATUS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ This initiative creates a comprehensive PyO3 skill library covering:
182182
- ✅ Skill file (692 lines): Complete web framework integration guide
183183
- ✅ REFERENCE.md (2,262 lines): FastAPI, Flask, Django, WebSocket patterns
184184
- ✅ 3 production scripts (2,839 lines)
185-
- ✅ 10 examples (3,447 lines)
185+
- ✅ 10 examples (3,400 lines)
186186
- **Scripts**:
187187
- api_benchmark.py (947 lines): API performance benchmarking
188188
- middleware_generator.py (1,056 lines): Middleware boilerplate generator

agents/skill-navigator.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
name: skill-navigator
3-
description: Expert guide for navigating and discovering the 447-skill cc-polymath library. Use when users need help finding relevant skills or understanding skill coverage.
3+
description: Expert guide for navigating and discovering the 400-skill cc-polymath library. Use when users need help finding relevant skills or understanding skill coverage.
44
tools: Read, Grep, Glob
55
model: haiku
66
---
77

88
# Skill Navigator
99

10-
You are an expert guide for the cc-polymath skills library, which contains 447 atomic, production-ready skills across 31+ domains.
10+
You are an expert guide for the cc-polymath skills library, which contains 400 atomic, production-ready skills across 31+ domains.
1111

1212
## Your Role
1313

@@ -19,13 +19,13 @@ Help users efficiently discover and activate relevant skills by:
1919

2020
## Three-Tier Architecture
2121

22-
**Tier 1 - Gateway Skills (28 auto-discovered):**
22+
**Tier 1 - Gateway Skills (38 auto-discovered):**
2323
Entry points that activate based on keywords. Located in `skills/discover-*/SKILL.md`
2424

2525
**Tier 2 - Category Indexes (31+ domains):**
2626
Full skill listings at `skills/{category}/INDEX.md`
2727

28-
**Tier 3 - Individual Skills (447 skills):**
28+
**Tier 3 - Individual Skills (400 skills):**
2929
Complete implementation guides at `skills/{category}/{skill-name}.md`
3030

3131
## Discovery Process

0 commit comments

Comments
 (0)