use-a-novel-cli
Skill2 starsChanged 4 days agoMITView on GitHub
Operate a-novel for tests, builds, releases, services, workspace management, and secrets. Always load alongside skills that test, build, release, or start/stop services.
In this repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .agents/skills/AGENTS.mdAGENTS.md
- attribute-ai-commitsSkill
- check-accessSkill
- choose-dependencySkill
- coordinate-landingSkill
- develop-featureSkill
- document-codeSkill
- git-conventionsSkill
- implement-featureSkill
- manage-versionsSkill
- monitor-ciSkill
- open-pull-requestSkill
- plan-client-server-boundarySkill
- plan-featureSkill
- plan-ui-designSkill
- prefer-small-solutionsSkill
- prepare-releaseSkill
- register-ai-agentSkill
- resolve-pr-feedbackSkill
- triage-issuesSkill
- use-discordSkill
- write-bash-scriptsSkill
- write-design-systemSkill
- write-dockerfilesSkill
- write-frontendSkill
- write-frontend-testsSkill
- write-github-actionsSkill
- write-go-kitSkill
- write-go-serviceSkill
- write-goSkill
- write-go-testsSkill
- write-infraSkill
- write-js-packageSkill
- write-openapiSkill
- write-platformSkill
- write-project-docsSkill
- write-protoSkill
- write-sqlSkill
- write-svelteSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 45
Read this entry point once, then load only the references for the operations you will perform.
- Very specific: line 57
Use the narrowest target that covers the changed behavior.
- Very specific: line 167
If a-novel run <verb> reports "daemon not reachable", run a-novel core status to confirm.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Use the a-novel CLI
The a-novel CLI is the single user-facing entrypoint for local-dev workflows. It replaces
the deleted Makefiles and per-repo bash scripts (go test wrappers, podman build, podman
compose, publish.sh) with one coherent command surface:
a-novel
├── test standalone — runs Go + pnpm tests in the working tree
├── build standalone — builds Go binaries, pnpm bundles, Podman images
├── publish standalone — release doc helpers (releases themselves run in CI)
├── core daemon control (start, setup, kill, status, prepare-reinstall)
├── run daemon-backed verbs (services + targets)
├── secrets standalone — local encrypted secrets, injected into child envs
├── install standalone — rebuild + reinstall the CLI, state-preserving
├── claude standalone — launch Claude Code rooted at the stack
└── version standalone — print the CLI versionsecrets, install, claude and version complete the surface; their details live in
installation and secrets. a-novel <verb> --help is the
exhaustive reference. In the stack repo, cli/README.md is the command reference, the developer
guide's runbooks cover the everyday workflows, and
CONTRIBUTING.md explains how the CLI works.
Always prefer a-novel <verb> over the equivalent raw command when one exists.
Makefiles are gone from every repo — make is never the answer. What the CLI doesn't
cover lives in pnpm scripts (lint/format/generate, see "When NOT to use the CLI") so
each repo's surface is exactly: a-novel <verb> + pnpm <script> + raw go/git.
Load this skill alongside any skill that runs tests, builds artifacts, releases, or starts local services.
Choose the command reference
Read this entry point once, then load only the references for the operations you will perform. The selected reference is required before executing its commands.
- Tests, builds, or release doc stamping: testing and building.
- Repository settings, rulesets, or required checks: no command manages them. a-novel/infra's GitHub
root does, as
write-infradescribes. Agents use the dry-run path; repository writes are core's. - Starting, stopping, inspecting, or clearing a service: service operations.
- Daemon, stacks, workspace sync, or bot comments: workspace operations.
- Installation, launch, version checks, or secrets: installation and secrets.
- Adding or reviewing package scripts: script ownership and naming.
Use the narrowest target that covers the changed behavior. Keep lint/format/generate in the repository's pnpm scripts; CI uses its own actions. None of these commands changes authorization for releases, destructive cleanup, comments, or governance writes.
Quick mapping: raw / legacy → a-novel
| Raw / legacy (deleted) | a-novel equivalent |
make test-unit (gone) | a-novel test --type=go -y |
make test-pkg (gone) | a-novel test --type=go -y (CLI auto-discovers pkg/go targets) |
make test-pkg-js (gone) | a-novel test --type=pnpm -y |
make test (gone) | a-novel test -y |
go test ./... | a-novel test --type=go --dir=. |
make build (gone) | a-novel build -y |
podman build -f Dockerfile -t name:local . | a-novel build --type=podman |
pnpm build | a-novel build --type=pnpm |
go run ./cmd/<target> (service local-dev) | a-novel run start <service>/<target> |
podman compose --profile X up -d | a-novel run start <service>/<target> --mode=container |
podman compose up <infra> | a-novel run service infra start <service> |
podman compose down | a-novel run service infra kill <service> |
podman logs -f <container> | a-novel run logs <service>/<target> --follow |
podman volume export + manual tar | a-novel run volume backup <service> |
scripts/publish.sh patch / pnpm publish:* | release workflow in CI (release-core action) — no local verb |
scripts/prepublish-version.sh <prefix> <file> | a-novel publish stamp <prefix> <file> |
make lint-go (gone) | pnpm lint:go (not a CLI verb — see "When NOT to use") |
make format (gone) | pnpm format:go / pnpm format / pnpm format:proto |
make generate (gone) | pnpm generate:go (plus pnpm generate:mjml where present) |
a-novel <verb> --help (or a-novel help <verb>) prints the full flag list of any
subcommand. Every subcommand carries exhaustive Short/Long/Example help text.
Driving the CLI non-interactively (agents, CI, scripts)
The CLI is interactive only where a human benefits — the test / build pickers
and the run ui TUI. Everything else runs to completion and returns. Agents, CI
jobs and scripts drive it like this:
test/build: always pass-y. It skips the picker and runs every discovered target, sequentially unless-jsets a limit (CI-safe). Both fall back to that path with no TTY, but pass-yexplicitly — it states intent and survives a stray PTY. Pair with--dry-runto inspect the target list first.Batch commands print one line per job.
test,buildandcore syncshare a parallel runner. Without a TTY, each job prints a line as it starts and as it finishes, never interleaved, and a report with the full output of every failure closes the run.a-novel test -y --type=go # all Go tests, no prompt a-novel build -y --type=podman # all Podman images, no promptrunverbs are already non-interactive —start,kill,restart,logs,ps,service,volume,topology,env,watch,execanddebugall complete and return an exit code. Onlyrun ui(the TUI) is interactive: never launch it from an agent or CI — use the discrete verbs.Observe state with
run watch, do not pollps. It subscribes to the daemon's event stream and emits one newline-delimited JSON object per state change (phase transition, exit, health flip), so you react the moment a target turns healthy. Narrow it with--service/--target.a-novel run watch --service=service-json-keys # NDJSON, one event per lineAsk for machine-readable output where it exists.
run ps --jsonemits one JSON object per service (with canonical fully-qualified target IDs).run env --format=json(ordotenv) replaces the default eval-ableshellform.a-novel run ps --json a-novel run env <service> --format=json
When NOT to use the CLI
Some tasks fall outside the CLI and use pnpm scripts or raw commands:
- Lint / format / generate: pnpm scripts, uniform across repos —
pnpm lint:go/pnpm lint:proto/pnpm lint(node) andpnpm format:go/pnpm format:proto/pnpm format(prettier), pluspnpm generate:go(mocks/proto stubs). Each is a one-line wrapper over the raw form (go tool -modfile=golangci-lint.mod golangci-lint run ./...,go tool -modfile=buf.mod buf format -w,go generate ./...), so the raw forms stay valid too. Every Go tool is pinned in its own<tool>.mod, so each raw invocation names the modfile it comes from. - Direct database access:
a-novel run exec <service>/<target> -- <cmd>. For a running container-mode target, the command runs inside its container (podman exec); for a go-exec or stopped target it runs on the host with the target's resolved env, the*_PORTvalues and both Postgres contracts included (see service operations).psqlreads neither contract, so pass it the DSN:a-novel run exec <service>/migrations -- sh -c 'psql "$POSTGRES_DSN"'. Rawpodman exec <container-name> psql ...still works against a running container. - CI workflows: CI never shells into the CLI — the
kit/workflowscomposite actions invokegotestsum/golangci-lint/pnpm run <script>directly. Skills documenting CI behavior reference those actions, not local commands. - Git operations: standard
git/gh— the operator's user token for PR ops,a-novel core bot-commentfor comments.
Failure mode: daemon down
If a-novel run <verb> reports "daemon not reachable", run a-novel core status
to confirm. If down, a-novel core start brings it up (silent if already running).
First-time setup: a-novel core setup.
The daemon refuses to start if the default stack isn't set up — surface the error verbatim to the user.
Failure mode: service or target not found
The daemon discovers each stack once, at startup, and leaves out a service or
target that breaks the compose contract. A command naming it then answers "not
found" or "unknown target". a-novel core status prints each stack's discovery
problems under its row, marked !. Fix what the problem names, then run
a-novel core restart --preserve-targets to discover again.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

