What problem does it solve?
Scripts shipped with skills or stored in workspaces are hard for discovery tools like list_scripts to find and describe unless they carry structured metadata. This Skill scaffolds, writes, and validates SCRIPT_JDOC comment blocks so every TypeScript script is reliably discoverable.
Core Features & Use Cases
- Metadata Scaffolding: Preview or write generated SCRIPT_JDOC JSON blocks inferred from file paths, names, and content heuristics.
- Role and Kind Classification: Distinguish runnable entrypoints from helper modules and classify scripts as read-only, mutating, or mixed with weight hints.
- Validation Mode: Run a check pass that fails when any target script is missing a parseable SCRIPT_JDOC block.
- Use Case: After adding a new workspace skill script under .pi/skills, run the annotator in write mode, hand-tune the summary and aliases, then run check mode to confirm the script is discoverable by list_scripts.
Quick Start
Ask the agent to annotate the scripts in a skill directory with SCRIPT_JDOC metadata and then validate that every script passes the discovery check.