blob: e095203f3f81bbf1eff325091f62678b0717f23b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
|
name: Test Plugin Installation
on:
push:
pull_request:
workflow_dispatch:
jobs:
validate-skills:
name: Validate skill content
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: '24'
- name: Validate all skills
run: node scripts/validate-skills.js
- name: Test skill lint rules
run: node --test scripts/lib/skill-lint-test.js
- name: Validate manifest versions
run: node scripts/validate-versions.js
- name: Test manifest version validator
run: node --test scripts/validate-versions-test.js
- name: Test skill eval runner
run: node --test scripts/run-evals-test.js
- name: Run skill evals (trigger + routing)
run: node scripts/run-evals.js --min-rank1 95
- name: Validate references/ links in skills
run: node scripts/validate-reference-links.js
- name: Test reference-link validator
run: node --test scripts/validate-reference-links-test.js
- name: Test floor-guard reference
run: node --test scripts/floor-guard-reference-test.js
- name: Test quality-gate report handling
run: node --test scripts/quality-gate-test.js
- name: Test staged-secret scan reference
run: node --test scripts/staged-secret-scan-test.js
- name: Test session-start hook payload
run: bash hooks/session-start-test.sh
validate-commands:
name: Validate command parity and description sync
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: '24'
- name: Validate commands across all tool directories
run: node scripts/validate-commands.js
- name: Test command validator
run: node --test scripts/validate-commands-test.js
- name: Validate spec/plan/todo artifact paths
run: node scripts/validate-artifact-paths.js
- name: Test artifact-path validator
run: node --test scripts/validate-artifact-paths-test.js
# Ubuntu coverage stays in the existing jobs above, preserving their check names.
validate-platforms:
name: Validate tooling (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest]
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: '24'
- name: Test validators and eval runner
run: >-
node --test
scripts/lib/skill-lint-test.js
scripts/validate-versions-test.js
scripts/run-evals-test.js
scripts/validate-reference-links-test.js
scripts/validate-commands-test.js
scripts/validate-artifact-paths-test.js
scripts/floor-guard-reference-test.js
scripts/quality-gate-test.js
scripts/staged-secret-scan-test.js
- name: Validate all skills
run: node scripts/validate-skills.js
- name: Validate manifest versions
run: node scripts/validate-versions.js
- name: Validate references/ links in skills
run: node scripts/validate-reference-links.js
- name: Validate commands across all tool directories
run: node scripts/validate-commands.js
- name: Validate spec/plan/todo artifact paths
run: node scripts/validate-artifact-paths.js
- name: Run skill evals (trigger + routing)
run: node scripts/run-evals.js --min-rank1 95
test-hooks:
name: Hook regression tests (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
# The hooks run under whatever bash the host has, and versions disagree:
# bash 5.2 corrupted protected blocks on Linux while macOS stayed clean
# (7b31a90). On macOS, put /bin first so the suites run under the stock
# bash 3.2 that a Mac without Homebrew bash invokes, not a newer one.
env:
BASH_PATH_PREFIX: ${{ matrix.os == 'macos-latest' && '/bin:' || '' }}
steps:
- uses: actions/checkout@v6
- name: Show bash and jq
run: |
export PATH="${BASH_PATH_PREFIX}$PATH"
bash --version | head -1
# Without jq the hook suites skip their round-trip tests and pass.
jq --version
- name: Test sdd-cache hooks (stubbed curl, no network)
run: PATH="${BASH_PATH_PREFIX}$PATH" bash hooks/sdd-cache-test.sh
- name: Test simplify-ignore hook
run: PATH="${BASH_PATH_PREFIX}$PATH" bash hooks/simplify-ignore-test.sh
validate:
name: Validate plugin structure
needs: [validate-skills, validate-commands, validate-platforms]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install Claude Code
run: npm install -g @anthropic-ai/claude-code
- name: Validate marketplace and plugin manifests
run: claude plugin validate .
test-install:
name: Test plugin installation
runs-on: ubuntu-latest
needs: validate
steps:
- uses: actions/checkout@v6
- name: Install Claude Code
run: npm install -g @anthropic-ai/claude-code
- name: Configure git to use HTTPS
run: git config --global url."https://github.com/".insteadOf "git@github.com:"
- name: Add marketplace
run: claude plugin marketplace add ./
- name: List marketplaces
run: claude plugin marketplace list
- name: Install plugin
run: claude plugin install agent-skills@addy-agent-skills --scope user
|