[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71RE7A4C700BTJYXKF9FKX6":3,"skill-same:01M71RE7A4C700BTJYXKF9FKX6":168},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":6,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":50,"updatedAt":51,"install":52,"resources":65},"01M71RE7A4C700BTJYXKF9FKX6","autospec-doc",null,"Use when the user wants to generate, regenerate, or audit per-audience project documentation (user, developer, admin, general) as docs-as-tests — incremental by default, with --full, --audit, --audience \u003Cname>, and an init scaffolder. Single-source palette, verified examples, and llms-full.txt output. Hands generation to doc-orchestrator.mjs.","berlinguyinca\u002Fautospec","berlinguyinca","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F16364?v=4","01M71R7C0SWBG05FNHQE4XQ7Y3","Gert Wohlgemuth","01M71R7C1VY5K3Q715RNDDBVGQ",3,"MIT","https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec\u002Fblob\u002Fmain\u002Fskills\u002Fautospec-doc\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"autospec","autospec doc","doc","project documentation","as","developer","full","scaffolder","source","verified","audit","orchestrator","generate","palette","llms","documentation","when","init","default","project","2026-11-10 13:02:02",false,"---\nname: autospec-doc\ndescription: Use when the user wants to generate, regenerate, or audit per-audience project documentation (user, developer, admin, general) as docs-as-tests — incremental by default, with --full, --audit, --audience \u003Cname>, and an init scaffolder. Single-source palette, verified examples, and llms-full.txt output. Hands generation to doc-orchestrator.mjs.\n---\n\n# autospec-doc workflow (harness-neutral)\n\nGenerate and maintain **per-audience project documentation** as a first-class,\nverifiable artifact. The product is documentation infrastructure: every page is\naudience-targeted (user \u002F developer \u002F admin \u002F general), every code example is\nexecuted (docs-as-tests), the visual palette is single-sourced, and the whole\ncorpus is concatenated into an `llms-full.txt` for downstream LLM consumption.\n\nGoal: documentation that a non-author can actually follow, that never silently\ndrifts from the code, whose examples are proven to run, and whose token cost\nstays bounded through incremental regeneration. This skill is the operator\nentry point; the heavy lifting lives in `doc-orchestrator.mjs` and the\nper-capability generators it dispatches.\n\nThis SKILL.md is the **scaffold contract** (issue #916). The subcommand router\nexists as a stub; the generator scripts (`gen-audience-docs.mjs`,\n`verify-examples.mjs`, `doc-style.mjs`, `gen-llms-full.mjs`) are header+stub\nhere and filled in by downstream issues #917-#921. Sections below marked\n*(filled in by #NNN)* are intentional stubs.\n\n\u003C!-- autospec-block:startup-self-update SKILL_NAME=autospec-doc -->\n\n## Self-update mode\n\nIf the argument matches the regex `^\\s*update\\s*$` (case-insensitive,\nwhitespace-padded), this skill enters self-update mode and does not run the\nnormal pipeline. This section is pure prose: never interpolate or shell out the\noperator's argument text.\n\n1. **Detect harness** by checking which install path exists for this skill:\n   - Claude Code: `~\u002F.claude\u002Fskills\u002Fautospec-doc\u002FSKILL.md`\n   - OpenCode:    `~\u002F.config\u002Fopencode\u002Fagent\u002Fautospec-doc.md`\n   - Codex CLI:   `~\u002F.codex\u002Fprompts\u002Fautospec-doc.md`\n2. **Re-install the full autospec suite from `main`** by piping the canonical installer:\n   ```bash\n   curl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Fberlinguyinca\u002Fautospec\u002Fmain\u002Fbootstrap.sh | bash -s -- --skill all --harness all --update\n   ```\n   Run this one-liner once; it refreshes all autospec skills across all harnesses.\n3. **Show the diff** between the prior installed file(s) and the freshly fetched copy.\n4. **Stop.** Do not enter the documentation pipeline. Print the upgrade summary and return to the user.\n\nIf no install path is detected, print `Self-update: no installed copy of autospec-doc found; run install.sh first.` and exit.\n\n## Model tier\n\nTier A\u002FB model resolution and the harness-detection protocol are inherited\nverbatim from `AGENTS.md` (`## Subagent model selection (two-tier, cost-aware)`\nand `## Subagent vs inline decision matrix`). Audience-content authoring and the\ncompleteness audit run at Tier A (spec work — fresh-eyes reasoning produces\nbetter prose and catches gaps); deterministic generation, example verification,\nand palette resolution run at Tier B (implementation work).\n\n> **Model tier:** TIER_A (spec work) for the per-audience content pass and the completeness audit; TIER_B (implementation work) for deterministic generation, example verification, and style — resolved at startup per the harness detection below.\n\n### Required capabilities & harness adapter\n\nThis workflow assumes the following capabilities. Map each to your harness's\nactual tool; if a capability is missing, use the listed fallback.\n\n| Capability                  | Claude Code                             | OpenCode                              | Codex CLI                                | Fallback if missing                              |\n|-----------------------------|-----------------------------------------|---------------------------------------|------------------------------------------|--------------------------------------------------|\n| Audience content authoring  | `Agent` (subagent_type=general-purpose) | `task` agent, await output            | run the authoring pass inline            | Author in-thread (more context cost)             |\n| Completeness \u002F gap audit    | a **separate** `Agent` dispatch         | a **separate** `task` agent           | a separate inline judging pass           | Audit in-thread, never reuse the authoring pass  |\n| Read-only repo research     | `Agent` (subagent_type=Explore)         | `task` agent in read-only mode        | shell `grep`\u002F`rg` read-only              | Search in-thread with `rg`\u002F`grep`                |\n| Ask the user a question     | `AskUserQuestion`                       | inline prompt                         | inline prompt                            | Ask in the response and wait for the next turn   |\n| Subagent model tier         | Tier A: `opus` + `ultrathink`; Tier B: `sonnet` + medium thinking | Tier A: top `task` model + high reasoning; Tier B: smaller-tier `task` + medium reasoning | Tier A: top GPT + `reasoning_effort=high`; Tier B: current spark\u002Fcost-optimized Codex + `reasoning_effort=medium` | Honor the per-phase tier mapping in AGENTS.md; retry the same subagent UP on unavailability |\n| Subagent dispatch policy    | per AGENTS.md decision matrix           | per AGENTS.md decision matrix         | per AGENTS.md decision matrix            | inline with main-session token cost              |\n\n**Persistent project notes**: write durable preferences to **`AGENTS.md`** in\nthe repo root — recognized by Claude Code, OpenCode, and Codex.\n\n## Harness detection (run once at skill start, before generation begins)\n\nDetect your harness by checking available tools before any dispatch:\n\n1. **Claude Code** — the `Agent` tool with a `subagent_type` parameter is available.\n   - `TIER_A` = `opus` + `ultrathink`  (the alias, which resolves to the current Claude Opus generation)\n   - `TIER_B` = `sonnet`               (the alias, which resolves to the current Claude Sonnet generation)\n2. **OpenCode** — a `task` tool with model\u002Ftier configuration is available (no `subagent_type`).\n   - `TIER_A` = top-tier task model + high reasoning\n   - `TIER_B` = smaller-tier task model + medium reasoning\n3. **Codex CLI** — neither `Agent` nor a configurable `task` tool is available; passes run inline.\n   - `TIER_A` = current top GPT model + `reasoning_effort=high`\n   - `TIER_B` = the spark \u002F cost-optimized variant of the configured model when one exists, else the configured model + `reasoning_effort=medium`\n\n**Fallback rule:** If `TIER_B` is not available in your harness, silently retry\nthe same subagent dispatch with `TIER_A`. Preserve parent context on retry.\nNever ask the user.\n\nHold `TIER_A` and `TIER_B` for the entire skill run.\n\n## Subcommand contract\n\n`\u002Fautospec-doc` routes every operation through `doc-orchestrator.mjs`.\nThere are five forms; resolve the active repo's `\u003Cowner\u002Fname>` once and reuse it.\n\n```\n\u002Fautospec-doc                     # incremental — regenerate scopes affected since last generation\n\u002Fautospec-doc --full              # regenerate everything + run the completeness audit\n\u002Fautospec-doc --audit             # read-only completeness\u002Fdrift report; writes nothing\n\u002Fautospec-doc --audience \u003Cname>   # regenerate one audience only (user|developer|admin|general|custom)\n\u002Fautospec-doc init                # scaffold the documentation: config + starter doc scopes\n```\n\n- **(bare) incremental** — the default and the cheap path. Scopes only the docs\n  affected since the last generation (changed features, drifted examples). Keeps\n  per-run token cost bounded; never regenerates the whole corpus. Requires a\n  `documentation:` config. *(scope-diff + generation filled in by #918\u002F#919.)*\n- **`--full`** — regenerate every audience's pages from scratch and then run the\n  completeness audit. The expensive, exhaustive path. Requires config.\n  *(filled in by #918\u002F#923.)*\n- **`--audit`** — read-only. Reports missing scopes, stale verified examples,\n  and audience coverage gaps without writing any file. Requires config.\n  *(filled in by #919\u002F#923.)*\n- **`--audience \u003Cname>`** — regenerate exactly one audience's docs. Requires\n  config; `\u003Cname>` must resolve to a configured (or default) audience.\n  *(filled in by #918.)*\n- **`init`** — the bootstrap. Scans the repo (features, entry points, existing\n  `docs\u002F`) and scaffolds a `documentation:` block in `.autospec\u002Fautospec.yml`,\n  starter doc scopes under `docs\u002F\u003Caudience>\u002F` per the folder contract, AND a\n  project-grounded feature skeleton at `.autospec\u002Fdoc-features.json` (see\n  *Authoring & coverage-driven enrichment workflow*). This is the ONLY subcommand\n  that runs WITHOUT an existing `documentation:` config — it is what creates that\n  config. Idempotent: an existing fixture is never overwritten.\n\n**Config gate.** Every non-`init` subcommand exits `2` when no `documentation:`\nconfig is present in `.autospec\u002Fautospec.yml`: there is nothing to generate\nuntil `init` has scaffolded the config. The orchestrator enforces this gate\ndeterministically; `init` is exempt by design.\n\n## Audience & content model\n\nFour default audiences, seeded by `init` only when `documentation.audiences` is\nempty: **user** (`docs\u002Fuser`, \"tasks, workflows, how to use features\"),\n**developer** (`docs\u002Fdeveloper`, \"architecture, APIs, extending\"), **admin**\n(`docs\u002Fadmin`, \"install, configure, operate, troubleshoot\"), and **general**\n(`docs\u002Fgeneral`, \"what it is, why it matters, plain language\"). Operators may\ndeclare custom audiences. *(config schema + folder-contract constants filled in\nby #917; per-audience generators by #918.)*\n\nFolder contract: `docs\u002F\u003Caudience>\u002F{index.md,getting-started.md,tutorials\u002F\u003Cfeature>.md,features\u002F\u003Cfeature>.md}`;\ndeveloper adds `architecture\u002F` + `api\u002F`; admin links `docs\u002Frunbooks\u002F`; shared\nassets live under `docs\u002Fassets\u002F{screenshots,diagrams,transcripts}\u002F`.\n\n### Per-audience prose (authoring contract)\n\nEvery feature prose field (`summary`, `spec_sections`, `data_model`,\n`invariants`, `errors`, `config_reference`, `rationale`, `algorithm`,\n`config_profiles`, `settings`, `implementation_snippets`, and `examples`) may be\nEITHER a shared scalar\u002Farray (same text for all audiences) OR a per-audience map\n`{ user, developer, admin, general, default }`. `pickForAudience` resolves the\nmap to `value[audience] ?? value.default ?? null`; shared values pass through\nunchanged. `title`, `slug`, `code_entry_points`, and `depends_on` stay shared.\n\nThe TIER_A authoring pass SHOULD produce genuinely per-audience prose, not the\nsame text four times:\n\n- **user** — task\u002Fworkflow framing: how to run it, what to click, expected results.\n- **developer** — architecture and internals: data structures, APIs, extension points, algorithms, and grounded implementation snippets.\n- **admin** — install\u002Foperate\u002Fconfigure: setup, tuning knobs, config profiles, troubleshooting.\n- **general** — plain-language \"what & why\": the problem it solves and how the core approach works in one breath.\n\n\nFor any feature that wraps or implements processing, computation, algorithms,\nscientific\u002Fmath logic, queue processing, parsing, ranking, regression,\nclassification, transformation, or other non-trivial decision rules, the\nfeature inventory MUST include:\n\n- `algorithm` for the developer and\u002For general audiences, describing the actual\n  approach, key thresholds, regressions\u002Fmath, peak-picking\u002Fintegration rules, or\n  decision strategy. Do not invent prose: ground it in `code_entry_points` and\n  the implementing source.\n- At least one `implementation_snippets[]` entry for the developer audience,\n  with `source_path`, `start_line`, and `end_line` pointing at real source. The\n  generator renders the code by reading those source lines; `verify-examples.mjs`\n  verifies rendered `\u003C!-- implementation-snippet: path:start-end -->` blocks\n  against the same source line range so stale or invented fragments fail.\n- `settings[]` entries for user-visible\u002Fadmin\u002Fdeveloper knobs with `name`,\n  `type`, `default`, `description`, and optional `audiences`.\n- `config_profiles[]` entries for named profiles\u002Fpresets and what each changes,\n  with optional `audiences`.\n\nThe generator runs a **sameness guard**: if a feature's `features\u002F\u003Cslug>.md`\nbody is byte-identical across all audiences (after stripping the audience\ntagline, mermaid theme line, scope block, and gated `## Configuration` \u002F `## Why`\nsections), it adds a `feature '\u003Cslug>': identical prose…` entry to the returned\n`warnings[]` (printed to stderr by the CLI). Pass\n`failOnIdenticalAudiences: true` to turn that warning into a hard failure\n(nothing is written) so a fake audience split cannot silently ship.\n\n## Docs-as-tests\n\nEvery fenced code example in generated docs is executed against the repo, so\ndocumentation cannot silently drift from working code. Verified examples carry a\n`\u003C!-- example-verified: \u003Chead-sha> \u003CISO-date> -->` marker; a re-run on a newer\nHEAD that no longer matches re-verifies or flags the example as stale.\nThe verification engine is `verify-examples.mjs`: it executes every\ntagged example in a fresh worktree off origin\u002Fmain (network-restricted, 60s\nper-example timeout), embeds captured output in an adjacent ` ```output ` block,\nand a failing example fails generation. `check-doc-drift.sh` reports an\n`example_stale` entry when a marker SHA predates the newest commit touching the\nscope's `src_globs` (same self-heal path as `visual_stale`).\n\n## Answerability \u002F domain-term coverage\n\n`--audit` and `--full` run a deterministic, **project-transparent** answerability\naudit (`doc-coverage.mjs`): it mines the project's OWN vocabulary and checks\nwhether the generated docs cover it — no project-specific config required. Two\nterm kinds are mined directly from the repo: **enum** constants\n(`SCREAMING_SNAKE_CASE` identifiers with ≥2 segments — enum values, case objects,\nstate names users ask about, e.g. `INVALID_TARGET`) from source files, and\n**config** keys (dotted lowercase paths of depth ≥2, e.g.\n`wcmc.workflow.targets.invalidate.name`) from `application*.yml`, `.properties`,\nand `.conf` files. Build\u002Fvendor dirs and the generated `docs\u002F\u003Caudience>\u002F` trees\nare excluded so the docs are never mined as their own source, and a built-in\nstoplist drops generic ALLCAPS noise (API, HTTP, JSON, …). A term is *covered*\nwhen any generated page mentions it (case-insensitive whole-token; config keys\nalso match on their last ≥2 segments). `--audit` prints\n`domain coverage: \u003Ccovered>\u002F\u003Ctotal> terms (\u003Cpct>%)` and lists the highest-signal\nmissing terms; `--full` prints a one-line summary. The audit is advisory (never\nthrows, never writes). Knobs live under `documentation.coverage`:\n`enabled` (default true — set `false` to skip), `min_freq`, `min_files`,\n`source_globs`, `config_globs`, `stoplist`, and `max_report` (default 15).\n\n## Authoring & coverage-driven enrichment workflow\n\nThe repeatable loop for ANY project — no project-specific hardcoding anywhere:\n\n1. **`init`** — scaffolds the `documentation:` config, the starter doc scopes,\n   AND a project-grounded feature SKELETON at `.autospec\u002Fdoc-features.json`\n   (`doc-scaffold.mjs`). Candidates are derived deterministically, in priority\n   order: existing topic docs (non-index `*.md` under `docs\u002F\u003Ctopic>\u002F` dirs that\n   are NOT the generated `user|developer|admin|general` trees), else immediate\n   children of source roots (`apps\u002F`, `packages\u002F`, `services\u002F`, `cmd\u002F`,\n   `modules\u002F`, `crates\u002F`, else first-level `src\u002F` dirs), else a single `overview`\n   feature. Slugs are kebab-cased and filesystem-safe; prose fields are left\n   EMPTY for you to author. The scaffolder NEVER overwrites an existing fixture.\n2. **Author each feature's per-audience prose**, grounded in the project's code\n   and existing docs. Each prose field accepts a per-audience map\n   `{user, developer, admin, general, default}` (or a shared scalar): **user** =\n   task \u002F how-to-run, **developer** = internals \u002F APIs, **admin** =\n   install \u002F operate \u002F config, **general** = plain-language \"what & why\". Put\n   LITERAL config keys and enum \u002F constant names into the prose (not paraphrases)\n   so the docs are greppable and the coverage audit can detect them.\n3. **`--full`** — generate every audience's pages from the inventory.\n4. **`--audit`** — read the `domain coverage` worklist. Treat the high-frequency\n   missing `enum` \u002F `config` terms as the gap list; ignore genuine framework \u002F\n   test-fixture noise (override via `coverage.stoplist` \u002F\n   `coverage.config_prefix_stoplist` when the built-in stoplists miss something).\n5. **Enrich** the relevant features' `config_reference` \u002F `data_model` \u002F\n   `invariants` \u002F `algorithm` \u002F `settings` \u002F `config_profiles` \u002F\n   `implementation_snippets` with those literal terms and grounded source line\n   ranges, regenerate, and repeat until coverage plateaus or the remaining terms\n   are framework \u002F fixture noise.\n\nNotes: the scaffolder never clobbers an authored fixture (re-running `init` is\nidempotent); per-audience typed fields may be maps or shared scalars; and\nunderscore-prefixed or otherwise unknown keys are ignored by the generator.\n\n## Style & palette\n\nThe visual palette is **single-sourced** in `doc-style.mjs` — no other\nfile may hardcode the palette hexes, and `validate.sh` enforces this.\nThe palette also themes generated mermaid diagrams. *(palette resolution +\nmermaid theming filled in by #920.)*\n\n## Mermaid diagrams\n\nGenerated documentation MUST include Mermaid diagrams and charts where\nacceptable. During audience authoring, `--full`, and scoped regeneration,\nidentify whether each documented feature exposes a queue, router, state machine,\ndata flow, control flow, algorithm, architecture boundary, timeline, ownership\nrelationship, decision space, roadmap, or metric trend that would be clearer as\na diagram or chart. `init` seeds starter scopes and later diagram expectations;\nit does not need to invent feature diagrams before feature content exists. When\na diagram does apply, emit a Markdown `mermaid` fence in the relevant audience\npage and keep any shared\u002Fgenerated diagram source under `docs\u002Fassets\u002Fdiagrams\u002F`.\nChoose the Mermaid type that matches the content:\n`flowchart` for algorithms and control flow, `sequenceDiagram` for request or\nmessage handoffs, `stateDiagram-v2` for lifecycle\u002Fstate transitions, `classDiagram`\nor `erDiagram` for ownership\u002Fdata relationships, `gantt` or `timeline` for\nroadmaps, `journey` for user workflows, `quadrantChart` for decision spaces,\n`gitGraph` for branch\u002Frelease flow, `mindmap` or `block` for conceptual\nstructure, `architecture` for system boundaries, `sankey` for weighted flows,\n`xychart` or `pie` for metrics, and `kanban` for work queues.\n\nIf no diagram is useful for a generated page, record `Mermaid: not applicable`\nnear the generated section metadata with the reason. The omission must be\nauditable, not silent. Diagram text must be grounded in the same source ranges\nand vocabulary as the prose; do not invent components, queues, routes, or states\njust to satisfy the diagram requirement.\n\n## llms-full.txt\n\n`--full` (and the orchestrator's concatenation step) emit an `llms-full.txt` at\nthe repo root: the whole verified corpus, delimited per audience\u002Ffeature with\n`\u003C!-- llms: audience=\u003Ca> feature=\u003Cf> -->` markers, plus a `.llm-manifest.json`\nindex. *(concatenator + manifest fill filled in by #921.)*\n\n## Pipeline wiring (downstream)\n\nPhase 4 of `\u002Fautospec-run` gains a `regenerate` self-heal action that calls\n`\u002Fautospec-doc` when docs drift is detected; Phase 5.5 gains a\ndocs-completeness dimension; `\u002Fautospec-sweep --full` and `\u002Fautospec-define`'s\nauto-docs step redirect to `\u002Fautospec-doc`. *(wiring filled in by\n#922\u002F#923\u002F#924.)*\n\n## Worktree assert (regenerate commit)\n\nThe regenerate commit step runs inside the implementer's PR-branch worktree\n(already a linked worktree off `origin\u002Fmain`, never the primary checkout).\nBefore committing any regenerated content, the doc orchestrator MUST call\n`worktree-guard.sh assert` and verify it exits 0.\n\n\u003C!-- doc-regen-assert:begin -->\n```bash\n# MANDATORY assert gate before the doc regenerate commit.\n# MUST exit 0 before any commit. A non-zero exit (in_primary_checkout \u002F dirty \u002F\n# stale_base) is NEVER worked around — stop and surface the code_health identifier.\nif ! bash ${AUTOSPEC_SCRIPTS_DIR:-$HOME\u002F.autospec\u002Fscripts}\u002Fworktree-guard.sh assert; then\n  echo \"worktree-guard assert failed before doc regenerate commit; aborting\" >&2\n  exit 1\nfi\n```\n\u003C!-- doc-regen-assert:end -->\n\n## Invocation\n\n```\n\u002Fautospec-doc [--full | --audit | --audience \u003Cname> | init]\n```\n\n> **Model tier:** TIER_A (spec work) for the audience-content authoring pass and the completeness audit; TIER_B (implementation work) for deterministic generation, example verification, and style — resolved at startup per the harness detection above.\n\nThe skill resolves the harness and tiers, runs the startup self-update preflight,\nthen dispatches the parsed subcommand to `doc-orchestrator.mjs`. On a\nnon-`init` subcommand with no `documentation:` config, it surfaces the orchestrator's\nexit-`2` message instructing the operator to run `\u002Fautospec-doc init` first.\n","# autospec-doc workflow (harness-neutral)\n\nGenerate and maintain **per-audience project documentation** as a first-class,\nverifiable artifact. The product is documentation infrastructure: every page is\naudience-targeted (user \u002F developer \u002F admin \u002F general), every code example is\nexecuted (docs-as-tests), the visual palette is single-sourced, and the whole\ncorpus is concatenated into an `llms-full.txt` for downstream LLM consumption.\n\nGoal: documentation that a non-author can actually follow, that never silently\ndrifts from the code, whose examples are proven to run, and whose token cost\nstays bounded through incremental regeneration. This skill is the operator\nentry point; the heavy lifting lives in `doc-orchestrator.mjs` and the\nper-capability generators it dispatches.\n\nThis SKILL.md is the **scaffold contract** (issue #916). The subcommand router\nexists as a stub; the generator scripts (`gen-audience-docs.mjs`,\n`verify-examples.mjs`, `doc-style.mjs`, `gen-llms-full.mjs`) are header+stub\nhere and filled in by downstream issues #917-#921. Sections below marked\n*(filled in by #NNN)* are intentional stubs.\n\n\u003C!-- autospec-block:startup-self-update SKILL_NAME=autospec-doc -->\n\n## Self-update mode\n\nIf the argument matches the regex `^\\s*update\\s*$` (case-insensitive,\nwhitespace-padded), this skill enters self-update mode and does not run the\nnormal pipeline. This section is pure prose: never interpolate or shell out the\noperator's argument text.\n\n1. **Detect harness** by checking which install path exists for this skill:\n   - Claude Code: `~\u002F.claude\u002Fskills\u002Fautospec-doc\u002FSKILL.md`\n   - OpenCode:    `~\u002F.config\u002Fopencode\u002Fagent\u002Fautospec-doc.md`\n   - Codex CLI:   `~\u002F.codex\u002Fprompts\u002Fautospec-doc.md`\n2. **Re-install the full autospec suite from `main`** by piping the canonical installer:\n   ```bash\n   curl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Fberlinguyinca\u002Fautospec\u002Fmain\u002Fbootstrap.sh | bash -s -- --skill all --harness all --update\n   ```\n   Run this one-liner once; it refreshes all autospec skills across all harnesses.\n3. **Show the diff** between the prior installed file(s) and the freshly fetched copy.\n4. **Stop.** Do not enter the documentation pipeline. Print the upgrade summary and return to the user.\n\nIf no install path is detected, print `Self-update: no installed copy of autospec-doc found; run install.sh first.` and exit.\n\n## Model tier\n\nTier A\u002FB model resolution and the harness-detection protocol are inherited\nverbatim from `AGENTS.md` (`## Subagent model selection (two-tier, cost-aware)`\nand `## Subagent vs inline decision matrix`). Audience-content authoring and the\ncompleteness audit run at Tier A (spec work — fresh-eyes reasoning produces\nbetter prose and catches gaps); deterministic generation, example verification,\nand palette resolution run at Tier B (implementation work).\n\n> **Model tier:** TIER_A (spec work) for the per-audience content pass and the completeness audit; TIER_B (implementation work) for deterministic generation, example verification, and style — resolved at startup per the harness detection below.\n\n### Required capabilities & harness adapter\n\nThis workflow assumes the following capabilities. Map each to your harness's\nactual tool; if a capability is missing, use the listed fallback.\n\n| Capability                  | Claude Code                             | OpenCode                              | Codex CLI                                | Fallback if missing                              |\n|-----------------------------|-----------------------------------------|---------------------------------------|------------------------------------------|--------------------------------------------------|\n| Audience content authoring  | `Agent` (subagent_type=general-purpose) | `task` agent, await output            | run the authoring pass inline            | Author in-thread (more context cost)             |\n| Completeness \u002F gap audit    | a **separate** `Agent` dispatch         | a **separate** `task` agent           | a separate inline judging pass           | Audit in-thread, never reuse the authoring pass  |\n| Read-only repo research     | `Agent` (subagent_type=Explore)         | `task` agent in read-only mode        | shell `grep`\u002F`rg` read-only              | Search in-thread with `rg`\u002F`grep`                |\n| Ask the user a question     | `AskUserQuestion`                       | inline prompt                         | inline prompt                            | Ask in the response and wait for the next turn   |\n| Subagent model tier         | Tier A: `opus` + `ultrathink`; Tier B: `sonnet` + medium thinking | Tier A: top `task` model + high reasoning; Tier B: smaller-tier `task` + medium reasoning | Tier A: top GPT + `reasoning_effort=high`; Tier B: current spark\u002Fcost-optimized Codex + `reasoning_effort=medium` | Honor the per-phase tier mapping in AGENTS.md; retry the same subagent UP on unavailability |\n| Subagent dispatch policy    | per AGENTS.md decision matrix           | per AGENTS.md decision matrix         | per AGENTS.md decision matrix            | inline with main-session token cost              |\n\n**Persistent project notes**: write durable preferences to **`AGENTS.md`** in\nthe repo root — recognized by Claude Code, OpenCode, and Codex.\n\n## Harness detection (run once at skill start, before generation begins)\n\nDetect your harness by checking available tools before any dispatch:\n\n1. **Claude Code** — the `Agent` tool with a `subagent_type` parameter is available.\n   - `TIER_A` = `opus` + `ultrathink`  (the alias, which resolves to the current Claude Opus generation)\n   - `TIER_B` = `sonnet`               (the alias, which resolves to the current Claude Sonnet generation)\n2. **OpenCode** — a `task` tool with model\u002Ftier configuration is available (no `subagent_type`).\n   - `TIER_A` = top-tier task model + high reasoning\n   - `TIER_B` = smaller-tier task model + medium reasoning\n3. **Codex CLI** — neither `Agent` nor a configurable `task` tool is available; passes run inline.\n   - `TIER_A` = current top GPT model + `reasoning_effort=high`\n   - `TIER_B` = the spark \u002F cost-optimized variant of the configured model when one exists, else the configured model + `reasoning_effort=medium`\n\n**Fallback rule:** If `TIER_B` is not available in your harness, silently retry\nthe same subagent dispatch with `TIER_A`. Preserve parent context on retry.\nNever ask the user.\n\nHold `TIER_A` and `TIER_B` for the entire skill run.\n\n## Subcommand contract\n\n`\u002Fautospec-doc` routes every operation through `doc-orchestrator.mjs`.\nThere are five forms; resolve the active repo's `\u003Cowner\u002Fname>` once and reuse it.\n\n```\n\u002Fautospec-doc                     # incremental — regenerate scopes affected since last generation\n\u002Fautospec-doc --full              # regenerate everything + run the completeness audit\n\u002Fautospec-doc --audit             # read-only completeness\u002Fdrift report; writes nothing\n\u002Fautospec-doc --audience \u003Cname>   # regenerate one audience only (user|developer|admin|general|custom)\n\u002Fautospec-doc init                # scaffold the documentation: config + starter doc scopes\n```\n\n- **(bare) incremental** — the default and the cheap path. Scopes only the docs\n  affected since the last generation (changed features, drifted examples). Keeps\n  per-run token cost bounded; never regenerates the whole corpus. Requires a\n  `documentation:` config. *(scope-diff + generation filled in by #918\u002F#919.)*\n- **`--full`** — regenerate every audience's pages from scratch and then run the\n  completeness audit. The expensive, exhaustive path. Requires config.\n  *(filled in by #918\u002F#923.)*\n- **`--audit`** — read-only. Reports missing scopes, stale verified examples,\n  and audience coverage gaps without writing any file. Requires config.\n  *(filled in by #919\u002F#923.)*\n- **`--audience \u003Cname>`** — regenerate exactly one audience's docs. Requires\n  config; `\u003Cname>` must resolve to a configured (or default) audience.\n  *(filled in by #918.)*\n- **`init`** — the bootstrap. Scans the repo (features, entry points, existing\n  `docs\u002F`) and scaffolds a `documentation:` block in `.autospec\u002Fautospec.yml`,\n  starter doc scopes under `docs\u002F\u003Caudience>\u002F` per the folder contract, AND a\n  project-grounded feature skeleton at `.autospec\u002Fdoc-features.json` (see\n  *Authoring & coverage-driven enrichment workflow*). This is the ONLY subcommand\n  that runs WITHOUT an existing `documentation:` config — it is what creates that\n  config. Idempotent: an existing fixture is never overwritten.\n\n**Config gate.** Every non-`init` subcommand exits `2` when no `documentation:`\nconfig is present in `.autospec\u002Fautospec.yml`: there is nothing to generate\nuntil `init` has scaffolded the config. The orchestrator enforces this gate\ndeterministically; `init` is exempt by design.\n\n## Audience & content model\n\nFour default audiences, seeded by `init` only when `documentation.audiences` is\nempty: **user** (`docs\u002Fuser`, \"tasks, workflows, how to use features\"),\n**developer** (`docs\u002Fdeveloper`, \"architecture, APIs, extending\"), **admin**\n(`docs\u002Fadmin`, \"install, configure, operate, troubleshoot\"), and **general**\n(`docs\u002Fgeneral`, \"what it is, why it matters, plain language\"). Operators may\ndeclare custom audiences. *(config schema + folder-contract constants filled in\nby #917; per-audience generators by #918.)*\n\nFolder contract: `docs\u002F\u003Caudience>\u002F{index.md,getting-started.md,tutorials\u002F\u003Cfeature>.md,features\u002F\u003Cfeature>.md}`;\ndeveloper adds `architecture\u002F` + `api\u002F`; admin links `docs\u002Frunbooks\u002F`; shared\nassets live under `docs\u002Fassets\u002F{screenshots,diagrams,transcripts}\u002F`.\n\n### Per-audience prose (authoring contract)\n\nEvery feature prose field (`summary`, `spec_sections`, `data_model`,\n`invariants`, `errors`, `config_reference`, `rationale`, `algorithm`,\n`config_profiles`, `settings`, `implementation_snippets`, and `examples`) may be\nEITHER a shared scalar\u002Farray (same text for all audiences) OR a per-audience map\n`{ user, developer, admin, general, default }`. `pickForAudience` resolves the\nmap to `value[audience] ?? value.default ?? null`; shared values pass through\nunchanged. `title`, `slug`, `code_entry_points`, and `depends_on` stay shared.\n\nThe TIER_A authoring pass SHOULD produce genuinely per-audience prose, not the\nsame text four times:\n\n- **user** — task\u002Fworkflow framing: how to run it, what to click, expected results.\n- **developer** — architecture and internals: data structures, APIs, extension points, algorithms, and grounded implementation snippets.\n- **admin** — install\u002Foperate\u002Fconfigure: setup, tuning knobs, config profiles, troubleshooting.\n- **general** — plain-language \"what & why\": the problem it solves and how the core approach works in one breath.\n\n\nFor any feature that wraps or implements processing, computation, algorithms,\nscientific\u002Fmath logic, queue processing, parsing, ranking, regression,\nclassification, transformation, or other non-trivial decision rules, the\nfeature inventory MUST include:\n\n- `algorithm` for the developer and\u002For general audiences, describing the actual\n  approach, key thresholds, regressions\u002Fmath, peak-picking\u002Fintegration rules, or\n  decision strategy. Do not invent prose: ground it in `code_entry_points` and\n  the implementing source.\n- At least one `implementation_snippets[]` entry for the developer audience,\n  with `source_path`, `start_line`, and `end_line` pointing at real source. The\n  generator renders the code by reading those source lines; `verify-examples.mjs`\n  verifies rendered `\u003C!-- implementation-snippet: path:start-end -->` blocks\n  against the same source line range so stale or invented fragments fail.\n- `settings[]` entries for user-visible\u002Fadmin\u002Fdeveloper knobs with `name`,\n  `type`, `default`, `description`, and optional `audiences`.\n- `config_profiles[]` entries for named profiles\u002Fpresets and what each changes,\n  with optional `audiences`.\n\nThe generator runs a **sameness guard**: if a feature's `features\u002F\u003Cslug>.md`\nbody is byte-identical across all audiences (after stripping the audience\ntagline, mermaid theme line, scope block, and gated `## Configuration` \u002F `## Why`\nsections), it adds a `feature '\u003Cslug>': identical prose…` entry to the returned\n`warnings[]` (printed to stderr by the CLI). Pass\n`failOnIdenticalAudiences: true` to turn that warning into a hard failure\n(nothing is written) so a fake audience split cannot silently ship.\n\n## Docs-as-tests\n\nEvery fenced code example in generated docs is executed against the repo, so\ndocumentation cannot silently drift from working code. Verified examples carry a\n`\u003C!-- example-verified: \u003Chead-sha> \u003CISO-date> -->` marker; a re-run on a newer\nHEAD that no longer matches re-verifies or flags the example as stale.\nThe verification engine is `verify-examples.mjs`: it executes every\ntagged example in a fresh worktree off origin\u002Fmain (network-restricted, 60s\nper-example timeout), embeds captured output in an adjacent ` ```output ` block,\nand a failing example fails generation. `check-doc-drift.sh` reports an\n`example_stale` entry when a marker SHA predates the newest commit touching the\nscope's `src_globs` (same self-heal path as `visual_stale`).\n\n## Answerability \u002F domain-term coverage\n\n`--audit` and `--full` run a deterministic, **project-transparent** answerability\naudit (`doc-coverage.mjs`): it mines the project's OWN vocabulary and checks\nwhether the generated docs cover it — no project-specific config required. Two\nterm kinds are mined directly from the repo: **enum** constants\n(`SCREAMING_SNAKE_CASE` identifiers with ≥2 segments — enum values, case objects,\nstate names users ask about, e.g. `INVALID_TARGET`) from source files, and\n**config** keys (dotted lowercase paths of depth ≥2, e.g.\n`wcmc.workflow.targets.invalidate.name`) from `application*.yml`, `.properties`,\nand `.conf` files. Build\u002Fvendor dirs and the generated `docs\u002F\u003Caudience>\u002F` trees\nare excluded so the docs are never mined as their own source, and a built-in\nstoplist drops generic ALLCAPS noise (API, HTTP, JSON, …). A term is *covered*\nwhen any generated page mentions it (case-insensitive whole-token; config keys\nalso match on their last ≥2 segments). `--audit` prints\n`domain coverage: \u003Ccovered>\u002F\u003Ctotal> terms (\u003Cpct>%)` and lists the highest-signal\nmissing terms; `--full` prints a one-line summary. The audit is advisory (never\nthrows, never writes). Knobs live under `documentation.coverage`:\n`enabled` (default true — set `false` to skip), `min_freq`, `min_files`,\n`source_globs`, `config_globs`, `stoplist`, and `max_report` (default 15).\n\n## Authoring & coverage-driven enrichment workflow\n\nThe repeatable loop for ANY project — no project-specific hardcoding anywhere:\n\n1. **`init`** — scaffolds the `documentation:` config, the starter doc scopes,\n   AND a project-grounded feature SKELETON at `.autospec\u002Fdoc-features.json`\n   (`doc-scaffold.mjs`). Candidates are derived deterministically, in priority\n   order: existing topic docs (non-index `*.md` under `docs\u002F\u003Ctopic>\u002F` dirs that\n   are NOT the generated `user|developer|admin|general` trees), else immediate\n   children of source roots (`apps\u002F`, `packages\u002F`, `services\u002F`, `cmd\u002F`,\n   `modules\u002F`, `crates\u002F`, else first-level `src\u002F` dirs), else a single `overview`\n   feature. Slugs are kebab-cased and filesystem-safe; prose fields are left\n   EMPTY for you to author. The scaffolder NEVER overwrites an existing fixture.\n2. **Author each feature's per-audience prose**, grounded in the project's code\n   and existing docs. Each prose field accepts a per-audience map\n   `{user, developer, admin, general, default}` (or a shared scalar): **user** =\n   task \u002F how-to-run, **developer** = internals \u002F APIs, **admin** =\n   install \u002F operate \u002F config, **general** = plain-language \"what & why\". Put\n   LITERAL config keys and enum \u002F constant names into the prose (not paraphrases)\n   so the docs are greppable and the coverage audit can detect them.\n3. **`--full`** — generate every audience's pages from the inventory.\n4. **`--audit`** — read the `domain coverage` worklist. Treat the high-frequency\n   missing `enum` \u002F `config` terms as the gap list; ignore genuine framework \u002F\n   test-fixture noise (override via `coverage.stoplist` \u002F\n   `coverage.config_prefix_stoplist` when the built-in stoplists miss something).\n5. **Enrich** the relevant features' `config_reference` \u002F `data_model` \u002F\n   `invariants` \u002F `algorithm` \u002F `settings` \u002F `config_profiles` \u002F\n   `implementation_snippets` with those literal terms and grounded source line\n   ranges, regenerate, and repeat until coverage plateaus or the remaining terms\n   are framework \u002F fixture noise.\n\nNotes: the scaffolder never clobbers an authored fixture (re-running `init` is\nidempotent); per-audience typed fields may be maps or shared scalars; and\nunderscore-prefixed or otherwise unknown keys are ignored by the generator.\n\n## Style & palette\n\nThe visual palette is **single-sourced** in `doc-style.mjs` — no other\nfile may hardcode the palette hexes, and `validate.sh` enforces this.\nThe palette also themes generated mermaid diagrams. *(palette resolution +\nmermaid theming filled in by #920.)*\n\n## Mermaid diagrams\n\nGenerated documentation MUST include Mermaid diagrams and charts where\nacceptable. During audience authoring, `--full`, and scoped regeneration,\nidentify whether each documented feature exposes a queue, router, state machine,\ndata flow, control flow, algorithm, architecture boundary, timeline, ownership\nrelationship, decision space, roadmap, or metric trend that would be clearer as\na diagram or chart. `init` seeds starter scopes and later diagram expectations;\nit does not need to invent feature diagrams before feature content exists. When\na diagram does apply, emit a Markdown `mermaid` fence in the relevant audience\npage and keep any shared\u002Fgenerated diagram source under `docs\u002Fassets\u002Fdiagrams\u002F`.\nChoose the Mermaid type that matches the content:\n`flowchart` for algorithms and control flow, `sequenceDiagram` for request or\nmessage handoffs, `stateDiagram-v2` for lifecycle\u002Fstate transitions, `classDiagram`\nor `erDiagram` for ownership\u002Fdata relationships, `gantt` or `timeline` for\nroadmaps, `journey` for user workflows, `quadrantChart` for decision spaces,\n`gitGraph` for branch\u002Frelease flow, `mindmap` or `block` for conceptual\nstructure, `architecture` for system boundaries, `sankey` for weighted flows,\n`xychart` or `pie` for metrics, and `kanban` for work queues.\n\nIf no diagram is useful for a generated page, record `Mermaid: not applicable`\nnear the generated section metadata with the reason. The omission must be\nauditable, not silent. Diagram text must be grounded in the same source ranges\nand vocabulary as the prose; do not invent components, queues, routes, or states\njust to satisfy the diagram requirement.\n\n## llms-full.txt\n\n`--full` (and the orchestrator's concatenation step) emit an `llms-full.txt` at\nthe repo root: the whole verified corpus, delimited per audience\u002Ffeature with\n`\u003C!-- llms: audience=\u003Ca> feature=\u003Cf> -->` markers, plus a `.llm-manifest.json`\nindex. *(concatenator + manifest fill filled in by #921.)*\n\n## Pipeline wiring (downstream)\n\nPhase 4 of `\u002Fautospec-run` gains a `regenerate` self-heal action that calls\n`\u002Fautospec-doc` when docs drift is detected; Phase 5.5 gains a\ndocs-completeness dimension; `\u002Fautospec-sweep --full` and `\u002Fautospec-define`'s\nauto-docs step redirect to `\u002Fautospec-doc`. *(wiring filled in by\n#922\u002F#923\u002F#924.)*\n\n## Worktree assert (regenerate commit)\n\nThe regenerate commit step runs inside the implementer's PR-branch worktree\n(already a linked worktree off `origin\u002Fmain`, never the primary checkout).\nBefore committing any regenerated content, the doc orchestrator MUST call\n`worktree-guard.sh assert` and verify it exits 0.\n\n\u003C!-- doc-regen-assert:begin -->\n```bash\n# MANDATORY assert gate before the doc regenerate commit.\n# MUST exit 0 before any commit. A non-zero exit (in_primary_checkout \u002F dirty \u002F\n# stale_base) is NEVER worked around — stop and surface the code_health identifier.\nif ! bash ${AUTOSPEC_SCRIPTS_DIR:-$HOME\u002F.autospec\u002Fscripts}\u002Fworktree-guard.sh assert; then\n  echo \"worktree-guard assert failed before doc regenerate commit; aborting\" >&2\n  exit 1\nfi\n```\n\u003C!-- doc-regen-assert:end -->\n\n## Invocation\n\n```\n\u002Fautospec-doc [--full | --audit | --audience \u003Cname> | init]\n```\n\n> **Model tier:** TIER_A (spec work) for the audience-content authoring pass and the completeness audit; TIER_B (implementation work) for deterministic generation, example verification, and style — resolved at startup per the harness detection above.\n\nThe skill resolves the harness and tiers, runs the startup self-update preflight,\nthen dispatches the parsed subcommand to `doc-orchestrator.mjs`. On a\nnon-`init` subcommand with no `documentation:` config, it surfaces the orchestrator's\nexit-`2` message instructing the operator to run `\u002Fautospec-doc init` first.\n",{"name":5,"description":7},"main","9e7f04357ff46ab731d4f56a4ac5ca5449c13bb0","skills\u002Fautospec-doc",1,"https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec","https:\u002F\u002Fgithub.com\u002Fberlinguyinca","Love to lead, code, cook and contribute to open source and believe that you can learn anything you set your mind too.\r\n","2026-11-11 07:09:35",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add berlinguyinca\u002Fautospec --skill autospec-doc",{"tool":58,"command":59},"bunx","bunx skills add berlinguyinca\u002Fautospec --skill autospec-doc",{"tool":61,"command":62},"pnpm","pnpm dlx skills add berlinguyinca\u002Fautospec --skill autospec-doc","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec\u002Fblob\u002Fmain\u002Fskills\u002Fautospec-doc\u002FSKILL.md",true,[66,72,78,82,86,90,94,98,102,106,110,114,118,122,126,130,134,138,144,148,152,156,160,164],{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"codex\u002Fprompt.md","REFERENCE","参考文档",20903,"https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec\u002Fblob\u002Fmain\u002Fskills\u002Fautospec-doc\u002Fcodex\u002Fprompt.md",{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"install.sh","SCRIPT","脚本",10780,"https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec\u002Fblob\u002Fmain\u002Fskills\u002Fautospec-doc\u002Finstall.sh",{"path":79,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":80,"sourceHtmlUrl":81},"opencode\u002Fagent.md",21285,"https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec\u002Fblob\u002Fmain\u002Fskills\u002Fautospec-doc\u002Fopencode\u002Fagent.md",{"path":83,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":84,"sourceHtmlUrl":85},"README.md",6627,"https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec\u002Fblob\u002Fmain\u002Fskills\u002Fautospec-doc\u002FREADME.md",{"path":87,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":88,"sourceHtmlUrl":89},"scripts\u002Fdoc-config.mjs",26998,"https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec\u002Fblob\u002Fmain\u002Fskills\u002Fautospec-doc\u002Fscripts\u002Fdoc-config.mjs",{"path":91,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":92,"sourceHtmlUrl":93},"scripts\u002Fdoc-coverage.mjs",20890,"https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec\u002Fblob\u002Fmain\u002Fskills\u002Fautospec-doc\u002Fscripts\u002Fdoc-coverage.mjs",{"path":95,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":96,"sourceHtmlUrl":97},"scripts\u002Fdoc-orchestrator-entry.mjs",1114,"https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec\u002Fblob\u002Fmain\u002Fskills\u002Fautospec-doc\u002Fscripts\u002Fdoc-orchestrator-entry.mjs",{"path":99,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":100,"sourceHtmlUrl":101},"scripts\u002Fdoc-orchestrator.mjs",30034,"https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec\u002Fblob\u002Fmain\u002Fskills\u002Fautospec-doc\u002Fscripts\u002Fdoc-orchestrator.mjs",{"path":103,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":104,"sourceHtmlUrl":105},"scripts\u002Fdoc-scaffold.mjs",10333,"https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec\u002Fblob\u002Fmain\u002Fskills\u002Fautospec-doc\u002Fscripts\u002Fdoc-scaffold.mjs",{"path":107,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":108,"sourceHtmlUrl":109},"scripts\u002Fdoc-style.mjs",12814,"https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec\u002Fblob\u002Fmain\u002Fskills\u002Fautospec-doc\u002Fscripts\u002Fdoc-style.mjs",{"path":111,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":112,"sourceHtmlUrl":113},"scripts\u002Fgen-audience-docs.mjs",38488,"https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec\u002Fblob\u002Fmain\u002Fskills\u002Fautospec-doc\u002Fscripts\u002Fgen-audience-docs.mjs",{"path":115,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":116,"sourceHtmlUrl":117},"scripts\u002Fgen-llms-full.mjs",23984,"https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec\u002Fblob\u002Fmain\u002Fskills\u002Fautospec-doc\u002Fscripts\u002Fgen-llms-full.mjs",{"path":119,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":120,"sourceHtmlUrl":121},"scripts\u002Fgen-ui-audit-doc.mjs",3112,"https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec\u002Fblob\u002Fmain\u002Fskills\u002Fautospec-doc\u002Fscripts\u002Fgen-ui-audit-doc.mjs",{"path":123,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":124,"sourceHtmlUrl":125},"scripts\u002Fverify-examples.mjs",21033,"https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec\u002Fblob\u002Fmain\u002Fskills\u002Fautospec-doc\u002Fscripts\u002Fverify-examples.mjs",{"path":127,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":128,"sourceHtmlUrl":129},"tests\u002Fdoc-auto-regenerate.test.mjs",9990,"https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec\u002Fblob\u002Fmain\u002Fskills\u002Fautospec-doc\u002Ftests\u002Fdoc-auto-regenerate.test.mjs",{"path":131,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":132,"sourceHtmlUrl":133},"tests\u002Fdoc-config.test.mjs",22975,"https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec\u002Fblob\u002Fmain\u002Fskills\u002Fautospec-doc\u002Ftests\u002Fdoc-config.test.mjs",{"path":135,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":136,"sourceHtmlUrl":137},"tests\u002Fdoc-coverage.test.mjs",23529,"https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec\u002Fblob\u002Fmain\u002Fskills\u002Fautospec-doc\u002Ftests\u002Fdoc-coverage.test.mjs",{"path":139,"resourceType":140,"resourceTypeDesc":141,"sizeBytes":142,"sourceHtmlUrl":143},"tests\u002Fdoc-orchestrator.bats","OTHER","其他",21292,"https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec\u002Fblob\u002Fmain\u002Fskills\u002Fautospec-doc\u002Ftests\u002Fdoc-orchestrator.bats",{"path":145,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":146,"sourceHtmlUrl":147},"tests\u002Fdoc-scaffold.test.mjs",9721,"https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec\u002Fblob\u002Fmain\u002Fskills\u002Fautospec-doc\u002Ftests\u002Fdoc-scaffold.test.mjs",{"path":149,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":150,"sourceHtmlUrl":151},"tests\u002Fdoc-style.test.mjs",16618,"https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec\u002Fblob\u002Fmain\u002Fskills\u002Fautospec-doc\u002Ftests\u002Fdoc-style.test.mjs",{"path":153,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":154,"sourceHtmlUrl":155},"tests\u002Fgen-audience-docs.test.mjs",50241,"https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec\u002Fblob\u002Fmain\u002Fskills\u002Fautospec-doc\u002Ftests\u002Fgen-audience-docs.test.mjs",{"path":157,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":158,"sourceHtmlUrl":159},"tests\u002Fgen-llms-full.test.mjs",27967,"https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec\u002Fblob\u002Fmain\u002Fskills\u002Fautospec-doc\u002Ftests\u002Fgen-llms-full.test.mjs",{"path":161,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":162,"sourceHtmlUrl":163},"tests\u002Fverify-examples.test.mjs",19556,"https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec\u002Fblob\u002Fmain\u002Fskills\u002Fautospec-doc\u002Ftests\u002Fverify-examples.test.mjs",{"path":165,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":166,"sourceHtmlUrl":167},"uninstall.sh",4030,"https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec\u002Fblob\u002Fmain\u002Fskills\u002Fautospec-doc\u002Funinstall.sh",[169,177,185,193,217,240],{"skillNo":170,"name":171,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":172,"categories":173,"keywords":174,"publishedAt":39},"01M71RJHYMKPTC9AAPXWQ6F4RT","trio-pass-skill","https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Flockstep-trio-pass\u002FSKILL.md",[],[175,176],"trio","trio pass skill",{"skillNo":178,"name":179,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":180,"categories":181,"keywords":182,"publishedAt":39},"01M71RJFBQ1KAF9XM3T3Y4VMSK","duo-pass-skill","https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Flockstep-duo-pass\u002FSKILL.md",[],[183,184],"duo pass skill","duo",{"skillNo":186,"name":187,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":188,"categories":189,"keywords":190,"publishedAt":39},"01M71RJDT1TB3P9TRWR6A534FB","duo-divergence-skill","https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Flockstep-duo-divergence\u002FSKILL.md",[],[191,184,192],"duo divergence skill","divergence",{"skillNo":194,"name":19,"nameZh":6,"description":195,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":196,"categories":197,"keywords":198,"publishedAt":39},"01M71RJAC4NNEQSYBDSY3NZS73","Use when the user wants to ship a feature end-to-end across multiple commits — bootstraps repo if missing, brainstorms a design spec, decomposes into linked GitHub issues, or splits an existing spec into issues, then runs an autonomous implementation loop with auto-merge.","https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec\u002Fblob\u002Fmain\u002Fskills\u002Fautospec\u002FSKILL.md",[],[19,199,200,201,202,203,204,205,35,206,207,208,209,210,211,212,213,214,215,216],"ship a feature","end","issues","design","autonomous","auto","loop","across","design spec","merge","ship","implementation loop","github issues","feature","commits","repo","missing","use",{"skillNo":218,"name":219,"nameZh":6,"description":220,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":221,"categories":222,"keywords":223,"publishedAt":39},"01M71RJ4F9HT8PT26CKNM9XE1M","autospec-upgrade","Use when the user wants to upgrade an Angular, Next.js, or React project to the latest official versions safely — by locking observable behavior before touching versions, upgrading one major at a time with official codemods, and gating completion on mutation score rather than coverage theater.","https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec\u002Fblob\u002Fmain\u002Fskills\u002Fautospec-upgrade\u002FSKILL.md",[],[224,19,225,226,227,228,38,229,230,35,231,232,233,234,216,235,236,237,238,239],"autospec upgrade","upgrade","mutation","coverage","official","time","gating","angular","react","next","at","Next.js","one","with","behavior","latest",{"skillNo":241,"name":242,"nameZh":6,"description":243,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":244,"categories":245,"keywords":246,"publishedAt":39},"01M71RJ28FJ4PM6DXHB7T5CF8H","autospec-ui-audit","Use when a React Router application needs a deterministic whole-site route inventory before UI, UX, navigation, or evidence auditing begins.","https:\u002F\u002Fgithub.com\u002Fberlinguyinca\u002Fautospec\u002Fblob\u002Fmain\u002Fskills\u002Fautospec-ui-audit\u002FSKILL.md",[],[247,19,29,248,249,216,250,251,252,253,254,255,256,257,258,232,259,35,260],"ui audit","autospec ui audit","ui","inventory","evidence","deterministic","route","ux","site","react router","navigation","application","needs","router"]