This guide is for engineers, not AI. Claude should not read this file.
What We Built
Our repo has a layered AI assistance system:
Total context per session: ~150 lines. Claude has ~150 instruction slots — we use them all, nothing wasted.
The Workflow: Prompt to Feature to Ship
1. Write a Clear Brief (5 min)
Bad: “add analytics” Good: “Add a project-level analytics dashboard showing flow run count, success rate, and average duration for the last 7/30/90 days. Project-scoped, CE feature, visible to users with READ_RUN permission.” Include:- What it does (1-2 sentences)
- Who sees it (role/permission)
- CE, EE, or both
- Any constraints (must work embedded, must respect quotas, etc.)
2. Explore (Plan Mode) — 15 min
PressShift+Tab twice to enter Plan Mode, then paste your brief.
Claude will:
- Read relevant feature files in
.agents/features/for the modules you’ll touch - Explore existing patterns in the codebase
- Ask you clarifying questions
- Propose which files to create/modify
3. Implement — 30-90 min
Exit Plan Mode. Claude executes the plan. For full-stack features, tell Claude: “Use/add-feature” — this triggers our custom skill with the full cross-cutting checklist (shared types, entity + migration, service, controller, frontend, tests, verify).
For just a database entity: /add-entity "my_feature"
For just an API endpoint: /add-endpoint "description"
Claude will:
- Create files following our patterns (references real code, not examples)
- Register entities in
getEntities()(rules enforce this) - Add migrations to
getMigrations() - Set up
securityAccesson every endpoint - Filter queries by
projectId/platformId - Create frontend feature folder with API client + hooks
4. Test — 10-30 min
Tell Claude: “Write API tests for this feature and run them.” Claude will:- Create test file at
test/integration/ce/{feature}.test.ts - Use
setupTestEnvironment()+createTestContext(app) - Run
npm run test-api - Fix failures and re-run
5. Verify and Ship — 10 min
Parallel Features (2-3 at Once)
Open multiple terminal tabs, each with its own Claude session:Session Management
Code Review Checklist (for AI-Generated Code)
Full checklist
Full checklist
- Logic matches the plan you approved
- Queries filter by
projectIdorplatformId - New entity registered in
getEntities() - Migration added to
getMigrations() - Every endpoint has
securityAccessconfig - EE code stays in
src/app/ee/(no cross-imports) - Tests exist and pass
- No
as SomeTypecasting - No
anytypes - Zod error messages use i18n keys
-
@activepieces/sharedversion bumped (if changed)
Weekly Rhythm (5 Features/Week Target)
Planning on Day N, implementing on Day N+1 produces better code than doing both in the same session. The overnight break lets you think about edge cases.
Tips from Top Performers
- Front-load the brief. A clear 3-sentence description saves 30 min of Claude wandering. Include: what, who, CE/EE, constraints.
- Let Plan Mode run. Don’t skip it. The 15 minutes of exploration prevents 2 hours of wrong-direction coding.
-
Use the skills.
/add-featureexists for a reason — it encodes every step we’ve learned from past mistakes. -
Read the feature docs yourself. Before starting a feature in a module, spend 2 minutes reading its
.agents/features/*.md. You’ll ask better questions. - Don’t babysit. Start Claude on a task, switch to another tab, come back when it’s done. Check notifications.
- Small PRs > big PRs. Ship each feature as its own PR. Don’t bundle.
- Test commands in the brief. Include “success looks like: this test passes, this API returns 200, this page renders” in your prompt.
-
Trust the rules. Our
.claude/rules/enforce entity registration, edition safety, and data isolation. Claude follows these every time.
Quick Reference
Onboarding (First Week)
1
Day 1
Read this guide. Install Claude Code. Read root
CLAUDE.md (~55 lines).2
Day 2-3
Pick a small feature (5-10 files). Follow the full workflow: brief, Plan Mode, implement, test, PR. Expect 4-6 hours.
3
Day 4
Pick a medium feature (15-25 files). Practice
/clear when stuck. Use the /add-feature skill.4
Day 5
Try 2 parallel sessions on different features. Practice tab-switching.
5
After Week 1
You should be shipping 1 feature/day comfortably.