skills/.experimental/fusion-package-scribe/SKILL.md
Systematically improves TSDoc and README documentation across packages in a TypeScript monorepo. Discovers public API surfaces, generates or improves TSDoc on all exports, rewrites READMEs to a consistent retrieval-friendly structure, and commits each package independently. USE FOR: monorepo-wide documentation passes, single-package doc improvements, TSDoc generation on public exports, README standardization, review council quality checks. DO NOT USE FOR: runtime code changes, security scanning, API reference site generation, non-TypeScript languages.
npx skillsauth add equinor/fusion-skills fusion-package-scribeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill is experimental and not yet stable. Behavior, structure, and outputs may change between versions.
Use this skill when you need to systematically add or improve documentation across TypeScript packages — whether a full monorepo sweep or a single package.
Typical triggers:
packages/utils/observable"Implicit triggers:
Do not use this skill for:
If required inputs are missing or ambiguous, ask before proceeding.
single (one package) or sweep (multiple packages).github/instructions/)docs(<package>): )single (if only one package path provided)docs(<package-name>):references/readme-template.mdThis skill discovers and follows the target repository's own standards:
.github/instructions/, CONTRIBUTING.md, contribute/tsconfig.json, biome.json, .editorconfigfusion-code-conventions for TSDoc rules, naming conventions, and intent quality (when installed)references/tsdoc-checklist.md and references/readme-template.mdRepository-level standards always win. When no repo standards exist, the built-in defaults apply.
| Agent | Role | Activated for |
|---|---|---|
| agents/orchestrator.agent.md | Batch coordinator | Sweep mode — plans batches, manages token budgets, tracks progress |
| agents/documenter.agent.md | Per-package writer | Every package — scans API surface, generates TSDoc, rewrites README |
| agents/reviewer.agent.md | Review council | After each package — verifies intent, comprehension, retrieval fitness |
In single-agent runtimes, all three roles run inline sequentially.
Before generating any documentation:
.github/instructions/CONTRIBUTING.md, contribute/tsconfig.json to understand module structure, path aliases, and strict mode settingsbiome.json or equivalent linter config for style expectationsfusion-code-conventions is available — if so, defer to its TSDoc rules from references/typescript.conventions.mdreferences/tsdoc-checklist.md as the quality baselinepackage.json or workspace config (pnpm-workspace.yaml, lerna.json, turbo.json) to find all packages.tmp/scribe-discovery-<context>.mdActivate agents/orchestrator.agent.md (or run inline):
.tmp/scribe-plan-<context>.mdActivate agents/documenter.agent.md (or run inline) for each package:
index.ts, index.tsx, or main field in package.json)For each public export:
references/tsdoc-checklist.md):
@param for every parameter with meaningful descriptions@returns for every non-void function@template for every generic type parameter@throws for meaningful error paths@example for user-facing and non-trivial public APIs@deprecated with replacement guidance when applicable/** Gets the value. */ getValue())references/readme-template.md:
Activate agents/reviewer.agent.md (or run inline) after each package:
The reviewer produces a pass/fail per criterion. Failures loop back to Step 4 for the specific package.
After the review council passes for a package:
.ts/.tsx files for TSDoc changes, README.md)docs(<package-name>): improve TSDoc and README documentation
After all packages are processed:
.tmp/scribe-report-<context>.md:
.tmp/This skill is mutation-capable. Repository-local workflow instructions take precedence over inline guidance when they conflict.
.gitignore and do not commit temporary files from .tmp/tools
Use Fusion DevTools CLI (fdev) for API testing, token acquisition, service discovery, and person lookup during development. USE FOR: calling Fusion REST APIs, getting access tokens as JSON, discovering services and environments, resolving persons, PIM role activation. DO NOT USE FOR: modifying backend service code, deploying services, infrastructure changes, CI/CD pipeline configuration, or Service Bus operations.
testing
Main Copilot skill gate for the Fusion ecosystem — cross-domain router. USE FOR: routing between different Fusion domains (skills, issues, PRs, reviews) when the right domain skill is unclear; getting install guidance for missing skills. DO NOT USE FOR: skill lifecycle operations (use fusion-skills directly), tasks where a specific Fusion skill is already active.
tools
Entrypoint for all Fusion skill lifecycle operations. USE FOR: finding, installing, updating, syncing, or greenkeeping skills; setting up skill automation; creating or authoring a new skill; reporting a bug with a skill. DO NOT USE FOR: resolving GitHub issues, reviewing PRs, planning task breakdowns, or authoring GitHub issues — those are handled by other Fusion skills.
tools
Creates or modernizes repository skills with clear activation cues, purposeful support files, and practical review loops. USE FOR: creating a new skill, tightening an existing skill, improving discovery wording, and structuring references/assets/optional helper agents when they genuinely add value. DO NOT USE FOR: product-code changes, routine copy edits outside skills/, or documentation that should not become an installable skill.