Skip to content

Commit 4b12686

Browse files
randclaude
andcommitted
feat: v3.1.0 — new skills, spec compliance, end-to-end validation
Phase 1: Agent Skills spec compliance - Add license, metadata, compatibility to all 40 gateway SKILL.md files - Add spec validation (name format, description length) to tests/validate.sh Phase 2: High-value new skills - New MCP category (3 skills): server fundamentals, tool design, testing - New Agentic category (3 skills): task decomposition, tool use, memory - New engineering skills: code-review-rules, git-workflows - New ML skill: prompt-engineering Phase 3: Opinionated rules packs - react-rules (43 rules), api-design-rules (35), sql-rules (33), security-rules (42) Phase 4: Quality improvements - Fix discover-collaboration gateway (was listing 0 skills, has 6) - Add missing categories to skills/README.md (13 categories were unlisted) - Update all INDEX.md files with new v3.1 skill entries - Fix diagrams/INDEX.md and research/INDEX.md missing Total Skills headers - Standardize stale counts across README, PLUGIN.md, docs/, MIGRATION.md - Remove discover-backend references (gateway doesn't exist) Phase 5: DX improvements - Enhanced SessionStart hook with version and skill counts - New skill-creator agent for generating spec-compliant skills - Updated /skills command with accurate mappings and counts Testing: - Property-based test suite (22 tests) validating structural invariants - All gateway frontmatter, cross-references, skill counts, config consistency Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 2a3c970 commit 4b12686

77 files changed

Lines changed: 5914 additions & 170 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: efficient skill management with progressive discovery across 31+ domains",
3+
"description": "Official marketplace for cc-polymath: efficient skill management with progressive discovery across 33+ 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": "Efficient skill management with progressive discovery — 400 production-ready skills across 31+ domains.",
13-
"version": "3.0.0"
12+
"description": "Efficient skill management with progressive discovery — 410+ production-ready skills across 33+ domains.",
13+
"version": "3.1.0"
1414
}
1515
]
1616
}

.claude-plugin/plugin.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "cc-polymath",
3-
"version": "3.0.0",
4-
"description": "Efficient skill management system with progressive discovery — 400 production-ready skills across 31+ domains",
3+
"version": "3.1.0",
4+
"description": "Efficient skill management system with progressive discovery — 410+ production-ready skills across 33+ domains",
55
"author": {
66
"name": "rand"
77
},
@@ -37,6 +37,11 @@
3737
"observability",
3838
"pyo3",
3939
"dspy",
40+
"mcp",
41+
"agentic",
42+
"prompt-engineering",
43+
"git-workflows",
44+
"code-review",
4045
"context-efficient"
4146
],
4247
"skills": "./skills",
@@ -49,7 +54,7 @@
4954
"hooks": [
5055
{
5156
"type": "command",
52-
"command": "echo 'cc-polymath plugin root: ${CLAUDE_PLUGIN_ROOT}'"
57+
"command": "echo 'cc-polymath v3.1.0 loaded (410+ skills, 40 gateways). Use /skills to discover relevant skills. Root: ${CLAUDE_PLUGIN_ROOT}'"
5358
}
5459
]
5560
}

MIGRATION.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Install cc-polymath as a plugin:
5454
```
5555

5656
That's it! The plugin system will:
57-
- Download all 400 skills to `<cc-polymath-root>/skills/`
57+
- Download all 410+ 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) - 400 atomic skills with gateway-based progressive loading
71+
cc-polymath (v2.0.0) - 410+ atomic skills with gateway-based progressive loading
7272
```
7373

7474
Test the `/skills` command:
@@ -151,7 +151,7 @@ git pull
151151

152152
### Skills Structure
153153

154-
The 400 skills across 31 categories are identical:
154+
The 410+ skills across 33+ 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 38 gateways, 31 categories, 400 skills unchanged
174+
- All 40 gateways, 33+ categories, 410+ skills unchanged
175175

176176
## Troubleshooting
177177

PLUGIN.md

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
# cc-polymath Claude Code Plugin
22

3-
**Version:** 2.0.0
3+
**Version:** 3.1.0
44
**Type:** Skills & Commands Plugin
55
**Author:** rand
66
**License:** MIT
77

88
## Overview
99

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.
10+
cc-polymath is a comprehensive Claude Code plugin that provides 410+ atomic, production-ready skills across 33+ 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/ # 400 skills, 31+ domains
18+
├── skills/ # 410+ skills, 33+ domains
1919
│ ├── README.md # Master catalog (gateway index)
20-
│ ├── discover-*/ # 38 gateway skills
20+
│ ├── discover-*/ # 40 gateway skills
2121
│ │ └── SKILL.md
2222
│ ├── api/ # Category directories
2323
│ │ └── INDEX.md # Category index
@@ -27,19 +27,17 @@ cc-polymath/
2727
│ ├── diagrams/
2828
│ ├── ml/
2929
│ ├── math/
30-
│ └── [28+ more categories...]
30+
│ └── [30+ more categories...]
3131
├── commands/ # Slash commands
32-
│ ├── skills.md # /skills command
33-
│ ├── discover-api.md # /discover-api command
34-
│ ├── discover-database.md # /discover-database command
35-
│ ├── discover-frontend.md # /discover-frontend command
36-
│ ├── discover-ml.md # /discover-ml command
37-
│ └── [6+ more gateway commands...]
32+
│ └── skills.md # /skills command
3833
├── agents/ # Specialized subagents
3934
│ ├── skill-navigator.md # Skills library expert guide
4035
│ ├── architecture-advisor.md # System design specialist
41-
│ └── polyglot-engineer.md # Multi-language expert
42-
├── marketplace.json # Marketplace configuration
36+
│ ├── polyglot-engineer.md # Multi-language expert
37+
│ └── skill-creator.md # Generates new spec-compliant skills
38+
├── .claude-plugin/
39+
│ ├── plugin.json # Plugin manifest
40+
│ └── marketplace.json # Marketplace configuration
4341
├── LICENSE # MIT License
4442
├── README.md # Main documentation
4543
├── PLUGIN.md # This file
@@ -65,8 +63,8 @@ Install the plugin with a single command:
6563
Claude Code will:
6664
1. Clone the repository to `<cc-polymath-root>/`
6765
2. Register all slash commands (e.g., `/skills`, `/discover-api`, etc.)
68-
3. Make all 400 skills available for discovery
69-
4. Register specialized subagents (skill-navigator, architecture-advisor, polyglot-engineer)
66+
3. Make all 410+ skills available for discovery
67+
4. Register specialized subagents (skill-navigator, architecture-advisor, polyglot-engineer, skill-creator)
7068
5. Enable gateway-based progressive loading
7169

7270
### For Developers
@@ -85,19 +83,19 @@ cd cc-polymath
8583

8684
### Three-Tier Progressive Loading
8785

88-
**Tier 1: Gateway Skills (28 skills)**
86+
**Tier 1: Gateway Skills (40 skills)**
8987
- Lightweight entry points (~200 lines each)
9088
- Activate based on project keywords
9189
- Guide to category indexes
9290
- Examples: `discover-frontend`, `discover-database`, `discover-ml`
9391

94-
**Tier 2: Category Indexes (31 indexes)**
92+
**Tier 2: Category Indexes (33+ indexes)**
9593
- Comprehensive category overviews
9694
- List all skills in category with descriptions
9795
- Load-on-demand when category is relevant
9896
- Examples: `api/INDEX.md`, `database/INDEX.md`
9997

100-
**Tier 3: Individual Skills (400 skills)**
98+
**Tier 3: Individual Skills (410+ skills)**
10199
- Deep, actionable guidance (~320 lines avg)
102100
- Load only when specifically needed
103101
- Contain code examples, best practices, workflows
@@ -118,7 +116,7 @@ Project detected → Gateway activates → Category shown → Skill loaded
118116
```
119117

120118
**Context Savings:**
121-
- Loading all 400 skills: ~143,000 lines
119+
- Loading all 410+ skills: ~143,000 lines
122120
- Gateway-based approach: ~200-1,500 lines per session
123121
- **98-99% context reduction**
124122

@@ -171,10 +169,10 @@ These commands complement the auto-discovery system by providing explicit invoca
171169

172170
## Specialized Subagents
173171

174-
cc-polymath includes three specialized subagents that leverage the skills library for focused workflows:
172+
cc-polymath includes four specialized subagents that leverage the skills library for focused workflows:
175173

176174
### `skill-navigator`
177-
**Purpose:** Expert guide for navigating the 400-skill library
175+
**Purpose:** Expert guide for navigating the 410+ skill library
178176

179177
**Use when:**
180178
- Users need help finding relevant skills
@@ -220,7 +218,7 @@ Leverages language-specific skills and can implement solutions in the best-fit l
220218

221219
## Skill Categories
222220

223-
### Available Categories (31 total)
221+
### Available Categories (33+ total)
224222

225223
| Category | Skills | Description |
226224
|----------|--------|-------------|
@@ -247,7 +245,7 @@ Leverages language-specific skills and can implement solutions in the best-fit l
247245
{
248246
"name": "cc-polymath",
249247
"version": "2.0.0",
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.",
248+
"description": "410+ atomic, production-ready skills with gateway-based progressive loading for Claude Code. 33+ domains including API design, databases, ML, diagrams (Mermaid), mathematics, testing, infrastructure, cryptography, protocols, MCP, agentic workflows, and more. Context-efficient three-tier architecture with auto-discovery gateways.",
251249
"author": {
252250
"name": "rand"
253251
},
@@ -274,7 +272,7 @@ Leverages language-specific skills and can implement solutions in the best-fit l
274272
- Added 10 gateway discovery slash commands (`/discover-*`)
275273
- Created 3 specialized subagents (skill-navigator, architecture-advisor, polyglot-engineer)
276274
- Added marketplace.json for distribution
277-
- Updated to 400 skills across 31+ domains
275+
- Updated to 410+ skills across 33+ domains
278276
- Enhanced keywords for better discoverability
279277
- Converted to Claude Code plugin
280278
- Added plugin manifest
@@ -283,7 +281,7 @@ Leverages language-specific skills and can implement solutions in the best-fit l
283281
- Added LICENSE for marketplace compatibility
284282

285283
- **v1.0.0** - Manual installation
286-
- 400 skills across 31 categories
284+
- 410+ skills across 33+ categories
287285
- Gateway-based progressive loading
288286
- Manual sync with install.sh
289287

@@ -510,7 +508,7 @@ cd <cc-polymath-root>/skills/
510508
├── .claude-plugin/
511509
│ └── plugin.json # Metadata read by Claude Code
512510
├── skills/ # Discovered by skill system
513-
│ ├── README.md # Master catalog (38 gateways)
511+
│ ├── README.md # Master catalog (40 gateways)
514512
│ ├── discover-*/SKILL.md # Gateway skills
515513
│ └── */INDEX.md # Category indexes
516514
├── 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-400-green)](skills/)
4+
[![Skills](https://img.shields.io/badge/Skills-410%2B-green)](skills/)
55
[![License](https://img.shields.io/badge/License-MIT-yellow)](LICENSE)
66

77
**Context-efficient development knowledge via progressive skill discovery**
@@ -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 (400 total)
45+
### Atomic Skills (410+ 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
@@ -53,7 +53,7 @@ Each skill is **focused, self-contained, and composable**:
5353

5454
### Three-Tier Architecture
5555

56-
**Tier 1: Gateway Skills (31 auto-discovered Agent Skills)**
56+
**Tier 1: Gateway Skills (40 auto-discovered Agent Skills)**
5757
Lightweight entry points that activate automatically based on keywords:
5858
- `discover-api` → triggers on "REST", "GraphQL", "authentication"
5959
- `discover-database` → triggers on "PostgreSQL", "MongoDB", "Redis"
@@ -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 400 skills and the `/skills` command are immediately available.
187+
That's it! All 410+ 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-
**400 atomic skills****41 gateway Agent Skills****35+ categories****100% CI-validated**
548+
**410+ atomic skills****40 gateway Agent Skills****33+ categories****100% CI-validated**

agents/skill-creator.md

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
---
2+
name: skill-creator
3+
description: Generate spec-compliant skills for the cc-polymath library. Takes a topic/domain and produces a well-structured SKILL.md with proper frontmatter, progressive loading, and atomic design.
4+
tools: Read, Write, Edit, Glob, Grep
5+
---
6+
7+
# Skill Creator
8+
9+
Generate new skills for the cc-polymath library that follow the Agent Skills spec and cc-polymath conventions.
10+
11+
## Process
12+
13+
### 1. Understand the Request
14+
- What domain/topic does the skill cover?
15+
- Is this a gateway skill, INDEX, or leaf skill?
16+
- Which existing category does it belong to (or is it a new category)?
17+
18+
### 2. Check Existing Skills
19+
- Read `skills/README.md` for the master catalog
20+
- Check if a similar skill already exists using Grep
21+
- Identify the target category directory
22+
23+
### 3. Generate the Skill
24+
25+
**For leaf skills** (`skills/{category}/{name}.md`):
26+
```yaml
27+
---
28+
name: {category}-{skill-name}
29+
description: One-line description of the skill (up to 1024 chars)
30+
---
31+
```
32+
33+
Body structure:
34+
- `# {Title}` — clear, descriptive
35+
- `**Scope**: ...` / `**Lines**: ~N`
36+
- `## When to Use This Skill` — bullet list of triggers
37+
- `## Core Concepts` — organized subsections with code examples
38+
- `## Anti-Patterns` — common mistakes with corrections
39+
- `## Checklist` — quick reference for applying the skill
40+
- `## Related Skills` — cross-references using `<cc-polymath-root>/skills/...`
41+
42+
**For gateway skills** (`skills/discover-{category}/SKILL.md`):
43+
```yaml
44+
---
45+
name: discover-{category}
46+
description: Automatically discover {category} skills when working with {keywords}. Activates for {domain} tasks.
47+
license: MIT
48+
metadata:
49+
author: rand
50+
version: "3.1"
51+
compatibility: Designed for Claude Code. Compatible with any agent supporting the Agent Skills format.
52+
---
53+
```
54+
55+
Body structure:
56+
- Title, description
57+
- When This Skill Activates (bullet list)
58+
- Available Skills (numbered quick reference)
59+
- Load commands using `Read <cc-polymath-root>/skills/...`
60+
- Common Workflows (sequences of skills)
61+
- Progressive Loading section
62+
63+
**For INDEX.md** (`skills/{category}/INDEX.md`):
64+
- Category Overview (Total Skills, Focus, Use Cases)
65+
- Each skill: Description, Lines, Use When (bullets), Key Concepts
66+
- Common Workflows with sequences
67+
- Skill Combinations with other categories
68+
69+
### 4. Quality Checks
70+
- Name is kebab-case, 1-64 characters
71+
- Description ≤ 1024 characters
72+
- Leaf skills: 200-400 lines, focused on one topic
73+
- Code examples are practical and correct
74+
- Cross-references use `<cc-polymath-root>` prefix
75+
- No overlap with existing skills
76+
77+
## Design Principles
78+
79+
- **Atomic**: One skill = one concept. If it covers two things, split it.
80+
- **Actionable**: Rules and patterns, not encyclopedic reference.
81+
- **Context-efficient**: Target ~3K tokens per leaf skill. Use progressive loading.
82+
- **Opinionated**: State best practices directly. "Do X" not "You could do X or Y."
83+
- **Example-driven**: Show code, not just explain concepts.

0 commit comments

Comments
 (0)