Skip to content

Claude Code Integration

Fp Switchboard includes built-in Claude Code commands for common development workflows. These are available when working in the repository with Claude Code.

/verify-tool — Verify Tool Implementation

Section titled “/verify-tool — Verify Tool Implementation”

Checks that a newly implemented or modified tool works correctly.

What it does:

  1. Runs npm run build to verify compilation
  2. Checks tool registration in the service’s tool list
  3. Verifies tool schema (required fields, types, descriptions)
  4. Checks tool annotations (readOnlyHint, destructiveHint, idempotentHint)
  5. Reports findings with suggested fixes

Usage:

/verify-tool hubspot_create_contact

Streamlined workflow to commit changes, push to remote, and create a pull request.

What it does:

  1. Verifies build passes
  2. Reviews changes and generates a commit message
  3. Stages and commits
  4. Pushes to remote
  5. Creates a PR with summary and test plan

Usage:

/commit-push-pr

The repository includes skill definitions that Claude Code activates automatically based on context:

SkillTriggers When
fp-switchboard-toolsAdding or modifying tools, implementing handlers
fp-switchboard-onboardingAdding new services, OAuth setup
fp-switchboard-oauthToken errors, OAuth debugging, auth issues
cloudflare-workersD1 queries, Hono patterns, Workers deployment

These provide specialized context and guidance without needing to be invoked manually.

The Switchboard Prompt Generator can output prompts in Skill Mode for Claude Code:

  • Minimal system prompt (~1K tokens)
  • Full service guidelines loaded on-demand via the skill system
  • Best for Claude Code users who want fast startup without large prompts

Key directories for Switchboard development:

DirectoryContents
src/src/tools/Service tool implementations (one file per service)
src/src/services/Service registry, permissions, tool-registry
src/src/auth/Middleware, encryption, database, user management
src/src/ui/Templates, styles, setup guides, prompt generator
src/src/routes/Dashboard, OAuth, admin route handlers
src/test/590+ Vitest tests
docs/Architecture, planning, and reference documentation
  1. Make changes in the relevant src/src/ files
  2. Run /verify-tool if you modified a tool
  3. Run targeted tests: cd src && npx vitest run test/unit/<file>.spec.ts
  4. Build: cd src && npm run build
  5. Deploy: cd src && npx wrangler deploy
  6. Use /commit-push-pr to commit and create a PR