Agent Skillsnearai/ironclaw › plan-mode

plan-mode

GitHub

提供结构化自主任务规划能力,支持创建、审批及执行计划。通过MemoryDocs管理步骤、依赖与风险,结合Missions实现自动化执行与进度追踪,确保复杂任务的有序完成。

docs/internal/archived-skills/plan-mode/SKILL.md nearai/ironclaw

Trigger Scenarios

用户请求制定任务执行计划 需要分解复杂工作为可执行步骤 启动或监控自动化任务流程

Install

npx skills add nearai/ironclaw --skill plan-mode -g -y
More Options

Non-standard path

npx skills add https://github.com/nearai/ironclaw/tree/main/docs/internal/archived-skills/plan-mode -g -y

Use without installing

npx skills use nearai/ironclaw@plan-mode

指定 Agent (Claude Code)

npx skills add nearai/ironclaw --skill plan-mode -a claude-code -g -y

安装 repo 全部 skill

npx skills add nearai/ironclaw --all -g -y

预览 repo 内 skill

npx skills add nearai/ironclaw --list

SKILL.md

Frontmatter
{
    "name": "plan-mode",
    "version": "0.1.0",
    "activation": {
        "tags": [
            "planning",
            "autonomous",
            "task-management"
        ],
        "keywords": [
            "[PLAN MODE]",
            "plan mode",
            "create a plan",
            "make a plan",
            "execution plan",
            "step by step plan"
        ],
        "patterns": [
            "\\[PLAN MODE\\]",
            "plan (out|how to|before|for)"
        ],
        "max_context_tokens": 2500
    },
    "description": "Structured planning mode for autonomous task execution. Creates plans as MemoryDocs, executes via Missions, tracks progress with live checklist."
}

Plan Mode

You are in plan mode. Follow these protocols precisely.

Creating a Plan

When asked to create a plan (message contains [PLAN MODE] Create):

  1. Gather context: Use memory_search for relevant prior work and decisions.
  2. Analyze: Determine what tools and steps are needed. Consider dependencies and risks.
  3. Write the plan: Use memory_write to save the plan at plans/<slug>.md where slug is a short kebab-case name derived from the goal.
  4. Emit checklist: Call plan_update with status "draft" and all steps as "pending".
  5. Present: Tell the user the plan is ready. Show the steps and say: "Use /plan approve to start autonomous execution, or /plan revise <slug> <feedback> to adjust."

Plan Document Format

Write plans to workspace memory in this format:

plan_id: <slug>
status: draft

## Goal
<clear statement of what needs to be accomplished>

## Success Criteria
<how to know the plan is complete>

## Steps
1. [ ] Step title -- tools: [tool1, tool2] -- risk: low -- est: 5min
2. [ ] Step title -- tools: [tool3] -- risk: medium -- est: 10min
3. [ ] Step title -- tools: [tool4, tool5] -- risk: low -- est: 5min

## Risks
- Risk description and mitigation strategy

## Progress Log
(updated during execution)

Plan Rules

  • Each step MUST specify which tools it needs
  • Steps should be independently verifiable
  • Include risk assessment (low/medium/high) per step
  • Include time estimates per step
  • Keep plans under 20 steps; decompose larger work into sub-plans
  • Steps should be ordered by dependency (earlier steps enable later ones)

Approving and Executing a Plan

When asked to approve a plan (message contains [PLAN MODE] Approve):

  1. Read the plan from memory using memory_search or memory_read.
  2. Call mission_create with:
    • name: plan:<slug>
    • goal: The full plan content (goal, steps, success criteria)
    • cadence: manual
  3. Call mission_fire with the mission ID to start execution.
  4. Call plan_update with status "executing" and the mission_id.
  5. Update the plan document status to "executing" via memory_write.
  6. Tell the user: "Plan execution started. Mission ID: . Check progress with /plan status <slug>."

During Mission Thread Execution

When you are executing as part of a mission thread (your context includes "# Mission:" header with a plan):

  1. The plan MemoryDoc is in your project knowledge. Read the steps carefully.
  2. Check current_focus -- if set, this tells you which step to work on next.
  3. Execute the current step using the specified tools.
  4. Call plan_update to update the checklist:
    • Mark the current step as "completed" with a result summary
    • Mark the next step as "in_progress"
  5. Report what you accomplished and what's next.
  6. If a step fails:
    • Call plan_update marking the step as "failed" with the error
    • Try ONE alternative approach
    • If still failing, call plan_update with overall status "failed" and stop

Checking Plan Status

When asked for plan status (message contains [PLAN MODE] Show status):

  1. Search for the plan: memory_search for the plan slug or "plan:".
  2. If a mission exists, use mission_list to check mission state.
  3. Summarize: X of Y steps completed, current step, any blockers.
  4. Call plan_update to refresh the UI checklist.

Listing Plans

When asked to list plans (message contains [PLAN MODE] List all plans):

  1. Use memory_search with query "plan" to find plan documents.
  2. List each plan with: slug, status, step count, created date.
  3. If no plans found, say "No plans found. Use /plan <description> to create one."

Revising a Plan

When asked to revise (message contains [PLAN MODE] Revise):

  1. Read the existing plan from memory.
  2. Apply the user's feedback to update the steps.
  3. Reset any failed/in-progress steps back to pending.
  4. Rewrite the plan via memory_write (append: false).
  5. Call plan_update with status "draft" and updated steps.
  6. Present the revised plan and suggest /plan approve to re-execute.

Version History

  • 5380a32 Current 2026-08-20 07:09

Same Skill Collection

.claude/skills/architecture-video/SKILL.md
.claude/skills/ironclaw-reborn-architecture-review/SKILL.md
.claude/skills/ironclaw-reborn-orientation/SKILL.md
.claude/skills/ironclaw-reborn-skill-maintainer/SKILL.md
.claude/skills/ironclaw-reborn-testing/SKILL.md
.claude/skills/mintlify-docs/SKILL.md
.claude/skills/railway-test/SKILL.md
.claude/skills/reborn-extension-surfaces/SKILL.md
.claude/skills/reborn-feature/SKILL.md
.claude/skills/thermo-nuclear-code-quality-review/SKILL.md
docs/internal/archived-skills/ceo-setup/SKILL.md
docs/internal/archived-skills/code-review/SKILL.md
docs/internal/archived-skills/commitment-setup/SKILL.md
docs/internal/archived-skills/content-creator-setup/SKILL.md
docs/internal/archived-skills/developer-setup/SKILL.md
docs/internal/archived-skills/github-workflow/SKILL.md
docs/internal/archived-skills/github/SKILL.md
docs/internal/archived-skills/linear/SKILL.md
docs/internal/archived-skills/llm-council/SKILL.md
docs/internal/archived-skills/local-test/SKILL.md
docs/internal/archived-skills/new-project/SKILL.md
docs/internal/archived-skills/parallel-pr-review/SKILL.md
docs/internal/archived-skills/portfolio/SKILL.md
docs/internal/archived-skills/project-setup/SKILL.md
docs/internal/archived-skills/trader-setup/SKILL.md
docs/internal/archived-skills/web-ui-test/SKILL.md
skills/coding/SKILL.md
skills/commitment-digest/SKILL.md
skills/commitment-triage/SKILL.md
skills/decision-capture/SKILL.md
skills/delegation-tracker/SKILL.md
skills/delegation/SKILL.md
skills/idea-parking/SKILL.md
skills/product-prioritization/SKILL.md
skills/qa-review/SKILL.md
skills/review-checklist/SKILL.md
skills/review-readiness/SKILL.md
skills/routine-advisor/SKILL.md
skills/security-review/SKILL.md
skills/tech-debt-tracker/SKILL.md
skills/commit/SKILL.md

Metadata

Files
0
Version
5380a32
Hash
0c3992bc
Indexed
2026-08-20 07:09

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-21 21:33
浙ICP备14020137号-1 $mapa de visitantes$