src/claude/skills/service-add/SKILL.md
Add a backend service (NestJS prototype module) to an existing workstream using a SPEC-PROVIDER starter pack
npx skillsauth add the-agency-ai/the-agency src/claude/skills/service-addInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Add a backend prototype module to an existing workstream. This fills the gap where a workstream exists but needs a new service added (second prototype, reusable service, etc.).
Uses the SPEC-PROVIDER pattern: the SPEC is the skill invocation (name + workstream), the PROVIDER is the starter pack at claude/starter-packs/<type>/.
<name> — kebab-case service name. Followed by:
--workstream <ws> — existing workstream name (agency/workstreams/<ws>/) [required]--type <provider> — starter pack [default: nestjs-prototype]--description <text> — scaffold/registry description--owner <text> — owner attribution in registry--dry-run — preview all writes without making changes/service-add payments --workstream checkout --dry-run
/service-add ledger --workstream payments --description "transaction ledger"
/service-add billing-api --workstream billing --owner "Jordan & Claude"
apps/backend/src/prototype/<name>/ must not exist)install.sh which scaffolds the prototype module filesapps/backend/src/prototype/prototype.registry.ts — adds the import + entrybackend compute service--dry-runapps/backend/src/prototype/<name>/ exists)To add a new starter pack, see claude/starter-packs/README.md.
Run ./agency/tools/service-add $ARGUMENTS and relay the output.
The tool handles validation. If it fails, relay the error to the user verbatim.
On success, the tool prints the "Next steps" block. Relay it to the user and ask if they want to proceed with step 1 (rebuild backend).
List the files the scaffold created/modified so the principal can review before committing. Do NOT auto-commit — commit policy is the principal's decision, consistent with /workstream-create which ends at a report + hand-off.
Changed files for a non-dry-run:
apps/backend/src/prototype/<name>/ (new directory, 4 files)apps/backend/src/prototype/prototype.registry.ts (modified — import + entry)docs/prototype/<name>/build-manifest.json (new file)The principal decides whether to run /iteration-complete immediately, add follow-up changes (ORM schema, DTOs) first, or fold the scaffold into a larger iteration.
business
Sync worktree with master — merge, copy settings, run sandbox-sync, report changes
tools
List all git worktrees with status info (branch, clean/dirty, deps)
tools
Remove a git worktree and optionally delete its branch
development
Create a new git worktree with dedicated branch and bootstrapped dev environment