← 返回
未分类 中文

Writing Plans

Break design into 2-5 minute tasks with verification steps.
将设计分解为2-5分钟的任务,并设置验证步骤
nefas11 nefas11 来源
未分类 clawhub v0.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 185
下载
💾 0
安装
1
版本
#latest

概述

Writing Plans Skill

When to Use

After design approval (brainstorming complete).

Task Structure

Each task must have:

  1. Goal (1 sentence)
  2. Files (exact paths)
  3. Implementation (code snippet or pseudo-code)
  4. Verification (command to run + expected output)
  5. Estimated Time (2-5 min ideal)

Plan Template

# Implementation Plan: [Feature Name]

## Tasks

### Task 1: [Goal]
**Files:** `src/file.js`
**Implementation:**

// Add function here

function cacheFetch(key) {

// ...

}

**Verification:**

npm test -- cache.test.js

Expected: 1 passing

**Estimated Time:** 3 min

### Task 2: [Goal]
[... repeat]

Save to: docs/plans/YYYY-MM-DD-feature-name.md

Quality Checklist

Before finalizing plan:

  • [ ] Every task has exact file paths
  • [ ] Every task has verification command
  • [ ] No task >5 min (if yes, split)
  • [ ] Tasks are ordered (dependencies first)
  • [ ] Plan is reviewable (concrete, not vague)

Anti-Patterns

❌ Vague tasks ("Improve caching")

❌ No verification steps

❌ Tasks without file paths

❌ Monster tasks (>10 min)

Example

Bad Task:

Task 1: Add caching
- Implement cache layer

Good Task:

Task 1: Add in-memory cache for API responses
**Files:** `src/cache.js` (new), `src/api.js` (modify)
**Implementation:**

// cache.js

const cache = new Map();

export function get(key) { return cache.get(key); }

export function set(key, val, ttl) {

cache.set(key, val);

setTimeout(() => cache.delete(key), ttl);

}

// api.js (modify fetchUser)

const cached = cache.get(user:${id});

if (cached) return cached;

// ... existing fetch logic

cache.set(user:${id}, result, 60000);

**Verification:**

node -e "const c = require('./src/cache'); c.set('test', 42, 1000); console.log(c.get('test'));"

Expected: 42

**Estimated Time:** 4 min

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-05-12 06:17 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Brainstorming

nefas11
编码前通过提问完善设计,适用于用户需求无明确规格时。
★ 1 📥 1,563
ai-agent

Find Skills

root
帮助用户发现和安装智能体技能,当用户询问如「如何做X」、「找X的技能」、「有能做...的吗」等问题时
★ 1,547 📥 594,810
ai-agent

Agent Browser

rez0
用于 AI 代理的浏览器自动化 CLI。当用户需要与网站交互(包括浏览页面、填写表单、点击按钮、截图等)时使用。
★ 883 📥 359,050