{"slug":"backlog-to-production","title":"Backlog to Production","headline":"Backlog to Production","subtitle":"AI-Native Development Workflow","description":"Complete the value stream: Transform backlog items into deployed code using AI. Generate specs, develop with AI pair programming, create tests, review with AI, deploy progressively with feature flags, and measure impact.","area":"engineering","area_label":"Engineering","category":"AI-Native Development","difficulty":"Intermediate","duration":"2-3 days per feature","tools_count":10,"url":"https://saaslete.com/flows/backlog-to-production","path":"/flows/backlog-to-production","api_url":"/api/v1/flows/backlog-to-production","last_updated":"2025-12-30","phase_count":6,"step_count":21,"first_steps":["Start with Spec","Generate Scaffolding","Implement Logic"],"phases":[{"number":1,"id":"spec-generation","title":"Spec Generation","summary":"Convert backlog stories into detailed technical specifications using AI","step_count":0},{"number":2,"id":"ai-assisted-development","title":"AI-Assisted Development","summary":"Write code 3-5x faster using AI pair programming and code generation","step_count":5},{"number":3,"id":"ai-generated-tests","title":"AI-Generated Tests","summary":"Achieve better test coverage faster with AI-generated unit, integration, and E2E tests","step_count":5},{"number":4,"id":"code-review-ci-cd","title":"AI Code Review & CI/CD","summary":"Get automated, consistent code reviews and quality gates before merge","step_count":3},{"number":5,"id":"progressive-deployment","title":"Progressive Deployment","summary":"Roll out features gradually with feature flags and monitoring","step_count":4},{"number":6,"id":"close-the-loop","title":"Close the Loop","summary":"Feed production data back to analytics to complete the value stream","step_count":4}],"tool_ids":["claude","chatgpt","cursor","github-copilot","claude-code","codium-ai","coderabbit","cody","amplitude","mixpanel","sentry","datadog"],"tools":[{"id":"claude","name":"Claude","url":"/tools/ai-assistants/claude","website":"https://claude.ai","pricing":"Free tier available, Claude Pro at $20/month, Team at $30/user/month","category_slug":"ai-assistants"},{"id":"chatgpt","name":"ChatGPT","url":"/tools/ai-assistants/chatgpt","website":"https://chat.openai.com","pricing":"Free tier with GPT-3.5, Plus at $20/month, Team at $25/user/month, Enterprise custom","category_slug":"ai-assistants"},{"id":"cursor","name":"Cursor","url":"/tools/ai-development/cursor","website":"https://cursor.sh","pricing":"Free plan available; individual plans from $8/month (Plus) to $200/month (Ultra); Teams from $30/user/month","category_slug":"ai-development"},{"id":"github-copilot","name":"GitHub Copilot","url":"/tools/ai-development/github-copilot","website":"https://github.com/features/copilot","pricing":"Free plan available; Pro $10/month, Pro+ $39/month, Max $100/month; Business and Enterprise through sales","category_slug":"ai-development"},{"id":"claude-code","name":"Claude Code","url":"/tools/ai-development/claude-code","website":"https://github.com/anthropics/claude-code","pricing":"Included with Claude Pro ($20/month, or $17/month billed annually), Max, Team and Enterprise plans; pay-as-you-go API credits also supported","category_slug":"ai-development"},{"id":"codium-ai","name":"Codium AI","url":"/tools/ai-development/codium-ai","website":"https://www.codium.ai","pricing":"14-day free trial, no permanent free tier; Pro Team billed on pooled credits ($0.012 each); custom Enterprise for 30+ users","category_slug":"ai-development"},{"id":"coderabbit","name":"CodeRabbit","url":"/tools/ai-development/coderabbit","website":"https://coderabbit.ai","pricing":"Free for open-source, from $12/user/month","category_slug":"ai-development"},{"id":"cody","name":"Cody","url":"/tools/ai-development/cody","website":"https://sourcegraph.com/cody","pricing":"Free plan available, Pro from $9/month","category_slug":"ai-development"},{"id":"amplitude","name":"Amplitude","url":"/tools/product-analytics/amplitude","website":"https://amplitude.com","pricing":"Free plan available, paid from $49/month","category_slug":"product-analytics"},{"id":"mixpanel","name":"Mixpanel","url":"/tools/product-analytics/mixpanel","website":"https://mixpanel.com","pricing":"Free plan available, paid from $28/month","category_slug":"product-analytics"},{"id":"sentry","name":"Sentry","url":"/tools/observability/sentry","website":"https://sentry.io","pricing":"Free Developer tier; usage-based Team and Business plans; open-source self-hosted option","category_slug":"observability"},{"id":"datadog","name":"Datadog","url":"/tools/observability/datadog","website":"https://datadoghq.com","pricing":"Usage-based per-host, per-feature; free tier with limited hosts and retention","category_slug":"observability"}],"content":{"slug":"backlog-to-production","title":"Backlog to Production","subtitle":"AI-Native Development Workflow","description":"Complete the value stream: Transform backlog items into deployed code using AI. Generate specs, develop with AI pair programming, create tests, review with AI, deploy progressively with feature flags, and measure impact.","summary":"Complete the value stream: Transform backlog items into deployed, monitored production code using AI assistance. From spec generation to progressive deployment, learn how to ship faster while maintaining quality.","area":"engineering","category":"AI-Native Development","difficulty":"Intermediate","duration":"2-3 days per feature","toolsCount":10,"accent":"green","gradient":["green","emerald","teal"],"heroStats":[{"value":"6","label":"Phases"},{"value":"2-3 days","label":"Per Feature"},{"value":"10+","label":"AI Tools"}],"intro":[{"id":"why-it-matters","title":"Why Backlog to Production Matters","blocks":[{"type":"text","text":"**The Gap in Traditional Workflows:** Most teams stop their value stream mapping at the backlog. But a story in the backlog is inventory, not value. Value is only delivered when working code reaches users in production."},{"type":"list","intro":"This workflow completes the value stream by showing how to use AI tools to ship features faster while maintaining quality. With AI assistance, you can:","style":"check","items":["**Generate specs** from user stories in seconds (not hours)","**Write code** 3-5x faster with AI pair programming","**Generate tests** automatically for better coverage","**Review PRs** with AI for consistent quality","**Deploy progressively** with feature flags and monitoring","**Close the loop** by feeding production data back to analytics"]},{"type":"callout","tone":"success","title":"🎯 Value Stream Completion","text":"This workflow closes the loop: **Research → Backlog → Code → Production → Analytics → Research**. By measuring production impact and feeding it back to analytics, you create a continuous improvement cycle."}]}],"phases":[{"id":"spec-generation","number":1,"title":"Spec Generation","subtitle":"Convert backlog stories into detailed technical specifications using AI","summary":"Convert backlog stories into detailed technical specifications using AI","description":"Take a user story from your backlog and use AI to generate a detailed technical specification including: API contracts, data models, component structure, edge cases, and acceptance criteria.","accent":"green","toolsTitle":"Tools to Use","tools":[{"tools":[{"name":"Claude (via claude.ai or API)","toolIds":["claude"],"description":"Best for technical spec generation"},{"name":"ChatGPT","toolIds":["chatgpt"],"description":"Good for general spec writing"},{"name":"Cursor Chat","toolIds":["cursor"],"description":"Generate specs with codebase context"}]}],"steps":[],"prompts":[{"title":"AI Prompt Template: User Story → Technical Spec","body":"I have this user story from our backlog:\n\n[PASTE YOUR USER STORY HERE]\n\nContext about our system:\n- Tech stack: [e.g., Next.js, PostgreSQL, Prisma]\n- Architecture: [e.g., React components, API routes, database layer]\n- Related features: [Any existing features this touches]\n\nPlease generate a detailed technical specification including:\n\n1. **Feature Summary** (2-3 sentences)\n2. **API Contract** (endpoints, request/response schemas)\n3. **Data Model** (database schema changes, if any)\n4. **Component Structure** (React components, props, state)\n5. **Implementation Steps** (ordered list of what to build)\n6. **Edge Cases** (what could go wrong, error handling)\n7. **Acceptance Criteria** (how we know it's done)\n8. **Testing Strategy** (unit, integration, E2E tests needed)\n\nBe specific with types, naming conventions, and make sure everything is implementable."}],"blocks":[{"type":"code","title":"Example Output","intro":"**User Story:** “As a user, I want to export my dashboard data to CSV so I can analyze it in Excel”","filename":"AI-Generated Spec","code":"**Feature Summary**\nAdd a \"Export to CSV\" button to all dashboard views that generates a downloadable CSV file containing the current dashboard data with proper formatting and column headers.\n\n**API Contract**\nPOST /api/dashboards/{dashboardId}/export\nRequest: { dashboardId: string, filters: object }\nResponse: { downloadUrl: string, expiresAt: timestamp }\n\n**Data Model**\nNo schema changes needed. Uses existing dashboard data.\n\n**Component Structure**\n- ExportButton component (props: dashboardId, currentFilters)\n- useExportDashboard hook (handles API call + download)\n- Toast notification for success/error states\n\n**Implementation Steps**\n1. Create ExportButton.tsx component with loading states\n2. Add useExportDashboard hook with API call logic\n3. Implement /api/dashboards/[id]/export route handler\n4. Add CSV generation utility (convert JSON to CSV)\n5. Integrate button into DashboardHeader component\n6. Add tests for CSV generation logic\n\n**Edge Cases**\n- Empty dashboard (show \"No data to export\")\n- Large datasets (stream CSV, don't load all in memory)\n- Special characters in data (proper CSV escaping)\n- Rate limiting (max 5 exports per minute)\n\n**Acceptance Criteria**\n✓ Button appears on all dashboard views\n✓ Click generates CSV with correct data\n✓ CSV has proper headers and formatting\n✓ Toast shows success/error messages\n✓ Works with filtered dashboard data\n✓ Large datasets don't crash browser\n\n**Testing Strategy**\n- Unit: CSV generation utility with edge cases\n- Integration: API route with mocked dashboard data\n- E2E: Full export flow in Cypress/Playwright"}],"outputs":[],"tips":[{"title":"Pro Tip: Use Codebase Context","text":"Use **Cursor** or **Cody** to generate specs with your actual codebase context. They can reference existing components, API patterns, and database schemas to create more accurate specs."}]},{"id":"ai-assisted-development","number":2,"title":"AI-Assisted Development","subtitle":"Write code 3-5x faster using AI pair programming and code generation","summary":"Write code 3-5x faster using AI pair programming and code generation","accent":"emerald","toolsTitle":"Choose Your AI Coding Tool","tools":[{"tools":[{"name":"Cursor","toolIds":["cursor"],"description":"Best for: Multi-file edits, codebase chat, complex refactoring","pricing":"$20/month"},{"name":"GitHub Copilot","toolIds":["github-copilot"],"description":"Best for: Line-by-line suggestions, GitHub users, PR summaries","pricing":"$10/month"},{"name":"Claude Code","toolIds":["claude-code"],"description":"Best for: Autonomous tasks, debugging, terminal operations","pricing":"API usage"}]}],"stepsTitle":"AI Development Workflow","steps":[{"title":"Start with Spec","detail":"Paste your AI-generated spec into a comment or use it as context in Cursor chat"},{"title":"Generate Scaffolding","detail":"Use AI to create files, components, API routes, database schemas","code":"Cursor Cmd+K: \"Create ExportButton.tsx with TypeScript, props for dashboardId and currentFilters\""},{"title":"Implement Logic","detail":"Write comments describing what you need, let AI generate the implementation","code":"// Convert dashboard data to CSV format with headers\n// Handle special characters and escaping\nconst generateCSV = (data) => {\n  // AI will complete this ↓"},{"title":"Review & Refine","detail":"Don't blindly accept AI suggestions. Review, test, and refine the generated code"},{"title":"Handle Edge Cases","detail":"Use AI to implement error handling, loading states, and edge cases from your spec"}],"prompts":[],"blocks":[{"type":"conversation","title":"Example: Using Cursor for Multi-File Feature","intro":"**Cursor Chat Conversation:**","turns":[{"speaker":"You","text":"I need to implement the CSV export feature. Here's the spec: [paste spec]. Start by creating the ExportButton component in components/dashboard/ExportButton.tsx"},{"speaker":"Cursor AI","text":"I'll create the ExportButton component with TypeScript, loading states, and error handling. Here's the implementation...","code":"// components/dashboard/ExportButton.tsx\nimport { useState } from 'react';\nimport { useExportDashboard } from '@/hooks/useExportDashboard';\n\ninterface ExportButtonProps {\n  dashboardId: string;\n  currentFilters: object;\n}\n\nexport function ExportButton({ dashboardId, currentFilters }: ExportButtonProps) {\n  const { exportDashboard, isExporting } = useExportDashboard();\n\n  const handleExport = async () => {\n    try {\n      await exportDashboard(dashboardId, currentFilters);\n    } catch (error) {\n      console.error('Export failed:', error);\n    }\n  };\n\n  return (\n    <button\n      onClick={handleExport}\n      disabled={isExporting}\n      className=\"px-4 py-2 bg-green-600 text-white rounded...\"\n    >\n      {isExporting ? 'Exporting...' : 'Export to CSV'}\n    </button>\n  );\n}"},{"speaker":"You","text":"Now create the useExportDashboard hook in hooks/useExportDashboard.ts"},{"speaker":"Cursor AI","text":"[Generates the custom hook with API call, error handling, and download logic...]"}]},{"type":"callout","tone":"warning","title":"⚠️ Warning: AI is Not Always Right","text":"AI can generate code quickly, but it's not perfect. Always:","items":["Review generated code for security issues","Test edge cases the AI might have missed","Verify performance implications","Check for adherence to your team's patterns"]}],"outputs":[],"tips":[]},{"id":"ai-generated-tests","number":3,"title":"AI-Generated Tests","subtitle":"Achieve better test coverage faster with AI-generated unit, integration, and E2E tests","summary":"Achieve better test coverage faster with AI-generated unit, integration, and E2E tests","accent":"teal","toolsTitle":"Tools for Test Generation","tools":[{"tools":[{"name":"Codium AI","toolIds":["codium-ai"],"description":"Specialized in test generation. Analyzes your code to suggest test cases, edge cases, and generate full test suites.","pricing":"Free for individuals"},{"name":"GitHub Copilot","toolIds":["github-copilot"],"description":"Can generate tests inline. Type a comment describing the test and it will complete it.","pricing":"$10/month"}]}],"stepsTitle":"Using Codium AI for Test Generation","steps":[{"title":"Open your code file in VSCode/JetBrains","detail":"Select the function or component you want to test"},{"title":"Right-click → Codium AI → “Generate Tests”","detail":"Codium analyzes your code and suggests test cases"},{"title":"Review suggested test cases","detail":"Codium will show: happy path, edge cases, error scenarios"},{"title":"Accept and customize","detail":"Codium generates the test code. Review and modify as needed"},{"title":"Run tests and iterate","detail":"Fix any failing tests and add additional cases if needed"}],"prompts":[],"blocks":[{"type":"steps","title":"Testing Strategy","steps":[{"title":"Unit Tests (via Codium AI)","detail":"Test individual functions and components in isolation","codeCaption":"Example: Testing CSV generation utility","code":"describe('generateCSV', () => {\n  it('should generate CSV with headers', () => {\n    const data = [{ name: 'John', age: 30 }];\n    const csv = generateCSV(data);\n    expect(csv).toContain('name,age');\n    expect(csv).toContain('John,30');\n  });\n\n  it('should escape special characters', () => {\n    const data = [{ name: 'O\\'Brien', note: 'Hello, world' }];\n    const csv = generateCSV(data);\n    expect(csv).toContain('\"O\\'Brien\"');\n  });\n\n  it('should handle empty data', () => {\n    const csv = generateCSV([]);\n    expect(csv).toBe('');\n  });\n});"},{"title":"Integration Tests (API Routes)","detail":"Test API endpoints with mocked dependencies","codeCaption":"Example: Testing export API route","code":"describe('POST /api/dashboards/[id]/export', () => {\n  it('should return download URL for valid dashboard', async () => {\n    const response = await request(app)\n      .post('/api/dashboards/123/export')\n      .send({ filters: {} })\n      .expect(200);\n\n    expect(response.body).toHaveProperty('downloadUrl');\n    expect(response.body).toHaveProperty('expiresAt');\n  });\n\n  it('should return 404 for non-existent dashboard', async () => {\n    await request(app)\n      .post('/api/dashboards/999/export')\n      .send({ filters: {} })\n      .expect(404);\n  });\n\n  it('should handle rate limiting', async () => {\n    // Make 6 requests quickly\n    for (let i = 0; i < 6; i++) {\n      const response = await request(app)\n        .post('/api/dashboards/123/export')\n        .send({ filters: {} });\n\n      if (i < 5) expect(response.status).toBe(200);\n      else expect(response.status).toBe(429); // Too many requests\n    }\n  });\n});"},{"title":"E2E Tests (via Copilot + Playwright/Cypress)","detail":"Test the full user flow in the browser","codeCaption":"Example: E2E export flow","code":"test('user can export dashboard to CSV', async ({ page }) => {\n  // Login and navigate to dashboard\n  await page.goto('/dashboard/sales');\n\n  // Click export button\n  await page.click('button:has-text(\"Export to CSV\")');\n\n  // Wait for download\n  const download = await page.waitForEvent('download');\n  const path = await download.path();\n\n  // Verify CSV content\n  const content = await fs.readFile(path, 'utf-8');\n  expect(content).toContain('Product,Revenue,Date');\n  expect(content.split('\\n').length).toBeGreaterThan(1);\n\n  // Verify success toast\n  await expect(page.locator('.toast-success')).toContainText('Export complete');\n});"}]}],"outputs":[],"tips":[{"title":"Pro Tip: TDD with AI","text":"Use AI to generate tests BEFORE writing implementation. Paste your spec into Codium AI and ask it to generate test cases. This gives you a test suite to validate against as you build."}]},{"id":"code-review-ci-cd","number":4,"title":"AI Code Review & CI/CD","subtitle":"Get automated, consistent code reviews and quality gates before merge","summary":"Get automated, consistent code reviews and quality gates before merge","accent":"blue","toolsTitle":"AI Code Review Tools","tools":[{"tools":[{"name":"CodeRabbit","toolIds":["coderabbit"],"description":"Automated PR reviews with inline comments, security checks, and learning from your team's patterns.","pricing":"From $12/user/month"},{"name":"GitHub Copilot PR Reviews","toolIds":["github-copilot"],"description":"Built into GitHub, provides PR summaries and code suggestions during review.","pricing":"$19/user/month (Business)"}]}],"stepsTitle":"Setting Up CodeRabbit","steps":[{"title":"Install CodeRabbit GitHub App","detail":"Visit coderabbit.ai and connect your GitHub repo"},{"title":"Configure review rules","detail":"Add .coderabbit.yaml to your repo with custom rules","code":"# .coderabbit.yaml\nreviews:\n  high_level_summary: true\n  review_status: true\n  poem: false\n  auto_review:\n    enabled: true\n  path_filters:\n    - \"!**/*.lock\"\n    - \"!**/package-lock.json\"\n  checks:\n    - security\n    - performance\n    - best_practices"},{"title":"Open a PR and wait for review","detail":"CodeRabbit will automatically review within 1-2 minutes"}],"prompts":[],"blocks":[{"type":"cards","title":"Example CodeRabbit Review","intro":"**🤖 CodeRabbit Review** — Reviewed 5 files with 247 additions and 23 deletions","columns":1,"cards":[{"icon":"📝","title":"Summary","text":"This PR implements CSV export functionality for dashboards. The implementation looks solid overall. I've identified a few potential improvements around error handling and performance for large datasets."},{"icon":"🔴","title":"Security Issue - HIGH","subtitle":"`api/export.ts:45`","text":"User input is directly interpolated into file path without sanitization. This could allow path traversal attacks.","code":"- const filePath = `/tmp/${dashboardId}.csv`;\n+ const filePath = `/tmp/${sanitizePath(dashboardId)}.csv`;"},{"icon":"⚠️","title":"Performance - MEDIUM","subtitle":"`utils/generateCSV.ts:12`","text":"Loading all rows into memory could cause issues with large datasets (>10k rows). Consider streaming the CSV generation."},{"icon":"✅","title":"Great Work","items":["Excellent test coverage (95%)","Proper error handling in UI components","TypeScript types are well-defined","Follows team's naming conventions"]}]},{"type":"code","title":"CI/CD Pipeline Configuration","intro":"Set up automated quality gates in your GitHub Actions workflow:","filename":".github/workflows/ci.yml","code":"name: CI/CD Pipeline\n\non:\n  pull_request:\n  push:\n    branches: [main]\n\njobs:\n  quality-gates:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v3\n\n      - name: Setup Node\n        uses: actions/setup-node@v3\n        with:\n          node-version: '20'\n\n      - name: Install dependencies\n        run: npm ci\n\n      - name: Run linter\n        run: npm run lint\n\n      - name: Run type check\n        run: npm run type-check\n\n      - name: Run unit tests\n        run: npm run test:unit\n\n      - name: Run integration tests\n        run: npm run test:integration\n\n      - name: Build application\n        run: npm run build\n\n      - name: Run E2E tests\n        run: npm run test:e2e\n\n      - name: Upload coverage\n        uses: codecov/codecov-action@v3\n        with:\n          file: ./coverage/coverage-final.json\n\n  deploy:\n    needs: quality-gates\n    if: github.ref == 'refs/heads/main'\n    runs-on: ubuntu-latest\n    steps:\n      - name: Deploy to production\n        run: npm run deploy"}],"outputs":[],"tips":[{"title":"Pro Tip: Learn from AI Reviews","text":"CodeRabbit learns from your team's review patterns. When you approve or reject its suggestions, it adapts to your team's standards. Over time, reviews become more accurate and aligned with your coding style."}]},{"id":"progressive-deployment","number":5,"title":"Progressive Deployment","subtitle":"Roll out features gradually with feature flags and monitoring","summary":"Roll out features gradually with feature flags and monitoring","accent":"purple","tools":[],"stepsTitle":"Using LaunchDarkly for Feature Flags","steps":[{"title":"Install LaunchDarkly SDK","code":"npm install launchdarkly-react-client-sdk"},{"title":"Wrap your app with LaunchDarkly Provider","code":"import { withLDProvider } from 'launchdarkly-react-client-sdk';\n\nfunction App() {\n  return <YourApp />;\n}\n\nexport default withLDProvider({\n  clientSideID: 'your-client-id',\n  user: {\n    key: user.id,\n    email: user.email,\n    custom: { plan: user.plan }\n  }\n})(App);"},{"title":"Use feature flags in your components","code":"import { useFlags } from 'launchdarkly-react-client-sdk';\n\nfunction DashboardHeader() {\n  const { csvExport } = useFlags();\n\n  return (\n    <div>\n      <h1>Dashboard</h1>\n      {csvExport && <ExportButton />}\n    </div>\n  );\n}"},{"title":"Configure rollout in LaunchDarkly dashboard","detail":"Create targeting rules for gradual rollout:","items":["**Rule 1:** If email contains “@yourcompany.com” → serve TRUE (internal users)","**Rule 2:** If user.plan == “beta” → serve TRUE (beta users)","**Default:** Percentage rollout → 0% → 10% → 50% → 100% over 1 week"]}],"prompts":[],"blocks":[{"type":"cards","title":"Why Progressive Deployment?","intro":"Instead of deploying to 100% of users at once, gradually roll out features to catch issues early and minimize blast radius. This is how companies like Facebook, Netflix, and Stripe deploy safely.","columns":3,"cards":[{"title":"Step 1: Internal (1%)","text":"Deploy to your team first. Catch obvious bugs internally."},{"title":"Step 2: Beta Users (10%)","text":"Roll out to early adopters. Monitor metrics closely."},{"title":"Step 3: Full Release (100%)","text":"If metrics look good, deploy to everyone."}]},{"type":"cards","title":"Monitoring During Rollout","intro":"Watch these metrics as you roll out your feature:","columns":2,"cards":[{"title":"Error Rates","text":"Monitor error rates for new feature vs. baseline","note":"🚨 If error rate > 1%, pause rollout"},{"title":"Performance Metrics","text":"Watch page load time, API latency, database query time","note":"⚠️ If p95 latency > 2x baseline, investigate"},{"title":"Feature Usage","text":"Track how many users are actually using the new feature","note":"✓ Target: >10% of exposed users try the feature"},{"title":"Business Metrics","text":"Measure impact on key metrics (retention, engagement, revenue)","note":"📊 Compare cohort with feature vs. without"}]},{"type":"text","title":"Rollback Strategy","text":"Have a plan to roll back if things go wrong:"},{"type":"callout","tone":"danger","title":"🚨 When to Roll Back Immediately","items":["Error rate > 1% (vs. <0.1% baseline)","Critical functionality broken (payments, auth, data loss)","Performance degradation > 3x baseline","Security vulnerability discovered"]},{"type":"list","intro":"**Rollback is instant with feature flags:**","style":"number","items":["Open LaunchDarkly dashboard","Toggle feature flag to OFF","Feature is disabled for all users within seconds","No code deployment needed"]}],"outputs":[],"tips":[{"title":"Pro Tip: Integrate with Experimentation","text":"Use feature flags as your A/B testing infrastructure. LaunchDarkly and Split.io can automatically measure the impact of features on key metrics, turning every rollout into an experiment."}]},{"id":"close-the-loop","number":6,"title":"Close the Loop","subtitle":"Feed production data back to analytics to complete the value stream","summary":"Feed production data back to analytics to complete the value stream","accent":"green","tools":[],"stepsTitle":"How to Close the Loop","steps":[{"title":"Measure Feature Adoption","detail":"Track how many users are using your new feature","code":"// Track CSV export usage in your analytics\namplitude.track('CSV_Export_Clicked', {\n  dashboard_id: dashboardId,\n  dashboard_type: 'sales',\n  user_plan: user.plan,\n  row_count: data.length\n});"},{"title":"Monitor Impact on Key Metrics","detail":"Compare users with the feature vs. without. **In your Product Analytics dashboard:**","items":["**Retention:** Do users who export CSVs come back more often?","**Engagement:** Do they view more dashboards?","**Conversion:** Do they upgrade to paid plans?","**Satisfaction:** Are support tickets about data export down?"]},{"title":"Gather Qualitative Feedback","detail":"Talk to users who are (and aren't) using the feature. **Follow-up user interviews:**","items":["“How are you using the CSV export feature?”","“What would make it more useful?”","“What format would you prefer besides CSV?”","“Did this solve the problem you had?”"],"note":"Use insights from these interviews to inform your next backlog items"},{"title":"Document Learnings","detail":"Update the original backlog item with outcomes. **Example: Linear/Jira comment on shipped story**","code":"✅ Shipped to 100% on Dec 15, 2025\n\nImpact (30 days post-launch):\n• 23% of active users tried CSV export\n• Users who export have 1.8x higher 7-day retention\n• Reduced support tickets about \"how to export data\" by 67%\n• Top request: \"Add Excel format option\" (45 mentions)\n\nNext steps: Created follow-up story for Excel export"}],"prompts":[],"blocks":[{"type":"text","title":"Why Closing the Loop Matters","text":"You've shipped the feature to production. But the value stream isn't complete until you measure its impact and feed that learning back into your decision-making process."},{"type":"chain","title":"🔄 The Complete Value Stream Loop","items":[{"label":"User Research"},{"label":"Backlog"},{"label":"Code"},{"label":"Production"},{"label":"Analytics"},{"label":"Insights"},{"label":"User Research"}]},{"type":"table","title":"Integration with Value Stream Mapping","intro":"This workflow completes your value stream by measuring cycle time from idea to value delivery. 🕐 Measure Cycle Time:","columns":["Stage","Time"],"rows":[["User interview → Backlog","2 days"],["Backlog → Spec","1 hour"],["Spec → Code complete","1 day"],["Code → PR reviewed","2 hours"],["PR → Production (10%)","30 mins"],["10% → 100% rollout","3 days"],["Total Cycle Time","6.6 days"]]},{"type":"cards","title":"📊 Compare to Pre-AI","columns":2,"cards":[{"icon":"❌","title":"Before AI Tools","items":["Spec writing: 4 hours","Development: 3-4 days","Manual testing: 1 day","PR review: 1 day"],"note":"**Total: 15-20 days**"},{"icon":"✅","title":"With AI Tools","items":["AI spec generation: 1 hour","AI-assisted dev: 1 day","AI-generated tests: 30 mins","AI code review: 2 hours"],"note":"**Total: 6-7 days**"}]},{"type":"text","text":"🚀 **65% faster** with AI"},{"type":"callout","tone":"success","title":"🎯 Value Stream Success","text":"You've completed the full value stream! You can now measure:","items":["**Lead Time:** Time from user interview to production deployment","**Cycle Time:** Time from backlog item to working code in production","**Impact:** How the feature affected key metrics (retention, engagement, revenue)","**Continuous Improvement:** Use learnings to inform next iteration"]}],"outputs":[],"tips":[]}],"sections":[{"id":"tools-used","title":"Tools Used in This Workflow","blocks":[{"type":"cards","columns":3,"cards":[{"title":"Spec & Development","tools":[{"name":"Cursor","toolIds":["cursor"],"href":"/tools/ai-development"},{"name":"GitHub Copilot","toolIds":["github-copilot"],"href":"/tools/ai-development"},{"name":"Claude Code","toolIds":["claude-code"],"href":"/tools/ai-development"},{"name":"Cody","toolIds":["cody"],"href":"/tools/ai-development"}]},{"title":"Testing & Review","tools":[{"name":"Codium AI","toolIds":["codium-ai"],"href":"/tools/ai-development"},{"name":"CodeRabbit","toolIds":["coderabbit"],"href":"/tools/ai-development"},{"name":"GitHub Actions"},{"name":"Playwright / Cypress"}]},{"title":"Deployment & Monitoring","tools":[{"name":"LaunchDarkly","href":"/tools/experimentation"},{"name":"Split.io","href":"/tools/experimentation"},{"name":"Amplitude / Mixpanel","toolIds":["amplitude","mixpanel"],"href":"/tools/product-analytics"},{"name":"Sentry / Datadog","toolIds":["sentry","datadog"]}]}]},{"type":"links","links":[{"label":"Explore AI Development Tools →","href":"/tools/ai-development"}]}]}],"cta":{"title":"Complete the Loop: Related Flows","links":[{"label":"Research to Backlog","href":"/flows/research-to-backlog","description":"The flow that feeds into this one: Convert user research insights into actionable backlog items."},{"label":"Product Analytics Setup","href":"/flows/product-analytics-setup","description":"Set up analytics infrastructure to measure the impact of features you ship to production."}]},"seo":{"title":"Backlog to Production: AI-Native Development Workflow | SaaSlete","description":"Complete the value stream from backlog item to production code using AI. Learn how to use AI tools for spec generation, development, testing, code review, deployment, and closing the feedback loop.","keywords":["backlog to production","ai development workflow","ai code generation","value stream completion","ai testing workflow","ci/cd automation","feature deployment","production monitoring","dev workflow optimization","ai pair programming"],"ogTitle":"Backlog to Production: AI-Native Development Workflow | saaslete","ogDescription":"Complete the value stream from backlog item to production code using AI tools and best practices."},"howTo":{"name":"Backlog to Production: AI-Native Development Workflow","description":"Complete the value stream from backlog item to production code using AI assistance","totalTime":"P3D"},"lastUpdated":"2025-12-30"}}