Execute 标志

Execute

社区
Adrian333Dev
execute

Builds one ticket, plan through review.

概览

发布者Adrian333Dev
代码仓库flow
技能名称execute
星标数
40
复刻数
4
附带文件
1
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载的 SKILL.md 文件,因此只有在请求确实匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 1 个随附文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 Adrian333Dev 发布于 GitHub。请在安装前查看源内容。

安装

在 TypingMind 中安装 Execute AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/Adrian333Dev/flow/tree/main/lab/archive/execute
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Adrian333Dev/flow.git /tmp/flow
mkdir -p .claude/skills
cp -r /tmp/flow/lab/archive/execute .claude/skills/execute
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Execute,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Execute。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Execute 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会获取指令,因此未使用的技能不会产生额外费用。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Execute

One ticket at a time, start to finish. flow next says which are workable; the user picks.

The loop

groundwork → planning → building → review → done
             Phase 1–2   Phase 3   Phase 4

Each move is one command, named after where it lands: flow plan exp-47, flow build exp-47, flow review exp-47, flow done exp-47. 2 gates, both the user's: the plan before building, the work before done. Nothing else in the loop stops.

Never build a child's work in its parent. flow ls --parent exp-47 lists them; the parent keeps whatever none of them holds.

Phase 1: pick up

No ticket, and the user described the work → flow new "<what to build>" --body -, the body saying what and why, then pick it up below.

No ticket, and nothing described → run flow next and recommend one ticket: work in flight beats work cut out of it, and both beat anything new, whatever its priority. Then wait. The user picks.

Read the artifact before moving the ticket. The status says where the work stopped, never whether that phase finished.

  • todo, groundwork: flow plan exp-47, then Phase 2
  • planning: open plan.md. Written and approved → flow build exp-47, then Phase 3. Otherwise finish writing it
  • building: open plan.md. Every step [x] → Phase 4. Otherwise resume at the first [ ]; flow exp-47 prints the count
  • review: the work is with the user, and their notes start ### When the user sends review notes

Then read the ticket body and its ## State where one exists.

A map: count short of its total → say which questions are open, and wait: the user decides whether the plan waits for /flow:groundwork. No map: line is normal.

No ## Done when → write one here and show it with the plan.

Phase 2: write the plan

plan.md, in the ticket folder. 2 passes, each ending at a write, then the user's approval.

A design already answers what to build. Where docs/spec/ or the ticket's groundwork/ carries one, the plan sequences it and never re-derives a decision it made. Where none exists, the plan decides the shape.

Pass 1: read the code

Start with ## References in the ticket. No section → look once in docs/context/, .flow/research/<topic>/, and ~/.flow/wiki/<tool>/ for each tool the work touches, then write what you found into ## References.

Add a line the moment you read something the build will need, in any pass.

Read the code this ticket changes, then write down what you found: the signatures, the seam the change goes through, what surprised you. Plan nothing before this.

Name the command that proves this ticket done. Whatever this project uses, never a default like npm test. It pastes into every dispatch.

Pass 2: write the steps

One line each: title, the files it touches, and the check that proves it.

markdown
## Steps

1. [ ] **Add the config table**: `db/migrations/0031_rate_limit.sql`, `db/schema.ts`
       Check: `pnpm db:migrate && pnpm test:db`

Each step is finishable and checkable on its own, and names a scoped check wherever the full suite is slow. A wide refactor goes add the new path, move the callers, delete the old, never one sweeping step.

Everything else goes indented, under the step it belongs to: sub-checks, notes, whatever the build adds.

No detail yet: each step's detail is written when it is built.

Then show it and wait

More than one step, or more than one file → the user reads what the code looks like now, then ## Steps, before anything gets built. One step in one file goes straight through.

Phase 3: build

One step at a time, in order. Write the step's detail, then build it.

Build straight through. Finish a step, run the check it names, mark it [x], start the next: no report in between. Stop for a failed check, a decision only the user can make, or a dispatch you are waiting on. Nothing else.

Write the code that was decided; describe the code that follows from it. A step implementing a locked decision carries the code itself; a step whose shape follows from the surrounding code describes the change and lets the builder read the file.

Never mark a step without the output that proves it. The full suite runs once, in Phase 4.

Keep ## State current as you build.

What the build turns up, by where it goes:

  • Work in flight: a step that landed differently, a decision deferred → ## State.
  • Something that cost real effort to learn: a version that turned out to matter, a workaround a broken library forced → issues.md.
  • A discovery that changes a decision → groundwork/map.md.

Whether to delegate

Build it yourself by default. Delegate only where both hold:

  • Every edit is already decided: nothing left to work out by reading the code.
  • Roughly 5+ files, or 10+ near-identical edits: a rename at 18 call sites, one signature change everywhere it is called.

A step needing the code read to decide what to write stays yours at any width.

A step may touch several files and still be one step.

A job a separate session picks up is a child ticket instead: /flow:handoff writes it with --parent exp-47. Several can be open at once, with one session editing the working folder at a time. A worker dispatched for a step never needs one.

Dispatching a step

  1. Paste the step's text into the prompt, with the check it must pass. Never paste the files it names, and never a line range.

  2. Dispatch the worker.

    Agent(subagent_type="haiku-worker", prompt="<the step's text, then its check>")
  3. Say it is running. Its report arrives on a later turn, and the change record with its finished notice.

  4. Read the change record. A diff too long to show arrives as line counts plus the path of the whole patch: read the patch.

  5. No record means verify the step yourself before marking it. A worker that names files it edited and brings no record is running without the hooks: say so, and read those files.

  6. A file in the record that no step named is the finding. Tell the user before continuing. A file marked as changed by no tool call a hook saw may not be the worker's: check it before blaming the worker.

Then the status decides:

  • PASS: mark the step [x] in plan.md, continue.
  • FAILED → ### When a step fails.
  • NEEDS_DECISION: obvious and small → decide it and fix inline. Otherwise → back to the user.

When a step fails

Whether you ran it or a worker did.

Fix it here while the cause is in front of you, and keep going as long as every attempt stays mechanical: a version pin, a config key, a wrong path, a missing import. Never count attempts.

A run of mechanical fixes leaving the same failure standing means the assumption is wrong. Stop fixing. The run is the signal, never the count.

Say the assumption to the user before hunting it. Name what you believed was true, what you changed on the strength of it, and what failed anyway.

Stop after one attempt where the code runs and the answer is wrong.

Then /flow:debug, in this session. It owns what happens when the hunt runs out.

When the plan turns out wrong

Something turns up mid-build that the plan did not account for. 4 outcomes, and 3 of them are the user's call:

  • Rewrite the plan in place: the discovery changes how this ticket gets built. Yours, and say what changed.
  • New ticket: the work is genuinely separable: finishable and checkable without this one. Propose it.
  • Back to groundwork: what you built changed what this ticket should be. When the built thing is wrong, in Phase 4.
  • Drop this ticket: the discovery invalidates it. Propose it; on a yes, flow drop exp-47 --reason "<why>" --by <id> re-points anything that depended on it.

Phase 4: review and finish

Every step [x] → run the full suite Pass 1 named → review it → flow review exp-47.

Run the suite in the turn you report it.

Then 2 separate passes over the same diff, read once:

  • Against the plan: every step delivered, and nothing delivered that no step asked for.
  • Against the code: read ~/.flow/references/review-code.md. A ticket that produced a document reads style.md instead, with write-docs.md beside it for a documentation page, write-rules.md for a rule file, and cut-loaded-files.md for any file an agent loads. A ticket that produced a decision reads none of them.

Move anything durable in ## State to issues.md, then delete the section from ticket.md.

Read what flow review prints: review already unblocks the tickets depending on this one.

When the user sends review notes

Read the whole list before touching anything. Anything you do not understand stops the whole list. Ask about those items first, then start.

Check each note against the code. A note that would break something gets said so, once, with the reason.

Then flow build exp-47, before the first edit. The rework goes into plan.md as new steps.

Then flow done exp-47, once the user says it is done.

Then offer /flow:file-findings. Never invoke it unasked.

When the built thing is wrong

The user tested it and wants a different answer. None of it is a fault, and none of it earns a study case.

The 2 paths split on what came back. A list of changes to what was built → building, above. A changed understanding of what this ticket should be → groundwork, here, on the same ticket, never a new one.

  1. Write what building it taught into issues.md, before anything moves.
  2. Ask what happens to the code: kept as reference, or reverted. Print the git command; the user runs it.
  3. flow groundwork exp-47, then /flow:groundwork. Read what it prints: tickets depending on this one stop being ready.
  4. plan.md is replaced at the next pickup, never extended.

The ticket folder

8 entries, each with one owner. Never write a file another skill owns.

  • ticket.md: frontmatter (flow), the body, ## References and ## Done when (whoever created it), ## State (/flow:handoff owns its shape, whoever works the ticket writes it). ## State holds work in flight and dies at review; ## References stays.
  • plan.md: this skill. What the code looks like now, then the steps, then whatever the build adds under them.
  • groundwork/map.md: /flow:groundwork. Every decision and its reasoning.
  • issues.md: whoever builds. What the build taught that stays true after the ticket closes. Created on first need.
  • reports/: whichever skill answered something.
  • protos/: /flow:prototype. One folder per prototype, the code beside its report.
  • history.md: flow. One line per status move and handoff. Never edited by hand.
  • intake/: the user. Material dropped in for this job, read and never rewritten.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Execute AI 技能有什么作用?

Builds one ticket, plan through review.

为什么在 TypingMind 中使用 Execute?

因为您只需安装一次,就能搭配任何模型使用。Execute 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型,甚至可以在聊天中途切换模型,而不会影响技能正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Execute?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/Adrian333Dev/flow/tree/main/lab/archive/execute。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Execute?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Execute 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以搭配 Execute 使用,包括 GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等,都可在 TypingMind 中使用您自己的 API 密钥接入。

Execute AI 技能免费吗?

是的。该技能源自 Adrian333Dev 在 GitHub 上以 MIT 许可证发布的项目。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇