Skip to content
Back to skills

Code Write

ASecurity

Use when you must generate predictable code that follows the patterns of an existing file (tests, config, type stubs, boilerplate). A cheap model writes it from your spec plus a reference file and saves it straight to disk, so you never read the reference or the output.

  • 24 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 19, 2026
ai-agentsbash

Security analysis

A100/100

Scanned September 19, 2026

npx -y skills add ToolMonsters/claude-code-routing --skill code-write --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Write?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Code Write
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/toolmonsters-code-write/badge)](https://www.skillsdirectory.com/skills/toolmonsters-code-write)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: code-write
description: Use when you must generate predictable code that follows the patterns of an existing file (tests, config, type stubs, boilerplate). A cheap model writes it from your spec plus a reference file and saves it straight to disk, so you never read the reference or the output.
---

# code-write

Run it from Bash. A spec, one or more reference files, and a target path:

```bash
~/.claude/bin/code-write --spec "Write pytest tests for UserService covering create, update and delete" --reference tests/test_order_service.py --target tests/test_user_service.py
```

Rules:
- The reference is required. Without a file to match, the output fits nothing in the project.
- Put every constraint in the spec: names, cases to cover, imports to reuse.
- Without `--target` the code is printed to stdout instead of written.
- Verify the result with a compiler, linter or test run, not by reading the whole file back.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.