一键导入
audit-panel-types
Audit kirby-types panel augmentation types against Kirby PHP, K6 TypeScript, and K5 JavaScript sources via a two-pass agent swarm.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Audit kirby-types panel augmentation types against Kirby PHP, K6 TypeScript, and K5 JavaScript sources via a two-pass agent swarm.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | audit-panel-types |
| description | Audit kirby-types panel augmentation types against Kirby PHP, K6 TypeScript, and K5 JavaScript sources via a two-pass agent swarm. |
| disable-model-invocation | true |
Authority: PHP > K6 TS > K5 JS. PHP overrules K6 when they disagree.
Ask the user for three absolute paths. Don't auto-detect.
<KIRBY_TYPES_ROOT> – the kirby-types checkout being audited<KIRBY_K5_ROOT> – Kirby 5 checkout (PHP source + K5 JS)<KIRBY_K6_ROOT> – Kirby 6 checkout (K6 TS)If <KIRBY_K6_ROOT> is absent, treat K6 as silent and proceed with PHP + K5.
Kirby migrates modules between .js and .ts every release. Never trust hard-coded file status – discover it:
node scripts/probe.mjs <KIRBY_K5_ROOT> <KIRBY_K6_ROOT> <KIRBY_TYPES_ROOT>
probe.mjs creates <KIRBY_TYPES_ROOT>/.review/.raw/ and writes source-map.json beside it. The map reports, per module, whether K5/K6 ship .js/.ts/absent; the $helper and panel-singleton registrations; both Kirby versions; and postureFlags. Completion criterion: source-map.json exists and its modules map is non-empty.
Then branch on postureFlags:
RE-CONFIRM (K6 shipped, K5 retired, or the plugin shape flipped) → surface it to the user and get a decision before launching. The standing posture lives in rubric.md; a boundary crossing is the only thing that reopens it.SHALLOW-HISTORY → that root's history floor is its current release, so it silently mis-dates @since. Don't gate the user; route all @since archaeology to the deepest-history root (per rubric.md) and proceed.topology.md gives the stable map only: symbol → cluster → module + PHP authority. Every agent reads source-map.json for file status and cites it – never the extensions in topology.
One agent per cluster in topology.md, batched ~8 at a time. Each writes its JSON to <KIRBY_TYPES_ROOT>/.review/.raw/<cluster>.json before returning – compaction loses in-memory results.
Completion criterion: every cluster in topology.md has a written .raw/<cluster>.json before the rename gate. A clean cluster still writes one (empty finding arrays + summary); a missing file means a dropped agent – relaunch it.
Pass 1 is read-only on every file, including the kirby-types .d.ts. Revert any stray .d.ts edits before pass 2.
Prompt template: agent-prompts.md – Pass 1.
Pass 1 may surface renameCandidates. Aggregate across clusters.
APPROVED RENAMES: none.user did not approve rename.A learnFrom whose new identifier differs from the old is a rename in disguise. Route it through the gate.
One verifier per .d.ts, read-only. Each reads the cluster JSONs for its file, decides ACT / DEFER / DISMISS, and emits {old_string, new_string} patches in JSON; the orchestrator applies them.
Prompt template: agent-prompts.md – Pass 2. Apply walk: see edit-gotchas.md.
Completion criterion: tsc --noEmit and pnpm test both exit clean; test/*.test-d.ts assertions broken by the new types are updated in the same pass.