Real-World Use Case: Full-Stack Feature Development
This guide demonstrates a complete end-to-end workflow for building a complex full-stack feature in PostQode, taking advantage of deep planning, custom skills, mode switching, and git diff reviews.
Scenario Overview
Goal: Add a multi-tenant User Invitation & Role Management feature to a React + Node.js/TypeScript application.
Workflow Step-by-Step
┌────────────────┐ ┌────────────────┐ ┌────────────────┐ ┌────────────────┐
│ 1. Init & Plan │ ───► │ 2. Implementation│───►│ 3. Auto Testing│ ───► │4. Review & PR │
│ (/deep-planning)│ │ (Agent Mode) │ │ (Web/API Agent)│ │ (/explain-changes)│
└────────────────┘ └────────────────┘ └────────────────┘ └────────────────┘
Phase 1: Planning with /deep-planning
- Open the PostQode chat panel.
- Run the
/deep-planningslash command:/deep-planning Design a User Invitation feature allowing admins to send email invites with role selection (Admin, Member, Billing Manager). - PostQode silently inspects existing database schemas, API routes, and React components.
- It creates an
implementation_plan.mdartifact detailing:- Schema updates (Prisma migration / SQL)
- Backend routes (
/api/v1/invitations) - Frontend UI components (
InviteModal.tsx,MembersTable.tsx) - Security checks (token expiration, RBAC middleware)
Phase 2: Execution in Agent Mode
- Switch to Agent Mode (or click Approve Plan).
- Instruct PostQode:
Implement Phase 1 of the implementation plan: create database migration and backend API endpoints with Zod validation. - PostQode uses
write_to_fileandexecute_commandto apply migrations and create routes. - Mention relevant files for UI implementation:
@src/components/Members.tsx Create the InviteModal component matching our Tailwind UI design tokens.
Phase 3: Automated Testing & Verification
- Use API Agent or Web Agent to verify the feature:
Test the POST /api/v1/invitations endpoint with an admin bearer token and verify 200 OK response. - PostQode executes the request, verifies response schema, and logs output.
Phase 4: Review Changes with /explain-changes
- Before committing to git, run:
/explain-changes - PostQode compares current working directory changes against
mainand provides an inline breakdown of changed files, security checks, and commit recommendations. - Generate a git commit message:
feat(auth): add user invitation API endpoints and frontend modal UI