简介
来自个人开发者 malphas-gh 的 CLI 任务管理工具,通过 JSON-first 架构实现多项目上下文感知与自动化工作流追踪,为开发者提供跨项目任务调度与研发生命周期管理能力。
原始描述
Multi-project task and research management (JSON-first CLI)
中文使用说明 来自收录源
核心用法
ClawPM 是一个面向多项目场景的任务与研究管理 CLI 工具,本 Skill 为其提供结构化文档与元数据支持。核心工作流围绕「项目-任务-日志」三层架构:通过 clawpm project init 初始化项目,使用 clawpm add/start/done 快速管理任务状态,借助 clawpm context 一键获取包含 git 状态、当前任务、阻塞项的完整上下文。所有命令默认输出 JSON,便于 Agent 解析,-f text 切换为人类可读格式。
显著优点
- JSON-first 设计:所有命令结构化输出,Agent 友好,无需复杂文本解析
- 零配置工作流:自动检测项目目录、支持短 ID(如
42自动映射CLAWP-042)、git 仓库自动初始化 - 工作日志自动化:状态变更自动记录 git 变更文件,支持
clawpm log commit关联提交历史 - 研究/问题追踪内置:原生支持
research和issues子命令,无需额外工具 - Session 提取:可提取 OpenClaw 交互记录用于复盘或训练
潜在局限
- 外部二进制依赖:实际功能由
clawpm二进制提供,Skill 本身仅为文档包装,需单独安装 Python 包 - 生态早期:GitHub 星标/社区规模未知,长期维护稳定性待观察
- 无原生同步:无内置云端同步,依赖文件系统或 git 管理多设备场景
适合人群
- 需要管理 5+ 项目的独立开发者、技术负责人
- 偏好命令行工作流、追求「可脚本化」任务管理的用户
- 使用 OpenClaw/Claude Code 等 Agent 环境、需要结构化上下文注入的场景
常规风险
- 外部二进制信任:
clawpm由个人开发者维护,建议审查其源码后通过uv pip install git+https://github.com/malphas-gh/clawpm安装 - 数据持久化:任务数据以 Markdown/JSONL 形式存储于本地
~/clawpm,需自行备份 - 权限边界:Skill 本身无代码执行,但启用后会调用外部二进制,建议限制其文件系统访问范围
技能正文
name: clawpm description: Multi-project task and research management (JSON-first CLI) user-invocable: true metadata: { "openclaw": { "requires": { "bins": ["clawpm"] }, "emoji": "📋", "install": [{ "id": "uv", "kind": "uv", "package": "git+https://github.com/malphas-gh/clawpm", "bins": ["clawpm"], "label": "Install clawpm (uv)" }] } }
ClawPM Skill
Multi-project task management. All commands emit JSON by default; use -f text for human-readable output.
First-Time Setup
clawpm setup # Creates ~/clawpm/ with portfolio.toml, projects/, work_log.jsonl
clawpm setup --check # Verify installation
Override portfolio location with CLAWPM_PORTFOLIO env var.
Creating Projects
Projects are directories with a .project/ folder. They don't need to be git repos.
Initialize in any directory
cd /path/to/my-project
clawpm project init # Auto-detects ID/name from directory
clawpm project init --id myproj # Custom ID
From a git clone (auto-init)
Git repos under ~/clawpm/projects/ auto-initialize on first use:
git clone git@github.com:user/repo.git ~/clawpm/projects/repo
cd ~/clawpm/projects/repo
clawpm add "First task" # Auto-initializes .project/, then adds task
Discover untracked repos
clawpm projects list --all # Shows tracked + untracked git repos
Quick Start
# From a project directory (auto-detected):
clawpm status # See project status
clawpm next # Get next task
clawpm start 42 # Start task (short ID works)
clawpm done 42 # Mark done
# Or set a project context:
clawpm use my-project
clawpm status # Now uses my-project
Top-Level Commands (Shortcuts)
| Command | Equivalent | Description |
|---|---|---|
clawpm add "Title" |
clawpm tasks add -t "Title" |
Quick add a task |
clawpm add "Title" -b "desc" |
clawpm tasks add -t "Title" -b "desc" |
Add with body |
clawpm add "Title" --parent 25 |
- | Add subtask |
clawpm done 42 |
clawpm tasks state 42 done |
Mark task done |
clawpm start 42 |
clawpm tasks state 42 progress |
Start working |
clawpm block 42 |
clawpm tasks state 42 blocked |
Mark blocked |
clawpm next |
clawpm projects next |
Get next task |
clawpm status |
- | Project overview |
clawpm context |
- | Full agent context |
clawpm use <id> |
- | Set project context |
Project Auto-Detection
ClawPM automatically detects your project from (in priority order):
- Subcommand flag:
clawpm tasks list --project clawpm - Global flag:
clawpm --project clawpm status - Current directory: Walks up looking for
.project/settings.toml - Auto-init: If in untracked git repo under project_roots, auto-initializes
- Context: Previously set with
clawpm use <project>
Short Task IDs
You can use just the numeric part of a task ID:
42→CLAWP-042(prefix derived from project ID)CLAWP-042→CLAWP-042(full ID works too)
Subtasks
clawpm add "Subtask" --parent 25 # Creates subtask (auto-splits parent if needed)
clawpm tasks split 25 # Manually convert task to parent directory
clawpm done 25 # Fails if subtasks not done
clawpm done 25 --force # Override and complete anyway
Subtasks move with parent on state change (done/blocked moves entire directory).
Agent Context (Resuming Work)
Get everything needed to resume work in one command:
clawpm context # Full context for current project
clawpm context -p myproj # Specific project
Returns JSON with: project info + spec, in-progress/next task, blockers, recent work log, git status, open issues.
Workflow Example
clawpm context # Get full context
clawpm start 42 # Mark in progress (auto-logs)
# ... do work ...
git add . && git commit -m "feat: ..."
clawpm done 42 --note "Completed" # Auto-logs with files_changed
clawpm log commit # Also log the git commits themselves
Hit a blocker:
clawpm block 42 --note "Need API credentials"
Full Command Reference
Projects
clawpm projects list [--all] # List projects (--all includes untracked repos)
clawpm projects next # Next task across all projects
clawpm project context [project] # Full project context
clawpm project init # Initialize project in current dir
Tasks
clawpm tasks # List tasks (default: open+progress+blocked)
clawpm tasks list [-s open|done|blocked|progress|all] [--flat]
clawpm tasks show <id> # Task details
clawpm tasks add -t "Title" [--priority 3] [--complexity m] [--parent <id>] [-b "body"]
clawpm tasks edit <id> [--title "..."] [--priority N] [--complexity s|m|l|xl] [--body "..."]
clawpm tasks state <id> open|progress|done|blocked [--note "..."] [--force]
clawpm tasks split <id> # Convert to parent directory for subtasks
Work Log
clawpm log add --task <id> --action progress --summary "What I did"
clawpm log tail [--limit 10] # Recent entries (auto-filtered to current project)
clawpm log tail --all # Recent entries across all projects
clawpm log tail --follow # Live tail (like tail -f)
clawpm log last # Most recent entry (auto-filtered to current project)
clawpm log last --all # Most recent entry across all projects
clawpm log commit [-n 10] # Log recent git commits to work log
clawpm log commit --dry-run # Preview without logging
clawpm log commit --task <id> # Associate commits with a task
Note: State changes (start/done/block) auto-log to work_log with git files_changed.
Research
clawpm research list
clawpm research add --type investigation --title "Question"
clawpm research link --id <research_id> --session-key <key>
Issues
clawpm issues add --type bug --severity high --actual "What happened"
clawpm issues list [--open] # Open issues only
Sessions (transcript extraction)
clawpm sessions extract # Extract OpenClaw sessions with clawpm calls
clawpm sessions extract --force # Re-extract all (overwrite existing)
clawpm sessions list # List extracted sessions with stats
clawpm sessions list --processed # List already-processed sessions
clawpm sessions process <id-prefix> # Move session to processed/
clawpm sessions process --all # Move all extracted to processed/
Admin
clawpm setup # Create portfolio (first-time)
clawpm setup --check # Verify installation
clawpm status # Project overview
clawpm context # Full agent context
clawpm doctor # Health check
clawpm use [project] # Set/show project context
clawpm use --clear # Clear context
Work Log Actions
start- Started working (auto-logged onclawpm start)progress- Made progressdone- Completed (auto-logged onclawpm done)blocked- Hit a blocker (auto-logged onclawpm block)commit- Git commit (logged viaclawpm log commit)pause- Switching tasksresearch- Research notenote- General observation
Task States & File Locations
| State | File Pattern | Meaning |
|---|---|---|
| open | tasks/CLAWP-042.md |
Ready to work |
| progress | tasks/CLAWP-042.progress.md |
In progress |
| done | tasks/done/CLAWP-042.md |
Completed |
| blocked | tasks/blocked/CLAWP-042.md |
Waiting |
Tips
- Flag order:
clawpm [global flags] <command> [command flags]— e.g.clawpm -f text tasks list -s open - JSON output: All commands emit JSON by default; use
-f textfor human-readable - One command per call: Don't chain clawpm commands with
&&— run each separately - Portfolio root: Default
~/clawpm, override viaCLAWPM_PORTFOLIOenv var - Extra project roots: Set
CLAWPM_PROJECT_ROOTS(colon-separated) or add toproject_rootsinportfolio.toml - Work log: Append-only at
<portfolio>/work_log.jsonl
Troubleshooting
clawpm doctor # Check for issues
clawpm setup --check # Verify installation
clawpm log tail # See recent activity
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。
其他来源收录
同一技能在不同目录的原始页面: