Feature Development Workflow
Complete feature lifecycle from planning to deployment using Dotpack’s multi-agent workflows.
Overview
The feature development workflow combines planning, research, implementation, testing, and deployment into a cohesive process using the /build command.
Agents Used:
- Planner: Creates implementation plans.
- Scout: Analyzes codebase context.
- Engineer: Implements code changes.
- QA: Writes and runs tests.
- Reviewer: Checks code quality.
Step-by-Step Guide
1. Planning Phase (/plan)
Before writing code, generate a detailed implementation plan.
/plan "add user authentication with OAuth providers"What happens:
- Planner creates a detailed implementation plan with phases and success criteria.
- Scout analyzes existing patterns and dependencies.
- Reviewer (optional) can review the plan for architectural soundness.
Output: A detailed markdown plan (e.g., PLAN.md) outlining the strategy.
2. Implementation Phase (/build)
Execute the plan or start a new feature build directly.
/build "implement user authentication based on the plan"What happens:
- Engineer reads the plan and implements features phase-by-phase.
- Scout provides context on relevant files and existing utilities.
- Skills (Next.js, Tailwind, etc.) are automatically detected to ensure idiomatic code.
Output: Working feature implementation including:
- Backend API endpoints
- Frontend components
- Database schema changes
- Configuration updates
3. Testing Phase (/test)
Verify the new functionality.
/testWhat happens:
- QA agent writes and runs comprehensive tests.
- Verifies unit tests, integration tests, and critical paths.
- Reports failures for the Engineer or Debugger to fix.
4. Code Review Phase (/review)
Ensure quality before committing.
/reviewWhat happens:
- Reviewer agent performs security, performance, and style analysis.
- Scans for anti-patterns and potential bugs.
- Generates a report with actionable recommendations.
5. Commit (/commit)
Save your changes with a generated message.
/commitWhat happens:
- Generates a professional commit message based on the changes.
- Stages and commits the files.
Real Example
Let’s walk through adding authentication to a Next.js app.
Step 1: Plan
/plan "add user authentication with Better Auth including OAuth providers"Generated Plan:
- Phase 1: Database setup (users table, sessions)
- Phase 2: Backend API (auth endpoints, middleware)
- Phase 3: Frontend components (login, signup, protected routes)
- Phase 4: OAuth integration (Google, GitHub)
Step 2: Implement
/buildImplementation Details:
- Detects Next.js project → activates Next.js skill.
- Creates API routes:
/api/auth/signin,/api/auth/signout. - Implements middleware for protected routes.
- Builds login/signup forms with proper validation.
Step 3: Test
/testTest Coverage:
- Unit tests for auth functions.
- Integration tests for API endpoints.
- E2E tests for login/logout flow.
Step 4: Review & Commit
/review
/commitBest Practices
Before Starting
- Clear Requirements: Have specific acceptance criteria in your prompt.
- Context: Use
/scoutif you are unsure about existing patterns.
During Implementation
- Iterate: Use
/fixif a specific part of the build fails or needs adjustment. - Validate: Run
/testfrequently.
Finalizing
- Security: Always run
/reviewfor sensitive features like auth. - Docs: Use
/docsto update project documentation with the new feature.