一键导入
project-plan
Turn a project spec into a four-file planning pack under docs/ while tracking the work in todui.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Turn a project spec into a four-file planning pack under docs/ while tracking the work in todui.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | project-plan |
| description | Turn a project spec into a four-file planning pack under docs/ while tracking the work in todui. |
Turn a project spec into a planning and execution document pack, and mirror the planning run inside todui so long-running agent work stays observable.
Read the source spec and generate these files under docs/:
prompt.mdplan.mdimplement.mddocumentation.mdUse todui as the planning ledger throughout the run:
Resolve the source spec in this order:
$ARGUMENTS if a usable path is provided./spec.md./docs/spec.mdIf none exists, stop and ask for the spec path.
todui Session BootstrapBefore writing docs, bootstrap todui.
If todui is not installed yet, install it with npm install -g @roberttlange/todui or run it ad hoc with npx -y @roberttlange/todui ....
agent-<repo-dir-slug>todui: agent-toduiagent.originhttps://github.com/owner/repo, git@github.com:owner/repo.git, or owner/repotodui session repo <session> --set <owner/repo>Suggested bootstrap flow:
repo_slug="$(basename "$PWD" | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9]/-/g; s/-\\{2,\\}/-/g; s/^-//; s/-$//')"
session="agent-${repo_slug}"
repo_ref="$(git remote get-url origin 2>/dev/null || true)"
if ! todui session list | cut -f1 | grep -Fxq "$session"; then
todui session new "$session" --tag agent
fi
if [ -n "$repo_ref" ]; then
todui session repo "$session" --set "$repo_ref"
fi
Create or reuse exactly these planning todos in the repo session:
Freeze target in docs/prompt.mdBreak work into milestones in docs/plan.mdWrite execution runbook in docs/implement.mdRecord status in docs/documentation.mdTodo notes must be rewritten to include the current planning context:
Current todui does not support note append. When updating a todo, rewrite the full note body with todui edit <id> --note ....
docs/ if it does not exist.docs/prompt.mdPurpose: freeze the target so the agent does not build the wrong thing.
Include:
docs/plan.mdPurpose: turn the spec into milestones with concrete validation.
Include:
docs/implement.mdPurpose: execution runbook for the coding agent.
Include:
plan.md is the source of truthclean-code skill during implementation and refactor passesAGENTS.md or equivalent project instructions when presentdocs/documentation.mdPurpose: shared memory and audit log for the project as it ships.
Include:
todui session.todui todos in the same session.hibiki after the pack is generated and the session state reflects it.todui session tracks the work.documentation.md should be usable as handoff state after hours away.todui should mirror the planning state closely enough that another agent can resume from the open todos plus their notes.