writing-plans
編寫包含 TDD 任務的詳細實作計劃
也可從以下取得: ZhanlinCui,CodingCossack,sickn33,obra,Cygnusfear,Cycleaddict,davila7,DYAI2025
工程師在將複雜功能拆解為可管理的步驟時常遇到困難。此技能可建立精細的實作計劃,並將測試驅動開發內建於每個任務中。
下載技能 ZIP
在 Claude 中上傳
前往 設定 → 功能 → 技能 → 上傳技能
開啟並開始使用
測試它
正在使用「writing-plans」。 Create a plan for adding user avatar upload functionality
預期結果:
- Plan: Add User Avatar Upload Feature
- Goal: Allow users to upload and display profile avatars
- Architecture: File upload with image processing and CDN storage
- Tech Stack: React, Node.js, AWS S3, Sharp for image processing
- Task 1: Create avatar upload API endpoint
- Task 2: Write failing test for file validation
- Task 3: Implement image resize service
- Task 4: Create React upload component
- Task 5: Add progress indicator
- Each task includes specific files, steps, and verification criteria
正在使用「writing-plans」。 Plan a database migration from MySQL to PostgreSQL
預期結果:
- Plan: Database Migration MySQL to PostgreSQL
- Goal: Move all data and schemas from MySQL to PostgreSQL with zero downtime
- Architecture: Dual-write during migration, read replica switchover
- Tech Stack: PostgreSQL, MySQL, pgloader, application-level dual-write
- Task 1: Audit existing MySQL schema and identify compatibility issues
- Task 2: Create PostgreSQL schema with necessary adjustments
- Task 3: Set up data synchronization pipeline
- Task 4: Migrate historical data in batches
- Task 5: Switch reads to PostgreSQL
- Task 6: Verify all queries work correctly
正在使用「writing-plans」。 Create a plan to add dark mode to a web application
預期結果:
- Plan: Add Dark Mode Support
- Goal: Allow users to toggle between light and dark themes
- Architecture: CSS custom properties with JavaScript theme toggle
- Tech Stack: React, CSS custom properties, localStorage persistence
- Task 1: Audit existing styles for hardcoded color values
- Task 2: Define theme color palette in CSS variables
- Task 3: Create ThemeContext for state management
- Task 4: Build theme toggle component
- Task 5: Apply dark theme styles to all components
- Task 6: Add system preference detection
安全審計
安全This skill contains only documentation files with no executable code. The 33 static findings are false positives triggered by markdown backtick syntax and JSON structure misinterpreted as code execution or cryptographic patterns. No actual security risks exist.
風險因素
🌐 網路存取 (1)
📁 檔案系統存取 (1)
品質評分
你能建構什麼
規劃複雜功能的實作
在撰寫程式碼之前,將多元件功能拆解為可測試的任務
為新進開發人員建立入職任務
產生初級開發人員可以獨立遵循的逐步計劃
使用精細任務進行工作評估
將高階需求轉換為詳細的實作步驟
試試這些提示
Create an implementation plan for adding a password validation function that checks strength and returns specific error messages
Plan the implementation of a user authentication system with login form, API endpoint, and session management
Create a plan to refactor a monolithic React component into smaller, reusable components
Plan adding Stripe payment processing to an e-commerce application with webhooks
最佳實務
- 在實作程式碼之前務必先撰寫測試,以實現真正的 TDD
- 將任務保持在 2-5 分鐘內可完成的小範圍
- 在進入下一個任務之前獨立驗證每個任務
- 在完成每個任務後進行提交,以維持乾淨的 git 歷史記錄
避免
- 建立跨越多個檔案或關注點的任務
- 為了節省時間而跳過測試驗證步驟
- 在測試之前撰寫實作
- 使任務過於龐大或模糊而難以驗證