Code Writer

Delegate boilerplate code generation to a cheap worker model. Use for tests, config, docstrings, type stubs, or any generation where >80% is predictable from reference files.

SalehB1 651545b 776 B Updated

File contents

# Generate and write directly to target file
"${CLAUDE_PLUGIN_ROOT:-$PLUGIN_ROOT}/scripts/code-write" --spec "<what to generate>" --reference <reference-file> --target <output-path>

# Output to stdout instead (omit --target)
"${CLAUDE_PLUGIN_ROOT:-$PLUGIN_ROOT}/scripts/code-write" --spec "<what to generate>" --reference <reference-file>

Each call is independent. To build on what was just generated, pass that file as the --reference for the next call.

Review the output and make surgical edits for the ~5-20% that needs your own judgment.

SalehB1/shunt-anywhere/tree/main/plugins/shunt/skills/code-writer commit 651545bbe5

Frequently asked questions

npx skillmds@latest add salehb1/code-writer-2