[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ESYPZV4B1R5RTANPKE89Q0":3,"skill-same:01M6ESYPZV4B1R5RTANPKE89Q0":73},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":49,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M6ESYPZV4B1R5RTANPKE89Q0","plan-approval",null,"Plan-approval workflow patterns for user control over AI actions in Claude Code Waypoint Plugin. Use when planning complex changes, need user approval before execution, want to prevent mistakes, or need to document proposed changes. Covers plan creation, approval checkpoints, plan deviation tracking, revision management, and learning from approved\u002Frejected plans.","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fdojocodinglabs\u002Fplan-approval\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"approval","plan approval","plan","use","plugin","plans","creation","control","patterns","workflow patterns","document","approval workflow","planning","workflow","tracking","plan creation","code","learning","execution","actions","2026-11-10 10:12:30",false,"---\nname: plan-approval\ndescription: Plan-approval workflow patterns for user control over AI actions in Claude Code Waypoint Plugin. Use when planning complex changes, need user approval before execution, want to prevent mistakes, or need to document proposed changes. Covers plan creation, approval checkpoints, plan deviation tracking, revision management, and learning from approved\u002Frejected plans.\n---\n\n# Plan-Approval Skill\n\n## Purpose\n\nEnable user control over AI actions by requiring explicit approval for complex or risky changes, preventing mistakes and ensuring alignment with user intent.\n\n## When to Use This Skill\n\nAutomatically activates when you mention:\n- Creating or reviewing plans\n- Approval or confirmation needed\n- Proposed changes or approach\n- Want to see plan before execution\n- Complex or risky operations\n- Need user sign-off\n\n## The Problem: No User Control\n\n**Without plan approval**:\n- ❌ AI jumps straight to implementation\n- ❌ No chance to review approach\n- ❌ Mistakes expensive to undo\n- ❌ User left out of decision process\n- ❌ No learning from rejections\n\n**With plan approval**:\n- ✅ User reviews before execution\n- ✅ Can modify or reject approach\n- ✅ Prevents costly mistakes\n- ✅ User maintains control\n- ✅ AI learns from feedback\n\n---\n\n## Core Principles\n\n### 1. User is Always in Control\n\n**Never execute without approval for**:\n- Database schema changes\n- Breaking API changes\n- Dependency updates\n- Architecture refactors\n- File deletions\n- Deployment actions\n\n### 2. Plans are Detailed\n\n**Good plans include**:\n- What will be done (specific files\u002Fchanges)\n- Why this approach (rationale)\n- What alternatives were considered\n- What risks exist\n- What the impact is\n- How long it will take\n\n### 3. Approval is Explicit\n\n**Require clear user response**:\n- ✅ \"approve\", \"yes\", \"proceed\", \"looks good\"\n- ❌ Silence, vague response, \"maybe\"\n- ⚠️ \"modify: [changes]\" triggers plan revision\n\n### 4. Learning from Feedback\n\n**Track approved\u002Frejected plans**:\n- Store approved approaches (do more like this)\n- Store rejected approaches (avoid in future)\n- Learn user preferences over time\n\n---\n\n## When to Require Approval\n\n### Always Require Approval\n\n✅ **Database changes**:\n- Schema migrations\n- RLS policy changes\n- Data migrations\n- Index additions\n\n✅ **Breaking changes**:\n- API signature changes\n- Function signature changes\n- Component prop changes\n\n✅ **Architecture changes**:\n- New dependencies\n- Framework changes\n- State management approach\n- Routing structure\n\n✅ **Risky operations**:\n- File deletions\n- Bulk updates\n- Production deployments\n\n### Optional Approval\n\n⚠️ **Complex features** (> 5 files affected)\n⚠️ **Refactoring** (multiple components)\n⚠️ **Performance optimization** (cache strategies)\n\n### No Approval Needed\n\n❌ **Simple changes**:\n- Bug fixes (\u003C 10 lines)\n- Documentation updates\n- Code formatting\n- Minor UI tweaks\n\n**Rule of Thumb**: If user might say \"wait, not like that!\", require approval.\n\n---\n\n## Plan Structure\n\n### Minimal Plan Template\n\n```markdown\n# [Feature\u002FChange Name]\n\n## Summary\n[1-2 sentence overview]\n\n## What Will Change\n- File 1: [what changes]\n- File 2: [what changes]\n- Database: [migrations if any]\n- Dependencies: [new packages if any]\n\n## Why This Approach\n[Rationale for chosen approach]\n\n## Risks\n- Risk 1: [description + mitigation]\n- Risk 2: [description + mitigation]\n\n## Estimated Time\n[How long to implement]\n\n---\n**Approve to proceed**, or reply with modifications\n```\n\n### Comprehensive Plan Template\n\n```markdown\n# [Feature\u002FChange Name]\n\n## Summary\n[2-3 sentence overview of the change and its purpose]\n\n## Requirements\n- [ ] Requirement 1\n- [ ] Requirement 2\n- [ ] Requirement 3\n\n## Proposed Approach\n\n### Architecture\n[High-level architecture description]\n\n### Implementation Steps\n1. **Step 1**: [Description]\n   - Files: [list]\n   - Changes: [brief description]\n   - Risk: [if any]\n\n2. **Step 2**: [Description]\n   - Files: [list]\n   - Changes: [brief description]\n   - Risk: [if any]\n\n[Continue for all steps...]\n\n### Files to Create (3)\n1. `path\u002Fto\u002Ffile1.ts` - [Purpose]\n2. `path\u002Fto\u002Ffile2.ts` - [Purpose]\n3. `path\u002Fto\u002Ffile3.ts` - [Purpose]\n\n### Files to Modify (2)\n1. `path\u002Fto\u002Fexisting1.ts` - [What will change]\n2. `path\u002Fto\u002Fexisting2.ts` - [What will change]\n\n### Database Changes\n**Migration**: `supabase\u002Fmigrations\u002Fxxx_add_feature.sql`\n- Add table: `feature_table`\n- Add column: `users.feature_flag`\n- Add RLS policy: `feature_access_policy`\n\n### Dependencies\n**New**:\n- package-name@^1.0.0 (Purpose: [why])\n\n**Updates**:\n- existing-package: 1.0.0 → 2.0.0 (Reason: [why])\n\n## Alternatives Considered\n\n### Alternative 1: [Name]\n**Approach**: [Description]\n**Pros**: [Benefits]\n**Cons**: [Drawbacks]\n**Why not chosen**: [Reason]\n\n### Alternative 2: [Name]\n**Approach**: [Description]\n**Pros**: [Benefits]\n**Cons**: [Drawbacks]\n**Why not chosen**: [Reason]\n\n## Risks & Mitigations\n\n| Risk | Likelihood | Impact | Mitigation |\n|------|-----------|--------|------------|\n| [Risk 1] | Medium | High | [How to prevent\u002Fhandle] |\n| [Risk 2] | Low | Medium | [How to prevent\u002Fhandle] |\n\n## Breaking Changes\n\n⚠️ **API Changes**:\n- `oldFunction()` → `newFunction()` signature changed\n- Migration path: [How to update]\n\n⚠️ **Database Changes**:\n- Table `old_name` renamed to `new_name`\n- Migration script: [Path]\n\n## Testing Strategy\n- [ ] Unit tests for [components]\n- [ ] Integration tests for [flows]\n- [ ] Manual testing: [scenarios]\n\n## Rollback Plan\nIf this fails:\n1. [Step to revert]\n2. [Step to restore]\n3. [Data recovery if needed]\n\n## Estimated Time\n- Implementation: [X hours]\n- Testing: [Y hours]\n- **Total**: [Z hours]\n\n---\n\n## Approval\n\n**Reply with**:\n- `approve` - Proceed with this plan\n- `reject` - Cancel, don't proceed\n- `modify: [your changes]` - Adjust plan first\n\n```\n\n---\n\n## Approval Workflow\n\n### Step 1: Generate Plan\n\n```markdown\nUser: \"Add Stripe payment integration\"\n\nClaude:\n\"I'll create a plan for Stripe integration first.\n\n[Generates detailed plan using template]\n\nReview the plan above. Reply:\n- 'approve' to proceed\n- 'reject' to cancel\n- 'modify: [changes]' to adjust\n\"\n```\n\n### Step 2: Wait for Explicit Approval\n\n**Valid approvals**:\n- \"approve\"\n- \"yes, proceed\"\n- \"looks good\"\n- \"go ahead\"\n- \"lgtm\" (looks good to me)\n\n**Modifications**:\n- \"modify: use Stripe Checkout instead of Elements\"\n- \"change: store payment methods in Supabase\"\n- \"add: webhook handling\"\n\n**Rejections**:\n- \"reject\"\n- \"no\"\n- \"cancel\"\n- \"let's do something different\"\n\n### Step 3: Execute or Revise\n\n**If approved**:\n1. Save plan to `.claude\u002Fmemory\u002Fplans\u002Fapproved\u002F`\n2. Execute implementation\n3. Track progress in dev docs\n4. Mark complete when done\n\n**If modified**:\n1. Update plan with user's changes\n2. Re-present revised plan\n3. Wait for approval again\n\n**If rejected**:\n1. Save to `.claude\u002Fmemory\u002Fplans\u002Frejected\u002F` with reason\n2. Learn from rejection\n3. Don't proceed\n\n### Step 4: Track Execution\n\n```markdown\n## Plan Execution Status\n\n**Plan ID**: stripe-integration-2025-01-15\n**Status**: In Progress\n**Approved**: 2025-01-15 10:00\n**Started**: 2025-01-15 10:05\n\n**Progress**:\n- [x] Step 1: Install Stripe SDK\n- [x] Step 2: Create Stripe client\n- [ ] Step 3: Implement checkout flow (IN PROGRESS)\n- [ ] Step 4: Add webhook handler\n- [ ] Step 5: Test payment flow\n\n**Current**: Implementing checkout flow in app\u002Fapi\u002Fcheckout\u002Froute.ts\n**Next**: Add webhook handler for payment events\n```\n\n---\n\n## Plan Storage\n\n### Directory Structure\n\n```\n.claude\u002Fmemory\u002Fplans\u002F\n├── proposed\u002F                    # Plans awaiting approval\n│   └── stripe-integration-2025-01-15.json\n├── approved\u002F                   # Approved plans\n│   └── stripe-integration-2025-01-15.json\n├── rejected\u002F                   # Rejected plans (learn from these)\n│   └── alternative-approach-2025-01-14.json\n└── completed\u002F                  # Completed implementations\n    └── stripe-integration-2025-01-15.json\n```\n\n### Plan File Schema\n\n```json\n{\n  \"plan_id\": \"stripe-integration-2025-01-15\",\n  \"created\": \"2025-01-15T10:00:00Z\",\n  \"status\": \"approved\" | \"proposed\" | \"rejected\" | \"in_progress\" | \"completed\",\n  \"summary\": \"Add Stripe payment integration for subscriptions\",\n  \"approved_at\": \"2025-01-15T10:05:00Z\",\n  \"started_at\": \"2025-01-15T10:10:00Z\",\n  \"completed_at\": null,\n  \"user_modifications\": [\n    \"Use Stripe Checkout instead of Elements\",\n    \"Store payment methods in Supabase\"\n  ],\n  \"files_to_create\": [\n    \"lib\u002Fstripe\u002Fclient.ts\",\n    \"app\u002Fapi\u002Fcheckout\u002Froute.ts\"\n  ],\n  \"files_to_modify\": [\n    \"package.json\",\n    \"lib\u002Fsupabase\u002Fschema.sql\"\n  ],\n  \"risks\": [\n    \"Webhook reliability\",\n    \"Payment state synchronization\"\n  ],\n  \"estimated_hours\": 4,\n  \"actual_hours\": null,\n  \"outcome\": null,\n  \"lessons_learned\": []\n}\n```\n\n---\n\n## Learning from Plans\n\n### Track Approval Patterns\n\n```json\n{\n  \"approval_patterns\": {\n    \"stripe_payments\": {\n      \"preferred_approach\": \"Stripe Checkout (not Elements)\",\n      \"storage\": \"Supabase tables\",\n      \"reason\": \"User approved this twice, rejected Elements once\",\n      \"confidence\": \"high\"\n    },\n    \"database_changes\": {\n      \"requires_approval\": true,\n      \"wants_rollback_plan\": true,\n      \"prefers_separate_migration_file\": true,\n      \"confidence\": \"high\"\n    }\n  }\n}\n```\n\n### Apply Learnings\n\n**Future similar requests**:\n```markdown\nUser: \"Add subscription billing\"\n\nClaude:\n\"Based on previous approvals, I'll plan to use:\n- Stripe Checkout (you preferred this over Elements)\n- Supabase tables for subscription state\n- Separate webhook handler\n\n[Presents plan following learned preferences]\n```\n\n### Track Rejections\n\n```json\n{\n  \"rejections\": [\n    {\n      \"plan_id\": \"complex-state-management-2025-01-10\",\n      \"reason\": \"Too complex, prefer simpler approach\",\n      \"rejected_approach\": \"Redux Toolkit\",\n      \"preferred_instead\": \"React Context\",\n      \"lesson\": \"User prefers simpler solutions when possible\"\n    }\n  ]\n}\n```\n\n---\n\n## Plan Deviations\n\n### When Implementation Differs from Plan\n\n**Acceptable deviations**:\n- Minor implementation details\n- Better solution discovered\n- Library API changed\n\n**Require new approval**:\n- Different architecture approach\n- More files affected than planned\n- Additional dependencies\n- Higher risk than estimated\n\n### Handling Deviations\n\n```markdown\nUser: \"Continue with Stripe integration\"\n\nClaude:\n\"⚠️ PLAN DEVIATION DETECTED\n\n**Original plan**: Use Stripe Elements\n**Current need**: Stripe Checkout is better for our use case\n\n**Reason**: Elements requires more frontend work, Checkout is simpler\n\n**Impact**:\n- Different files affected\n- Simpler implementation\n- Less custom UI needed\n\n**Do you approve this deviation?**\n- 'yes' - Proceed with Checkout\n- 'no' - Stick to original plan\n- 'revise' - Create new plan\n\"\n```\n\n---\n\n## Commands\n\nProvide these commands:\n\n```bash\n# Create plan\n\u002Fcreate-plan [feature-name]       # Generate plan for approval\n\n# Review plans\n\u002Fshow-plans                       # Show all plans\n\u002Fshow-plan [plan-id]              # Show specific plan\n\n# Approve\u002Freject\n\u002Fapprove [plan-id]                # Approve a plan\n\u002Freject [plan-id]                 # Reject a plan\n\n# Track progress\n\u002Fplan-status [plan-id]            # Show execution progress\n\n# History\n\u002Fapproved-plans                   # Show approved plans\n\u002Frejected-plans                   # Show rejected (learn from these)\n```\n\n---\n\n## Integration with Other Skills\n\n### With memory-management\n\n**memory-management** stores long-term preferences.\n**plan-approval** handles one-time decisions.\n\n**Example**:\n- Memory: \"User always prefers TypeScript\" (permanent)\n- Plan: \"Use Stripe Checkout for payments\" (this feature)\n\n### With context-persistence\n\n**context-persistence** tracks implementation progress.\n**plan-approval** handles pre-implementation planning.\n\n**Workflow**:\n1. Plan approval: Generate and approve plan\n2. Context persistence: Track implementation in dev docs\n3. Memory: Store outcome and learnings\n\n---\n\n## Best Practices\n\n### DO ✅\n\n1. **Present clear, detailed plans**\n2. **Wait for explicit approval**\n3. **Track plan execution progress**\n4. **Learn from approvals and rejections**\n5. **Notify user of deviations**\n6. **Store plans for future reference**\n7. **Include rollback strategy for risky changes**\n\n### DON'T ❌\n\n1. **Don't skip approval for complex changes**\n2. **Don't assume silence means approval**\n3. **Don't deviate significantly without asking**\n4. **Don't forget to track approved plans**\n5. **Don't make plans too vague**\n6. **Don't proceed if user is uncertain**\n\n---\n\n## Example: Complete Plan-Approval Flow\n\n### User Request\n\n```\nUser: \"Add Stripe subscription billing to the app\"\n```\n\n### Plan Generation\n\n```markdown\nClaude: \"I'll create a detailed plan for Stripe subscriptions.\n\n# Stripe Subscription Billing Plan\n\n## Summary\nAdd Stripe subscription billing with monthly\u002Fyearly plans, customer portal, and webhook handling.\n\n## What Will Change\n\n### Files to Create (5)\n1. `lib\u002Fstripe\u002Fclient.ts` - Stripe client initialization\n2. `lib\u002Fstripe\u002Fsubscriptions.ts` - Subscription management\n3. `app\u002Fapi\u002Fstripe\u002Fwebhook\u002Froute.ts` - Webhook handler\n4. `app\u002Fapi\u002Fcheckout\u002Froute.ts` - Checkout session creation\n5. `app\u002Fpricing\u002Fpage.tsx` - Pricing page\n\n### Files to Modify (3)\n1. `package.json` - Add stripe package\n2. `.env.example` - Add Stripe keys\n3. `lib\u002Fsupabase\u002Fschema.sql` - Add subscriptions table\n\n### Database Changes\n**Migration**: `supabase\u002Fmigrations\u002F20250115_subscriptions.sql`\n- Table: `subscriptions` (user_id, stripe_subscription_id, status, plan_id)\n- Table: `subscription_plans` (name, price, interval)\n- RLS policies for subscription access\n\n## Why This Approach\n- Stripe Checkout: Hosted, PCI-compliant, less frontend work\n- Webhooks: Reliable payment event handling\n- Supabase storage: Sync subscription state with user data\n\n## Alternatives Considered\n- **Stripe Elements**: More control but more work. Rejected: Overkill for MVP\n- **Manual billing**: Can't scale. Rejected: Need automation\n\n## Risks\n- ⚠️ Webhook reliability: Mitigate with retry logic + monitoring\n- ⚠️ State sync: Mitigate with idempotent webhook handlers\n\n## Estimated Time\n- Implementation: 3 hours\n- Testing: 1 hour\n- **Total**: 4 hours\n\n---\n\n**Do you approve this plan?**\nReply: 'approve', 'modify: [changes]', or 'reject'\n```\n\n### User Approval\n\n```\nUser: \"approve\"\n```\n\n### Execution\n\n```markdown\nClaude: \"✅ Plan approved. Starting implementation.\n\nSaving plan to: .claude\u002Fmemory\u002Fplans\u002Fapproved\u002Fstripe-subscriptions-2025-01-15.json\n\nCreating dev docs: \u002Fcreate-plan stripe-subscriptions\n\nStarting with Step 1: Install Stripe SDK...\"\n\n[Proceeds with implementation while tracking progress]\n```\n\n### Completion\n\n```markdown\nClaude: \"✅ Stripe subscription billing complete!\n\n**Completed**:\n- ✅ All 5 files created\n- ✅ Database migration applied\n- ✅ Webhooks tested with Stripe CLI\n- ✅ Checkout flow working\n\n**Time**: 3.5 hours (30 min under estimate)\n\nMarking plan as completed.\nStoring lessons learned:\n- Stripe Checkout works well for subscriptions\n- Webhook testing critical (caught 2 bugs)\n```\n\n---\n\n## Summary\n\n**Plan-approval workflow enables**:\n1. ✅ User control over AI actions\n2. ✅ Prevention of costly mistakes\n3. �� Clear communication of approach\n4. ✅ Learning from user feedback\n5. ✅ Transparent decision making\n\n**Key steps**:\n1. Generate detailed plan\n2. Wait for explicit approval\n3. Execute or revise based on feedback\n4. Track progress\n5. Learn from outcome\n\n**Storage**: `.claude\u002Fmemory\u002Fplans\u002F` with status tracking\n\n**Commands**: `\u002Fcreate-plan`, `\u002Fapprove`, `\u002Freject`, `\u002Fshow-plans`\n\n**Rule**: Always require approval for complex, risky, or breaking changes!\n\nUse this skill to ensure Claude Code never acts without your explicit permission for important changes.\n","# Plan-Approval Skill\n\n## Purpose\n\nEnable user control over AI actions by requiring explicit approval for complex or risky changes, preventing mistakes and ensuring alignment with user intent.\n\n## When to Use This Skill\n\nAutomatically activates when you mention:\n- Creating or reviewing plans\n- Approval or confirmation needed\n- Proposed changes or approach\n- Want to see plan before execution\n- Complex or risky operations\n- Need user sign-off\n\n## The Problem: No User Control\n\n**Without plan approval**:\n- ❌ AI jumps straight to implementation\n- ❌ No chance to review approach\n- ❌ Mistakes expensive to undo\n- ❌ User left out of decision process\n- ❌ No learning from rejections\n\n**With plan approval**:\n- ✅ User reviews before execution\n- ✅ Can modify or reject approach\n- ✅ Prevents costly mistakes\n- ✅ User maintains control\n- ✅ AI learns from feedback\n\n---\n\n## Core Principles\n\n### 1. User is Always in Control\n\n**Never execute without approval for**:\n- Database schema changes\n- Breaking API changes\n- Dependency updates\n- Architecture refactors\n- File deletions\n- Deployment actions\n\n### 2. Plans are Detailed\n\n**Good plans include**:\n- What will be done (specific files\u002Fchanges)\n- Why this approach (rationale)\n- What alternatives were considered\n- What risks exist\n- What the impact is\n- How long it will take\n\n### 3. Approval is Explicit\n\n**Require clear user response**:\n- ✅ \"approve\", \"yes\", \"proceed\", \"looks good\"\n- ❌ Silence, vague response, \"maybe\"\n- ⚠️ \"modify: [changes]\" triggers plan revision\n\n### 4. Learning from Feedback\n\n**Track approved\u002Frejected plans**:\n- Store approved approaches (do more like this)\n- Store rejected approaches (avoid in future)\n- Learn user preferences over time\n\n---\n\n## When to Require Approval\n\n### Always Require Approval\n\n✅ **Database changes**:\n- Schema migrations\n- RLS policy changes\n- Data migrations\n- Index additions\n\n✅ **Breaking changes**:\n- API signature changes\n- Function signature changes\n- Component prop changes\n\n✅ **Architecture changes**:\n- New dependencies\n- Framework changes\n- State management approach\n- Routing structure\n\n✅ **Risky operations**:\n- File deletions\n- Bulk updates\n- Production deployments\n\n### Optional Approval\n\n⚠️ **Complex features** (> 5 files affected)\n⚠️ **Refactoring** (multiple components)\n⚠️ **Performance optimization** (cache strategies)\n\n### No Approval Needed\n\n❌ **Simple changes**:\n- Bug fixes (\u003C 10 lines)\n- Documentation updates\n- Code formatting\n- Minor UI tweaks\n\n**Rule of Thumb**: If user might say \"wait, not like that!\", require approval.\n\n---\n\n## Plan Structure\n\n### Minimal Plan Template\n\n```markdown\n# [Feature\u002FChange Name]\n\n## Summary\n[1-2 sentence overview]\n\n## What Will Change\n- File 1: [what changes]\n- File 2: [what changes]\n- Database: [migrations if any]\n- Dependencies: [new packages if any]\n\n## Why This Approach\n[Rationale for chosen approach]\n\n## Risks\n- Risk 1: [description + mitigation]\n- Risk 2: [description + mitigation]\n\n## Estimated Time\n[How long to implement]\n\n---\n**Approve to proceed**, or reply with modifications\n```\n\n### Comprehensive Plan Template\n\n```markdown\n# [Feature\u002FChange Name]\n\n## Summary\n[2-3 sentence overview of the change and its purpose]\n\n## Requirements\n- [ ] Requirement 1\n- [ ] Requirement 2\n- [ ] Requirement 3\n\n## Proposed Approach\n\n### Architecture\n[High-level architecture description]\n\n### Implementation Steps\n1. **Step 1**: [Description]\n   - Files: [list]\n   - Changes: [brief description]\n   - Risk: [if any]\n\n2. **Step 2**: [Description]\n   - Files: [list]\n   - Changes: [brief description]\n   - Risk: [if any]\n\n[Continue for all steps...]\n\n### Files to Create (3)\n1. `path\u002Fto\u002Ffile1.ts` - [Purpose]\n2. `path\u002Fto\u002Ffile2.ts` - [Purpose]\n3. `path\u002Fto\u002Ffile3.ts` - [Purpose]\n\n### Files to Modify (2)\n1. `path\u002Fto\u002Fexisting1.ts` - [What will change]\n2. `path\u002Fto\u002Fexisting2.ts` - [What will change]\n\n### Database Changes\n**Migration**: `supabase\u002Fmigrations\u002Fxxx_add_feature.sql`\n- Add table: `feature_table`\n- Add column: `users.feature_flag`\n- Add RLS policy: `feature_access_policy`\n\n### Dependencies\n**New**:\n- package-name@^1.0.0 (Purpose: [why])\n\n**Updates**:\n- existing-package: 1.0.0 → 2.0.0 (Reason: [why])\n\n## Alternatives Considered\n\n### Alternative 1: [Name]\n**Approach**: [Description]\n**Pros**: [Benefits]\n**Cons**: [Drawbacks]\n**Why not chosen**: [Reason]\n\n### Alternative 2: [Name]\n**Approach**: [Description]\n**Pros**: [Benefits]\n**Cons**: [Drawbacks]\n**Why not chosen**: [Reason]\n\n## Risks & Mitigations\n\n| Risk | Likelihood | Impact | Mitigation |\n|------|-----------|--------|------------|\n| [Risk 1] | Medium | High | [How to prevent\u002Fhandle] |\n| [Risk 2] | Low | Medium | [How to prevent\u002Fhandle] |\n\n## Breaking Changes\n\n⚠️ **API Changes**:\n- `oldFunction()` → `newFunction()` signature changed\n- Migration path: [How to update]\n\n⚠️ **Database Changes**:\n- Table `old_name` renamed to `new_name`\n- Migration script: [Path]\n\n## Testing Strategy\n- [ ] Unit tests for [components]\n- [ ] Integration tests for [flows]\n- [ ] Manual testing: [scenarios]\n\n## Rollback Plan\nIf this fails:\n1. [Step to revert]\n2. [Step to restore]\n3. [Data recovery if needed]\n\n## Estimated Time\n- Implementation: [X hours]\n- Testing: [Y hours]\n- **Total**: [Z hours]\n\n---\n\n## Approval\n\n**Reply with**:\n- `approve` - Proceed with this plan\n- `reject` - Cancel, don't proceed\n- `modify: [your changes]` - Adjust plan first\n\n```\n\n---\n\n## Approval Workflow\n\n### Step 1: Generate Plan\n\n```markdown\nUser: \"Add Stripe payment integration\"\n\nClaude:\n\"I'll create a plan for Stripe integration first.\n\n[Generates detailed plan using template]\n\nReview the plan above. Reply:\n- 'approve' to proceed\n- 'reject' to cancel\n- 'modify: [changes]' to adjust\n\"\n```\n\n### Step 2: Wait for Explicit Approval\n\n**Valid approvals**:\n- \"approve\"\n- \"yes, proceed\"\n- \"looks good\"\n- \"go ahead\"\n- \"lgtm\" (looks good to me)\n\n**Modifications**:\n- \"modify: use Stripe Checkout instead of Elements\"\n- \"change: store payment methods in Supabase\"\n- \"add: webhook handling\"\n\n**Rejections**:\n- \"reject\"\n- \"no\"\n- \"cancel\"\n- \"let's do something different\"\n\n### Step 3: Execute or Revise\n\n**If approved**:\n1. Save plan to `.claude\u002Fmemory\u002Fplans\u002Fapproved\u002F`\n2. Execute implementation\n3. Track progress in dev docs\n4. Mark complete when done\n\n**If modified**:\n1. Update plan with user's changes\n2. Re-present revised plan\n3. Wait for approval again\n\n**If rejected**:\n1. Save to `.claude\u002Fmemory\u002Fplans\u002Frejected\u002F` with reason\n2. Learn from rejection\n3. Don't proceed\n\n### Step 4: Track Execution\n\n```markdown\n## Plan Execution Status\n\n**Plan ID**: stripe-integration-2025-01-15\n**Status**: In Progress\n**Approved**: 2025-01-15 10:00\n**Started**: 2025-01-15 10:05\n\n**Progress**:\n- [x] Step 1: Install Stripe SDK\n- [x] Step 2: Create Stripe client\n- [ ] Step 3: Implement checkout flow (IN PROGRESS)\n- [ ] Step 4: Add webhook handler\n- [ ] Step 5: Test payment flow\n\n**Current**: Implementing checkout flow in app\u002Fapi\u002Fcheckout\u002Froute.ts\n**Next**: Add webhook handler for payment events\n```\n\n---\n\n## Plan Storage\n\n### Directory Structure\n\n```\n.claude\u002Fmemory\u002Fplans\u002F\n├── proposed\u002F                    # Plans awaiting approval\n│   └── stripe-integration-2025-01-15.json\n├── approved\u002F                   # Approved plans\n│   └── stripe-integration-2025-01-15.json\n├── rejected\u002F                   # Rejected plans (learn from these)\n│   └── alternative-approach-2025-01-14.json\n└── completed\u002F                  # Completed implementations\n    └── stripe-integration-2025-01-15.json\n```\n\n### Plan File Schema\n\n```json\n{\n  \"plan_id\": \"stripe-integration-2025-01-15\",\n  \"created\": \"2025-01-15T10:00:00Z\",\n  \"status\": \"approved\" | \"proposed\" | \"rejected\" | \"in_progress\" | \"completed\",\n  \"summary\": \"Add Stripe payment integration for subscriptions\",\n  \"approved_at\": \"2025-01-15T10:05:00Z\",\n  \"started_at\": \"2025-01-15T10:10:00Z\",\n  \"completed_at\": null,\n  \"user_modifications\": [\n    \"Use Stripe Checkout instead of Elements\",\n    \"Store payment methods in Supabase\"\n  ],\n  \"files_to_create\": [\n    \"lib\u002Fstripe\u002Fclient.ts\",\n    \"app\u002Fapi\u002Fcheckout\u002Froute.ts\"\n  ],\n  \"files_to_modify\": [\n    \"package.json\",\n    \"lib\u002Fsupabase\u002Fschema.sql\"\n  ],\n  \"risks\": [\n    \"Webhook reliability\",\n    \"Payment state synchronization\"\n  ],\n  \"estimated_hours\": 4,\n  \"actual_hours\": null,\n  \"outcome\": null,\n  \"lessons_learned\": []\n}\n```\n\n---\n\n## Learning from Plans\n\n### Track Approval Patterns\n\n```json\n{\n  \"approval_patterns\": {\n    \"stripe_payments\": {\n      \"preferred_approach\": \"Stripe Checkout (not Elements)\",\n      \"storage\": \"Supabase tables\",\n      \"reason\": \"User approved this twice, rejected Elements once\",\n      \"confidence\": \"high\"\n    },\n    \"database_changes\": {\n      \"requires_approval\": true,\n      \"wants_rollback_plan\": true,\n      \"prefers_separate_migration_file\": true,\n      \"confidence\": \"high\"\n    }\n  }\n}\n```\n\n### Apply Learnings\n\n**Future similar requests**:\n```markdown\nUser: \"Add subscription billing\"\n\nClaude:\n\"Based on previous approvals, I'll plan to use:\n- Stripe Checkout (you preferred this over Elements)\n- Supabase tables for subscription state\n- Separate webhook handler\n\n[Presents plan following learned preferences]\n```\n\n### Track Rejections\n\n```json\n{\n  \"rejections\": [\n    {\n      \"plan_id\": \"complex-state-management-2025-01-10\",\n      \"reason\": \"Too complex, prefer simpler approach\",\n      \"rejected_approach\": \"Redux Toolkit\",\n      \"preferred_instead\": \"React Context\",\n      \"lesson\": \"User prefers simpler solutions when possible\"\n    }\n  ]\n}\n```\n\n---\n\n## Plan Deviations\n\n### When Implementation Differs from Plan\n\n**Acceptable deviations**:\n- Minor implementation details\n- Better solution discovered\n- Library API changed\n\n**Require new approval**:\n- Different architecture approach\n- More files affected than planned\n- Additional dependencies\n- Higher risk than estimated\n\n### Handling Deviations\n\n```markdown\nUser: \"Continue with Stripe integration\"\n\nClaude:\n\"⚠️ PLAN DEVIATION DETECTED\n\n**Original plan**: Use Stripe Elements\n**Current need**: Stripe Checkout is better for our use case\n\n**Reason**: Elements requires more frontend work, Checkout is simpler\n\n**Impact**:\n- Different files affected\n- Simpler implementation\n- Less custom UI needed\n\n**Do you approve this deviation?**\n- 'yes' - Proceed with Checkout\n- 'no' - Stick to original plan\n- 'revise' - Create new plan\n\"\n```\n\n---\n\n## Commands\n\nProvide these commands:\n\n```bash\n# Create plan\n\u002Fcreate-plan [feature-name]       # Generate plan for approval\n\n# Review plans\n\u002Fshow-plans                       # Show all plans\n\u002Fshow-plan [plan-id]              # Show specific plan\n\n# Approve\u002Freject\n\u002Fapprove [plan-id]                # Approve a plan\n\u002Freject [plan-id]                 # Reject a plan\n\n# Track progress\n\u002Fplan-status [plan-id]            # Show execution progress\n\n# History\n\u002Fapproved-plans                   # Show approved plans\n\u002Frejected-plans                   # Show rejected (learn from these)\n```\n\n---\n\n## Integration with Other Skills\n\n### With memory-management\n\n**memory-management** stores long-term preferences.\n**plan-approval** handles one-time decisions.\n\n**Example**:\n- Memory: \"User always prefers TypeScript\" (permanent)\n- Plan: \"Use Stripe Checkout for payments\" (this feature)\n\n### With context-persistence\n\n**context-persistence** tracks implementation progress.\n**plan-approval** handles pre-implementation planning.\n\n**Workflow**:\n1. Plan approval: Generate and approve plan\n2. Context persistence: Track implementation in dev docs\n3. Memory: Store outcome and learnings\n\n---\n\n## Best Practices\n\n### DO ✅\n\n1. **Present clear, detailed plans**\n2. **Wait for explicit approval**\n3. **Track plan execution progress**\n4. **Learn from approvals and rejections**\n5. **Notify user of deviations**\n6. **Store plans for future reference**\n7. **Include rollback strategy for risky changes**\n\n### DON'T ❌\n\n1. **Don't skip approval for complex changes**\n2. **Don't assume silence means approval**\n3. **Don't deviate significantly without asking**\n4. **Don't forget to track approved plans**\n5. **Don't make plans too vague**\n6. **Don't proceed if user is uncertain**\n\n---\n\n## Example: Complete Plan-Approval Flow\n\n### User Request\n\n```\nUser: \"Add Stripe subscription billing to the app\"\n```\n\n### Plan Generation\n\n```markdown\nClaude: \"I'll create a detailed plan for Stripe subscriptions.\n\n# Stripe Subscription Billing Plan\n\n## Summary\nAdd Stripe subscription billing with monthly\u002Fyearly plans, customer portal, and webhook handling.\n\n## What Will Change\n\n### Files to Create (5)\n1. `lib\u002Fstripe\u002Fclient.ts` - Stripe client initialization\n2. `lib\u002Fstripe\u002Fsubscriptions.ts` - Subscription management\n3. `app\u002Fapi\u002Fstripe\u002Fwebhook\u002Froute.ts` - Webhook handler\n4. `app\u002Fapi\u002Fcheckout\u002Froute.ts` - Checkout session creation\n5. `app\u002Fpricing\u002Fpage.tsx` - Pricing page\n\n### Files to Modify (3)\n1. `package.json` - Add stripe package\n2. `.env.example` - Add Stripe keys\n3. `lib\u002Fsupabase\u002Fschema.sql` - Add subscriptions table\n\n### Database Changes\n**Migration**: `supabase\u002Fmigrations\u002F20250115_subscriptions.sql`\n- Table: `subscriptions` (user_id, stripe_subscription_id, status, plan_id)\n- Table: `subscription_plans` (name, price, interval)\n- RLS policies for subscription access\n\n## Why This Approach\n- Stripe Checkout: Hosted, PCI-compliant, less frontend work\n- Webhooks: Reliable payment event handling\n- Supabase storage: Sync subscription state with user data\n\n## Alternatives Considered\n- **Stripe Elements**: More control but more work. Rejected: Overkill for MVP\n- **Manual billing**: Can't scale. Rejected: Need automation\n\n## Risks\n- ⚠️ Webhook reliability: Mitigate with retry logic + monitoring\n- ⚠️ State sync: Mitigate with idempotent webhook handlers\n\n## Estimated Time\n- Implementation: 3 hours\n- Testing: 1 hour\n- **Total**: 4 hours\n\n---\n\n**Do you approve this plan?**\nReply: 'approve', 'modify: [changes]', or 'reject'\n```\n\n### User Approval\n\n```\nUser: \"approve\"\n```\n\n### Execution\n\n```markdown\nClaude: \"✅ Plan approved. Starting implementation.\n\nSaving plan to: .claude\u002Fmemory\u002Fplans\u002Fapproved\u002Fstripe-subscriptions-2025-01-15.json\n\nCreating dev docs: \u002Fcreate-plan stripe-subscriptions\n\nStarting with Step 1: Install Stripe SDK...\"\n\n[Proceeds with implementation while tracking progress]\n```\n\n### Completion\n\n```markdown\nClaude: \"✅ Stripe subscription billing complete!\n\n**Completed**:\n- ✅ All 5 files created\n- ✅ Database migration applied\n- ✅ Webhooks tested with Stripe CLI\n- ✅ Checkout flow working\n\n**Time**: 3.5 hours (30 min under estimate)\n\nMarking plan as completed.\nStoring lessons learned:\n- Stripe Checkout works well for subscriptions\n- Webhook testing critical (caught 2 bugs)\n```\n\n---\n\n## Summary\n\n**Plan-approval workflow enables**:\n1. ✅ User control over AI actions\n2. ✅ Prevention of costly mistakes\n3. �� Clear communication of approach\n4. ✅ Learning from user feedback\n5. ✅ Transparent decision making\n\n**Key steps**:\n1. Generate detailed plan\n2. Wait for explicit approval\n3. Execute or revise based on feedback\n4. Track progress\n5. Learn from outcome\n\n**Storage**: `.claude\u002Fmemory\u002Fplans\u002F` with status tracking\n\n**Commands**: `\u002Fcreate-plan`, `\u002Fapprove`, `\u002Freject`, `\u002Fshow-plans`\n\n**Rule**: Always require approval for complex, risky, or breaking changes!\n\nUse this skill to ensure Claude Code never acts without your explicit permission for important changes.\n",{"name":5,"description":7},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Faiskillstore\u002Fmarketplace\u002Fdojocodinglabs\u002Fplan-approval",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill plan-approval",{"tool":59,"command":60},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill plan-approval",{"tool":62,"command":63},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill plan-approval","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fdojocodinglabs\u002Fplan-approval\u002FSKILL.md",true,[67],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"skill-report.json","REFERENCE","参考文档",16708,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fdojocodinglabs\u002Fplan-approval\u002Fskill-report.json",[74,83,92,101,107,113],{"skillNo":75,"name":76,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":39},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[80,81,82],"model","model hierarchy","model hierarchy skill",{"skillNo":84,"name":85,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":39},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[89,90,91],"MCP","zoom","zoom mcp",{"skillNo":93,"name":94,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":39},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[98,99,100,90],"sdk","zoom apps sdk","apps",{"skillNo":102,"name":103,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":39},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[103],{"skillNo":108,"name":109,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":39},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[109],{"skillNo":114,"name":115,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":39},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[115]]