Service add

From the-agency-ai/the-agency · View interactive version

Service add is an AI agent skill from the GitHub repository the-agency-ai/the-agency. Add a backend service (NestJS prototype module) to an existing workstream using a SPEC-PROVIDER starter pack

How to use this skill

Skill file

Service Add

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>/.

Arguments

Examples

/service-add payments --workstream checkout --dry-run
/service-add ledger --workstream payments --description "transaction ledger"
/service-add billing-api --workstream billing --owner "Jordan & Claude"

What it does

  1. Validates name (kebab-case, not reserved), workstream (exists), starter pack (exists), no collision (apps/backend/src/prototype/<name>/ must not exist)
  2. Invokes the starter pack's install.sh which scaffolds the prototype module files
  3. Updates apps/backend/src/prototype/prototype.registry.ts — adds the import + entry
  4. Reports next steps (rebuild, test, run)

What it does NOT do (v1)

Idempotency

Available starter packs

To add a new starter pack, see claude/starter-packs/README.md.

Instructions

Step 1: Parse and validate

Run ./agency/tools/service-add $ARGUMENTS and relay the output.

The tool handles validation. If it fails, relay the error to the user verbatim.

Step 2: Report

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).

Step 3: Report changed files

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:

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.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.