@apogeelabs/the-agency
v0.4.0
Published
Centralized Claude Code agents, commands, and workflows
Keywords
Readme
@apogeelabs/the-agency
Centralized Claude Code agents, commands, and workflows. Install once, sync to any project.
Install
npm install -D @apogeelabs/the-agencyUsage
# Sync all agents, commands, and AI context files to your project
npx the-agency sync
# Choose which files to sync
npx the-agency sync --pick
# Install optional review check plugins
npx the-agency install-review-pluginsFiles are copied to .claude/agents/, .claude/commands/, and .ai/ in the target project. If destination files already exist, you'll be prompted before overwriting.
What's Included
Agents (.claude/agents/)
Autonomous subagents that run in isolated context windows and communicate through files.
| Agent | Purpose | | ----------------- | ---------------------------------------------------------- | | architect | Designs technical approach, produces build plans | | dev | Implements features from build plans, task by task | | explorer | Maps and documents unfamiliar codebases (read-only) | | pm | Produces product briefs from requirements | | reviewer | Adversarial code review with pass/fail verdict (read-only) | | test-hardener | Writes edge case tests, tries to break things |
Commands (.claude/commands/)
Slash commands invoked in Claude Code sessions.
| Command | Purpose |
| ----------------- | -------------------------------------------------- |
| /architect | Interactive architecture design session |
| /build | Orchestrates the full dev → review → test pipeline |
| /pm | Interactive product requirements discovery |
| /prep-pr | Pre-submission PR prep and draft creation |
| /review-pr | Structured PR review briefing |
| /weekly-summary | Weekly synthesis of merged PRs |
AI Context (.ai/)
Reference material automatically available to Claude Code.
| File | Purpose | | ------------------------- | ----------------------------------------- | | UnitTestGeneration.md | TypeScript/Jest unit testing style guide | | UnitTestExamples.md | Working examples for the test style guide | | workflow.md | Multi-agent development workflow guide |
The Workflow
/pm → docs/briefs/[feature].md → /architect → docs/build-plans/[feature].md → /build/pmand/architectare interactive — back-and-forth conversations that produce documents/buildis autonomous — orchestrates dev, review, and test agents with automatic fix loops- Agents communicate only through the filesystem. No shared context. This is intentional.
See .ai/workflow.md after syncing for the full workflow guide.
Review Checks (.ai/review-checks/)
The /review-pr command supports pluggable tribal knowledge checks. Place markdown files in .ai/review-checks/ in your repo, and the review command discovers and evaluates them automatically.
Check File Format
Each file uses YAML frontmatter with two fields:
---
name: Display Name for This Check Group
applies_when: Natural language description of when these checks apply
---
- [ ] **Check name**: What to look for.name— heading used in the review outputapplies_when— evaluated by the LLM against the PR's changed file list. Use plain language (e.g., "Changed files include.tsxfiles" or "Always").
Pre-packaged Plugins
Install review plugins interactively:
npx the-agency install-review-pluginsThis presents a multi-select of available plugins and copies your selections to .ai/review-checks/.
| Plugin | Targets | Checks |
| --------------------- | --------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| react-frontend.md | .tsx, .jsx, .css, .scss, .styled.ts files | Hard-coded colors, missing data-cy attributes, accessibility gaps |
| node-backend.md | .ts files in backend/service directories | console.log usage, boundary violations, raw SQL, error swallowing |
| general.md | All PRs (unconditional) | New env vars, dead code, dependency changes, type safety (any, as, @ts-ignore) |
| unit-test.md | .test.ts, .spec.ts files | Style guide adherence, barrel export testing, test description accuracy, missing export default {} |
Project-Specific Configuration
The sync does not copy settings.local.json or settings.json — those are project-specific. See the Claude Code docs for configuring permissions per-project.
Requirements
- Node.js >= 22
- Claude Code
- GitHub CLI (
gh) — required for/review-prand PR-related operations
Development
pnpm install
pnpm build # Compile TypeScript → dist/
pnpm test # Run test suiteVersioning is managed with changesets. To propose a version bump:
pnpm changeset