@se-studio/skills 1.10.17 → 1.10.20
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
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @se-studio/skills
|
|
2
2
|
|
|
3
|
+
## 1.10.20
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9bb587f: Update the vercel-logs-audit skill for the Vercel CLI v64 logs commands.
|
|
8
|
+
|
|
9
|
+
## 1.10.19
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 12cf6c0: `pnpm fleet-audit` also checks guardrail wiring and leftovers found in the PointMe pilot: pre-commit and pre-push hooks that do not call `se-agent-guard`, a missing Claude pre-tool hook or merge-gate audit workflow, repo-local skills sync (`skills:sync`, `skills-lock.json`) instead of `skills-npm --yes`, tracked skill symlinks, extra restated docs (`review-before-merge.md`, `release-verification.md`) and review rules in process notes.
|
|
14
|
+
|
|
15
|
+
## 1.10.18
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 9b34052: Document the Sunday morning Screaming Frog fleet delta and brief.
|
|
20
|
+
|
|
3
21
|
## 1.10.17
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -37,11 +37,12 @@ const numeric = (spec) => String(spec).replace(/^[^\d]*/, '');
|
|
|
37
37
|
/**
|
|
38
38
|
* @param {{ files: Record<string, string>, coreBlockVersion: number,
|
|
39
39
|
* coreVersions: Record<string, string> }} input
|
|
40
|
-
* files: path -> contents for AGENTS.md, .cursor/rules/*.mdc, docs/*.md
|
|
40
|
+
* files: path -> contents for AGENTS.md, .cursor/rules/*.mdc, docs/*.md, hooks, Claude settings,
|
|
41
|
+
* the merge-gate workflow and every package.json. tree: [{ path, mode }] of tracked files.
|
|
41
42
|
* @returns {{ findings: {id: string, owner: 'core'|'customer', text: string}[],
|
|
42
43
|
* pins: Record<string, {spec: string, where: string}[]> }}
|
|
43
44
|
*/
|
|
44
|
-
export function auditFiles({ files, coreBlockVersion, coreVersions }) {
|
|
45
|
+
export function auditFiles({ files, tree = [], coreBlockVersion, coreVersions }) {
|
|
45
46
|
const findings = [];
|
|
46
47
|
const add = (id, owner, text) => findings.push({ id, owner, text });
|
|
47
48
|
/** @type {Record<string, {spec: string, where: string}[]>} */
|
|
@@ -131,7 +132,11 @@ export function auditFiles({ files, coreBlockVersion, coreVersions }) {
|
|
|
131
132
|
`${path} restates the review/merge rules (${body.split('\n').length} lines): replace with a pointer to AGENTS.md`,
|
|
132
133
|
);
|
|
133
134
|
}
|
|
134
|
-
if (
|
|
135
|
+
if (
|
|
136
|
+
/^docs\/(merge-approval|design-review|review-before-merge|release-verification)\.md$/.test(
|
|
137
|
+
path,
|
|
138
|
+
)
|
|
139
|
+
) {
|
|
135
140
|
add(
|
|
136
141
|
'review-doc-copy',
|
|
137
142
|
'customer',
|
|
@@ -167,6 +172,83 @@ export function auditFiles({ files, coreBlockVersion, coreVersions }) {
|
|
|
167
172
|
}
|
|
168
173
|
}
|
|
169
174
|
|
|
175
|
+
// Process notes may carry old review rules as bullets.
|
|
176
|
+
const notes = files['docs/AGENT_PROCESS_NOTES.md'];
|
|
177
|
+
if (notes && /merge approval|review before merge|re-review|second review/i.test(notes)) {
|
|
178
|
+
add(
|
|
179
|
+
'process-notes-restate-rules',
|
|
180
|
+
'customer',
|
|
181
|
+
'docs/AGENT_PROCESS_NOTES.md carries review/merge rule text: keep site gotchas only and point at AGENTS.md',
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
// Guardrails: the thin files must call the pinned se-agent-guard (see customer-guardrails/README.md).
|
|
186
|
+
const hookFiles = ['.husky/pre-commit', '.githooks/pre-commit']
|
|
187
|
+
.map((f) => files[f])
|
|
188
|
+
.filter(Boolean);
|
|
189
|
+
if (!hookFiles.some((b) => /se-agent-guard\s+commit/.test(b))) {
|
|
190
|
+
add(
|
|
191
|
+
'hook-commit-missing',
|
|
192
|
+
'customer',
|
|
193
|
+
'no pre-commit hook calls `se-agent-guard commit` (.husky/pre-commit or .githooks/pre-commit)',
|
|
194
|
+
);
|
|
195
|
+
}
|
|
196
|
+
const pushFiles = ['.husky/pre-push', '.githooks/pre-push'].map((f) => files[f]).filter(Boolean);
|
|
197
|
+
if (!pushFiles.some((b) => /se-agent-guard\s+push/.test(b))) {
|
|
198
|
+
add(
|
|
199
|
+
'hook-push-missing',
|
|
200
|
+
'customer',
|
|
201
|
+
'no pre-push hook calls `se-agent-guard push` (.husky/pre-push or .githooks/pre-push)',
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
if (!/claude-pretool/.test(files['.claude/settings.json'] ?? '')) {
|
|
205
|
+
add(
|
|
206
|
+
'claude-hook-missing',
|
|
207
|
+
'customer',
|
|
208
|
+
'.claude/settings.json does not run `claude-pretool.mjs` (copy customer-guardrails/claude-settings.json)',
|
|
209
|
+
);
|
|
210
|
+
}
|
|
211
|
+
if (!/merge-gate/.test(files['.github/workflows/merge-gate-audit.yml'] ?? '')) {
|
|
212
|
+
add(
|
|
213
|
+
'merge-audit-missing',
|
|
214
|
+
'customer',
|
|
215
|
+
'.github/workflows/merge-gate-audit.yml is missing or does not call the merge gate: merges that skip approval will not be labelled `pushed-through`',
|
|
216
|
+
);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
// Skills come from the pinned package via `skills-npm --yes`, not a repo-local sync or `skills update`.
|
|
220
|
+
const rootPkg = files['package.json'] ? safeJson(files['package.json']) : null;
|
|
221
|
+
const prepare = rootPkg?.scripts?.prepare ?? '';
|
|
222
|
+
const legacySync =
|
|
223
|
+
Boolean(rootPkg?.scripts?.['skills:sync']) ||
|
|
224
|
+
tree.some((t) => t.path === 'skills-lock.json' || t.path === 'scripts/sync-skills.sh');
|
|
225
|
+
if (legacySync) {
|
|
226
|
+
add(
|
|
227
|
+
'skills-sync-legacy',
|
|
228
|
+
'customer',
|
|
229
|
+
'repo-local skills sync (`skills:sync`, `scripts/sync-skills.sh` or `skills-lock.json`): move to `skills-npm --yes` in `prepare` and track `skills-npm-lock.json`',
|
|
230
|
+
);
|
|
231
|
+
} else if (rootPkg && !/skills-npm/.test(prepare)) {
|
|
232
|
+
add(
|
|
233
|
+
'skills-npm-missing',
|
|
234
|
+
'customer',
|
|
235
|
+
'`prepare` does not run `skills-npm --yes`: skills are not linked from the pinned @se-studio/skills',
|
|
236
|
+
);
|
|
237
|
+
}
|
|
238
|
+
// Whole-directory links and the .agents/skills output are package skills. A per-skill link under
|
|
239
|
+
// .claude/.cursor/.grok is how a repo's own authored skill is exposed, which the README allows.
|
|
240
|
+
const linked = tree.filter(
|
|
241
|
+
(t) =>
|
|
242
|
+
t.mode === '120000' && /^(\.(claude|cursor|grok)\/skills|\.agents\/skills\/.+)$/.test(t.path),
|
|
243
|
+
);
|
|
244
|
+
if (linked.length) {
|
|
245
|
+
add(
|
|
246
|
+
'skills-links-tracked',
|
|
247
|
+
'customer',
|
|
248
|
+
`${linked.length} linked skill symlink(s) are tracked (e.g. ${linked[0].path}): untrack and gitignore them`,
|
|
249
|
+
);
|
|
250
|
+
}
|
|
251
|
+
|
|
170
252
|
return { findings, pins };
|
|
171
253
|
}
|
|
172
254
|
|
|
@@ -220,24 +302,55 @@ function readCore() {
|
|
|
220
302
|
return { coreBlockVersion, coreVersions };
|
|
221
303
|
}
|
|
222
304
|
|
|
305
|
+
function safeJson(text) {
|
|
306
|
+
try {
|
|
307
|
+
return JSON.parse(text);
|
|
308
|
+
} catch {
|
|
309
|
+
return null;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
223
313
|
function readFromOrigin(path, branch) {
|
|
224
314
|
const ref = `origin/${branch}`;
|
|
225
315
|
const fetched = tryRun('git', ['fetch', '--quiet', 'origin', branch], path);
|
|
226
316
|
if (fetched?.error) return { error: `fetch failed: ${fetched.error}` };
|
|
227
|
-
const
|
|
228
|
-
if (
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
317
|
+
const raw = tryRun('git', ['ls-tree', '-r', ref], path);
|
|
318
|
+
if (raw?.error) return { error: raw.error };
|
|
319
|
+
// Lines look like "<mode> blob <sha>\t<path>".
|
|
320
|
+
const tree = raw
|
|
321
|
+
.split('\n')
|
|
322
|
+
.filter(Boolean)
|
|
323
|
+
.map((line) => ({
|
|
324
|
+
mode: line.slice(0, line.indexOf(' ')),
|
|
325
|
+
path: line.slice(line.indexOf('\t') + 1),
|
|
326
|
+
}));
|
|
327
|
+
const GUARD_FILES = new Set([
|
|
328
|
+
'.husky/pre-commit',
|
|
329
|
+
'.husky/pre-push',
|
|
330
|
+
'.githooks/pre-commit',
|
|
331
|
+
'.githooks/pre-push',
|
|
332
|
+
'.claude/settings.json',
|
|
333
|
+
'.github/workflows/merge-gate-audit.yml',
|
|
334
|
+
]);
|
|
335
|
+
const wanted = tree
|
|
336
|
+
.map((t) => t.path)
|
|
337
|
+
.filter((f) => {
|
|
338
|
+
if (GUARD_FILES.has(f)) return true;
|
|
339
|
+
if (f.includes('node_modules/')) return false;
|
|
340
|
+
if (
|
|
341
|
+
f === 'AGENTS.md' ||
|
|
342
|
+
/^\.cursor\/rules\/[^/]+\.mdc$/.test(f) ||
|
|
343
|
+
/^docs\/[^/]+\.md$/.test(f)
|
|
344
|
+
)
|
|
345
|
+
return true;
|
|
346
|
+
return /(^|\/)package\.json$/.test(f) && f.split('/').length <= 4;
|
|
347
|
+
});
|
|
235
348
|
const files = {};
|
|
236
349
|
for (const f of wanted) {
|
|
237
350
|
const body = tryRun('git', ['show', `${ref}:${f}`], path);
|
|
238
351
|
if (typeof body === 'string') files[f] = body;
|
|
239
352
|
}
|
|
240
|
-
return { files };
|
|
353
|
+
return { files, tree };
|
|
241
354
|
}
|
|
242
355
|
|
|
243
356
|
function slugOf(path) {
|
|
@@ -305,7 +418,9 @@ function main() {
|
|
|
305
418
|
}
|
|
306
419
|
// Core is the source of the rules, so the customer-copy checks do not apply to it.
|
|
307
420
|
const { findings } =
|
|
308
|
-
project.type === 'core'
|
|
421
|
+
project.type === 'core'
|
|
422
|
+
? { findings: [] }
|
|
423
|
+
: auditFiles({ files: read.files, tree: read.tree, ...core });
|
|
309
424
|
const behind = findings.filter((f) => f.id === 'behind-core');
|
|
310
425
|
const issues = findings.filter((f) => f.id !== 'behind-core');
|
|
311
426
|
if (issues.length === 0)
|
|
@@ -69,7 +69,13 @@ pnpm seo:screaming-frog:fleet -- --list
|
|
|
69
69
|
node scripts/screaming-frog-fleet.mjs --install-agent
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
Reports land in `~/spider/fleet-audits/<YYYY-MM-DD>/`. The command does not pass `--tag`, so it does not replace a deployment `content` baseline.
|
|
72
|
+
Reports land in `~/spider/fleet-audits/<YYYY-MM-DD>/`. The command does not pass `--tag`, so it does not replace a deployment `content` baseline. After the crawl it writes `delta.md` against the previous dated folder and `brief.md`. The brief uses the xAI API when `XAI_API_KEY` is set, and otherwise repeats the delta.
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
pnpm seo:screaming-frog:fleet -- --delta-only ~/spider/fleet-audits/2026-10-25
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
`--install-agent` loads a user LaunchAgent (`studio.se.screaming-frog-fleet`) for Sunday 07:00 local time. Install it from the primary `dev` checkout after this script is on `dev`. If `XAI_API_KEY` is set in that shell, the agent plist stores it for the brief. Reinstall only after the code is on `dev`, and point the agent at that checkout.
|
|
73
79
|
|
|
74
80
|
Start URL: the manifest `production` profile. When that profile is a `*.vercel.app` alias and cms-edit `productionSiteUrl` is a public host, the public host is crawled. Eagle stays on its configured Vercel production URL. Preview-only issue downgrades (noindex, preview robots) are not applied.
|
|
75
81
|
|
|
@@ -102,10 +102,10 @@ Exit code **2** from analyze means errors were found (useful for future CI).
|
|
|
102
102
|
|
|
103
103
|
## What counts as an error
|
|
104
104
|
|
|
105
|
-
Pull uses two CLI passes per target:
|
|
105
|
+
Pull uses two CLI passes per target (Vercel CLI v64+):
|
|
106
106
|
|
|
107
|
-
-
|
|
108
|
-
-
|
|
107
|
+
- `vercel logs runtime --query 'level:(error OR fatal)'` (and `branch:"<branch>"` for develop)
|
|
108
|
+
- `vercel logs requests --query 'httpStatus >= 500 AND httpStatus < 600'`
|
|
109
109
|
|
|
110
110
|
Filter normalizes raw JSON and keeps entries matching:
|
|
111
111
|
|
|
@@ -123,7 +123,7 @@ Optional: `pnpm vercel-logs:filter --include-warnings`
|
|
|
123
123
|
| `vercel logs failed` / auth error | `vercel login` or set `VERCEL_TOKEN` |
|
|
124
124
|
| Wrong team / project not found | Check `team` in `projects.registry.json`; use `vercel projects ls --scope <team>` |
|
|
125
125
|
| No targets matched | Check `--sites` / `--envs` keys match registry `key` fields |
|
|
126
|
-
| Empty report after errors expected | Widen with `--full` or `--since 7d`;
|
|
126
|
+
| Empty report after errors expected | Widen with `--full` or `--since 7d`; develop queries include `branch:"develop"` |
|
|
127
127
|
|
|
128
128
|
---
|
|
129
129
|
|