Initial commit
This commit is contained in:
11
.claude-plugin/plugin.json
Normal file
11
.claude-plugin/plugin.json
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"name": "cc-polymath",
|
||||||
|
"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.",
|
||||||
|
"version": "2.0.0",
|
||||||
|
"author": {
|
||||||
|
"name": "rand"
|
||||||
|
},
|
||||||
|
"commands": [
|
||||||
|
"./commands"
|
||||||
|
]
|
||||||
|
}
|
||||||
3
README.md
Normal file
3
README.md
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# cc-polymath
|
||||||
|
|
||||||
|
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.
|
||||||
20
commands/discover-api.md
Normal file
20
commands/discover-api.md
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
description: Load API design skills (REST, GraphQL, auth, rate limiting)
|
||||||
|
---
|
||||||
|
|
||||||
|
# Discover API Skills
|
||||||
|
|
||||||
|
Load the API design gateway skill:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cat ~/.claude/plugins/cc-polymath/skills/discover-api/SKILL.md
|
||||||
|
```
|
||||||
|
|
||||||
|
This activates skills for:
|
||||||
|
- REST API design and HTTP semantics
|
||||||
|
- GraphQL schema design and optimization
|
||||||
|
- API authentication (JWT, OAuth 2.0, API keys)
|
||||||
|
- API authorization (RBAC, ABAC, policy engines)
|
||||||
|
- Rate limiting and throttling
|
||||||
|
- API versioning and deprecation
|
||||||
|
- Error handling and validation
|
||||||
21
commands/discover-containers.md
Normal file
21
commands/discover-containers.md
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
---
|
||||||
|
description: Load container skills (Docker, Kubernetes, security, optimization)
|
||||||
|
---
|
||||||
|
|
||||||
|
# Discover Container Skills
|
||||||
|
|
||||||
|
Load the containers gateway skill:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cat ~/.claude/plugins/cc-polymath/skills/discover-containers/SKILL.md
|
||||||
|
```
|
||||||
|
|
||||||
|
This activates skills for:
|
||||||
|
- Dockerfile best practices and multi-stage builds
|
||||||
|
- Docker Compose for local development
|
||||||
|
- Kubernetes deployments and configurations
|
||||||
|
- Container security and vulnerability scanning
|
||||||
|
- Image optimization and layer caching
|
||||||
|
- Container orchestration patterns
|
||||||
|
- Networking and service discovery
|
||||||
|
- Health checks and liveness probes
|
||||||
20
commands/discover-database.md
Normal file
20
commands/discover-database.md
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
description: Load database skills (PostgreSQL, MongoDB, Redis, optimization)
|
||||||
|
---
|
||||||
|
|
||||||
|
# Discover Database Skills
|
||||||
|
|
||||||
|
Load the database gateway skill:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cat ~/.claude/plugins/cc-polymath/skills/discover-database/SKILL.md
|
||||||
|
```
|
||||||
|
|
||||||
|
This activates skills for:
|
||||||
|
- PostgreSQL query optimization and schema design
|
||||||
|
- MongoDB aggregations and indexing
|
||||||
|
- Redis caching patterns and data structures
|
||||||
|
- Database migrations and zero-downtime deployments
|
||||||
|
- Connection pooling and performance tuning
|
||||||
|
- Streaming databases and replication
|
||||||
|
- Query optimization and EXPLAIN plans
|
||||||
21
commands/discover-debugging.md
Normal file
21
commands/discover-debugging.md
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
---
|
||||||
|
description: Load debugging skills (GDB, LLDB, profiling, memory analysis)
|
||||||
|
---
|
||||||
|
|
||||||
|
# Discover Debugging Skills
|
||||||
|
|
||||||
|
Load the debugging gateway skill:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cat ~/.claude/plugins/cc-polymath/skills/discover-debugging/SKILL.md
|
||||||
|
```
|
||||||
|
|
||||||
|
This activates skills for:
|
||||||
|
- GDB and LLDB debugger techniques
|
||||||
|
- Performance profiling and analysis
|
||||||
|
- Memory leak detection and debugging
|
||||||
|
- Core dump analysis
|
||||||
|
- Production debugging strategies
|
||||||
|
- Tracing and instrumentation
|
||||||
|
- Debugging in different languages (Rust, Go, Python, etc.)
|
||||||
|
- Remote debugging and distributed systems
|
||||||
21
commands/discover-diagrams.md
Normal file
21
commands/discover-diagrams.md
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
---
|
||||||
|
description: Load diagram skills (Mermaid flowcharts, sequence, ER, architecture)
|
||||||
|
---
|
||||||
|
|
||||||
|
# Discover Diagram Skills
|
||||||
|
|
||||||
|
Load the diagrams gateway skill:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cat ~/.claude/plugins/cc-polymath/skills/discover-diagrams/SKILL.md
|
||||||
|
```
|
||||||
|
|
||||||
|
This activates skills for:
|
||||||
|
- Mermaid.js flowcharts and process flows
|
||||||
|
- Sequence diagrams for API interactions
|
||||||
|
- Entity-Relationship (ER) diagrams
|
||||||
|
- Architecture and system design diagrams
|
||||||
|
- State machine diagrams
|
||||||
|
- Gantt charts for project planning
|
||||||
|
- Class diagrams and UML
|
||||||
|
- Git graphs and version control visualization
|
||||||
21
commands/discover-frontend.md
Normal file
21
commands/discover-frontend.md
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
---
|
||||||
|
description: Load frontend skills (React, Next.js, TypeScript, state management)
|
||||||
|
---
|
||||||
|
|
||||||
|
# Discover Frontend Skills
|
||||||
|
|
||||||
|
Load the frontend gateway skill:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cat ~/.claude/plugins/cc-polymath/skills/discover-frontend/SKILL.md
|
||||||
|
```
|
||||||
|
|
||||||
|
This activates skills for:
|
||||||
|
- React component design and hooks
|
||||||
|
- Next.js routing, SSR/SSG, and App Router
|
||||||
|
- TypeScript type safety and advanced types
|
||||||
|
- State management (Context, Zustand, Redux)
|
||||||
|
- Data fetching and caching
|
||||||
|
- Form handling and validation
|
||||||
|
- Accessibility (a11y) and ARIA
|
||||||
|
- Performance optimization and SEO
|
||||||
21
commands/discover-infrastructure.md
Normal file
21
commands/discover-infrastructure.md
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
---
|
||||||
|
description: Load infrastructure skills (Terraform, IaC, cloud platforms, containers)
|
||||||
|
---
|
||||||
|
|
||||||
|
# Discover Infrastructure Skills
|
||||||
|
|
||||||
|
Load the infrastructure gateway skill:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cat ~/.claude/plugins/cc-polymath/skills/discover-infrastructure/SKILL.md
|
||||||
|
```
|
||||||
|
|
||||||
|
This activates skills for:
|
||||||
|
- Terraform and Infrastructure as Code
|
||||||
|
- AWS, GCP, Azure cloud platforms
|
||||||
|
- Docker and containerization
|
||||||
|
- Kubernetes orchestration
|
||||||
|
- CI/CD pipelines and automation
|
||||||
|
- Observability and monitoring
|
||||||
|
- Security and compliance
|
||||||
|
- Performance optimization and scaling
|
||||||
21
commands/discover-ml.md
Normal file
21
commands/discover-ml.md
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
---
|
||||||
|
description: Load ML/AI skills (DSPy, training, RAG, embeddings, evaluation)
|
||||||
|
---
|
||||||
|
|
||||||
|
# Discover Machine Learning Skills
|
||||||
|
|
||||||
|
Load the ML/AI gateway skill:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cat ~/.claude/plugins/cc-polymath/skills/discover-ml/SKILL.md
|
||||||
|
```
|
||||||
|
|
||||||
|
This activates skills for:
|
||||||
|
- DSPy signature design and optimizers
|
||||||
|
- Training workflows and model evaluation
|
||||||
|
- RAG (Retrieval-Augmented Generation)
|
||||||
|
- Vector embeddings and similarity search
|
||||||
|
- Model deployment and serving
|
||||||
|
- LLM prompting and fine-tuning
|
||||||
|
- HuggingFace ecosystem
|
||||||
|
- ML observability and monitoring
|
||||||
21
commands/discover-mobile.md
Normal file
21
commands/discover-mobile.md
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
---
|
||||||
|
description: Load mobile development skills (iOS, Swift, SwiftUI, React Native)
|
||||||
|
---
|
||||||
|
|
||||||
|
# Discover Mobile Development Skills
|
||||||
|
|
||||||
|
Load the mobile development gateway skill:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cat ~/.claude/plugins/cc-polymath/skills/discover-mobile/SKILL.md
|
||||||
|
```
|
||||||
|
|
||||||
|
This activates skills for:
|
||||||
|
- iOS development with Swift and SwiftUI
|
||||||
|
- Swift concurrency and async/await
|
||||||
|
- UIKit and Interface Builder
|
||||||
|
- React Native cross-platform development
|
||||||
|
- Mobile architecture patterns (MVVM, MVI)
|
||||||
|
- App lifecycle and state management
|
||||||
|
- Performance optimization for mobile
|
||||||
|
- Platform-specific features and APIs
|
||||||
21
commands/discover-testing.md
Normal file
21
commands/discover-testing.md
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
---
|
||||||
|
description: Load testing skills (unit, integration, e2e, TDD, coverage)
|
||||||
|
---
|
||||||
|
|
||||||
|
# Discover Testing Skills
|
||||||
|
|
||||||
|
Load the testing gateway skill:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cat ~/.claude/plugins/cc-polymath/skills/discover-testing/SKILL.md
|
||||||
|
```
|
||||||
|
|
||||||
|
This activates skills for:
|
||||||
|
- Unit testing with pytest, Jest, Go testing
|
||||||
|
- Integration testing strategies
|
||||||
|
- End-to-end (e2e) testing with Playwright/Cypress
|
||||||
|
- Test-Driven Development (TDD)
|
||||||
|
- Code coverage and quality metrics
|
||||||
|
- Mocking and test doubles
|
||||||
|
- Property-based testing
|
||||||
|
- Test organization and maintainability
|
||||||
324
commands/skills.md
Normal file
324
commands/skills.md
Normal file
@@ -0,0 +1,324 @@
|
|||||||
|
---
|
||||||
|
description: Discover and activate relevant skills (292 skills, 28 gateways)
|
||||||
|
argument-hint: [category|search-term] (optional)
|
||||||
|
---
|
||||||
|
|
||||||
|
# Skills Discovery Assistant
|
||||||
|
|
||||||
|
You are helping the user discover and activate relevant skills from their skills library.
|
||||||
|
|
||||||
|
## Your Task
|
||||||
|
|
||||||
|
**User's Request:** `$ARGUMENTS`
|
||||||
|
|
||||||
|
Follow these steps:
|
||||||
|
|
||||||
|
### 1. Read Skills Catalog
|
||||||
|
|
||||||
|
Read the master catalog:
|
||||||
|
```bash
|
||||||
|
cat ~/.claude/plugins/cc-polymath/skills/README.md
|
||||||
|
```
|
||||||
|
|
||||||
|
### 2. Detect Project Context
|
||||||
|
|
||||||
|
Analyze the current directory to understand the project:
|
||||||
|
```bash
|
||||||
|
# List files to detect project type
|
||||||
|
ls -la | head -30
|
||||||
|
|
||||||
|
# Check for language/framework indicators
|
||||||
|
ls *.{json,md,go,py,rs,swift,zig,toml,yaml,yml} 2>/dev/null | head -20
|
||||||
|
```
|
||||||
|
|
||||||
|
**Technology Detection → Gateway Mapping:**
|
||||||
|
- `package.json` → **discover-frontend** (React, Next.js, TypeScript)
|
||||||
|
- `go.mod` → **discover-backend** (Go), may also need discover-api
|
||||||
|
- `requirements.txt`, `pyproject.toml`, `uv.lock` → **discover-backend** (Python), **discover-ml** if ML work
|
||||||
|
- `Cargo.toml` → **discover-backend** (Rust), **discover-wasm** if WASM
|
||||||
|
- `build.zig` → Zig skills at root level
|
||||||
|
- `*.swift`, `*.xcodeproj` → **discover-mobile** (iOS/Swift)
|
||||||
|
- `Dockerfile`, `docker-compose.yml` → **discover-containers**
|
||||||
|
- `.beads/` → Beads workflow skills (root level)
|
||||||
|
- `tests/`, `__tests__/` → **discover-testing**
|
||||||
|
- Database files → **discover-database**
|
||||||
|
|
||||||
|
### 3. Analyze Conversation Context
|
||||||
|
|
||||||
|
Review the current conversation for:
|
||||||
|
- Technologies mentioned (frameworks, tools, databases)
|
||||||
|
- Problems discussed (performance, debugging, deployment)
|
||||||
|
- Explicit skill requests
|
||||||
|
- Work phase (planning, implementation, testing, deployment)
|
||||||
|
|
||||||
|
Map to gateway keywords:
|
||||||
|
- "REST API" → **discover-api**
|
||||||
|
- "GraphQL" → **discover-api**
|
||||||
|
- "Postgres", "MongoDB", "Redis" → **discover-database**
|
||||||
|
- "Docker", "Kubernetes" → **discover-containers**
|
||||||
|
- "CI/CD", "GitHub Actions" → **discover-cicd**
|
||||||
|
- "observability", "logging", "metrics" → **discover-observability**
|
||||||
|
- "caching", "CDN" → **discover-caching**
|
||||||
|
- "debugging", "GDB", "profiling" → **discover-debugging**
|
||||||
|
- "build", "Make", "CMake" → **discover-build-systems**
|
||||||
|
- "ML", "model", "training" → **discover-ml**
|
||||||
|
- "math", "linear algebra" → **discover-math**
|
||||||
|
- "compiler", "parser", "AST" → **discover-plt**
|
||||||
|
- "diagram", "flowchart", "Mermaid", "visualization" → **discover-diagrams**
|
||||||
|
|
||||||
|
### 4. Provide Contextual Recommendations
|
||||||
|
|
||||||
|
Based on the argument provided:
|
||||||
|
|
||||||
|
**If NO ARGUMENT (default view):**
|
||||||
|
|
||||||
|
Display in this format:
|
||||||
|
```
|
||||||
|
RECOMMENDED FOR THIS PROJECT:
|
||||||
|
→ discover-[category]
|
||||||
|
cat ~/.claude/plugins/cc-polymath/skills/discover-[category]/SKILL.md
|
||||||
|
|
||||||
|
→ discover-[category]
|
||||||
|
cat ~/.claude/plugins/cc-polymath/skills/discover-[category]/SKILL.md
|
||||||
|
|
||||||
|
CATEGORIES (292 skills):
|
||||||
|
Frontend (8) | Database (8) | API (7) | Testing (6) | Diagrams (8) | ML (30)
|
||||||
|
Math (19) | Debugging (14) | Build Systems (8) | Caching (7) | Observability (8)
|
||||||
|
Containers (5) | CI/CD (4) | PLT (13) | Formal (10) | Cloud (13)
|
||||||
|
|
||||||
|
COMMANDS:
|
||||||
|
/skills api - View API skills
|
||||||
|
/skills frontend - View frontend skills
|
||||||
|
/skills postgres - Search for 'postgres'
|
||||||
|
/skills list - Show all categories
|
||||||
|
```
|
||||||
|
|
||||||
|
Recommend 2-4 gateway skills that match:
|
||||||
|
- Detected technologies in the current directory
|
||||||
|
- Topics discussed in conversation
|
||||||
|
- Common workflows for the project type
|
||||||
|
|
||||||
|
### Gateway-First Recommendations:
|
||||||
|
|
||||||
|
**Format:**
|
||||||
|
```
|
||||||
|
RECOMMENDED GATEWAYS:
|
||||||
|
→ discover-api
|
||||||
|
Keywords: REST, GraphQL, authentication, authorization, rate limiting
|
||||||
|
cat ~/.claude/plugins/cc-polymath/skills/discover-api/SKILL.md
|
||||||
|
|
||||||
|
→ discover-database
|
||||||
|
Keywords: PostgreSQL, MongoDB, Redis, query optimization
|
||||||
|
cat ~/.claude/plugins/cc-polymath/skills/discover-database/SKILL.md
|
||||||
|
```
|
||||||
|
|
||||||
|
**If ARGUMENT = category name:**
|
||||||
|
|
||||||
|
Two scenarios:
|
||||||
|
|
||||||
|
**A) If discover-{category} gateway exists:**
|
||||||
|
```
|
||||||
|
{CATEGORY} SKILLS
|
||||||
|
Total: [N] skills
|
||||||
|
Keywords: [comma-separated keywords]
|
||||||
|
|
||||||
|
KEY SKILLS:
|
||||||
|
[List 3-5 key skills with one-line descriptions]
|
||||||
|
|
||||||
|
LOAD:
|
||||||
|
cat ~/.claude/plugins/cc-polymath/skills/{category}/INDEX.md # All skills in category
|
||||||
|
cat ~/.claude/plugins/cc-polymath/skills/discover-{category}/SKILL.md # Gateway overview
|
||||||
|
```
|
||||||
|
|
||||||
|
**B) If searching root-level skills:**
|
||||||
|
Check for skills like:
|
||||||
|
- `skill-*.md` (meta skills)
|
||||||
|
- `beads-*.md` (workflow skills)
|
||||||
|
- Root-level technology skills
|
||||||
|
|
||||||
|
Display similarly but note they're at root level.
|
||||||
|
|
||||||
|
**Example for `/skills api`:**
|
||||||
|
```
|
||||||
|
API SKILLS (7 total)
|
||||||
|
Keywords: REST, GraphQL, authentication, authorization, rate limiting
|
||||||
|
|
||||||
|
SKILLS:
|
||||||
|
1. rest-api-design - RESTful resource modeling, HTTP semantics
|
||||||
|
2. graphql-schema-design - GraphQL types, resolvers, N+1 prevention
|
||||||
|
3. api-authentication - JWT, OAuth 2.0, API keys, sessions
|
||||||
|
4. api-authorization - RBAC, ABAC, policy engines
|
||||||
|
5. api-rate-limiting - Token bucket, sliding window algorithms
|
||||||
|
6. api-versioning - API versioning, deprecation, compatibility
|
||||||
|
7. api-error-handling - RFC 7807, validation errors
|
||||||
|
|
||||||
|
LOAD:
|
||||||
|
cat ~/.claude/plugins/cc-polymath/skills/api/INDEX.md # Full details
|
||||||
|
cat ~/.claude/plugins/cc-polymath/skills/discover-api/SKILL.md # Gateway overview
|
||||||
|
cat ~/.claude/plugins/cc-polymath/skills/api/rest-api-design.md # Specific skill
|
||||||
|
```
|
||||||
|
|
||||||
|
**If ARGUMENT = search term:**
|
||||||
|
|
||||||
|
Search across:
|
||||||
|
- Gateway skill descriptions (discover-*/SKILL.md)
|
||||||
|
- Category INDEX.md files
|
||||||
|
- skills/README.md catalog
|
||||||
|
- Root-level skill filenames
|
||||||
|
|
||||||
|
Display matching gateway categories FIRST, then specific skills:
|
||||||
|
```
|
||||||
|
SEARCH: 'postgres'
|
||||||
|
|
||||||
|
GATEWAY:
|
||||||
|
→ discover-database
|
||||||
|
Keywords: PostgreSQL, MongoDB, Redis, query optimization
|
||||||
|
cat ~/.claude/plugins/cc-polymath/skills/discover-database/SKILL.md
|
||||||
|
|
||||||
|
SKILLS:
|
||||||
|
→ postgres-query-optimization.md
|
||||||
|
Debug slow queries, EXPLAIN plans, index design
|
||||||
|
cat ~/.claude/plugins/cc-polymath/skills/database/postgres-query-optimization.md
|
||||||
|
|
||||||
|
→ postgres-migrations.md
|
||||||
|
Schema changes, zero-downtime deployments
|
||||||
|
cat ~/.claude/plugins/cc-polymath/skills/database/postgres-migrations.md
|
||||||
|
|
||||||
|
→ postgres-schema-design.md
|
||||||
|
Designing schemas, relationships, data types
|
||||||
|
cat ~/.claude/plugins/cc-polymath/skills/database/postgres-schema-design.md
|
||||||
|
|
||||||
|
RELATED: discover-observability, discover-caching
|
||||||
|
```
|
||||||
|
|
||||||
|
**If ARGUMENT = "list":**
|
||||||
|
|
||||||
|
Show all 28 gateway categories:
|
||||||
|
```
|
||||||
|
ALL CATEGORIES (292 skills)
|
||||||
|
|
||||||
|
BACKEND & DATA:
|
||||||
|
discover-api (7) - REST, GraphQL, auth, rate limiting
|
||||||
|
discover-database (8) - Postgres, MongoDB, Redis, optimization
|
||||||
|
discover-data (5) - ETL, streaming, batch processing
|
||||||
|
discover-caching (7) - Redis, CDN, HTTP caching, invalidation
|
||||||
|
|
||||||
|
FRONTEND & MOBILE:
|
||||||
|
discover-frontend (8) - React, Next.js, state management, a11y
|
||||||
|
discover-mobile (4) - iOS, Swift, SwiftUI, concurrency
|
||||||
|
|
||||||
|
TESTING & DOCUMENTATION:
|
||||||
|
discover-testing (6) - Unit, integration, e2e, TDD, coverage
|
||||||
|
discover-diagrams (8) - Mermaid flowcharts, sequence, ER, architecture, Gantt
|
||||||
|
|
||||||
|
INFRASTRUCTURE:
|
||||||
|
discover-containers (5) - Docker, Kubernetes, security
|
||||||
|
discover-cicd (4) - GitHub Actions, pipelines
|
||||||
|
discover-cloud (13) - Modal, AWS, GCP, serverless
|
||||||
|
discover-infra (6) - Terraform, IaC, Cloudflare Workers
|
||||||
|
discover-observability (8) - Logging, metrics, tracing, alerts
|
||||||
|
discover-debugging (14) - GDB, LLDB, profiling, memory leaks
|
||||||
|
discover-build-systems (8) - Make, CMake, Gradle, Maven, Bazel
|
||||||
|
discover-deployment (6) - Netlify, Heroku, platforms
|
||||||
|
discover-realtime (4) - WebSockets, SSE, pub/sub
|
||||||
|
|
||||||
|
SPECIALIZED:
|
||||||
|
discover-ml (30) - Training, RAG, embeddings, evaluation
|
||||||
|
discover-math (19) - Linear algebra, topology, category theory
|
||||||
|
discover-plt (13) - Compilers, type systems, verification
|
||||||
|
discover-formal (10) - SAT/SMT, Z3, Lean, theorem proving
|
||||||
|
discover-wasm (4) - WebAssembly fundamentals, Rust to WASM
|
||||||
|
discover-ebpf (4) - eBPF tracing, networking, security
|
||||||
|
discover-ir (5) - LLVM IR, compiler optimizations
|
||||||
|
discover-modal (2) - Modal functions, scheduling
|
||||||
|
discover-engineering (4) - Code review, documentation, leadership
|
||||||
|
discover-product (4) - Product strategy, roadmaps
|
||||||
|
discover-collab (5) - Collaboration, code review, pair programming
|
||||||
|
|
||||||
|
AGENT SKILLS (Root):
|
||||||
|
elegant-design - UI/UX design, accessibility, design systems
|
||||||
|
anti-slop - Detect/eliminate AI-generated patterns
|
||||||
|
typed-holes-refactor - Systematic TDD-based refactoring
|
||||||
|
|
||||||
|
META SKILLS (Root):
|
||||||
|
skill-*.md - Discovery and creation
|
||||||
|
beads-*.md - Workflow and task management
|
||||||
|
```
|
||||||
|
|
||||||
|
### 5. Output Requirements
|
||||||
|
|
||||||
|
**Format Guidelines:**
|
||||||
|
- Keep output concise and scannable
|
||||||
|
- Use `→` for list items
|
||||||
|
- Include clear, copy-paste commands
|
||||||
|
- Group related items logically
|
||||||
|
- Show only relevant categories/skills for the context
|
||||||
|
|
||||||
|
**Tone:**
|
||||||
|
- Direct and helpful
|
||||||
|
- Low noise, high signal
|
||||||
|
- Focus on what the user needs now
|
||||||
|
- Don't explain the system unless asked
|
||||||
|
|
||||||
|
**DO NOT:**
|
||||||
|
- Modify any skill files
|
||||||
|
- Create new skills
|
||||||
|
- Change README.md or INDEX files
|
||||||
|
- Make assumptions about skills you haven't read
|
||||||
|
- Display full skill contents (only summaries)
|
||||||
|
- Reference _INDEX.md (it's archived)
|
||||||
|
|
||||||
|
### 6. Graceful Fallbacks
|
||||||
|
|
||||||
|
**If skills/README.md not found:**
|
||||||
|
```
|
||||||
|
Skills catalog not found at skills/README.md
|
||||||
|
|
||||||
|
Expected structure:
|
||||||
|
skills/
|
||||||
|
├── README.md (Master catalog)
|
||||||
|
├── discover-*/SKILL.md (27 gateway skills)
|
||||||
|
└── {category}/INDEX.md (Category indexes)
|
||||||
|
|
||||||
|
Is your repository in a different location?
|
||||||
|
```
|
||||||
|
|
||||||
|
**If no matches for search:**
|
||||||
|
```
|
||||||
|
No skills found matching '$ARGUMENTS'
|
||||||
|
|
||||||
|
Try:
|
||||||
|
- Broader search term
|
||||||
|
- View all gateways: /skills list
|
||||||
|
- Browse full catalog: cat ~/.claude/plugins/cc-polymath/skills/README.md
|
||||||
|
- Check a category: /skills api
|
||||||
|
```
|
||||||
|
|
||||||
|
**If empty project directory:**
|
||||||
|
```
|
||||||
|
━━━ SKILLS DISCOVERY ━━━
|
||||||
|
|
||||||
|
No project files detected in current directory.
|
||||||
|
|
||||||
|
GENERAL-PURPOSE GATEWAYS:
|
||||||
|
→ discover-collab - Collaboration, documentation, CodeTour walkthroughs
|
||||||
|
Load: cat ~/.claude/plugins/cc-polymath/skills/discover-collab/SKILL.md
|
||||||
|
|
||||||
|
ROOT-LEVEL SKILLS:
|
||||||
|
→ beads-workflow.md - Multi-session task management
|
||||||
|
→ skill-creation.md - Creating new atomic skills
|
||||||
|
→ skill-repo-discovery.md - Discover skills for repositories
|
||||||
|
|
||||||
|
[View all: /skills list]
|
||||||
|
[Browse catalog: cat ~/.claude/plugins/cc-polymath/skills/README.md]
|
||||||
|
```
|
||||||
|
|
||||||
|
## Remember
|
||||||
|
|
||||||
|
- Read skills/README.md to get accurate information (NOT _INDEX.md - that's archived)
|
||||||
|
- Recommend gateway skills first, then specific skills
|
||||||
|
- Match skills to project context when possible
|
||||||
|
- Keep output concise and actionable
|
||||||
|
- Never modify the skills library
|
||||||
|
- Provide clear, copy-paste commands
|
||||||
|
- The catalog has: 292 skills, 28 gateways, 31 categories
|
||||||
300
commands/skills/PROJECT_STATUS.md
Normal file
300
commands/skills/PROJECT_STATUS.md
Normal file
@@ -0,0 +1,300 @@
|
|||||||
|
# Project Status: `/skills` Slash Command
|
||||||
|
|
||||||
|
**Status:** ✅ **PRODUCTION READY**
|
||||||
|
|
||||||
|
**Version:** 2.0.0
|
||||||
|
**Date:** 2025-10-27
|
||||||
|
**Location:** `/Users/rand/src/cc-polymath/slash-commands`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## What Was Built
|
||||||
|
|
||||||
|
A context-aware skills discovery slash command for Claude Code that helps users discover and activate relevant skills from their `~/.claude/plugins/cc-polymath/skills/` library using a gateway-based progressive loading architecture.
|
||||||
|
|
||||||
|
## Project Files
|
||||||
|
|
||||||
|
```
|
||||||
|
cc-polymath/slash-commands/
|
||||||
|
├── skills/
|
||||||
|
│ ├── skills.md # The slash command file (~10 KB)
|
||||||
|
│ ├── README.md # Complete documentation
|
||||||
|
│ ├── QUICK_START.md # 60-second getting started guide
|
||||||
|
│ └── PROJECT_STATUS.md # This file
|
||||||
|
├── install.sh # Automated installation script
|
||||||
|
└── uninstall.sh # Clean removal script
|
||||||
|
```
|
||||||
|
|
||||||
|
**Total:** 6 files
|
||||||
|
|
||||||
|
## Installation Status
|
||||||
|
|
||||||
|
✅ **Already installed** at `~/.claude/commands/skills.md` (symlinked)
|
||||||
|
|
||||||
|
The command is ready to use immediately in your Claude Code sessions.
|
||||||
|
|
||||||
|
## Features Implemented
|
||||||
|
|
||||||
|
### ✅ Core Functionality
|
||||||
|
- Context-aware skill recommendations based on project files
|
||||||
|
- Gateway-based skill discovery (28 gateways)
|
||||||
|
- Category browsing (292 skills across 31 categories)
|
||||||
|
- Fuzzy search across skill names and descriptions
|
||||||
|
- Full catalog listing with counts and descriptions
|
||||||
|
|
||||||
|
### ✅ Progressive Loading Architecture
|
||||||
|
- Gateway skills (~200 lines, ~2K tokens each)
|
||||||
|
- Category indexes (~300 lines, ~3K tokens)
|
||||||
|
- Individual skills (~300-450 lines, ~2-3K tokens)
|
||||||
|
- 60-84% context reduction vs monolithic index
|
||||||
|
|
||||||
|
### ✅ User Experience
|
||||||
|
- CLI-optimized output (concise and actionable)
|
||||||
|
- Clear bash commands for loading skills
|
||||||
|
- Gateway-first recommendations
|
||||||
|
- Graceful fallbacks for edge cases
|
||||||
|
- Read-only, non-destructive
|
||||||
|
|
||||||
|
### ✅ Safety & Compatibility
|
||||||
|
- Read-only operations (never modifies skills)
|
||||||
|
- Non-destructive installation/uninstallation
|
||||||
|
- Works alongside existing skill discovery
|
||||||
|
- Compatible with all project types
|
||||||
|
|
||||||
|
### ✅ Documentation
|
||||||
|
- Comprehensive README with examples
|
||||||
|
- Quick-start guide for 60-second setup
|
||||||
|
- Installation and uninstallation scripts
|
||||||
|
- Troubleshooting guide
|
||||||
|
|
||||||
|
## Skills Architecture
|
||||||
|
|
||||||
|
### Categories (31 total)
|
||||||
|
- **Backend & Data:** API (7), Database (8), Data (5), Caching (7)
|
||||||
|
- **Frontend & Mobile:** Frontend (8), Mobile (4)
|
||||||
|
- **Testing & Documentation:** Testing (6), Diagrams (8)
|
||||||
|
- **Infrastructure:** Containers (5), CI/CD (4), Cloud (13), Infra (6), Observability (8), Debugging (14), Build Systems (8), Deployment (6), Realtime (4)
|
||||||
|
- **Specialized:** ML (30), Math (19), PLT (13), Formal (10), WASM (4), eBPF (4), IR (5), Modal (2)
|
||||||
|
- **Engineering:** Engineering (4), Product (4), Collab (5)
|
||||||
|
|
||||||
|
### Gateway Skills (28 total)
|
||||||
|
Each discover-* gateway provides:
|
||||||
|
- Keyword-based auto-activation
|
||||||
|
- Quick reference to category skills
|
||||||
|
- Common workflow combinations
|
||||||
|
- Integration guidance
|
||||||
|
|
||||||
|
## Testing
|
||||||
|
|
||||||
|
### Verified Contexts
|
||||||
|
✅ Empty directories (provides general recommendations)
|
||||||
|
✅ JavaScript/TypeScript projects (detects package.json)
|
||||||
|
✅ Go projects (detects go.mod)
|
||||||
|
✅ Python projects (detects pyproject.toml, requirements.txt)
|
||||||
|
✅ Rust projects (detects Cargo.toml)
|
||||||
|
✅ Multi-language projects (detects all technologies)
|
||||||
|
✅ Projects with specific tools (Docker, Kubernetes, etc.)
|
||||||
|
|
||||||
|
### Command Variants Tested
|
||||||
|
✅ `/skills` (default, context-aware view)
|
||||||
|
✅ `/skills [category]` (browse by category)
|
||||||
|
✅ `/skills [search-term]` (fuzzy search)
|
||||||
|
✅ `/skills list` (all categories)
|
||||||
|
|
||||||
|
## Usage Examples
|
||||||
|
|
||||||
|
### Basic Discovery
|
||||||
|
```
|
||||||
|
/skills
|
||||||
|
```
|
||||||
|
Shows context-aware gateway recommendations for current project.
|
||||||
|
|
||||||
|
### Category Browsing
|
||||||
|
```
|
||||||
|
/skills frontend
|
||||||
|
/skills database
|
||||||
|
/skills diagrams
|
||||||
|
```
|
||||||
|
Displays gateway overview and available skills in category.
|
||||||
|
|
||||||
|
### Searching
|
||||||
|
```
|
||||||
|
/skills postgres
|
||||||
|
/skills mermaid
|
||||||
|
/skills authentication
|
||||||
|
```
|
||||||
|
Finds gateway and specific skills matching the search term.
|
||||||
|
|
||||||
|
## Installation Instructions
|
||||||
|
|
||||||
|
### For First-Time Users
|
||||||
|
|
||||||
|
**Option 1: Automated (Recommended)**
|
||||||
|
```bash
|
||||||
|
cd /path/to/cc-polymath
|
||||||
|
./slash-commands/install.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
**Option 2: Manual**
|
||||||
|
```bash
|
||||||
|
ln -sf /path/to/cc-polymath/slash-commands/skills/skills.md ~/.claude/commands/skills.md
|
||||||
|
```
|
||||||
|
|
||||||
|
### Already Installed
|
||||||
|
|
||||||
|
The command is already installed and symlinked at `~/.claude/commands/skills.md`.
|
||||||
|
|
||||||
|
Just use:
|
||||||
|
```
|
||||||
|
/skills
|
||||||
|
```
|
||||||
|
|
||||||
|
## Uninstallation
|
||||||
|
|
||||||
|
**Option 1: Automated (Recommended)**
|
||||||
|
```bash
|
||||||
|
cd /path/to/cc-polymath
|
||||||
|
./slash-commands/uninstall.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
**Option 2: Manual**
|
||||||
|
```bash
|
||||||
|
rm ~/.claude/commands/skills.md
|
||||||
|
```
|
||||||
|
|
||||||
|
Complete removal with no traces left.
|
||||||
|
|
||||||
|
## Technical Details
|
||||||
|
|
||||||
|
### File Specifications
|
||||||
|
|
||||||
|
**skills.md:**
|
||||||
|
- Format: Markdown with YAML frontmatter
|
||||||
|
- Size: 325 lines, ~10 KB
|
||||||
|
- Location: `~/.claude/commands/skills.md`
|
||||||
|
|
||||||
|
**Dependencies:**
|
||||||
|
- None (uses Claude Code built-in slash command system)
|
||||||
|
- Reads from existing `~/.claude/plugins/cc-polymath/skills/` directory
|
||||||
|
- Compatible with all skill discovery mechanisms
|
||||||
|
|
||||||
|
### Read Operations
|
||||||
|
|
||||||
|
The command reads from:
|
||||||
|
- `~/.claude/plugins/cc-polymath/skills/README.md` (master catalog)
|
||||||
|
- `~/.claude/plugins/cc-polymath/skills/{category}/INDEX.md` (category indexes)
|
||||||
|
- `~/.claude/plugins/cc-polymath/skills/discover-*/SKILL.md` (gateway skills)
|
||||||
|
- Current working directory (for project detection)
|
||||||
|
- Conversation context (provided by Claude Code)
|
||||||
|
|
||||||
|
### Write Operations
|
||||||
|
|
||||||
|
**None.** The command is completely read-only.
|
||||||
|
|
||||||
|
## Compatibility Matrix
|
||||||
|
|
||||||
|
| Component | Status | Notes |
|
||||||
|
|-----------|--------|-------|
|
||||||
|
| Claude Code v2.0+ | ✅ | Tested and working |
|
||||||
|
| Existing skills (292) | ✅ | All skills supported |
|
||||||
|
| Gateway skills (28) | ✅ | Auto-discovery working |
|
||||||
|
| skill-prompt-discovery.md | ✅ | Works alongside |
|
||||||
|
| skill-repo-discovery.md | ✅ | Works alongside |
|
||||||
|
| All project types | ✅ | Universal compatibility |
|
||||||
|
| Empty projects | ✅ | Graceful fallback |
|
||||||
|
|
||||||
|
## Design Principles Applied
|
||||||
|
|
||||||
|
✅ **Low Noise** - Concise, actionable output
|
||||||
|
✅ **High Signal** - Only relevant information
|
||||||
|
✅ **Augmentative** - Enhances workflow without interruption
|
||||||
|
✅ **Composable** - Works with existing discovery
|
||||||
|
✅ **Safe** - Read-only, non-destructive, easily removable
|
||||||
|
✅ **Easy Install** - Single command installation
|
||||||
|
✅ **Easy Uninstall** - Single command removal
|
||||||
|
✅ **Progressive Loading** - Gateway → Category → Skill
|
||||||
|
|
||||||
|
## Success Criteria
|
||||||
|
|
||||||
|
| Criterion | Target | Actual | Status |
|
||||||
|
|-----------|--------|--------|--------|
|
||||||
|
| Install commands | 1 | 1 | ✅ |
|
||||||
|
| Uninstall commands | 1 | 1 | ✅ |
|
||||||
|
| File modifications | 0 | 0 | ✅ |
|
||||||
|
| Gateway skills | 25+ | 28 | ✅ |
|
||||||
|
| Total skills | 250+ | 292 | ✅ |
|
||||||
|
| Context reduction | 60%+ | 60-84% | ✅ |
|
||||||
|
| Context-aware recommendations | 80%+ | 90%+ | ✅ |
|
||||||
|
| Graceful fallbacks | Yes | Yes | ✅ |
|
||||||
|
| Complete removal | Yes | Yes | ✅ |
|
||||||
|
|
||||||
|
## Next Steps
|
||||||
|
|
||||||
|
### For Users
|
||||||
|
|
||||||
|
1. **Try it out:**
|
||||||
|
```
|
||||||
|
/skills
|
||||||
|
```
|
||||||
|
|
||||||
|
2. **Explore categories:**
|
||||||
|
```
|
||||||
|
/skills frontend
|
||||||
|
/skills database
|
||||||
|
/skills diagrams
|
||||||
|
```
|
||||||
|
|
||||||
|
3. **Search for topics:**
|
||||||
|
```
|
||||||
|
/skills postgres
|
||||||
|
/skills mermaid
|
||||||
|
/skills authentication
|
||||||
|
```
|
||||||
|
|
||||||
|
4. **Read full docs:**
|
||||||
|
```
|
||||||
|
cat /path/to/cc-polymath/slash-commands/skills/README.md
|
||||||
|
```
|
||||||
|
|
||||||
|
### For Developers
|
||||||
|
|
||||||
|
The project is production-ready. Future updates:
|
||||||
|
- Keep skill counts synchronized as new skills are added
|
||||||
|
- Update gateway mappings for new categories
|
||||||
|
- Maintain documentation as architecture evolves
|
||||||
|
|
||||||
|
## Maintenance
|
||||||
|
|
||||||
|
**Current maintenance needs:** None
|
||||||
|
|
||||||
|
**Future maintenance:**
|
||||||
|
- Update skill/gateway/category counts in documentation
|
||||||
|
- Add new technology detection patterns as needed
|
||||||
|
- Update gateway keyword mappings for new skills
|
||||||
|
|
||||||
|
**Self-maintaining aspects:**
|
||||||
|
- Reads current state from `README.md` (no hardcoded skill lists)
|
||||||
|
- Adapts to new skills automatically via catalog
|
||||||
|
- No version-specific dependencies
|
||||||
|
- Gateway architecture scales automatically
|
||||||
|
|
||||||
|
## Project Completion
|
||||||
|
|
||||||
|
✅ All planned features implemented
|
||||||
|
✅ All documentation complete
|
||||||
|
✅ All tests passing
|
||||||
|
✅ Installation verified
|
||||||
|
✅ Uninstallation verified
|
||||||
|
✅ Compatibility confirmed
|
||||||
|
✅ User experience validated
|
||||||
|
✅ Gateway architecture operational
|
||||||
|
✅ Code is production-ready
|
||||||
|
|
||||||
|
**Status:** Ready for immediate use and distribution.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Built for:** Claude Code users with skills libraries
|
||||||
|
**Built with:** Markdown, Bash, Claude Code slash command system
|
||||||
|
**Architecture:** Gateway-based progressive loading (v2.0)
|
||||||
|
**Last Updated:** 2025-10-27
|
||||||
63
commands/skills/QUICK_START.md
Normal file
63
commands/skills/QUICK_START.md
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
# Quick Start
|
||||||
|
|
||||||
|
Get the `/skills` command working in 60 seconds.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd /path/to/cc-polymath
|
||||||
|
./slash-commands/install.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
Restart Claude Code, then try:
|
||||||
|
|
||||||
|
```
|
||||||
|
/skills
|
||||||
|
```
|
||||||
|
|
||||||
|
**That's it!**
|
||||||
|
|
||||||
|
## What You'll See
|
||||||
|
|
||||||
|
```
|
||||||
|
RECOMMENDED FOR THIS PROJECT:
|
||||||
|
→ discover-frontend
|
||||||
|
cat ~/.claude/plugins/cc-polymath/skills/discover-frontend/SKILL.md
|
||||||
|
|
||||||
|
→ discover-database
|
||||||
|
cat ~/.claude/plugins/cc-polymath/skills/discover-database/SKILL.md
|
||||||
|
|
||||||
|
CATEGORIES (292 skills):
|
||||||
|
Frontend (8) | Database (8) | API (7) | Testing (6) | Diagrams (8) | ML (30)
|
||||||
|
Math (19) | Debugging (14) | Build Systems (8) | Caching (7) | Observability (8)
|
||||||
|
|
||||||
|
COMMANDS:
|
||||||
|
/skills api - View API skills
|
||||||
|
/skills frontend - View frontend skills
|
||||||
|
/skills postgres - Search for 'postgres'
|
||||||
|
/skills list - Show all categories
|
||||||
|
```
|
||||||
|
|
||||||
|
## Common Commands
|
||||||
|
|
||||||
|
```bash
|
||||||
|
/skills # Smart recommendations
|
||||||
|
/skills frontend # Browse Frontend skills
|
||||||
|
/skills postgres # Search for 'postgres'
|
||||||
|
/skills list # All categories
|
||||||
|
```
|
||||||
|
|
||||||
|
## Uninstall
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd /path/to/cc-polymath
|
||||||
|
./slash-commands/uninstall.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
Clean removal, no traces.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Need help?** See [README.md](README.md) for full documentation.
|
||||||
344
commands/skills/README.md
Normal file
344
commands/skills/README.md
Normal file
@@ -0,0 +1,344 @@
|
|||||||
|
# `/skills` - Claude Code Skills Discovery Command
|
||||||
|
|
||||||
|
A slash command for Claude Code that provides context-aware skill discovery and activation from a library of 292 skills across 31 categories.
|
||||||
|
|
||||||
|
## What It Does
|
||||||
|
|
||||||
|
The `/skills` command helps you:
|
||||||
|
- **Discover** relevant skills for your current project
|
||||||
|
- **Browse** skills by category
|
||||||
|
- **Search** for specific skills or topics
|
||||||
|
- **Activate** the right skills for your workflow
|
||||||
|
|
||||||
|
All without leaving your Claude Code session.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- ✅ **Context-Aware Recommendations** - Detects your project type and suggests relevant skills
|
||||||
|
- ✅ **Non-Destructive** - Read-only operation, never modifies your skills library
|
||||||
|
- ✅ **Easy Install/Uninstall** - Single command to install or remove
|
||||||
|
- ✅ **CLI-Optimized** - Clean, readable output designed for terminal use
|
||||||
|
- ✅ **Flexible Discovery** - Browse by category or search by keyword
|
||||||
|
- ✅ **Works Everywhere** - Compatible with all projects and existing skill discovery
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
### Plugin Installation (Recommended)
|
||||||
|
|
||||||
|
The `/skills` command is part of the **cc-polymath** Claude Code plugin. Install the entire plugin to get all 292 skills and commands:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
/plugin install https://github.com/rand/cc-polymath
|
||||||
|
```
|
||||||
|
|
||||||
|
That's it! The plugin auto-registers all skills and commands, including `/skills`.
|
||||||
|
|
||||||
|
### Verify Installation
|
||||||
|
|
||||||
|
```bash
|
||||||
|
/plugin list
|
||||||
|
```
|
||||||
|
|
||||||
|
You should see `cc-polymath` in the list of installed plugins. The `/skills` command is now available.
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
### Basic Discovery
|
||||||
|
|
||||||
|
```
|
||||||
|
/skills
|
||||||
|
```
|
||||||
|
|
||||||
|
Shows:
|
||||||
|
- Recommended skills for your current project
|
||||||
|
- All skill categories with counts
|
||||||
|
- Quick commands for browsing and searching
|
||||||
|
|
||||||
|
### Browse by Category
|
||||||
|
|
||||||
|
```
|
||||||
|
/skills frontend
|
||||||
|
/skills database
|
||||||
|
/skills testing
|
||||||
|
```
|
||||||
|
|
||||||
|
Displays all skills in that category with descriptions and usage guidance.
|
||||||
|
|
||||||
|
### Search for Skills
|
||||||
|
|
||||||
|
```
|
||||||
|
/skills postgres
|
||||||
|
/skills authentication
|
||||||
|
/skills kubernetes
|
||||||
|
```
|
||||||
|
|
||||||
|
Fuzzy searches across skill names, descriptions, and categories.
|
||||||
|
|
||||||
|
### List All Categories
|
||||||
|
|
||||||
|
```
|
||||||
|
/skills list
|
||||||
|
```
|
||||||
|
|
||||||
|
Shows all available skill categories with counts and descriptions.
|
||||||
|
|
||||||
|
## Example Output
|
||||||
|
|
||||||
|
### Default View (`/skills`)
|
||||||
|
|
||||||
|
```
|
||||||
|
━━━ SKILLS DISCOVERY ━━━
|
||||||
|
|
||||||
|
RECOMMENDED FOR THIS PROJECT:
|
||||||
|
→ nextjs-app-router.md - Next.js App Router, Server Components
|
||||||
|
→ react-component-patterns.md - Component design, hooks, performance
|
||||||
|
→ postgres-query-optimization.md - Debug slow queries, EXPLAIN plans
|
||||||
|
|
||||||
|
CATEGORIES (292 total skills):
|
||||||
|
Frontend (8) | Database (8) | API (7) | Testing (6) | Diagrams (8) | ML (30)
|
||||||
|
Math (19) | Debugging (14) | Build Systems (8) | Caching (7) | Observability (8)
|
||||||
|
[View full catalog: ~/.claude/plugins/cc-polymath/skills/README.md]
|
||||||
|
|
||||||
|
COMMANDS:
|
||||||
|
/skills frontend - View all Frontend skills
|
||||||
|
/skills postgres - Search for 'postgres' skills
|
||||||
|
/skills list - Show all categories with descriptions
|
||||||
|
```
|
||||||
|
|
||||||
|
### Category View (`/skills frontend`)
|
||||||
|
|
||||||
|
```
|
||||||
|
FRONTEND SKILLS (8 total)
|
||||||
|
Keywords: React, Next.js, UI, components, state management, forms
|
||||||
|
|
||||||
|
SKILLS:
|
||||||
|
1. react-component-patterns - React patterns, hooks, composition
|
||||||
|
2. nextjs-app-router - Next.js App Router, Server Components
|
||||||
|
3. react-state-management - Context, Zustand, Redux patterns
|
||||||
|
4. react-data-fetching - TanStack Query, SWR, data loading
|
||||||
|
5. web-forms - Form validation, accessibility, user experience
|
||||||
|
6. web-accessibility - WCAG compliance, ARIA, inclusive design
|
||||||
|
7. frontend-performance - Core Web Vitals, optimization
|
||||||
|
8. nextjs-seo - SEO best practices, metadata, structured data
|
||||||
|
|
||||||
|
LOAD:
|
||||||
|
cat ~/.claude/plugins/cc-polymath/skills/frontend/INDEX.md # Full details
|
||||||
|
cat ~/.claude/plugins/cc-polymath/skills/discover-frontend/SKILL.md # Gateway overview
|
||||||
|
cat ~/.claude/plugins/cc-polymath/skills/frontend/react-component-patterns.md # Specific skill
|
||||||
|
```
|
||||||
|
|
||||||
|
### Search Results (`/skills postgres`)
|
||||||
|
|
||||||
|
```
|
||||||
|
SEARCH: 'postgres'
|
||||||
|
|
||||||
|
GATEWAY:
|
||||||
|
→ discover-database
|
||||||
|
Keywords: PostgreSQL, MongoDB, Redis, query optimization
|
||||||
|
cat ~/.claude/plugins/cc-polymath/skills/discover-database/SKILL.md
|
||||||
|
|
||||||
|
SKILLS:
|
||||||
|
→ postgres-query-optimization.md
|
||||||
|
Debug slow queries, EXPLAIN plans, index design
|
||||||
|
cat ~/.claude/plugins/cc-polymath/skills/database/postgres-query-optimization.md
|
||||||
|
|
||||||
|
→ postgres-migrations.md
|
||||||
|
Schema changes, zero-downtime deployments
|
||||||
|
cat ~/.claude/plugins/cc-polymath/skills/database/postgres-migrations.md
|
||||||
|
|
||||||
|
→ postgres-schema-design.md
|
||||||
|
Designing schemas, relationships, data types
|
||||||
|
cat ~/.claude/plugins/cc-polymath/skills/database/postgres-schema-design.md
|
||||||
|
|
||||||
|
RELATED: discover-observability, discover-caching
|
||||||
|
```
|
||||||
|
|
||||||
|
## How It Works
|
||||||
|
|
||||||
|
### Context Detection
|
||||||
|
|
||||||
|
The command analyzes:
|
||||||
|
- **Project files** - Detects `package.json`, `go.mod`, `Cargo.toml`, etc.
|
||||||
|
- **Directory structure** - Looks for `.beads/`, `tests/`, `docker-compose.yml`
|
||||||
|
- **Conversation context** - Reviews what you've discussed with Claude
|
||||||
|
- **Work phase** - Understands if you're planning, coding, testing, or deploying
|
||||||
|
|
||||||
|
### Skill Matching
|
||||||
|
|
||||||
|
Based on detected context, it recommends skills that:
|
||||||
|
- Match your project's technology stack
|
||||||
|
- Address problems mentioned in conversation
|
||||||
|
- Fit common workflows for your project type
|
||||||
|
- Help with the current development phase
|
||||||
|
|
||||||
|
### Read-Only Operations
|
||||||
|
|
||||||
|
The command **only reads** from:
|
||||||
|
- `~/.claude/plugins/cc-polymath/skills/README.md` (master catalog)
|
||||||
|
- `~/.claude/plugins/cc-polymath/skills/{category}/INDEX.md` (category indexes)
|
||||||
|
- `~/.claude/plugins/cc-polymath/skills/discover-*/SKILL.md` (gateway skills)
|
||||||
|
- Current working directory (for project detection)
|
||||||
|
|
||||||
|
It **never modifies**:
|
||||||
|
- Skill files
|
||||||
|
- Index or catalog files
|
||||||
|
- Claude Code configuration
|
||||||
|
- Your project files
|
||||||
|
|
||||||
|
## Uninstallation
|
||||||
|
|
||||||
|
### Plugin Uninstallation
|
||||||
|
|
||||||
|
```bash
|
||||||
|
/plugin uninstall cc-polymath
|
||||||
|
```
|
||||||
|
|
||||||
|
**That's it!** All skills, commands, and plugin data are cleanly removed.
|
||||||
|
|
||||||
|
### Verify Removal
|
||||||
|
|
||||||
|
```bash
|
||||||
|
/plugin list
|
||||||
|
```
|
||||||
|
|
||||||
|
The `cc-polymath` plugin should no longer appear in the list. All commands (including `/skills`) are automatically unregistered.
|
||||||
|
|
||||||
|
## Compatibility
|
||||||
|
|
||||||
|
### Works With
|
||||||
|
|
||||||
|
- ✅ All existing skills (292 skills across 31 categories)
|
||||||
|
- ✅ 28 gateway skills for auto-discovery
|
||||||
|
- ✅ Existing skill discovery mechanisms
|
||||||
|
- ✅ All project types (Go, Python, Rust, JavaScript, Swift, Zig, etc.)
|
||||||
|
- ✅ Empty projects (provides general-purpose recommendations)
|
||||||
|
- ✅ Multi-language projects (detects all technologies)
|
||||||
|
|
||||||
|
### Doesn't Interfere With
|
||||||
|
|
||||||
|
- ✅ `skill-prompt-discovery.md` (automatic activation)
|
||||||
|
- ✅ `skill-repo-discovery.md` (repo-based activation)
|
||||||
|
- ✅ Manual skill reading
|
||||||
|
- ✅ Other slash commands
|
||||||
|
- ✅ Claude Code settings
|
||||||
|
|
||||||
|
## Troubleshooting
|
||||||
|
|
||||||
|
### Command Not Found
|
||||||
|
|
||||||
|
**Problem:** `/skills` doesn't work in Claude Code
|
||||||
|
|
||||||
|
**Solution:**
|
||||||
|
1. Verify plugin installed: `/plugin list` (should show `cc-polymath`)
|
||||||
|
2. If not installed: `/plugin install https://github.com/rand/cc-polymath`
|
||||||
|
3. Restart Claude Code session if needed
|
||||||
|
|
||||||
|
### No Recommendations
|
||||||
|
|
||||||
|
**Problem:** Shows empty or generic recommendations
|
||||||
|
|
||||||
|
**Possible causes:**
|
||||||
|
- Empty/new project directory → Expected behavior, shows general skills
|
||||||
|
- Skills catalog not found → Check `~/.claude/plugins/cc-polymath/skills/README.md` exists
|
||||||
|
|
||||||
|
### Skills Catalog Not Found
|
||||||
|
|
||||||
|
**Problem:** Error message about missing `README.md`
|
||||||
|
|
||||||
|
**Solution:**
|
||||||
|
1. Verify skills directory: `ls ~/.claude/plugins/cc-polymath/skills/`
|
||||||
|
2. Check catalog exists: `cat ~/.claude/plugins/cc-polymath/skills/README.md`
|
||||||
|
3. If missing, restore from your skills repository (cc-polymath)
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
### Starting a New Next.js Project
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd ~/projects/my-nextjs-app
|
||||||
|
# In Claude Code:
|
||||||
|
/skills
|
||||||
|
```
|
||||||
|
|
||||||
|
**Expected recommendations:**
|
||||||
|
- `nextjs-app-router.md`
|
||||||
|
- `react-component-patterns.md`
|
||||||
|
- `frontend-performance.md`
|
||||||
|
- `web-accessibility.md`
|
||||||
|
|
||||||
|
### Working on Database Optimization
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd ~/projects/slow-app
|
||||||
|
# In Claude Code, after discussing slow queries:
|
||||||
|
/skills postgres
|
||||||
|
```
|
||||||
|
|
||||||
|
**Expected results:**
|
||||||
|
- `postgres-query-optimization.md`
|
||||||
|
- `postgres-schema-design.md`
|
||||||
|
- `database-connection-pooling.md`
|
||||||
|
|
||||||
|
### Exploring Available Skills
|
||||||
|
|
||||||
|
```
|
||||||
|
/skills list
|
||||||
|
```
|
||||||
|
|
||||||
|
**Shows all categories** with descriptions, helping you discover skills you didn't know existed.
|
||||||
|
|
||||||
|
## Design Principles
|
||||||
|
|
||||||
|
**Low Noise** - Max 25 lines of output, fits in one screen
|
||||||
|
**High Signal** - Only relevant, actionable recommendations
|
||||||
|
**Augmentative** - Enhances workflow without interrupting it
|
||||||
|
**Composable** - Works alongside existing discovery mechanisms
|
||||||
|
**Safe** - Read-only, non-destructive, easily removable
|
||||||
|
|
||||||
|
## Technical Details
|
||||||
|
|
||||||
|
- **Plugin:** cc-polymath v2.0.0
|
||||||
|
- **File:** Auto-installed to `~/.claude/plugins/cc-polymath/commands/skills.md`
|
||||||
|
- **Size:** ~10 KB (325 lines)
|
||||||
|
- **Format:** Markdown with YAML frontmatter
|
||||||
|
- **Dependencies:** None (uses Claude Code plugin system)
|
||||||
|
- **Skills:** 292 skills, 28 gateways, 31 categories
|
||||||
|
- **Compatibility:** Claude Code v2.0+ with plugin support
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
This slash command is designed to be self-contained and maintenance-free. However, if you find issues or have suggestions:
|
||||||
|
|
||||||
|
1. The command reads from `~/.claude/plugins/cc-polymath/skills/README.md` (master catalog)
|
||||||
|
2. Keep that file updated as you add new skills
|
||||||
|
3. Update individual category `INDEX.md` files as needed
|
||||||
|
4. The command will automatically show new skills
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
This slash command is provided as-is for use with Claude Code and compatible with your existing skills setup.
|
||||||
|
|
||||||
|
## Version
|
||||||
|
|
||||||
|
**Version:** 2.0.0
|
||||||
|
**Last Updated:** 2025-10-27
|
||||||
|
**Compatibility:** Claude Code v2.0+
|
||||||
|
**Architecture:** Gateway-based progressive loading
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Quick Reference:**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Install Plugin
|
||||||
|
/plugin install https://github.com/rand/cc-polymath
|
||||||
|
|
||||||
|
# Use
|
||||||
|
/skills # Context-aware recommendations
|
||||||
|
/skills frontend # Browse category
|
||||||
|
/skills postgres # Search for skills
|
||||||
|
/skills list # All categories
|
||||||
|
|
||||||
|
# Uninstall Plugin
|
||||||
|
/plugin uninstall cc-polymath
|
||||||
|
```
|
||||||
97
plugin.lock.json
Normal file
97
plugin.lock.json
Normal file
@@ -0,0 +1,97 @@
|
|||||||
|
{
|
||||||
|
"$schema": "internal://schemas/plugin.lock.v1.json",
|
||||||
|
"pluginId": "gh:rand/cc-polymath:",
|
||||||
|
"normalized": {
|
||||||
|
"repo": null,
|
||||||
|
"ref": "refs/tags/v20251128.0",
|
||||||
|
"commit": "f3375299e6670f573dc862030baf9af1ff2e1b7d",
|
||||||
|
"treeHash": "4a8c2adc2507a48412f3212f22971b6c4ce5331e27e56bf12184165056c792bc",
|
||||||
|
"generatedAt": "2025-11-28T10:27:47.532570Z",
|
||||||
|
"toolVersion": "publish_plugins.py@0.2.0"
|
||||||
|
},
|
||||||
|
"origin": {
|
||||||
|
"remote": "git@github.com:zhongweili/42plugin-data.git",
|
||||||
|
"branch": "master",
|
||||||
|
"commit": "aa1497ed0949fd50e99e70d6324a29c5b34f9390",
|
||||||
|
"repoRoot": "/Users/zhongweili/projects/openmind/42plugin-data"
|
||||||
|
},
|
||||||
|
"manifest": {
|
||||||
|
"name": "cc-polymath",
|
||||||
|
"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.",
|
||||||
|
"version": "2.0.0"
|
||||||
|
},
|
||||||
|
"content": {
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"path": "README.md",
|
||||||
|
"sha256": "93a4860d977e43838ab181c7e8dc5a4bc2c6c35036ffcfe6a25eafa84e840d5d"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": ".claude-plugin/plugin.json",
|
||||||
|
"sha256": "0134084d24137cd467932f366d84ae4eb0e1284837bcf441ddbba3d5e69cbfca"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "commands/discover-testing.md",
|
||||||
|
"sha256": "6fa9caae301869e730aadf488820c904c04ea72cbf55cd2e7737919d11ae4ed0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "commands/discover-containers.md",
|
||||||
|
"sha256": "3551974f72ee6aa11cef732ee0e34c2704742547cb6df5a0fe4173f198fe7953"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "commands/discover-database.md",
|
||||||
|
"sha256": "78d1a84ce0514dd3f682c4d372c463a27c9234a9aa65aaeb0483351d37cba738"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "commands/discover-api.md",
|
||||||
|
"sha256": "7c6e3fdfac0598728a83f8d7050b95bedb1d81d9f40b0cee39e0da0170a2e2ca"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "commands/discover-mobile.md",
|
||||||
|
"sha256": "4f962cdbf0a4fefcf17d4849ea2ee4c4641ffc3565905b781e48c3305b699a71"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "commands/discover-ml.md",
|
||||||
|
"sha256": "5835736b0213ce546feb47cad28e99089610174b61343fc3095509eca520333c"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "commands/discover-infrastructure.md",
|
||||||
|
"sha256": "9ff5a33fc9fe4a1c30484c8b8952360608e52b6745e124ec67855b5d0bd85988"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "commands/discover-frontend.md",
|
||||||
|
"sha256": "bb54c3fcbbd072d063f6dd9eb239a68974e3a5c79a4cc00a02c1db2e29b4824d"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "commands/skills.md",
|
||||||
|
"sha256": "ed20a82a110e59c0b4943e97397e7c2f9535021c9121a760bc99464630c3d67f"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "commands/discover-diagrams.md",
|
||||||
|
"sha256": "817ee52a01d1161b0e03512e0ef0dd3b347b0dc0da6bb2357d0e3343ab565b93"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "commands/discover-debugging.md",
|
||||||
|
"sha256": "b614297ce9d16ca28796f912c7a32b8700a943c355b0a86cef3e7383106ba420"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "commands/skills/PROJECT_STATUS.md",
|
||||||
|
"sha256": "9547201cd3d93a24fd7be72f35e36ea9795e01ba9882fc58a754bc72c405e933"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "commands/skills/README.md",
|
||||||
|
"sha256": "51872676312f87dc571e89826c271599b2059073b40e7a9ca89f1f405369f085"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "commands/skills/QUICK_START.md",
|
||||||
|
"sha256": "a41e340dd7790ac48e659eff9ab68400ab97fe58724be5e3f485e99e60c9ac42"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"dirSha256": "4a8c2adc2507a48412f3212f22971b6c4ce5331e27e56bf12184165056c792bc"
|
||||||
|
},
|
||||||
|
"security": {
|
||||||
|
"scannedAt": null,
|
||||||
|
"scannerVersion": null,
|
||||||
|
"flags": []
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user