[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F53P0FYS3DPGMJ1GQ2YN4K":3,"skill-same:01M7F53P0FYS3DPGMJ1GQ2YN4K":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":47},"01M7F53P0FYS3DPGMJ1GQ2YN4K","skill-test",null,"Validate skill files for structural compliance and behavioral correctness. Three modes: static (linter), spec (behavioral), audit (coverage report).","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fskill-test\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: skill-test\ndescription: \"Validate skill files for structural compliance and behavioral correctness. Three modes: static (linter), spec (behavioral), audit (coverage report).\"\nargument-hint: \"static [skill-name | all] | spec [skill-name] | category [skill-name | all] | audit\"\nuser-invocable: true\nallowed-tools: Read, Glob, Grep, Write\n---\n\n# Skill Test\n\nValidates `.claude\u002Fskills\u002F*\u002FSKILL.md` files for structural compliance and\nbehavioral correctness. No external dependencies — runs entirely within the\nexisting skill\u002Fhook\u002Ftemplate architecture.\n\n**Four modes:**\n\n| Mode | Command | Purpose | Token Cost |\n|------|---------|---------|------------|\n| `static` | `\u002Fskill-test static [name\\|all]` | Structural linter — 7 compliance checks per skill | Low (~1k\u002Fskill) |\n| `spec` | `\u002Fskill-test spec [name]` | Behavioral verifier — evaluates assertions in test spec | Medium (~5k\u002Fskill) |\n| `category` | `\u002Fskill-test category [name\\|all]` | Category rubric — checks skill against its category-specific metrics | Low (~2k\u002Fskill) |\n| `audit` | `\u002Fskill-test audit` | Coverage report — skills, agent specs, last test dates | Low (~3k total) |\n\n---\n\n## Phase 1: Parse Arguments\n\nDetermine mode from the first argument:\n\n- `static [name]` → run 7 structural checks on one skill\n- `static all` → run 7 structural checks on all skills (Glob `.claude\u002Fskills\u002F*\u002FSKILL.md`)\n- `spec [name]` → read skill + test spec, evaluate assertions\n- `category [name]` → run category-specific rubric from `CCGS Skill Testing Framework\u002Fquality-rubric.md`\n- `category all` → run category rubric for every skill that has a `category:` in catalog\n- `audit` (or no argument) → read catalog, list all skills and agents, show coverage\n\nIf argument is missing or unrecognized, output usage and stop.\n\n---\n\n## Phase 2A: Static Mode — Structural Linter\n\nFor each skill being tested, read its `SKILL.md` fully and run all 7 checks:\n\n### Check 1 — Required Frontmatter Fields\nThe file must contain all of these in the YAML frontmatter block:\n- `name:`\n- `description:`\n- `argument-hint:`\n- `user-invocable:`\n- `allowed-tools:`\n\n**FAIL** if any are absent.\n\n### Check 2 — Multiple Phases\nThe skill must have ≥2 numbered phase headings. Look for patterns like:\n- `## Phase N` or `## Phase N:`\n- `## N.` (numbered top-level sections)\n- At least 2 distinct `##` headings if phases aren't explicitly numbered\n\n**FAIL** if fewer than 2 phase-like headings are found.\n\n### Check 3 — Verdict Keywords\nThe skill must contain at least one of: `PASS`, `FAIL`, `CONCERNS`, `APPROVED`,\n`BLOCKED`, `COMPLETE`, `READY`, `COMPLIANT`, `NON-COMPLIANT`\n\n**FAIL** if none are present.\n\n### Check 4 — Collaborative Protocol Language\nThe skill must contain ask-before-write language. Look for:\n- `\"May I write\"` (canonical form)\n- `\"before writing\"` or `\"approval\"` near file-write instructions\n- `\"ask\"` + `\"write\"` in close proximity (within same section)\n\n**WARN** if absent (some read-only skills legitimately skip this).\n**FAIL** if `allowed-tools` includes `Write` or `Edit` but no ask-before-write language is found.\n\n### Check 5 — Next-Step Handoff\nThe skill must end with a recommended next action or follow-up path. Look for:\n- A final section mentioning another skill (e.g., `\u002Fstory-done`, `\u002Fgate-check`)\n- \"Recommended next\" or \"next step\" phrasing\n- A \"Follow-Up\" or \"After this\" section\n\n**WARN** if absent.\n\n### Check 6 — Fork Context Complexity\nIf frontmatter contains `context: fork`, the skill should have ≥5 phase headings\n(`##` level or numbered Phase N headers). Fork context is for complex multi-phase\nskills; simple skills should not use it.\n\n**WARN** if `context: fork` is set but fewer than 5 phases found.\n\n### Check 7 — Argument Hint Plausibility\n`argument-hint` must be non-empty. If the skill body mentions multiple modes\n(e.g., \"Mode A | Mode B\"), the hint should reflect them. Cross-reference the\nhint against the first phase's \"Parse Arguments\" section.\n\n**WARN** if hint is `\"\"` or if documented modes don't match hint.\n\n---\n\n### Static Mode Output Format\n\nFor a single skill:\n```\n=== Skill Static Check: \u002F[name] ===\n\nCheck 1 — Frontmatter Fields:    PASS\nCheck 2 — Multiple Phases:       PASS (7 phases found)\nCheck 3 — Verdict Keywords:      PASS (PASS, FAIL, CONCERNS)\nCheck 4 — Collaborative Protocol: PASS (\"May I write\" found)\nCheck 5 — Next-Step Handoff:     WARN (no follow-up section found)\nCheck 6 — Fork Context Complexity: PASS (8 phases, context: fork set)\nCheck 7 — Argument Hint:         PASS\n\nVerdict: WARNINGS (1 warning, 0 failures)\nRecommended: Add a \"Follow-Up Actions\" section at the end of the skill.\n```\n\nFor `static all`, produce a summary table then list any non-compliant skills:\n```\n=== Skill Static Check: All 52 Skills ===\n\nSkill                  | Result       | Issues\n-----------------------|--------------|-------\ngate-check             | COMPLIANT    |\ndesign-review          | COMPLIANT    |\nstory-readiness        | WARNINGS     | Check 5: no handoff\n...\n\nSummary: 48 COMPLIANT, 3 WARNINGS, 1 NON-COMPLIANT\nAggregate Verdict: N WARNINGS \u002F N FAILURES\n```\n\n---\n\n## Phase 2B: Spec Mode — Behavioral Verifier\n\n### Step 1 — Locate Files\n\nFind skill at `.claude\u002Fskills\u002F[name]\u002FSKILL.md`.\nLook up the spec path from `CCGS Skill Testing Framework\u002Fcatalog.yaml` — use the\n`spec:` field for the matching skill entry.\n\nIf either is missing:\n- Missing skill: \"Skill '[name]' not found in `.claude\u002Fskills\u002F`.\"\n- Missing spec path in catalog: \"No spec path set for '[name]' in catalog.yaml.\"\n- Spec file not found at path: \"Spec file missing at [path]. Run `\u002Fskill-test audit`\n  to see coverage gaps.\"\n\n### Step 2 — Read Both Files\n\nRead the skill file and test spec file completely.\n\n### Step 3 — Evaluate Assertions\n\nFor each **Test Case** in the spec:\n\n1. Read the **Fixture** description (assumed state of project files)\n2. Read the **Expected behavior** steps\n3. Read each **Assertion** checkbox\n\nFor each assertion, evaluate whether the skill's written instructions, if\nfollowed correctly given the fixture state, would satisfy it. This is a\nClaude-evaluated reasoning check, not code execution.\n\nMark each assertion:\n- **PASS** — skill instructions clearly satisfy this assertion\n- **PARTIAL** — skill instructions partially address it, but with ambiguity\n- **FAIL** — skill instructions would NOT satisfy this assertion given the fixture\n\nFor **Protocol Compliance** assertions (always present):\n- Check whether the skill requires \"May I write\" before file writes\n- Check whether the skill presents findings before requesting approval\n- Check whether the skill ends with a recommended next step\n- Check whether the skill avoids auto-creating files without approval\n\n### Step 4 — Build Report\n\n```\n=== Skill Spec Test: \u002F[name] ===\nDate: [date]\nSpec: CCGS Skill Testing Framework\u002Fskills\u002F[category]\u002F[name].md\n\nCase 1: [Happy Path — name]\n  Fixture: [summary]\n  Assertions:\n    [PASS] [assertion text]\n    [FAIL] [assertion text]\n       Reason: The skill's Phase 3 says \"...\" but the fixture state means \"...\"\n  Case Verdict: FAIL\n\nCase 2: [Edge Case — name]\n  ...\n  Case Verdict: PASS\n\nProtocol Compliance:\n  [PASS] Uses \"May I write\" before file writes\n  [PASS] Presents findings before asking approval\n  [WARN] No explicit next-step handoff at end\n\nOverall Verdict: FAIL (1 case failed, 1 warning)\n```\n\n### Step 5 — Offer to Write Results\n\n\"May I write these results to `CCGS Skill Testing Framework\u002Fresults\u002Fskill-test-spec-[name]-[date].md`\nand update `CCGS Skill Testing Framework\u002Fcatalog.yaml`?\"\n\nIf yes:\n- Write results file to `CCGS Skill Testing Framework\u002Fresults\u002F`\n- Update the skill's entry in `CCGS Skill Testing Framework\u002Fcatalog.yaml`:\n  - `last_spec: [date]`\n  - `last_spec_result: PASS|PARTIAL|FAIL`\n\n---\n\n## Phase 2D: Category Mode — Rubric Evaluation\n\n### Step 1 — Locate Skill and Category\n\nFind skill at `.claude\u002Fskills\u002F[name]\u002FSKILL.md`.\nLook up `category:` field in `CCGS Skill Testing Framework\u002Fcatalog.yaml`.\n\nIf skill not found: \"Skill '[name]' not found.\"\nIf no `category:` field: \"No category assigned for '[name]' in catalog.yaml.\nAdd `category: [name]` to the skill entry first.\"\n\nFor `category all`: collect all skills with a `category:` field and process each.\n`category: utility` skills are evaluated against U1 (static checks pass) and U2\n(gate mode correct if applicable) only — skip to the static mode for U1.\n\n### Step 2 — Read Rubric Section\n\nRead `CCGS Skill Testing Framework\u002Fquality-rubric.md`.\nExtract the section matching the skill's category (e.g., `### gate`, `### team`).\n\n### Step 3 — Read Skill\n\nRead the skill's `SKILL.md` fully.\n\n### Step 4 — Evaluate Rubric Metrics\n\nFor each metric in the category's rubric table:\n1. Check whether the skill's written instructions clearly satisfy the criterion\n2. Mark PASS, FAIL, or WARN\n3. For FAIL\u002FWARN, identify the exact gap in the skill text (quote the relevant section\n   or note its absence)\n\n### Step 5 — Output Report\n\n```\n=== Skill Category Check: \u002F[name] ([category]) ===\n\nMetric G1 — Review mode read:      PASS\nMetric G2 — Full mode directors:   FAIL\n  Gap: Phase 3 spawns only CD-PHASE-GATE; TD-PHASE-GATE, PR-PHASE-GATE, AD-PHASE-GATE absent\nMetric G3 — Lean mode: PHASE-GATE only: PASS\nMetric G4 — Solo mode: no directors:    PASS\nMetric G5 — No auto-advance:       PASS\n\nVerdict: FAIL (1 failure, 0 warnings)\nFix: Add TD-PHASE-GATE, PR-PHASE-GATE, and AD-PHASE-GATE to the full-mode director\n     panel in Phase 3.\n```\n\n### Step 6 — Offer to Update Catalog\n\n\"May I update `CCGS Skill Testing Framework\u002Fcatalog.yaml` to record this category check\n(`last_category`, `last_category_result`) for [name]?\"\n\n---\n\n## Phase 2C: Audit Mode — Coverage Report\n\n### Step 1 — Read Catalog\n\nRead `CCGS Skill Testing Framework\u002Fcatalog.yaml`. If missing, note that catalog doesn't exist\nyet (first-run state).\n\n### Step 2 — Enumerate All Skills and Agents\n\nGlob `.claude\u002Fskills\u002F*\u002FSKILL.md` to get the complete list of skills.\nExtract skill name from each path (directory name).\n\nAlso read the `agents:` section from `CCGS Skill Testing Framework\u002Fcatalog.yaml` to get the\ncomplete list of agents.\n\n### Step 3 — Build Skill Coverage Table\n\nFor each skill:\n- Check if a spec file exists (use the `spec:` path from catalog, or glob `CCGS Skill Testing Framework\u002Fskills\u002F*\u002F[name].md`)\n- Look up `last_static`, `last_static_result`, `last_spec`, `last_spec_result`,\n  `last_category`, `last_category_result`, `category` from catalog (or mark as\n  \"never\" \u002F \"—\" if not in catalog)\n- Priority comes from catalog `priority:` field (critical\u002Fhigh\u002Fmedium\u002Flow)\n\n### Step 3b — Build Agent Coverage Table\n\nFor each agent in catalog's `agents:` section:\n- Check if a spec file exists (use the `spec:` path from catalog, or glob `CCGS Skill Testing Framework\u002Fagents\u002F*\u002F[name].md`)\n- Look up `last_spec`, `last_spec_result`, `category` from catalog\n\n### Step 4 — Output Report\n\n```\n=== Skill Test Coverage Audit ===\nDate: [date]\n\nSKILLS (72 total)\nSpecs written: 72 (100%) | Never static tested: 72 | Never category tested: 72\n\nSkill                  | Cat      | Has Spec | Last Static | S.Result | Last Cat | C.Result | Priority\n-----------------------|----------|----------|-------------|----------|----------|----------|----------\ngate-check             | gate     | YES      | never       | —        | never    | —        | critical\ndesign-review          | review   | YES      | never       | —        | never    | —        | critical\n...\n\nAGENTS (49 total)\nAgent specs written: 49 (100%)\n\nAgent                  | Category   | Has Spec | Last Spec   | Result\n-----------------------|------------|----------|-------------|--------\ncreative-director      | director   | YES      | never       | —\ntechnical-director     | director   | YES      | never       | —\n...\n\nTop 5 Priority Gaps (skills with no spec, critical\u002Fhigh priority):\n(none if all specs are written)\n\nSkill coverage:  72\u002F72 specs (100%)\nAgent coverage:  49\u002F49 specs (100%)\n```\n\nNo file writes in audit mode.\n\nOffer: \"Would you like to run `\u002Fskill-test static all` to check structural\ncompliance across all skills? `\u002Fskill-test category all` to run category rubric\nchecks? Or `\u002Fskill-test spec [name]` to run a specific behavioral test?\"\n\n---\n\n## Phase 3: Recommended Next Steps\n\nAfter any mode completes, offer contextual follow-up:\n\n- After `static [name]`: \"Run `\u002Fskill-test spec [name]` to validate behavioral\n  correctness if a test spec exists.\"\n- After `static all` with failures: \"Address NON-COMPLIANT skills first. Run\n  `\u002Fskill-test static [name]` individually for detailed remediation guidance.\"\n- After `spec [name]` PASS: \"Update `CCGS Skill Testing Framework\u002Fcatalog.yaml` to record this\n  pass date. Consider running `\u002Fskill-test audit` to find the next spec gap.\"\n- After `spec [name]` FAIL: \"Review the failing assertions and update the skill\n  or the test spec to resolve the mismatch.\"\n- After `audit`: \"Start with the critical-priority gaps. Use the spec template\n  at `CCGS Skill Testing Framework\u002Ftemplates\u002Fskill-test-spec.md` to create new specs.\"\n","# Skill Test\n\nValidates `.claude\u002Fskills\u002F*\u002FSKILL.md` files for structural compliance and\nbehavioral correctness. No external dependencies — runs entirely within the\nexisting skill\u002Fhook\u002Ftemplate architecture.\n\n**Four modes:**\n\n| Mode | Command | Purpose | Token Cost |\n|------|---------|---------|------------|\n| `static` | `\u002Fskill-test static [name\\|all]` | Structural linter — 7 compliance checks per skill | Low (~1k\u002Fskill) |\n| `spec` | `\u002Fskill-test spec [name]` | Behavioral verifier — evaluates assertions in test spec | Medium (~5k\u002Fskill) |\n| `category` | `\u002Fskill-test category [name\\|all]` | Category rubric — checks skill against its category-specific metrics | Low (~2k\u002Fskill) |\n| `audit` | `\u002Fskill-test audit` | Coverage report — skills, agent specs, last test dates | Low (~3k total) |\n\n---\n\n## Phase 1: Parse Arguments\n\nDetermine mode from the first argument:\n\n- `static [name]` → run 7 structural checks on one skill\n- `static all` → run 7 structural checks on all skills (Glob `.claude\u002Fskills\u002F*\u002FSKILL.md`)\n- `spec [name]` → read skill + test spec, evaluate assertions\n- `category [name]` → run category-specific rubric from `CCGS Skill Testing Framework\u002Fquality-rubric.md`\n- `category all` → run category rubric for every skill that has a `category:` in catalog\n- `audit` (or no argument) → read catalog, list all skills and agents, show coverage\n\nIf argument is missing or unrecognized, output usage and stop.\n\n---\n\n## Phase 2A: Static Mode — Structural Linter\n\nFor each skill being tested, read its `SKILL.md` fully and run all 7 checks:\n\n### Check 1 — Required Frontmatter Fields\nThe file must contain all of these in the YAML frontmatter block:\n- `name:`\n- `description:`\n- `argument-hint:`\n- `user-invocable:`\n- `allowed-tools:`\n\n**FAIL** if any are absent.\n\n### Check 2 — Multiple Phases\nThe skill must have ≥2 numbered phase headings. Look for patterns like:\n- `## Phase N` or `## Phase N:`\n- `## N.` (numbered top-level sections)\n- At least 2 distinct `##` headings if phases aren't explicitly numbered\n\n**FAIL** if fewer than 2 phase-like headings are found.\n\n### Check 3 — Verdict Keywords\nThe skill must contain at least one of: `PASS`, `FAIL`, `CONCERNS`, `APPROVED`,\n`BLOCKED`, `COMPLETE`, `READY`, `COMPLIANT`, `NON-COMPLIANT`\n\n**FAIL** if none are present.\n\n### Check 4 — Collaborative Protocol Language\nThe skill must contain ask-before-write language. Look for:\n- `\"May I write\"` (canonical form)\n- `\"before writing\"` or `\"approval\"` near file-write instructions\n- `\"ask\"` + `\"write\"` in close proximity (within same section)\n\n**WARN** if absent (some read-only skills legitimately skip this).\n**FAIL** if `allowed-tools` includes `Write` or `Edit` but no ask-before-write language is found.\n\n### Check 5 — Next-Step Handoff\nThe skill must end with a recommended next action or follow-up path. Look for:\n- A final section mentioning another skill (e.g., `\u002Fstory-done`, `\u002Fgate-check`)\n- \"Recommended next\" or \"next step\" phrasing\n- A \"Follow-Up\" or \"After this\" section\n\n**WARN** if absent.\n\n### Check 6 — Fork Context Complexity\nIf frontmatter contains `context: fork`, the skill should have ≥5 phase headings\n(`##` level or numbered Phase N headers). Fork context is for complex multi-phase\nskills; simple skills should not use it.\n\n**WARN** if `context: fork` is set but fewer than 5 phases found.\n\n### Check 7 — Argument Hint Plausibility\n`argument-hint` must be non-empty. If the skill body mentions multiple modes\n(e.g., \"Mode A | Mode B\"), the hint should reflect them. Cross-reference the\nhint against the first phase's \"Parse Arguments\" section.\n\n**WARN** if hint is `\"\"` or if documented modes don't match hint.\n\n---\n\n### Static Mode Output Format\n\nFor a single skill:\n```\n=== Skill Static Check: \u002F[name] ===\n\nCheck 1 — Frontmatter Fields:    PASS\nCheck 2 — Multiple Phases:       PASS (7 phases found)\nCheck 3 — Verdict Keywords:      PASS (PASS, FAIL, CONCERNS)\nCheck 4 — Collaborative Protocol: PASS (\"May I write\" found)\nCheck 5 — Next-Step Handoff:     WARN (no follow-up section found)\nCheck 6 — Fork Context Complexity: PASS (8 phases, context: fork set)\nCheck 7 — Argument Hint:         PASS\n\nVerdict: WARNINGS (1 warning, 0 failures)\nRecommended: Add a \"Follow-Up Actions\" section at the end of the skill.\n```\n\nFor `static all`, produce a summary table then list any non-compliant skills:\n```\n=== Skill Static Check: All 52 Skills ===\n\nSkill                  | Result       | Issues\n-----------------------|--------------|-------\ngate-check             | COMPLIANT    |\ndesign-review          | COMPLIANT    |\nstory-readiness        | WARNINGS     | Check 5: no handoff\n...\n\nSummary: 48 COMPLIANT, 3 WARNINGS, 1 NON-COMPLIANT\nAggregate Verdict: N WARNINGS \u002F N FAILURES\n```\n\n---\n\n## Phase 2B: Spec Mode — Behavioral Verifier\n\n### Step 1 — Locate Files\n\nFind skill at `.claude\u002Fskills\u002F[name]\u002FSKILL.md`.\nLook up the spec path from `CCGS Skill Testing Framework\u002Fcatalog.yaml` — use the\n`spec:` field for the matching skill entry.\n\nIf either is missing:\n- Missing skill: \"Skill '[name]' not found in `.claude\u002Fskills\u002F`.\"\n- Missing spec path in catalog: \"No spec path set for '[name]' in catalog.yaml.\"\n- Spec file not found at path: \"Spec file missing at [path]. Run `\u002Fskill-test audit`\n  to see coverage gaps.\"\n\n### Step 2 — Read Both Files\n\nRead the skill file and test spec file completely.\n\n### Step 3 — Evaluate Assertions\n\nFor each **Test Case** in the spec:\n\n1. Read the **Fixture** description (assumed state of project files)\n2. Read the **Expected behavior** steps\n3. Read each **Assertion** checkbox\n\nFor each assertion, evaluate whether the skill's written instructions, if\nfollowed correctly given the fixture state, would satisfy it. This is a\nClaude-evaluated reasoning check, not code execution.\n\nMark each assertion:\n- **PASS** — skill instructions clearly satisfy this assertion\n- **PARTIAL** — skill instructions partially address it, but with ambiguity\n- **FAIL** — skill instructions would NOT satisfy this assertion given the fixture\n\nFor **Protocol Compliance** assertions (always present):\n- Check whether the skill requires \"May I write\" before file writes\n- Check whether the skill presents findings before requesting approval\n- Check whether the skill ends with a recommended next step\n- Check whether the skill avoids auto-creating files without approval\n\n### Step 4 — Build Report\n\n```\n=== Skill Spec Test: \u002F[name] ===\nDate: [date]\nSpec: CCGS Skill Testing Framework\u002Fskills\u002F[category]\u002F[name].md\n\nCase 1: [Happy Path — name]\n  Fixture: [summary]\n  Assertions:\n    [PASS] [assertion text]\n    [FAIL] [assertion text]\n       Reason: The skill's Phase 3 says \"...\" but the fixture state means \"...\"\n  Case Verdict: FAIL\n\nCase 2: [Edge Case — name]\n  ...\n  Case Verdict: PASS\n\nProtocol Compliance:\n  [PASS] Uses \"May I write\" before file writes\n  [PASS] Presents findings before asking approval\n  [WARN] No explicit next-step handoff at end\n\nOverall Verdict: FAIL (1 case failed, 1 warning)\n```\n\n### Step 5 — Offer to Write Results\n\n\"May I write these results to `CCGS Skill Testing Framework\u002Fresults\u002Fskill-test-spec-[name]-[date].md`\nand update `CCGS Skill Testing Framework\u002Fcatalog.yaml`?\"\n\nIf yes:\n- Write results file to `CCGS Skill Testing Framework\u002Fresults\u002F`\n- Update the skill's entry in `CCGS Skill Testing Framework\u002Fcatalog.yaml`:\n  - `last_spec: [date]`\n  - `last_spec_result: PASS|PARTIAL|FAIL`\n\n---\n\n## Phase 2D: Category Mode — Rubric Evaluation\n\n### Step 1 — Locate Skill and Category\n\nFind skill at `.claude\u002Fskills\u002F[name]\u002FSKILL.md`.\nLook up `category:` field in `CCGS Skill Testing Framework\u002Fcatalog.yaml`.\n\nIf skill not found: \"Skill '[name]' not found.\"\nIf no `category:` field: \"No category assigned for '[name]' in catalog.yaml.\nAdd `category: [name]` to the skill entry first.\"\n\nFor `category all`: collect all skills with a `category:` field and process each.\n`category: utility` skills are evaluated against U1 (static checks pass) and U2\n(gate mode correct if applicable) only — skip to the static mode for U1.\n\n### Step 2 — Read Rubric Section\n\nRead `CCGS Skill Testing Framework\u002Fquality-rubric.md`.\nExtract the section matching the skill's category (e.g., `### gate`, `### team`).\n\n### Step 3 — Read Skill\n\nRead the skill's `SKILL.md` fully.\n\n### Step 4 — Evaluate Rubric Metrics\n\nFor each metric in the category's rubric table:\n1. Check whether the skill's written instructions clearly satisfy the criterion\n2. Mark PASS, FAIL, or WARN\n3. For FAIL\u002FWARN, identify the exact gap in the skill text (quote the relevant section\n   or note its absence)\n\n### Step 5 — Output Report\n\n```\n=== Skill Category Check: \u002F[name] ([category]) ===\n\nMetric G1 — Review mode read:      PASS\nMetric G2 — Full mode directors:   FAIL\n  Gap: Phase 3 spawns only CD-PHASE-GATE; TD-PHASE-GATE, PR-PHASE-GATE, AD-PHASE-GATE absent\nMetric G3 — Lean mode: PHASE-GATE only: PASS\nMetric G4 — Solo mode: no directors:    PASS\nMetric G5 — No auto-advance:       PASS\n\nVerdict: FAIL (1 failure, 0 warnings)\nFix: Add TD-PHASE-GATE, PR-PHASE-GATE, and AD-PHASE-GATE to the full-mode director\n     panel in Phase 3.\n```\n\n### Step 6 — Offer to Update Catalog\n\n\"May I update `CCGS Skill Testing Framework\u002Fcatalog.yaml` to record this category check\n(`last_category`, `last_category_result`) for [name]?\"\n\n---\n\n## Phase 2C: Audit Mode — Coverage Report\n\n### Step 1 — Read Catalog\n\nRead `CCGS Skill Testing Framework\u002Fcatalog.yaml`. If missing, note that catalog doesn't exist\nyet (first-run state).\n\n### Step 2 — Enumerate All Skills and Agents\n\nGlob `.claude\u002Fskills\u002F*\u002FSKILL.md` to get the complete list of skills.\nExtract skill name from each path (directory name).\n\nAlso read the `agents:` section from `CCGS Skill Testing Framework\u002Fcatalog.yaml` to get the\ncomplete list of agents.\n\n### Step 3 — Build Skill Coverage Table\n\nFor each skill:\n- Check if a spec file exists (use the `spec:` path from catalog, or glob `CCGS Skill Testing Framework\u002Fskills\u002F*\u002F[name].md`)\n- Look up `last_static`, `last_static_result`, `last_spec`, `last_spec_result`,\n  `last_category`, `last_category_result`, `category` from catalog (or mark as\n  \"never\" \u002F \"—\" if not in catalog)\n- Priority comes from catalog `priority:` field (critical\u002Fhigh\u002Fmedium\u002Flow)\n\n### Step 3b — Build Agent Coverage Table\n\nFor each agent in catalog's `agents:` section:\n- Check if a spec file exists (use the `spec:` path from catalog, or glob `CCGS Skill Testing Framework\u002Fagents\u002F*\u002F[name].md`)\n- Look up `last_spec`, `last_spec_result`, `category` from catalog\n\n### Step 4 — Output Report\n\n```\n=== Skill Test Coverage Audit ===\nDate: [date]\n\nSKILLS (72 total)\nSpecs written: 72 (100%) | Never static tested: 72 | Never category tested: 72\n\nSkill                  | Cat      | Has Spec | Last Static | S.Result | Last Cat | C.Result | Priority\n-----------------------|----------|----------|-------------|----------|----------|----------|----------\ngate-check             | gate     | YES      | never       | —        | never    | —        | critical\ndesign-review          | review   | YES      | never       | —        | never    | —        | critical\n...\n\nAGENTS (49 total)\nAgent specs written: 49 (100%)\n\nAgent                  | Category   | Has Spec | Last Spec   | Result\n-----------------------|------------|----------|-------------|--------\ncreative-director      | director   | YES      | never       | —\ntechnical-director     | director   | YES      | never       | —\n...\n\nTop 5 Priority Gaps (skills with no spec, critical\u002Fhigh priority):\n(none if all specs are written)\n\nSkill coverage:  72\u002F72 specs (100%)\nAgent coverage:  49\u002F49 specs (100%)\n```\n\nNo file writes in audit mode.\n\nOffer: \"Would you like to run `\u002Fskill-test static all` to check structural\ncompliance across all skills? `\u002Fskill-test category all` to run category rubric\nchecks? Or `\u002Fskill-test spec [name]` to run a specific behavioral test?\"\n\n---\n\n## Phase 3: Recommended Next Steps\n\nAfter any mode completes, offer contextual follow-up:\n\n- After `static [name]`: \"Run `\u002Fskill-test spec [name]` to validate behavioral\n  correctness if a test spec exists.\"\n- After `static all` with failures: \"Address NON-COMPLIANT skills first. Run\n  `\u002Fskill-test static [name]` individually for detailed remediation guidance.\"\n- After `spec [name]` PASS: \"Update `CCGS Skill Testing Framework\u002Fcatalog.yaml` to record this\n  pass date. Consider running `\u002Fskill-test audit` to find the next spec gap.\"\n- After `spec [name]` FAIL: \"Review the failing assertions and update the skill\n  or the test spec to resolve the mismatch.\"\n- After `audit`: \"Start with the critical-priority gaps. Use the spec template\n  at `CCGS Skill Testing Framework\u002Ftemplates\u002Fskill-test-spec.md` to create new specs.\"\n",{"name":5,"description":7,"allowed-tools":24,"argument-hint":25,"user-invocable":26},"Read, Glob, Grep, Write","static [skill-name | all] | spec [skill-name] | category [skill-name | all] | audit",true,"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","05-技能与代理开发\u002Fskill-test",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":26},[37,40,43],{"tool":38,"command":39},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill skill-test",{"tool":41,"command":42},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill skill-test",{"tool":44,"command":45},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill skill-test","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fskill-test\u002FSKILL.md",[],[49,56,61,68,75,82],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":57,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]