Communitygithub.com

动态工作流模式

为Claude动态工作流模式及其他自适应代理工具设计任务级脚手架、评估关卡和可复用技能提取。适用于构建任务级脚手架、添加评估关卡或从临时工作中提取可复用技能的场景。

动态工作流模式 是什么?

该技能为编码代理(如Claude Code)提供了一种将动态工作流模式转化为规范化系统的方法:针对一次性工作创建临时脚手架,针对重复性工作提取共享技能,并为团队提供可观测的控制面板检查点。它支持任何支持自适应或任务级工作流脚本的平台,核心在于确保每个动态脚手架都包含明确的目标、输入、输出、至少一个通过/失败评估以及一个供后续操作者使用的交接工件。技能文档包含一个决策树,用于判断何时应保持内联、创建本地脚手架还是提取为共享技能;一个用于快速搭建脚手架的模板;以及一个用于将局部模式提升为持久性团队资产的提取清单。此外,它还强调了控制面板检查点(计划、队列、运行、关卡、交接)和评估关卡的重要性,并警告了诸如隐藏决策逻辑或跳过测试等反模式。最终输出应明确脚手架/技能路径、评估命令及其结果、控制面板或交接工件路径,以及下一个可复用的提取候选。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/affaan-m/ECC/tree/main/skills/dynamic-workflow-mode

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

动态工作流模式 是做什么的?

当编码代理能够生成或调整任务级脚手架,而不仅仅遵循静态命令流时,请使用此技能。目标是将动态工作流模式转变为一个规范的体系:临时脚手架用于一次性工作,共享技能提取用于重复性工作,以及为团队提供可观测的控制面板检查点。

何时激活

  • 用户提及动态工作流、自定义脚手架、按任务分配脚手架、自适应工作流或Claude Code动态工作流模式。
  • 任务需要自定义循环、评估器、爬虫、夹具生成器、监视器或本地仪表板。
  • 多个代理需要相同的可重复流程,但该流程尚未被捕获为共享技能。
  • 工作流需要持久的交接工件、评估证据或操作员批准才能合并。

核心契约

只有在脚手架比手动驱动相同步骤更便宜、更安全时,动态工作流模式才应生成任务级脚手架。脚手架必须包含:

  • 目标:它负责的结果以及它明确不负责的结果。
  • 输入:文件、URL、提示、数据源、凭据策略和用户提供的约束。
  • 输出:提交、报告、截图、状态文件或控制面板快照。
  • 评估:至少一个与任务相关的通过/失败检查,不仅仅是“它运行了”。
  • 交接:一个简短工件,告知下一个操作者发生了什么、什么被阻塞以及如何恢复。

动态脚手架决策树

  1. 一次性任务:保持内联。不要发明脚手架。
  2. 带有变化输入的重复任务:创建任务级脚手架,并将其保留在临时或项目本地的工作区下。
  3. 跨团队成员或仓库的重复任务:将模式提取为共享技能。
  4. 涉及外部状态、队列或审批的任务:在添加更多自动化之前,增加控制面板可见性。
  5. 具有安全风险的任务:在自主执行之前,添加评估关卡和人工合并关卡。

任务级脚手架模板

在编写代码之前使用此结构:

# 动态工作流脚手架

目标:
- 交付:
- 不交付:

输入:
- 仓库或工作区:
- 外部系统:
- 凭据策略:

循环:
1. 发现当前状态。
2. 生成或更新最小的有用工件。
3. 运行评估检查。
4. 记录状态和交接。
5. 在关卡失败、所有权不明确或外部操作不安全时停止。

评估:
- 命令:
- 预期通过信号:
- 失败负责人:

交接:
- 状态:
- 证据:
- 下一步操作:

共享技能提取

仅当以下至少两个条件成立时,才将任务级脚手架提升为共享技能:

  • 相同的工作流出现在多个会话、仓库、团队或启动中。
  • 工作流需要特定的语言、工具或安全排序。
  • 由于操作者跳过关卡或丢失上下文,重复出现失败。
  • 工作流具有稳定的输入/输出契约。
  • 工作流受益于控制面板、状态板或团队交接。

提取时,首先在skills/<name>/SKILL.md中编写技能。仅当仍然需要传统的斜杠入口表面时,才添加命令适配器。

控制面板检查点

当动态工作流模式暴露状态时,它才能被团队使用。只要任务跨越多个会话,就记录这些检查点:

  • 计划:目标、负责人、验收标准和风险外部系统。
  • 队列:工作项、分配的代理角色、分支/工作树和依赖关系边。
  • 运行:活动脚手架、当前循环步骤、最近评估结果以及可用时的令牌/成本信号。
  • 关卡:测试结果、浏览器截图、安全审查和合并准备状态。
  • 交接:已完成的内容、失败的内容以及需要人类决策的内容。

如果仓库启用了ECC2状态,则优先通过ECC控制面板或状态存储支持的脚本添加或读取检查点,而不是散布未跟踪的笔记。

评估关卡

每个动态脚手架都需要一个任务特定的评估。选择最便宜的可靠关卡:

工作类型评估关卡
代码功能重点测试、lint、覆盖率和一个集成路径
UI/控制面板带截图和溢出/错误检查的浏览器冒烟测试
代理工作流夹具记录或带有预期路由的种子工作项
研究/内容来源中立摘要、声明检查表和可发布的大纲
集成空运行命令、配置验证和无密钥扫描

在评估可以被另一个团队成员重新运行之前,不要声称动态工作流是可重用的。

反模式

  • 生成向操作者隐藏真实决策逻辑的脚本。
  • 将动态工作流模式视为跳过测试的许可。
  • 在共享技能或状态工件是真正产品时创建一次性文档。
  • 在没有所有权、合并关卡或冲突策略的情况下运行多个代理。
  • 让原始私有研究数据泄露到公共文档中。

输出标准

最后完成:

  • 脚手架或技能路径。
  • 评估命令和结果。
  • 控制面板或交接工件路径。
  • 下一个可复用的提取候选。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

accessibility

Design, implement, and audit inclusive digital products using WCAG 2.2 Level AA. Use when building or auditing UI that must meet WCAG 2.2 Level AA, or when reviewing a change for keyboard, contrast, or screen-reader support.

affaan-m/content-engine

Create platform-native content systems for X, LinkedIn, TikTok, YouTube, newsletters, and repurposed multi-platform campaigns. Use when the user wants social posts, threads, scripts, content calendars, or one source asset adapted cleanly across platforms.

affaan-m/ECC

Multi-platform content distribution across X, LinkedIn, Threads, and Bluesky. Adapts content per platform using content-engine patterns. Never posts identical content cross-platform. Use when the user wants to distribute content across social platforms.

affaan-m/fal-ai-media

Unified media generation via fal.ai MCP — image, video, and audio. Covers text-to-image (Nano Banana), text/image-to-video (Seedance, Kling, Veo 3), text-to-speech (CSM-1B), and video-to-audio (ThinkSound). Use when the user wants to generate images, videos, or audio with AI.

affaan-m/manim-video

日本語翻訳:このファイルは manim-video 用の日本語翻訳が必要です

affaan-m/remotion-video-creation

Remotion のベストプラクティス - React で動画を作成する。3D、アニメーション、音声、字幕、チャート、トランジションなどをカバーするドメイン固有の29のルール。

affaan-m/video-editing

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

agent-architecture-audit

Full-stack diagnostic for agent and LLM applications. Audits the 12-layer agent stack for wrapper regression, memory pollution, tool discipline failures, hidden repair loops, and rendering corruption. Produces severity-ranked findings with code-first fixes. Essential for developers building agent applications, autonomous loops, or any LLM-powered feature. Use when an agent or LLM feature misbehaves and the failing layer is unknown, or before shipping an agent stack.

agent-eval

Head-to-head comparison of coding agents (Claude Code, Aider, Codex, etc.) on custom tasks with pass rate, cost, time, and consistency metrics. Use when choosing between coding agents, or when a change to an agent setup needs measured pass rate, cost, and time rather than an impression.

agent-harness-construction

Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates. Use when defining or revising an agent

agentic-engineering

Operate as an agentic engineer using eval-first execution, decomposition, and cost-aware model routing. Use when planning or executing engineering work that agents will carry out end to end.

agentic-os

Build persistent multi-agent operating systems on Claude Code. Covers kernel architecture, specialist agents, slash commands, file-based memory, scheduled automation, and state management without external databases. Use when building a persistent multi-agent system on Claude Code with its own memory, commands, and scheduling.

agent-introspection-debugging

Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports. Use when an agent run fails and you need a reproducible diagnosis instead of a retry.

agent-payment-x402

Add x402 payment execution to AI agents with per-task budgets, spending controls, and non-custodial wallets. Supports Base through agentwallet-sdk and X Layer through OKX Payments / OKX Agent Payments Protocol. Use when an agent must pay for something itself and needs per-task budgets, spending controls, and a non-custodial wallet.

agent-self-evaluation

Use after completing any non-trivial task. The agent self-rates its output on 5 axes — accuracy, completeness, clarity, actionability, conciseness — with concrete evidence per criterion. Produces a structured 1-5 scorecard with specific improvement suggestions.

agent-sort

Build an evidence-backed ECC install plan for a specific repo by sorting skills, commands, rules, hooks, and extras into DAILY vs LIBRARY buckets using parallel repo-aware review passes. Use when ECC should be trimmed to what a project actually needs instead of loading the full bundle.

ai-first-engineering

Engineering operating model for teams where AI agents generate a large share of implementation output. Use when setting team process, review gates, or ownership rules for a codebase largely written by agents.

ai-regression-testing

Regression testing strategies for AI-assisted development. Sandbox-mode API testing without database dependencies, automated bug-check workflows, and patterns to catch AI blind spots where the same model writes and reviews code. Use when adding regression coverage to AI-assisted code, or when the same model both wrote and reviewed a change.

android-clean-architecture

Clean Architecture patterns for Android and Kotlin Multiplatform projects — module structure, dependency rules, UseCases, Repositories, and data layer patterns. Use when structuring modules, layers, or data flow in an Android or KMP project.

angular-developer

Generates Angular code and provides architectural guidance. Trigger when creating projects, components, or services, or for best practices on reactivity (signals, linkedSignal, resource), forms, dependency injection, routing, SSR, accessibility (ARIA), animations, styling (component styles, Tailwind CSS), testing, or CLI tooling.

相关技能