跳到正文
Skillpedia
部署与云(DevOps)280k · #303

dynamic-workflow-mode

它能做什么

这个工具可以帮助你创建灵活的编程任务自动化系统。它允许 AI 智能体为特定任务构建临时的 harness(一套指令框架),或把可复用的部分提取出来供以后使用,让团队协作更有条理,也更容易观察。

适用场景

  • ✓当你需要一个可能会变化的重复流程时。
  • ✓当你要为一次性任务创建需要追踪的自动化时。
  • ✓当多人需要始终如一地使用同一流程时。

技能链接

https://github.com/affaan-m/ECC/blob/main/skills/dynamic-workflow-mode/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/affaan-m/ECC/blob/main/skills/dynamic-workflow-mode/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“创建一个 harness,用来测试新的代码功能,包含针对性的测试和覆盖率检查。”

每周 5 个新技能,1 分钟读完。

工作原理

AI 会先定义清晰的计划,说明要做什么、不做什么。同时还会明确所需的输入(如文件或数据)以及预期的输出(如报告或代码)。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Dynamic Workflow Mode

Use this skill when a coding agent can generate or adapt a task-local harness instead of only following a static command flow. The goal is to turn dynamic workflow mode into a disciplined system: temporary harnesses for one-off work, shared skill extraction for repeated work, and observable control pane checkpoints for teams.

When To Activate

  • The user mentions dynamic workflows, custom harnesses, harness-per-task, adaptive workflows, or Claude Code dynamic workflow mode.
  • A task needs a custom loop, evaluator, crawler, fixture generator, watcher, or local dashboard.
  • Multiple agents need the same repeatable process but the process is not yet captured as a shared skill.
  • A workflow needs durable handoff artifacts, eval evidence, or operator approval before merge.

Core Contract

Dynamic workflow mode should produce a task-local harness only when the harness is cheaper and safer than manually driving the same steps. The harness must have:

  • Objective: the outcome it owns and the outcome it explicitly does not own.
  • Inputs: files, URLs, prompts, data sources, credentials policy, and user-provided constraints.
  • Outputs: commits, reports, screenshots, status files, or control pane snapshots.
  • Eval: at least one pass/fail check tied to the task, not only "it ran".
  • Handoff: a short artifact that tells the next operator what happened, what is blocked, and how to resume.

Dynamic Harness Decision Tree

  1. One-shot task: keep it inline. Do not invent a harness.
  2. Repeated task with changing inputs: create a task-local harness and keep it under a temp or project-local working area.
  3. Repeated task across teammates or repos: extract the pattern into a shared skill.
  4. Task with external state, queueing, or approvals: add control pane visibility before adding more automation.
  5. Task with safety risk: add an eval gate and a human merge gate before autonomous execution.

Task-Local Harness Template

Use this structure before writing code:

# Dynamic Workflow Harness

Objective:
- Ship:
- Do not ship:

Inputs:
- Repo or workspace:
- External systems:
- Credentials policy:

Loop:
1. Discover current state.
2. Generate or update the smallest useful artifact.
3. Run eval checks.
4. Record status and handoff.
5. Stop on failed gate, unclear ownership, or unsafe external action.

Eval:
- Command:
- Expected pass signal:
- Failure owner:

Handoff:
- Status:
- Evidence:
- Next action:

Shared Skill Extraction

Promote a task-local harness into a shared skill only when at least two of these are true:

  • The same workflow appears in multiple sessions, repos, teams, or launches.
  • The workflow needs specific language, tool, or safety sequencing.
  • Failures repeat because operators skip a gate or lose context.
  • The workflow has a stable input/output contract.
  • The workflow benefits from a control pane, status board, or team handoff.

When extracting, write the skill first in skills/<name>/SKILL.md. Add command shims only if a legacy slash-entry surface is still required.

Control Pane Checkpoints

Dynamic workflow mode becomes team-usable when it exposes state. Record these checkpoints whenever the task spans more than one session:

  • Plan: objective, owner, acceptance criteria, and risky external systems.
  • Queue: work items, assigned agent role, branch/worktree, and dependency edges.
  • Run: active harness, current loop step, recent eval result, and token/cost signal if available.
  • Gate: test results, browser screenshots, security review, and merge readiness.
  • Handoff: what is done, what failed, what needs a human decision.

If the repo has ECC2 state enabled, prefer adding or reading checkpoints through the ECC control pane or state-store-backed scripts instead of scattering untracked notes.

Eval Gates

Every dynamic harness needs a task-specific eval. Pick the cheapest reliable gate:

Work Type Eval Gate
Code feature Focused test, lint, coverage, and one integration path
UI/control pane Browser smoke with screenshot and overflow/error checks
Agent workflow Fixture transcript or seeded work item with expected routing
Research/content Source-neutral brief, claim checklist, and publish-ready outline
Integration Dry-run command, config validation, and no-secret scan

…

常见问题

什么是 harness?

可以把 harness 理解为一套指令或一个小型系统,用来引导 AI 完成特定任务,确保它按正确步骤执行,并检查结果。

临时的 harness 和可复用的技能有什么区别?

临时 harness 是为单个任务或一小组类似任务而做的。可复用技能则是更稳健的流程,可以被许多人在不同项目中使用。

为什么“评估关卡”(eval gates)很重要?

评估关卡是质量和安全检查。它们确保任务在继续或结束之前已正确完成,防止出错,并保证结果可靠。

详情

作者的原始描述

Design task-local harnesses, eval gates, and reusable skill extraction for Claude dynamic workflow mode and other adaptive agent harnesses. Use when building a task-local harness, adding eval gates, or extracting a reusable skill from ad-hoc work.

repo: affaan-m/ECC

热度

GitHub 星标
280k
排名
#303
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能