一键导入
markstate
Use the markstate CLI to navigate focus, check document status, apply transitions, and work through checkbox tasks in a flow.yml-defined workflow.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use the markstate CLI to navigate focus, check document status, apply transitions, and work through checkbox tasks in a flow.yml-defined workflow.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | markstate |
| description | Use the markstate CLI to navigate focus, check document status, apply transitions, and work through checkbox tasks in a flow.yml-defined workflow. |
Use the markstate CLI to work through a document workflow defined in flow.yml.
Markstate tracks document statuses in YAML front matter and evaluates phase gates
and transitions based on those statuses and checkbox task completion.
Commands
markstate focus [QUERY] — set or show the current working directory.
If QUERY does not resolve to an existing path, searches docs_root recursively
for a directory whose name contains it as a substring. Errors if ambiguous.markstate status [DIR] — show current phase, document statuses, and task
counts. Add --json for machine-readable output.markstate next [DIR] — list applicable transitions on existing documents and
documents that still need to be created.markstate next-task [DIR] — show the first unchecked - [ ] task. When
all tasks are done, reports the current phase and auto-creates any auto: true
documents for the entered phase.markstate do TRANSITION FILE [--set KEY=VALUE ...] — apply a named transition
to a document. Reports the status change and any phase change.markstate check TEXT [DIR] — check off the first unchecked task whose text
contains TEXT (case-insensitive). Reports (N/M) progress and fires a phase
transition if it was the last task.markstate set STATUS FILE... [--set KEY=VALUE ...] — set status directly without
a defined transition. Works without flow.yml.markstate new FILE [DIR] — create a document from its template defined in
flow.yml.markstate query PRED [PRED ...] [--json] [--dir DIR] — find documents by
front matter fields. Predicates are ANDed. Operators: = (exact), !=,
~= (case-insensitive substring), >, <, >=, <= (numeric or string;
ISO dates compare correctly). Searches from docs_root or cwd.
Example: markstate query status=draft "created-at>2024-06-01" title~=apimarkstate check-gate PHASE [DIR] — verify a phase's gate conditions.
Exits 0 if satisfied, 1 otherwise.markstate transitions — list all defined transitions.new, set, do, and check all accept --set KEY=VALUE (repeatable) to write
extra frontmatter fields alongside the main operation. Magic values: me expands to
the git user name, now to a UTC ISO 8601 timestamp.
Typical flow
markstate focus PROJ-123markstate statusmarkstate nextmarkstate do approve spec.mdmarkstate next-task — get the next taskmarkstate check "<task text>" — mark done; fires transition when lastIf the AI edits task files directly without running check, call next-task
afterward — it detects completion and fires any pending transition.
Phase transitions
When a transition or task completion causes a phase change, markstate prints:
→ entering phase: <name>
advance when:
- <condition>
Or (complete) when all phases are done. Auto-produced documents are created
at this point without further action.
Guardrails
flow.yml unless explicitly askedmarkstate set to bypass a gate conditionmarkstate status before acting if the current phase is unknown