Skip to content

Commit 2a3c970

Browse files
randclaude
andcommitted
fix: E2E validation — correct hook schema, enrich gateway keywords, add test script
- Inline SessionStart hook in plugin.json (correct schema per Claude Code spec) - Remove separate hooks/ directory (plugins use inline hooks, not separate files) - Enrich 27 gateway descriptions with domain-specific trigger keywords - Fix remaining discover-collab → discover-collaboration refs - Fix deprecated Go ioutil.ReadFile → os.ReadFile in tls-configuration - Add tests/validate.sh — 16 automated checks, all passing Validated end-to-end: SessionStart hook, 5 category loading chains, skill-navigator agent, cross-references (0 broken), 8 skill content spot-checks (6 scored 5/5). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 5f34461 commit 2a3c970

34 files changed

Lines changed: 222 additions & 44 deletions

File tree

.claude-plugin/plugin.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,17 @@
4242
"skills": "./skills",
4343
"agents": "./agents",
4444
"commands": "./commands",
45-
"hooks": "./hooks"
45+
"hooks": {
46+
"SessionStart": [
47+
{
48+
"matcher": "",
49+
"hooks": [
50+
{
51+
"type": "command",
52+
"command": "echo 'cc-polymath plugin root: ${CLAUDE_PLUGIN_ROOT}'"
53+
}
54+
]
55+
}
56+
]
57+
}
4658
}

commands/skills.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ SPECIALIZED:
232232
discover-modal (2) - Modal functions, scheduling
233233
discover-engineering (4) - Code review, documentation, leadership
234234
discover-product (4) - Product strategy, roadmaps
235-
discover-collab (5) - Collaboration, code review, pair programming
235+
discover-collaboration (5) - Collaboration, code review, pair programming
236236
237237
AGENT SKILLS (Root):
238238
elegant-design - UI/UX design, accessibility, design systems
@@ -300,8 +300,8 @@ Try:
300300
No project files detected in current directory.
301301
302302
GENERAL-PURPOSE GATEWAYS:
303-
→ discover-collab - Collaboration, documentation, CodeTour walkthroughs
304-
Load: Read <cc-polymath-root>/skills/discover-collab/SKILL.md
303+
→ discover-collaboration - Collaboration, documentation, CodeTour walkthroughs
304+
Load: Read <cc-polymath-root>/skills/discover-collaboration/SKILL.md
305305
306306
ROOT-LEVEL SKILLS:
307307
→ beads-workflow.md - Multi-session task management

hooks/hooks.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

skills/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ Read <cc-polymath-root>/skills/product/INDEX.md
326326
---
327327

328328
### Collaboration (5 skills)
329-
**Gateway**: `discover-collab`
329+
**Gateway**: `discover-collaboration`
330330
**Keywords**: collaboration, code review, documentation, pair programming
331331
**Skills**: Code review, documentation, pair programming, team workflows
332332

skills/cryptography/tls-configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ package main
328328
import (
329329
"crypto/tls"
330330
"crypto/x509"
331-
"io/ioutil"
331+
"os"
332332
"net/http"
333333
)
334334

@@ -340,7 +340,7 @@ func main() {
340340
}
341341

342342
// Load CA cert
343-
caCert, err := ioutil.ReadFile("ca.crt")
343+
caCert, err := os.ReadFile("ca.crt")
344344
if err != nil {
345345
panic(err)
346346
}

skills/discover-build-systems/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: discover-build-systems
3-
description: Automatically discover build system skills when working with build systems. Activates for build-systems development tasks.
3+
description: Automatically discover build system skills when working with Make, CMake, Bazel, Gradle, Maven, Cargo, Meson, build automation, or compilation. Activates for build-systems development tasks.
44
---
55

66
# Build Systems Skills Discovery

skills/discover-caching/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: discover-caching
3-
description: Automatically discover caching and performance skills when working with caching. Activates for caching development tasks.
3+
description: Automatically discover caching and performance skills when working with Redis, Memcached, CDN, cache invalidation, HTTP caching, distributed caching, or cache patterns. Activates for caching development tasks.
44
---
55

66
# Caching Skills Discovery

skills/discover-cicd/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: discover-cicd
3-
description: Automatically discover CI/CD and automation skills when working with CI/CD. Activates for cicd development tasks.
3+
description: Automatically discover CI/CD and automation skills when working with GitHub Actions, Jenkins, GitLab CI, pipelines, continuous integration, continuous deployment, or automated testing. Activates for CI/CD development tasks.
44
---
55

66
# Cicd Skills Discovery

skills/discover-collaboration/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: discover-collaboration
3-
description: Automatically discover collaboration and teamwork skills when working with collaboration. Activates for collaboration development tasks.
3+
description: Automatically discover collaboration and teamwork skills when working with code review, pair programming, GitHub, pull requests, team workflows, or documentation. Activates for collaboration development tasks.
44
---
55

66
# Collaboration Skills Discovery

skills/discover-containers/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: discover-containers
3-
description: Automatically discover container and Docker skills when working with Docker. Activates for containers development tasks.
3+
description: Automatically discover container skills when working with Docker, Dockerfile optimization, docker-compose, container networking, container security, container registries, or Kubernetes. Activates for containerization and orchestration tasks.
44
---
55

66
# Containers Skills Discovery

0 commit comments

Comments
 (0)