跳到正文
cccskills
免费在 GitHub 公开

plan

Write an actionable markdown implementation plan, without executing it.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md3.7 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Plan Mode

Use this skill when the user wants a plan, not execution.

Core behavior

Planning only - no implementation this turn.

  • Do not edit project files except the plan file itself.
  • Do not run mutating commands, commit, push, or perform external actions.
  • Inspect the repo freely with read-only tools (file_read, file_list, shell_exec read-only).
  • Deliverable: a markdown plan saved under .laruche/plans/.

Save location

.laruche/plans/YYYY-MM-DD_HHMMSS-<slug>.md

Use a path relative to the active workspace root. If the runtime specifies a target path, use that instead.

Interaction style

  • Clear request → write the plan directly.
  • Invoked without context → infer from conversation history.
  • Genuinely underspecified → ask one brief clarifying question.
  • After saving → reply with a one-line summary and the saved path.

Writing the Plan

Core principle: A good plan makes implementation obvious. If someone has to guess, the plan is incomplete.

Assume the implementer is skilled but has zero codebase context and weak test design instincts. Give them bite-sized tasks, exact paths, complete code, and exact commands.

Plan document structure

# [Feature Name] Implementation Plan

**Goal:** [One sentence]
**Architecture:** [2–3 sentences on approach]
**Tech Stack:** [Key technologies/libraries]

---

Task structure

### Task N: [Descriptive Name]

**Objective:** [One sentence]

**Files:**
- Create: `exact/path/to/new_file.py`
- Modify: `exact/path/to/existing.py:45-67`
- Test: `tests/path/to/test_file.py`

**Step 1: Write failing test**
```python
def test_specific_behavior():
    assert function(input) == expected
```

**Step 2: Verify failure** - `pytest tests/path/test.py::test_specific_behavior -v`
Expected: FAIL - "function not defined"

**Step 3: Write minimal implementation**
```python
def function(input):
    return expected
```

**Step 4: Verify pass** - `pytest tests/path/test.py::test_specific_behavior -v`
Expected: PASS

**Step 5: Commit**
```bash
git add tests/path/test.py src/path/file.py
git commit -m "feat: add specific feature"
```

Task granularity

Each task = 2–5 minutes of focused work. One action per step. If a task feels large, split it.

Task ordering

  1. Setup / infrastructure
  2. Core functionality (TDD per unit)
  3. Edge cases
  4. Integration
  5. Cleanup / documentation

Planning process

  1. Understand - read requirements, acceptance criteria, constraints.
  2. Explore - use file_list, file_read, shell_exec (read-only) to understand structure and find similar patterns.
  3. Design - choose architecture, file organization, dependencies, testing strategy.
  4. Write tasks - exact paths, complete copy-pasteable code, exact commands with expected output, verification steps.
  5. Review - tasks are sequential, bite-sized, DRY, YAGNI, TDD-compliant, leave nothing to guesswork.

Principles

  • DRY - extract repeated logic into shared functions.
  • YAGNI - implement only what is needed now.
  • TDD - every code-producing task includes the full red→green cycle.
  • Frequent commits - one commit per completed task.

Common mistakes

BadGood
"Add authentication""Create User model with email and password_hash fields"
"Add validation function"Include the complete function code
"Test it works""pytest tests/test_auth.py -v - expected: 3 passed"
"Create the model file""Create: src/models/user.py"

Execution handoff

After saving the plan, offer:

"Plan saved at <path>. Ready to execute task-by-task - shall I start?"

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Drive an installed LaRuche App through its declared actions, never its files.

中文简介正在准备中。当前显示原文说明。

infinition/LaRuche332026年9月22日 更新

arxiv

免费

Find academic papers on arXiv, with citation counts and BibTeX.

中文简介正在准备中。当前显示原文说明。

infinition/LaRuche332026年9月22日 更新

ascii-art

免费

Render text or an image as ASCII art for terminal-friendly output.

中文简介正在准备中。当前显示原文说明。

infinition/LaRuche332026年9月22日 更新

Track RSS/Atom feeds and blogs via blogwatcher-cli.

中文简介正在准备中。当前显示原文说明。

infinition/LaRuche332026年9月22日 更新

Drive a real web browser: navigate, read, find, click, fill, screenshot

中文简介正在准备中。当前显示原文说明。

infinition/LaRuche332026年9月22日 更新

Measure a codebase: lines of code, language mix, and symbol lookups.

中文简介正在准备中。当前显示原文说明。

infinition/LaRuche332026年9月22日 更新

查看 infinition 的全部技能

报告此技能的问题