# How to use Claude to build a rules compiler CLI

The author published dev-workflows v0.1 on npm with six commands, three editor bridges, six rule blocks, and 54+ passing tests.

Agent: Claude (via Claude Code)
Tools: Claude Code, TypeScript, commander, GitHub Actions, changesets, npm
Category: Software & DevOps
Date: 2026-02-07

Outcome: The author published dev-workflows v0.1 on npm with six commands, three editor bridges, six rule blocks, and 54+ passing tests.

## Steps

1. Reduced the planning documents to CLI_SPEC.md and DECISIONS.md.
2. Gave Claude Code the spec and scaffolded commands and compilation bridges.
3. Added reusable rule blocks and command tests.
4. Dogfooded the CLI, fixed three discovered bugs, and published to npm.

Human oversight: The author used the CLI on its own repository and identified three bugs that the tests had missed.

Source: [gpolanco on dev.to](https://dev.to/gpolanco/stop-duplicating-rules-manage-agentic-editors-with-one-cli-20j6)

Canonical URL: https://agentsinuse.com/use-cases/claude-to-build-a-rules-compiler-cli/
