claude-toolkit 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/core/agents/ct-code-reviewer.md +5 -4
- package/core/agents/ct-github-workflow.md +28 -15
- package/core/commands/ct/code-quality.md +22 -2
- package/core/commands/ct/onboard.md +8 -3
- package/core/commands/ct/pr-review.md +22 -88
- package/core/commands/ct/pr-summary.md +6 -3
- package/core/commands/ct/ticket.md +20 -3
- package/core/hooks/{skill-eval.js → skill-eval.cjs} +103 -41
- package/core/hooks/skill-rules.schema.json +4 -0
- package/core/skills/ct-systematic-debugging/SKILL.md +1 -1
- package/core/skills/ct-testing-patterns/SKILL.md +5 -7
- package/core/skills/ct-typescript-conventions/SKILL.md +15 -11
- package/core/skills/ct-verification-before-completion/SKILL.md +2 -1
- package/docs/commands/code-quality.md +2 -8
- package/docs/commands/onboard.md +2 -11
- package/docs/commands/pr-review.md +2 -13
- package/docs/commands/pr-summary.md +2 -2
- package/docs/commands/proto-check.md +4 -4
- package/docs/commands/ticket.md +2 -2
- package/docs/skills/systematic-debugging.md +1 -1
- package/docs/skills/testing-patterns.md +78 -56
- package/docs/skills/typescript-conventions.md +23 -10
- package/docs/skills/verification-before-completion.md +1 -1
- package/package.json +2 -1
- package/src/generator.ts +16 -1
- package/{core/commands/ct → stacks/protobuf/commands}/proto-check.md +11 -2
- package/templates/skill-rules.base.json +1 -29
- package/core/hooks/skill-eval.sh +0 -35
|
@@ -40,8 +40,7 @@
|
|
|
40
40
|
"(?:red.green.refactor|tdd)"
|
|
41
41
|
],
|
|
42
42
|
"contentPatterns": ["describe\\(", "it\\(", "expect\\(", "vi\\.mock", "jest\\.mock"]
|
|
43
|
-
}
|
|
44
|
-
"excludePatterns": ["e2e", "end-to-end"]
|
|
43
|
+
}
|
|
45
44
|
},
|
|
46
45
|
"ct-typescript-conventions": {
|
|
47
46
|
"description": "TypeScript strict mode and conventions",
|
|
@@ -66,33 +65,6 @@
|
|
|
66
65
|
],
|
|
67
66
|
"contextPatterns": ["before claiming", "make sure", "double check"]
|
|
68
67
|
}
|
|
69
|
-
},
|
|
70
|
-
"ct-github-actions": {
|
|
71
|
-
"description": "GitHub Actions CI/CD workflow patterns",
|
|
72
|
-
"priority": 6,
|
|
73
|
-
"triggers": {
|
|
74
|
-
"keywords": ["github action", "github workflow", "workflow", "ci/cd", "cicd", "pipeline"],
|
|
75
|
-
"keywordPatterns": ["github.action", "ci/?cd", "\\bworkflow\\b"],
|
|
76
|
-
"pathPatterns": [".github/workflows/**", ".github/**/*.yml"],
|
|
77
|
-
"intentPatterns": [
|
|
78
|
-
"(?:create|add|update).*(?:workflow|action|pipeline)",
|
|
79
|
-
"(?:ci|cd).*(?:pipeline|workflow)"
|
|
80
|
-
],
|
|
81
|
-
"contentPatterns": ["runs-on:", "uses:", "steps:"]
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
"ct-code-review": {
|
|
85
|
-
"description": "Handle code review feedback",
|
|
86
|
-
"priority": 4,
|
|
87
|
-
"triggers": {
|
|
88
|
-
"keywords": ["code review", "pr feedback", "review comment"],
|
|
89
|
-
"keywordPatterns": ["code.review", "pr.feedback", "review.comment"],
|
|
90
|
-
"intentPatterns": [
|
|
91
|
-
"(?:respond|address|handle).*(?:review|feedback|comment)",
|
|
92
|
-
"(?:reviewer).*(?:said|suggested|asked)"
|
|
93
|
-
],
|
|
94
|
-
"contextPatterns": ["from the reviewer", "in the pr", "review feedback"]
|
|
95
|
-
}
|
|
96
68
|
}
|
|
97
69
|
}
|
|
98
70
|
}
|
package/core/hooks/skill-eval.sh
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# Skill Evaluation Hook v2.0
|
|
3
|
-
# Wrapper script that delegates to the Node.js evaluation engine
|
|
4
|
-
#
|
|
5
|
-
# This hook runs on UserPromptSubmit and analyzes the prompt for:
|
|
6
|
-
# - Keywords and patterns indicating skill relevance
|
|
7
|
-
# - File paths mentioned in the prompt
|
|
8
|
-
# - Intent patterns (what the user wants to do)
|
|
9
|
-
# - Directory mappings (what directories map to which skills)
|
|
10
|
-
#
|
|
11
|
-
# Configuration is in skill-rules.json
|
|
12
|
-
|
|
13
|
-
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
14
|
-
NODE_SCRIPT="$SCRIPT_DIR/skill-eval.js"
|
|
15
|
-
|
|
16
|
-
# Check if Node.js is available (bun also works)
|
|
17
|
-
if command -v bun &>/dev/null; then
|
|
18
|
-
RUNTIME="bun"
|
|
19
|
-
elif command -v node &>/dev/null; then
|
|
20
|
-
RUNTIME="node"
|
|
21
|
-
else
|
|
22
|
-
# Fallback: exit silently if no runtime found
|
|
23
|
-
exit 0
|
|
24
|
-
fi
|
|
25
|
-
|
|
26
|
-
# Check if the Node script exists
|
|
27
|
-
if [[ ! -f "$NODE_SCRIPT" ]]; then
|
|
28
|
-
exit 0
|
|
29
|
-
fi
|
|
30
|
-
|
|
31
|
-
# Pipe stdin to the evaluation script (suppress stderr noise from shell init)
|
|
32
|
-
cat | $RUNTIME "$NODE_SCRIPT" 2>/dev/null
|
|
33
|
-
|
|
34
|
-
# Always exit 0 to allow the prompt through
|
|
35
|
-
exit 0
|