<!-- cloud_safe: degrade -->
script-writing
When to use
- Creating a new TypeScript script in
src/scripts/{name}.ts(linters, checks, generators, measure tools — run via./scripts-run src/scripts/{name}) - Editing an existing script that prints progress or success lines
- Wiring a script into
Taskfile.ymlortaskfiles/*.yml - Reviewing a PR that adds scripts and asking "why does this still print on minimal?"
Do NOT use this skill when:
- The content is a one-off / archival under
scripts/ai_council/one_off_archive/— those carry an_one_off_prefix and are exempt from the verbosity convention - The content is a shell entrypoint with secret prompts (install-keys, release confirms) → see § 3 Iron-Law carve-outs
- The content is a
.mjs/ Node script underscripts/cost/— different runtime; convention covered inagents/settings/contexts/cost-tracking.md
Script vs other writers — critical test
| Intent | Artifact |
|---|---|
| "Maintenance script the agent or CI runs" | This skill |
| "User types /foo to invoke" | command-writing |
| "Constraint the agent must always honor" | rule-writing |
| "Reference knowledge agents cite" | guideline-writing |
Scripts orchestrate file checks, generators, and validators. They are
neither user-invoked nor agent-routed — task and CI call them.
Procedure
0. Run the Drafting Protocol
Creating or materially rewriting a script that joins the linter / check
family must go through Understand → Research → Draft from the