{"skill":{"slug":"writing-plans-2","displayName":"Writing Plans","summary":"Break design into 2-5 minute tasks with verification steps.","description":"---\nname: writing-plans\ndescription: Break design into 2-5 minute tasks with verification steps.\n---\n\n# Writing Plans Skill\n\n## When to Use\n\nAfter design approval (brainstorming complete).\n\n## Task Structure\n\nEach task must have:\n1. **Goal** (1 sentence)\n2. **Files** (exact paths)\n3. **Implementation** (code snippet or pseudo-code)\n4. **Verification** (command to run + expected output)\n5. **Estimated Time** (2-5 min ideal)\n\n## Plan Template\n\n```markdown\n# Implementation Plan: [Feature Name]\n\n## Tasks\n\n### Task 1: [Goal]\n**Files:** `src/file.js`\n**Implementation:**\n```javascript\n// Add function here\nfunction cacheFetch(key) {\n  // ...\n}\n```\n**Verification:**\n```bash\nnpm test -- cache.test.js\n# Expected: 1 passing\n```\n**Estimated Time:** 3 min\n\n### Task 2: [Goal]\n[... repeat]\n```\n\nSave to: `docs/plans/YYYY-MM-DD-feature-name.md`\n\n## Quality Checklist\n\nBefore finalizing plan:\n- [ ] Every task has exact file paths\n- [ ] Every task has verification command\n- [ ] No task >5 min (if yes, split)\n- [ ] Tasks are ordered (dependencies first)\n- [ ] Plan is reviewable (concrete, not vague)\n\n## Anti-Patterns\n\n❌ Vague tasks (\"Improve caching\")\n❌ No verification steps\n❌ Tasks without file paths\n❌ Monster tasks (>10 min)\n\n## Example\n\nBad Task:\n```\nTask 1: Add caching\n- Implement cache layer\n```\n\nGood Task:\n```\nTask 1: Add in-memory cache for API responses\n**Files:** `src/cache.js` (new), `src/api.js` (modify)\n**Implementation:**\n```javascript\n// cache.js\nconst cache = new Map();\nexport function get(key) { return cache.get(key); }\nexport function set(key, val, ttl) { \n  cache.set(key, val);\n  setTimeout(() => cache.delete(key), ttl);\n}\n\n// api.js (modify fetchUser)\nconst cached = cache.get(`user:${id}`);\nif (cached) return cached;\n// ... existing fetch logic\ncache.set(`user:${id}`, result, 60000);\n```\n**Verification:**\n```bash\nnode -e \"const c = require('./src/cache'); c.set('test', 42, 1000); console.log(c.get('test'));\"\n# Expected: 42\n```\n**Estimated Time:** 4 min\n```\n","tags":{"latest":"0.1.0"},"stats":{"comments":0,"downloads":256,"installsAllTime":9,"installsCurrent":0,"stars":0,"versions":1},"createdAt":1771356445728,"updatedAt":1778491567625},"latestVersion":{"version":"0.1.0","createdAt":1771356445728,"changelog":"- Initial release of the writing-plans skill.\n- Provides a clear structure for breaking design into 2–5 minute tasks with verification steps.\n- Includes a detailed plan template with sections for goal, files, implementation, verification, and estimated time.\n- Adds a quality checklist to ensure plans are concrete, reviewable, and easily testable.\n- Lists anti-patterns and example tasks to guide users in writing effective implementation plans.","license":null},"metadata":null,"owner":{"handle":"nefas11","userId":"s17dm5je0vqms1agn99zedyfqh87fssd","displayName":"Nefas11","image":"https://avatars.githubusercontent.com/u/104435182?v=4"},"moderation":null}