Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计通过

hplanhplan 搜索

Agent Skill

hplan 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,968

周安装

167

GitHub Stars

5

下载量

1,389
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:hplan(hplan 搜索)
来源仓库:https://github.com/noirewinter/hplan
安装命令:
openclaw skills install hplan
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install hplan

简介

针对多阶段复杂任务提供分层持续规划与分解策略。

  • 适合项目管理、科研实验或产品开发中的阶段性目标拆解。
  • 支持动态调整计划并根据反馈迭代优化执行路径。hplan 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 输出包含时间线、责任人与交付物清单的完整任务蓝图。
  • 建议结合具体资源约束与风险因素定制个性化计划方案。

SKILL.md

name
hplan
description
>
version
1.0.0
metadata
openclaw
emoji
📋
homepage
https://github.com/Noirewinter/hplan
files

hplan — Hierarchical Persistent Planning

Use the file system as persistent working memory for complex multi-phase tasks. This skill solves two problems that arise in long task executions:

  • Goal drift — the agent gradually forgets the original objective as the work progresses
  • Spec loss — detailed requirements, deliverables, and dependencies vanish from context

Core Idea

Context window = RAM (volatile, limited)
File system    = Disk (persistent, unlimited)
Memory system  = Long-term recall (cross-session, searchable)
→ Task structure and specs go to .plan/ (file system)
→ Key milestones and decisions go to memory (MEMORY.md / daily notes)
→ The overview stays concise for quick re-reading
→ All three layers work together to prevent drift and loss

.plan/ Directory Structure

All plan files are stored in the .plan/ directory under the current workspace:

.plan/
├── overview.md              ← Global summary (≤25 lines, re-read frequently)
├── decisions.md             ← Decision log
├── errors.md                ← Error log
└── phases/
    ├── phase1_xxx/
    │   ├── spec.md          ← Detailed spec for this phase
    │   └── checklist.md     ← Item-by-item completion status
    ├── phase2_xxx/
    │   └── ...
    └── ...

Use the templates in templates/ as starting points for each file. Always use relative paths (.plan/...) when reading and writing plan files.

Integration with OpenClaw Memory

hplan uses the file system for structured task data (.plan/ directory) and OpenClaw's memory system for cross-session awareness. They serve different purposes:

LayerWhat it storesWhy
.plan/ filesFull specs, checklists, detailed plansStructured, complete, not subject to compaction
MEMORY.mdTask goal, current phase, key decisionsSurvives session restarts, loaded automatically
Daily notesProgress snapshots, phase completionsSearchable history, compaction-safe via memory

When to write to memory

  • Plan creation: Save the task goal and phase list to memory ("Active hplan: [goal], phases: [list], plan at .plan/")
  • Phase completion: Save a progress snapshot ("hplan progress: completed phase2_xxx, now on phase3_xxx, 2/4 phases done")
  • Important decisions: When recording in decisions.md, also save a one-line summary to memory
  • Session ending with incomplete work: Save current state ("hplan paused: phase2_xxx in_progress (3/5), next step: [description]")

When to search memory

  • New session: Use memory_search("hplan") to quickly find if there's an active plan and what state it was in
  • Resuming after interruption: Search for the latest progress snapshot to orient quickly
  • Cross-referencing past decisions: Search memory for decision context from earlier sessions

Mandatory Behaviors

Since this environment does not have automatic hook injection, you must follow these behaviors manually to maintain plan awareness:

1. Check .plan/ before any action

This is the first thing to do in every conversation, before any file writes.

Check if .plan/overview.md already exists:

  • Exists with incomplete phases: Show the user the current goal and progress, then ask: "There is an unfinished plan. Would you like to continue it, or discard it and start a new plan?" Wait for the user's answer before doing anything else.
  • Exists with all phases complete: Silently delete the entire .plan/ directory and proceed normally.
  • Does not exist: Proceed normally.

Never overwrite or modify an existing .plan/ without checking its status first.

2. Re-read overview.md frequently

Before every significant action (producing deliverables, making decisions, starting a new step), re-read .plan/overview.md to stay aligned with the goal and current phase. This is the most important behavior — it prevents goal drift.

3. Re-read the current phase spec before working

When starting work on any phase, always read the full spec.md and checklist.md for that phase first. Do not skip this step.

4. Update progress after each subtask

After completing a subtask, immediately update:

  • The phase's checklist.md ([ ][x])
  • The progress count in overview.md (e.g., in_progress (3/6))

5. Context recovery on new conversations

When a user says "continue" or references an existing plan:

  1. First, use memory_search("hplan") to find the latest plan state
  2. Then check if .plan/overview.md exists and read it
  3. Read the current phase's spec.md and checklist.md
  4. Confirm the current state with the user before proceeding

6. Save progress before session ends

When the conversation is ending with incomplete phases:

  • Save the current state to memory: goal, current phase, progress count, and next action
  • This ensures the next session can pick up quickly even before reading .plan/ files

7. Check completion before finishing

Before ending your response on a planning task, verify whether all phases in overview.md are marked [x]. If incomplete phases remain, continue working or inform the user about remaining tasks. The user can exit the plan at any time by deleting the .plan/ directory.

Workflow

Step 1: Create the Plan

After receiving a complex task:

  1. Check .plan/ status as described in Mandatory Behavior #1
  2. Create the .plan/ directory structure
  3. Write overview.md using the template (≤25 lines)
  4. Create phase directories with spec.md (≤60 lines each) and checklist.md
  5. Create decisions.md and errors.md
  6. Save the task goal and phase list to memory for cross-session recall

Step 2: User Confirmation (cannot be skipped)

Present the plan to the user and wait for explicit confirmation before executing.

What to show:

  • The full overview.md content (goal and phase breakdown)
  • A summary of each phase's spec.md (key deliverables and scope)
  • Total number of phases

What to ask:

  • Is the phase breakdown reasonable? Need to add, remove, or split phases?
  • Is the scope for each phase correct? Anything missing?
  • Ready to start execution?

Iterating on the plan:

  • If the user suggests changes, update the plan files accordingly
  • Present the updated plan and ask for confirmation again
  • Repeat until the user explicitly agrees
  • Keep overview.md and phase directories in sync during any modifications: adding a phase means both an overview entry AND a new directory; removing a phase means both are deleted

Only proceed to execution after the user explicitly confirms.

Step 3: Execute Phase by Phase

  1. Read the current phase's spec.md and checklist.md in full
  2. Work through checklist items one by one
  3. Update checklist.md after each completed item
  4. When a phase is complete:

- Update overview.md and move to the next phase - Save a progress snapshot to memory

Step 4: Phase Switching

When moving to the next phase:

  1. Mark the completed phase as [x] ... → complete in overview.md
  2. Update current_phase to the next phase ID
  3. Read the new phase's spec.md and checklist.md before starting work
  4. Save the phase transition to memory

Step 5: Error Handling

1st failure: Diagnose and fix → record in errors.md
2nd failure: Try a different approach → record in errors.md
3rd failure: Re-examine assumptions → update spec.md
Still failing: Explain the situation to user, request guidance

Plan Lifecycle

New conversation with existing .plan/

When a new conversation starts, check if .plan/overview.md exists:

  • Has incomplete phases: Ask the user whether to continue the existing plan or discard it and start fresh. Wait for the user's decision before proceeding.
  • All phases complete: Delete the entire .plan/ directory automatically, then proceed with the new task.

After plan completion

When all phases are marked [x]:

  1. Save a completion summary to memory: "hplan completed: [goal], all N phases done"
  2. Inform the user that all tasks are complete

overview.md Format (≤25 lines)

# [Project Name]
current_phase: phase2_xxx

## Goal
[One sentence describing the final objective]

## Phases
- [x] phase1_xxx: [Phase description] → complete
- [ ] phase2_xxx: [Phase description] → in_progress (2/4)
- [ ] phase3_xxx: [Phase description] → pending

## Blockers
None

## Last Decision
[One-sentence summary]

## Last Error
None

Never put detailed task descriptions, lengthy requirements, or step-by-step procedures in overview.md. Those belong in the phase directories.

Key Constraints

  • overview.md ≤ 25 lines (re-read it frequently to prevent goal drift)
  • spec.md ≤ 60 lines per phase (split into multiple phases if longer)
  • Always read phase spec before starting work on it
  • Update checklist immediately after completing each item
  • Record decisions in decisions.md, errors in errors.md
  • Save key milestones to memory for cross-session continuity
  • You should aim to execute all checklist items yourself rather than handing them off to the user

When to Use

  • Multi-phase tasks (3+ phases)
  • Complex projects with multiple deliverables or work streams
  • Tasks requiring coordination across many steps or dependencies
  • Long-running projects spanning multiple sessions

When NOT to Use

  • Simple questions or short tasks
  • Single-step work that needs no tracking

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

75.13%
按下载量换算1,044

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills