智能工作流 是 AI Skill Hub 本期精选Agent工作流之一。综合评分 8.0 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
智能工作流 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
智能工作流 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:npm 全局安装 npm install -g masterplan # 方式二:npx 直接运行(无需安装) npx masterplan --help # 方式三:项目依赖安装 npm install masterplan # 方式四:从源码运行 git clone https://github.com/rasatpetabit/masterplan cd masterplan npm install npm start
# 命令行使用
masterplan --help
# 基本用法
masterplan [options] <input>
# Node.js 代码中使用
const masterplan = require('masterplan');
const result = await masterplan.run(options);
console.log(result);
# masterplan 配置说明 # 查看配置选项 masterplan --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export MASTERPLAN_CONFIG="/path/to/config.yml"
A Claude Code & Codex CLI plugin for durable multi-hour engineering work — brainstorm → plan → execute → finish on top of obra/superpowers skills.
Current release: v10.0.6 · License: MIT · Works with: Claude Code, Codex CLI · See CHANGELOG.md
---
An intent_rejected:<class> archive writes required_successor {slug, reason} (slug from the mandatory --successor flag; a rejection without it is refused before any event is written). mp runs list and mp status print the open obligation with the exact seed command (mp seed --predecessor=<slug>); for class intent, the stored correction text opens the successor's interview as quoted context. The required-successor doctor check verifies the obligation resolves to a seeded bundle.
Start a new run end-to-end:
/masterplan full <topic>
Start step-by-step:
/masterplan brainstorm <topic> # discovery + spec
/masterplan plan # decompose spec into tasks
/masterplan execute # wave-by-wave execution
Resume after a crash or clear:
/masterplan # bare — re-reads bundle, continues
Check run health:
/masterplan status # active bundle summary
/masterplan doctor # structural lint (24 check modules)
---
Configuration resolves through a four-layer hierarchy — CLI > repo > user > default (lib/config.mjs, resolveRunConfig):
mp seed / mp continue flags win over everything..masterplan.yaml at the repository root.~/.masterplan.yaml in the home directory.Each recognized key is validated against the schema enum and its source layer is reported (config show prints the resolved values and *_source for every key). done and context_watch support whole-object replacement with partial context_watch defaults; auto_compact is a deprecated alias for context_watch (both present → refused). Unsupported keys are warned and ignored; a malformed file or an invalid enum value is a hard error — a value never silently falls through to a lower layer.
Recognized config keys (schema CONFIG_SCHEMA):
| Key | Values | Default | Notes |
|---|---|---|---|
complexity | low \| medium \| high | medium | Influences planning depth; --complexity-source records how it was set. low defaults planning_mode to serial, otherwise auto |
autonomy | gated \| loose (alias full → loose) | gated | gated halts at every gate; loose auto-advances through successful gates; the branch-finish gate always halts regardless |
planning_mode | serial \| parallel \| auto | derived from complexity | serial = one mp-planner; parallel = mp-subsystem-planner fan-out merged by lib/plan-merge.mjs |
adversary_review | on \| off | on | Default-on finish-time adversary review; new bundles arm state.review.adversary: true |
render_images | on \| off | off | Gates the optional shell-side image *generation*; embedding is by-presence |
fabric | on \| off | on | The schema accepts on\|off; the legacy L2 wave path is deleted, so off marks a bundle **unexecutable** (no state.dispatch.fabric: true → dispatch refused, nothing restored) |
context_watch | object | {threshold: 70, focus: null} | context_watch.threshold is an int 1–99; context_watch.focus is a string or null |
done | object | none | The definition of done: version_from, release steps in **fixed deploy order** (see below), ${version} substitution, commit_paths |
Seed-time flags (mp seed, persisted into state.yml at run creation): --complexity, --autonomy, --planning-mode, --adversary-review=on|off (alias --codex-review), --render-images=on|off, --fabric=on, --overlap-review=<json> (required — see Overlap below), --predecessor=<slug>. mp continue accepts --planning-mode on the command line and resolves it through the same chain.
Definition of done (done) — deploy groups run in a fixed order across release → install → user_only → live_check (DEPLOY_GROUP_ORDER in lib/finish.mjs): every release step runs first, then every install step, then user_only, then the live_check run. Group order is normative; within a group, steps run in their list order. A done: none definition deploys nothing. version_from points at a version-bearing file (e.g. .claude-plugin/plugin.json) and ${version} is substituted into release commands. Deploy steps are recorded via mp finish-step --deploy-step-done=<group>[<index>] --exit=<code>; a failing step opens a hard gate.
Review config (mp set-review-config, a CD-7 write on an existing bundle — not a seed flag; alias: mp set-codex-config): --review=true|false arms/disarms state.review.adversary; --routing=auto|on|off is the legacy per-task dispatch default.
Every readEnv-backed control — set these in the environment, not in config files (the seam is readEnv/readEnvAll in bin/masterplan.mjs; env.X property reads in bin/ + lib/ go through the same seam):
| Variable | Controls | Default |
|---|---|---|
CLAUDE_CODE_SESSION_ID | **Guard-D session identity** (the owner lock's identity is the LLM session, not the process). Companion flags: --session=<id>, --host=<host> to mp seed / mp continue / mp record-result | none — Guard-D refuses without a session id unless the bundle opted out (--owner-lock=off) |
MP_DISPATCH_WAVE_CONCURRENCY | Caps the wave fan-out parallelism (lib/continue.mjs, clamped to the descriptor count) | 8 |
MP_ROUTING_POLICY | Path to an override routing policy for work-class resolution (defaults to the checked-in policy/workflow-map.json) | checked-in repo copy |
SKYNET_VERIFY_ALLOWLIST | Recorded verify allowlist for audit continuity (historical name; local verification does not gate on it — the value surfaces in the wave record) | bash -c |
MP_CONTEXT_WINDOW | Explicit context window override for mp context-status window resolution (takes precedence over harness-model/[1m] markers, below the explicit flag) | auto |
MP_BIN | Path to the bin/masterplan.mjs entrypoint | bin/ beside the command file |
MP_MARKETPLACE_DIR / MASTERPLAN_RUNS_DIR | Install/run-discovery roots | auto-derived |
CLAUDE_CONFIG_DIR / HOME | Config and home roots for the user layer | platform defaults |
CLAUDE_PLUGIN_ROOT | Claude plugin install root — readPluginVersion resolves the installed plugin's version from $CLAUDE_PLUGIN_ROOT/.claude-plugin/plugin.json (falls back to the repo-local .claude-plugin) | repo-local .claude-plugin |
PI_CODING_AGENT | Set by the Pi harness: routes shouldSuppressWorkflow to the no-Workflow path (foreground-sequential waves, no Workflow handle) — =true changes execution routing | unset (Claude Code host) |
XDG_CONFIG_HOME | Config-home override for the unattached coord-client config seam (lib/coord-client-config.mjs): when COORD_CREDS_FILE / COORD_TLS_CA are unset, discovery looks under $XDG_CONFIG_HOME/coord-service/ (else ~/.config/coord-service/) | $HOME/.config |
COORD_CREDS_FILE | Path to the coord-service credentials JSON ({baseUrl, tokenId, secret}) for the unattached network-client config seam. Explicit value — including empty — always wins over discovery. Unset = network mode off. Not wired into record-result | unset |
COORD_TLS_CA | Path to a PEM CA file passed through to an injected coord-client factory (scoped trust). Explicit value — including empty — always wins over discovery. Unreadable/empty file fails closed. Not wired into record-result | unset |
mp context-status reports the measured context window (tokens_at_last_request, appended_est, window) and one of current / post-compaction / malformed / not-found / unsupported (lib/context-status.mjs; not-found when no transcript resolves, unsupported when there is no session id). When no measurement is available (not-found / malformed / unsupported) the reported window is null and used_pct is null — there is no unknown state. MP_CONTEXT_WINDOW overrides the window (or --window=<n> explicitly). mp resume-brief --repo-root=<path> resolves zero, one, or several active bundles and renders a carry-forward brief — wired as a SessionStart hook on hosts that register hooks.
高质量的AI工作流项目,值得关注
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
经综合评估,智能工作流 在Agent工作流赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | masterplan |
| 原始描述 | 开源AI工作流:Brainstorm → plan → execute development workflow plugin for Claude Code。⭐9 · JavaScript |
| Topics | ai-agentautomationjavascript |
| GitHub | https://github.com/rasatpetabit/masterplan |
| License | MIT |
| 语言 | JavaScript |
收录时间:2026-06-25 · 更新时间:2026-06-26 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端