dynamic-workflow-mode
Skill này làm gì
Công cụ này giúp tạo các hệ thống tự động hóa linh hoạt cho công việc lập trình. Nó cho phép AI agent tạo các “harness” (bộ hướng dẫn) tạm thời cho một tác vụ cụ thể, hoặc tách các phần có thể tái sử dụng để dùng sau, giúp việc phối hợp có tổ chức và dễ theo dõi hơn.
Khi nào nên dùng
- ✓Khi bạn cần một quy trình lặp lại nhưng có thể thay đổi.
- ✓Khi tạo tự động hóa cho các tác vụ một lần cần được theo dõi.
- ✓Khi nhiều người cần dùng cùng một quy trình một cách nhất quán.
Liên kết skill
https://github.com/affaan-m/ECC/blob/main/skills/dynamic-workflow-mode/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tạo một harness để kiểm thử các tính năng code mới, với bài test tập trung và kiểm tra độ phủ.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
AI xác định một kế hoạch rõ ràng gồm việc cần làm và việc sẽ không làm. Nó cũng nêu rõ đầu vào cần thiết (như tệp hoặc dữ liệu) và đầu ra mong đợi (như báo cáo hoặc code).
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
- One-shot task: keep it inline. Do not invent a harness.
- Repeated task with changing inputs: create a task-local harness and keep it under a temp or project-local working area.
- Repeated task across teammates or repos: extract the pattern into a shared skill.
- Task with external state, queueing, or approvals: add control pane visibility before adding more automation.
- 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 |
…
Câu hỏi thường gặp
“Harness” là gì?
Hãy coi “harness” là một bộ hướng dẫn hoặc một hệ thống nhỏ, dẫn dắt AI thực hiện một tác vụ cụ thể, đảm bảo AI đi đúng các bước và kiểm tra kết quả.
Khác nhau giữa “harness” tạm thời và “skill” có thể tái sử dụng là gì?
“Harness” tạm thời được tạo cho một tác vụ hoặc một nhóm nhỏ các tác vụ tương tự. “Skill” tái sử dụng là một quy trình vững chắc hơn, có thể được nhiều người dùng trong các dự án khác nhau.
Tại sao “eval gates” (điểm kiểm tra đánh giá) quan trọng?
“Eval gates” là các kiểm tra chất lượng và an toàn. Chúng đảm bảo tác vụ được hoàn thành đúng trước khi tiếp tục hoặc kết thúc, tránh lỗi và giúp kết quả đáng tin cậy.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 280k
- Vị trí xếp hạng
- #303
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
accessibility
280kGiúp agent của bạn tạo giao diện mà ai cũng dùng được, đảm bảo website và app hoạt động tốt với người khuyết tật như người mù hoặc khó vận động.
agent-architecture-audit
280kGiúp agent của bạn kiểm tra xem mọi thứ có hoạt động đúng không, đồng thời tìm và sửa các lỗi trong hệ thống AI để chúng chạy như mong đợi.
agent-eval
280kGiúp agent của bạn so sánh các công cụ lập trình AI khác nhau, đo xem công cụ nào nhanh hơn, rẻ hơn và đáng tin cậy hơn cho từng tác vụ.
agent-harness-construction
280kGiúp agent của bạn hiểu rõ hơn cách thực hiện tác vụ, tối ưu các công cụ và chỉ dẫn mà agent dùng để tăng khả năng thành công.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.