Skip to content

Commit 2e58b04

Browse files
randclaude
andcommitted
feat: Optimize cc-polymath as Claude Code plugin
Enhanced plugin configuration and added new components for better Claude Code integration: - Updated plugin.json with 447 skills count, enhanced metadata, and explicit component paths - Added 10 gateway discovery slash commands (/discover-api, /discover-database, /discover-frontend, /discover-ml, etc.) - Created 3 specialized subagents: skill-navigator, architecture-advisor, and polyglot-engineer - Added marketplace.json for plugin distribution - Comprehensively updated PLUGIN.md with installation instructions, command documentation, and subagent details This brings cc-polymath to full compliance with Claude Code plugin best practices and enables marketplace distribution. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 5bc9534 commit 2e58b04

16 files changed

Lines changed: 683 additions & 29 deletions

.claude-plugin/plugin.json

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
22
"name": "cc-polymath",
33
"version": "2.0.0",
4-
"description": "292 atomic skills with gateway-based progressive loading for Claude Code. Comprehensive coverage of API design, databases, ML, diagrams (Mermaid), mathematics, testing, infrastructure, and more.",
5-
"author": "rand",
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.",
5+
"author": {
6+
"name": "rand"
7+
},
68
"homepage": "https://github.com/rand/cc-polymath",
79
"repository": "https://github.com/rand/cc-polymath",
810
"license": "MIT",
@@ -20,6 +22,23 @@
2022
"mathematics",
2123
"debugging",
2224
"frontend",
23-
"backend"
24-
]
25+
"backend",
26+
"rust",
27+
"python",
28+
"zig",
29+
"cryptography",
30+
"protocols",
31+
"engineering",
32+
"mobile",
33+
"cloud",
34+
"devops",
35+
"security",
36+
"performance",
37+
"observability",
38+
"pyo3",
39+
"dspy",
40+
"context-efficient"
41+
],
42+
"commands": "commands",
43+
"skills": "skills"
2544
}

PLUGIN.md

Lines changed: 129 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77

88
## Overview
99

10-
cc-polymath is a comprehensive Claude Code plugin that provides 292 atomic, composable skills across 31 categories, plus context-aware skill discovery commands. 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 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.
1111

1212
## Plugin Structure
1313

1414
```
1515
cc-polymath/
1616
├── .claude-plugin/
1717
│ └── plugin.json # Plugin manifest
18-
├── skills/ # 292 skills, 31 categories
18+
├── skills/ # 447 skills, 31+ domains
1919
│ ├── README.md # Master catalog (gateway index)
2020
│ ├── discover-*/ # 28 gateway skills
2121
│ │ └── SKILL.md
@@ -27,9 +27,19 @@ cc-polymath/
2727
│ ├── diagrams/
2828
│ ├── ml/
2929
│ ├── math/
30-
│ └── [28 more categories...]
31-
├── commands/
32-
│ └── skills.md # /skills command
30+
│ └── [28+ more categories...]
31+
├── 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...]
38+
├── agents/ # Specialized subagents
39+
│ ├── skill-navigator.md # Skills library expert guide
40+
│ ├── architecture-advisor.md # System design specialist
41+
│ └── polyglot-engineer.md # Multi-language expert
42+
├── marketplace.json # Marketplace configuration
3343
├── LICENSE # MIT License
3444
├── README.md # Main documentation
3545
├── PLUGIN.md # This file
@@ -44,14 +54,20 @@ cc-polymath/
4454
Install the plugin with a single command:
4555

4656
```bash
57+
# Option 1: Via GitHub repository
4758
/plugin install https://github.com/rand/cc-polymath
59+
60+
# Option 2: Via marketplace (if configured)
61+
/plugin marketplace add rand/cc-polymath
62+
/plugin install cc-polymath
4863
```
4964

5065
Claude Code will:
5166
1. Clone the repository to `~/.claude/plugins/cc-polymath/`
52-
2. Register all commands (e.g., `/skills`)
53-
3. Make all 292 skills available for discovery
54-
4. Enable gateway-based progressive loading
67+
2. Register all slash commands (e.g., `/skills`, `/discover-api`, etc.)
68+
3. Make all 447 skills available for discovery
69+
4. Register specialized subagents (skill-navigator, architecture-advisor, polyglot-engineer)
70+
5. Enable gateway-based progressive loading
5571

5672
### For Developers
5773

@@ -81,8 +97,8 @@ cd cc-polymath
8197
- Load-on-demand when category is relevant
8298
- Examples: `api/INDEX.md`, `database/INDEX.md`
8399

84-
**Tier 3: Individual Skills (233 skills)**
85-
- Deep, actionable guidance (~300 lines avg)
100+
**Tier 3: Individual Skills (447 skills)**
101+
- Deep, actionable guidance (~320 lines avg)
86102
- Load only when specifically needed
87103
- Contain code examples, best practices, workflows
88104
- Examples: `api/rest-design.md`, `database/postgres-optimization.md`
@@ -93,23 +109,24 @@ cd cc-polymath
93109
- Gateway skills load first (minimal context)
94110
- Category indexes load on-demand
95111
- Individual skills load when explicitly needed
112+
- Subagents operate in separate context windows
96113

97114
**Progressive Discovery:**
98115
```
99116
Project detected → Gateway activates → Category shown → Skill loaded
100-
(~200 lines) (~500 lines) (~300 lines)
117+
(~200 lines) (~500 lines) (~320 lines)
101118
```
102119

103120
**Context Savings:**
104-
- Loading all 292 skills: ~87,600 lines
105-
- Gateway-based approach: ~200-1,000 lines per session
121+
- Loading all 447 skills: ~143,000 lines
122+
- Gateway-based approach: ~200-1,500 lines per session
106123
- **98-99% context reduction**
107124

108125
## Commands
109126

110-
### `/skills` - Skill Discovery
127+
### `/skills` - Comprehensive Skill Discovery
111128

112-
**Purpose:** Context-aware skill discovery and browsing
129+
**Purpose:** Context-aware skill discovery and browsing with intelligent recommendations
113130

114131
**Usage:**
115132
```bash
@@ -123,9 +140,83 @@ Project detected → Gateway activates → Category shown → Skill loaded
123140
- Detects project type (Next.js, Go, Rust, Python, etc.)
124141
- Recommends relevant skills automatically
125142
- Non-destructive (read-only operations)
126-
- CLI-optimized output (max 25 lines)
143+
- CLI-optimized output
144+
145+
**Implementation:** `commands/skills.md`
146+
147+
### Gateway Discovery Commands
148+
149+
Quick access to specific skill domains via slash commands:
150+
151+
| Command | Domain | Coverage |
152+
|---------|--------|----------|
153+
| `/discover-api` | API Design | REST, GraphQL, auth, rate limiting |
154+
| `/discover-database` | Databases | PostgreSQL, MongoDB, Redis, optimization |
155+
| `/discover-frontend` | Frontend | React, Next.js, TypeScript, state |
156+
| `/discover-ml` | Machine Learning | DSPy, training, RAG, embeddings |
157+
| `/discover-diagrams` | Diagrams | Mermaid flowcharts, sequence, ER |
158+
| `/discover-testing` | Testing | Unit, integration, e2e, TDD |
159+
| `/discover-infrastructure` | Infrastructure | Terraform, IaC, cloud, containers |
160+
| `/discover-debugging` | Debugging | GDB, LLDB, profiling, memory |
161+
| `/discover-containers` | Containers | Docker, Kubernetes, security |
162+
| `/discover-mobile` | Mobile | iOS, Swift, SwiftUI, React Native |
163+
164+
**Usage:**
165+
```bash
166+
/discover-api # Load API design skills directly
167+
/discover-database # Load database skills directly
168+
```
169+
170+
These commands complement the auto-discovery system by providing explicit invocation.
171+
172+
## Specialized Subagents
173+
174+
cc-polymath includes three specialized subagents that leverage the skills library for focused workflows:
175+
176+
### `skill-navigator`
177+
**Purpose:** Expert guide for navigating the 447-skill library
178+
179+
**Use when:**
180+
- Users need help finding relevant skills
181+
- Understanding skill coverage across domains
182+
- Discovering what's available for a specific technology
183+
184+
**Tools:** Read, Grep, Glob (fast, read-only)
185+
**Model:** Haiku (optimized for quick responses)
186+
187+
**Invocation:** Automatically available via Task tool with `subagent_type: skill-navigator`
188+
189+
### `architecture-advisor`
190+
**Purpose:** System design and architecture specialist
191+
192+
**Use when:**
193+
- Designing new systems or microservices
194+
- Refactoring existing architecture
195+
- Making technology stack decisions
196+
- Planning infrastructure and observability
197+
198+
**Tools:** All tools available
199+
**Model:** Sonnet (complex reasoning)
200+
201+
Combines skills across API design, databases, infrastructure, caching, observability, and security.
202+
203+
**Invocation:** Automatically available via Task tool with `subagent_type: architecture-advisor`
204+
205+
### `polyglot-engineer`
206+
**Purpose:** Multi-language expert (Rust, Python, Zig, Go, TypeScript, Swift)
207+
208+
**Use when:**
209+
- Cross-language projects or porting code
210+
- Choosing the right language for a task
211+
- Language-specific best practices
212+
- Rust/Python integration via PyO3
213+
214+
**Tools:** Read, Write, Edit, Bash, Grep, Glob
215+
**Model:** Sonnet
216+
217+
Leverages language-specific skills and can implement solutions in the best-fit language.
127218

128-
**Implementation:** `commands/skills.md` (325 lines)
219+
**Invocation:** Automatically available via Task tool with `subagent_type: polyglot-engineer`
129220

130221
## Skill Categories
131222

@@ -156,22 +247,35 @@ Project detected → Gateway activates → Category shown → Skill loaded
156247
{
157248
"name": "cc-polymath",
158249
"version": "2.0.0",
159-
"description": "292 atomic skills with gateway-based progressive loading",
160-
"author": "rand",
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.",
251+
"author": {
252+
"name": "rand"
253+
},
161254
"homepage": "https://github.com/rand/cc-polymath",
162255
"repository": "https://github.com/rand/cc-polymath",
163256
"license": "MIT",
164257
"keywords": [
165-
"skills", "gateway", "progressive-loading",
166-
"diagrams", "mermaid", "ml", "api", "database",
167-
"testing", "infrastructure", "mathematics", "debugging"
168-
]
258+
"skills", "gateway", "progressive-loading", "diagrams", "mermaid",
259+
"ml", "api", "database", "testing", "infrastructure", "mathematics",
260+
"debugging", "frontend", "backend", "rust", "python", "zig",
261+
"cryptography", "protocols", "engineering", "mobile", "cloud",
262+
"devops", "security", "performance", "observability", "pyo3",
263+
"dspy", "context-efficient"
264+
],
265+
"commands": "commands",
266+
"skills": "skills"
169267
}
170268
```
171269

172270
### Version History
173271

174-
- **v2.0.0** - Plugin architecture (2025-10-27)
272+
- **v2.0.0** - Plugin architecture with subagents (2025-11-22)
273+
- Enhanced plugin manifest with explicit paths
274+
- Added 10 gateway discovery slash commands (`/discover-*`)
275+
- Created 3 specialized subagents (skill-navigator, architecture-advisor, polyglot-engineer)
276+
- Added marketplace.json for distribution
277+
- Updated to 447 skills across 31+ domains
278+
- Enhanced keywords for better discoverability
175279
- Converted to Claude Code plugin
176280
- Added plugin manifest
177281
- Removed manual installation scripts
@@ -494,4 +598,4 @@ MIT License - See [LICENSE](LICENSE) file for details.
494598
495599
**Plugin Status:** ✅ Active Development
496600
**Latest Version:** 2.0.0
497-
**Last Updated:** 2025-10-27
601+
**Last Updated:** 2025-11-22

agents/architecture-advisor.md

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
---
2+
name: architecture-advisor
3+
description: System design and architecture specialist that combines skills across API design, databases, infrastructure, and observability. Use for designing new systems or refactoring existing ones.
4+
model: sonnet
5+
---
6+
7+
# Architecture Advisor
8+
9+
You are a system design and architecture specialist with deep expertise across the cc-polymath skills library. You help users design robust, scalable systems by combining knowledge from multiple domains.
10+
11+
## Your Role
12+
13+
Design and advise on system architecture by:
14+
- Understanding requirements and constraints
15+
- Recommending appropriate technology stacks
16+
- Designing system boundaries and interfaces
17+
- Identifying performance and scaling considerations
18+
- Planning observability and operational needs
19+
- Considering security and compliance requirements
20+
21+
## Approach
22+
23+
### 1. Gather Context
24+
25+
Ask clarifying questions about:
26+
- Scale (users, requests/second, data volume)
27+
- Latency requirements and SLAs
28+
- Consistency vs availability trade-offs
29+
- Team expertise and operational capabilities
30+
- Budget and timeline constraints
31+
- Compliance and security requirements
32+
33+
### 2. Design System Components
34+
35+
Draw from relevant skill domains:
36+
- **API Design** (`discover-api`): REST vs GraphQL, versioning, auth patterns
37+
- **Database** (`discover-database`): SQL vs NoSQL, read replicas, sharding
38+
- **Caching** (`discover-caching`): Redis, CDN, cache invalidation
39+
- **Infrastructure** (`discover-infrastructure`): Cloud provider, IaC, scaling strategies
40+
- **Observability** (`discover-observability`): Logging, metrics, tracing, alerting
41+
- **Security**: Authentication, authorization, secrets management
42+
- **Realtime** (`discover-realtime`): WebSockets, SSE, pub/sub patterns
43+
44+
### 3. Document Architecture
45+
46+
Create clear documentation using:
47+
- **Diagrams** (`discover-diagrams`): Architecture diagrams, sequence diagrams
48+
- Written specifications with component responsibilities
49+
- Interface definitions and contracts
50+
- Data flow and state management
51+
- Deployment and scaling strategies
52+
53+
### 4. Validate Design
54+
55+
Consider:
56+
- Single points of failure
57+
- Scaling bottlenecks
58+
- Operational complexity
59+
- Cost implications
60+
- Migration paths and rollback strategies
61+
62+
## Recommended Skills to Load
63+
64+
Based on the architecture problem, load relevant gateway skills:
65+
66+
```bash
67+
# For web API systems
68+
cat skills/discover-api/SKILL.md
69+
cat skills/discover-database/SKILL.md
70+
cat skills/discover-caching/SKILL.md
71+
72+
# For infrastructure planning
73+
cat skills/discover-infrastructure/SKILL.md
74+
cat skills/discover-observability/SKILL.md
75+
cat skills/discover-deployment/SKILL.md
76+
77+
# For real-time systems
78+
cat skills/discover-realtime/SKILL.md
79+
cat skills/discover-caching/SKILL.md
80+
81+
# For ML systems
82+
cat skills/discover-ml/SKILL.md
83+
cat skills/discover-cloud/SKILL.md
84+
```
85+
86+
## Communication Style
87+
88+
- Ask clarifying questions upfront
89+
- Present architecture options with trade-offs
90+
- Use diagrams to visualize complex systems
91+
- Be specific about technology choices and why
92+
- Consider operational realities, not just theory
93+
- Call out risks and mitigation strategies
94+
95+
## Key Principles
96+
97+
- **Simplicity**: Start simple, add complexity only when needed
98+
- **Boundaries**: Clear component boundaries with well-defined interfaces
99+
- **Observability**: Design for monitoring and debugging from day one
100+
- **Resilience**: Plan for failure modes and graceful degradation
101+
- **Evolution**: Support incremental changes and migrations
102+
- **Cost**: Balance technical elegance with practical constraints

0 commit comments

Comments
 (0)