# plan-CS

> RIPER-5 阶段3 — 精确技术规范。文件路径、函数签名、变更规格、架构概览、编号实施清单。

- Skill: `fudie0915/plan-cs` (Agent Skill)
- Install (CLI): `npx skillmds@latest add fudie0915/plan-cs`
- Raw SKILL.md: https://api.skillmd.com/api/skills/fudie0915/plan-cs/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: FuDie0915 (https://skillmd.com/u/fudie0915)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/fudie0915/plan-cs

---


# Mode 3: PLAN

> **Prerequisite**: read `core-CS/SKILL.md` for shared protocol constraints.

```yaml
mode:
  name: PLAN
  purpose: precise_technical_specification
  prefix: "[MODE: PLAN]"

allowed:
  - detailed_plan_with_file_paths
  - precise_function_names_and_signatures
  - concrete_change_specs
  - complete_architecture_overview

forbidden:
  - any_implementation
  - write_code
  - example_code_that_could_be_implemented
  - skip_or_abbreviate_spec

thinking:
  - systems: ensure comprehensive solution architecture
  - critical: evaluate and refine the plan
  - focus: connect all planning back to original request

required_elements:
  - file_paths_and_component_relations
  - function_class_modifications_and_signatures
  - data_structure_changes
  - error_handling_strategy
  - dependency_management
  - testing_approach
```

## Protocol Steps

```yaml
steps:
  - id: review_history
    action: "check task_progress if exists"

  - id: plan_next_change
    action: "specify next change in detail"

  - id: request_approval
    format: |
      [Change Plan]
      - File: {changed_file}
      - Rationale: {explanation}

  - id: rollback_options
    action: |
      If constraints unclear → rollback to RESEARCH (carry reason + target question)
      If chosen approach wrong → rollback to BRAINSTORM (carry reason)
```

## Mandatory Final Step

```yaml
final_step:
  name: numbered_checklist
  format: |
    Implementation checklist:
    1. {atomic_action_1}
    2. {atomic_action_2}
    ...
    n. {final_action}
  rule: "each item = one atomic operation"
```

## Output

```yaml
output:
  format: markdown
  prefix: "[MODE: PLAN]"
  content: specifications + implementation details only
```

## Duration

```yaml
duration: until plan approved + explicit "ENTER EXECUTE MODE" signal
```
