Token导航 LogoToken导航TokenDH.com
研究检索只读clawhub未标认证来源可访问clear审计通过

workflow-patterns工作流程模式

Agent Skill

workflow-patterns 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

36,317

周安装

1,560

GitHub Stars

公开资料未说明

下载量

12,730
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:workflow-patterns(工作流程模式)
来源仓库:https://github.com/wpank/workflow-patterns
安装命令:
openclaw skills install workflow-patterns
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install workflow-patterns

简介

使用 TDD、阶段检查点和结构化提交来系统化任务实施。在继续之前通过红绿重构周期、80% 覆盖率门和验证协议确保质量。

SKILL.md

name
workflow-patterns
model
standard
version
2.0.0
description
>
tags
[tdd, workflow, quality, testing, git, checkpoints, implementation]

Workflow Patterns

Implement tasks systematically using TDD (Test-Driven Development) with phase checkpoints and verification protocols. Ensures quality at every step.

Installation

OpenClaw / Moltbot / Clawbot

npx clawhub@latest install workflow-patterns

WHAT This Skill Does

Provides a structured approach to implementing tasks:

  • TDD cycle (red → green → refactor) for each task
  • Quality gates (tests, coverage, linting) before marking complete
  • Phase checkpoints requiring user approval
  • Git commits with rich metadata for traceability

WHEN to Use

Use for:

  • Implementing features from a plan
  • Following TDD methodology
  • Tasks requiring quality verification
  • Projects with coverage requirements
  • Team workflows needing traceability

Skip for:

  • Quick fixes or trivial changes
  • Exploratory prototyping
  • Projects without test infrastructure

Keywords: TDD, implementation, testing, coverage, checkpoints, verification, red-green-refactor

The TDD Task Lifecycle

11 steps for each task:

Step 1: Select Next Task

Read the plan and identify the next pending [ ] task. Select tasks in order within the current phase. Do not skip ahead.

Step 2: Mark as In Progress

Update the plan to mark the task as [~]:

- [~] **Task 2.1**: Implement user validation

Step 3: RED — Write Failing Tests

Write tests that define expected behavior before implementation:

  • Create test file if needed
  • Cover happy path
  • Cover edge cases
  • Cover error conditions
  • Run tests — they should FAIL
def test_validate_email_valid():
    user = User(email="test@example.com")
    assert user.validate_email() is True

def test_validate_email_invalid():
    user = User(email="invalid")
    assert user.validate_email() is False

Step 4: GREEN — Implement Minimum Code

Write the minimum code to make tests pass:

  • Focus on making tests green, not perfection
  • Avoid premature optimization
  • Keep implementation simple
  • Run tests — they should PASS

Step 5: REFACTOR — Improve Clarity

With green tests, improve the code:

  • Extract common patterns
  • Improve naming
  • Remove duplication
  • Simplify logic
  • Run tests after each change — must stay GREEN

Step 6: Verify Coverage

Check test coverage meets the 80% target:

pytest --cov=module --cov-report=term-missing

If coverage is below 80%:

  • Identify uncovered lines
  • Add tests for missing paths
  • Re-run coverage check

Step 7: Document Deviations

If implementation deviated from plan or added dependencies:

  • Update tech-stack.md with new dependencies
  • Note deviations in plan task comments
  • Update spec if requirements changed

Step 8: Commit Implementation

Create focused commit:

git commit -m "feat(user): implement email validation

- Add validate_email method to User class
- Handle empty and malformed emails
- Add comprehensive test coverage

Task: 2.1"

Step 9: Update Plan with SHA

Mark task complete with commit SHA:

- [x] **Task 2.1**: Implement user validation `abc1234`

Step 10: Commit Plan Update

git commit -m "docs: update plan - task 2.1 complete"

Step 11: Repeat

Continue to next task until phase is complete.

Phase Completion Protocol

When all tasks in a phase are complete:

1. Identify Changed Files

git diff --name-only <last-checkpoint-sha>..HEAD

2. Ensure Test Coverage

For each modified file:

  • Verify tests exist for new/changed code
  • Run coverage for modified modules
  • Add tests if coverage < 80%

3. Run Full Test Suite

pytest -v --tb=short

All tests must pass.

4. Generate Verification Checklist

## Phase 1 Verification

- [ ] User can register with valid email
- [ ] Invalid email shows appropriate error
- [ ] Database stores user correctly

5. WAIT for User Approval

Present checklist:

Phase 1 complete. Please verify:
1. [x] Test suite passes (automated)
2. [x] Coverage meets target (automated)
3. [ ] Manual verification items (requires human)

Respond with 'approved' to continue.

Do NOT proceed without explicit approval.

6. Create Checkpoint Commit

git commit -m "checkpoint: phase 1 complete

Verified:
- All tests passing
- Coverage: 87%
- Manual verification approved"

7. Record Checkpoint SHA

Update plan checkpoints table:

## Checkpoints

| Phase   | SHA     | Date       | Status   |
|---------|---------|------------|----------|
| Phase 1 | def5678 | 2025-01-15 | verified |
| Phase 2 |         |            | pending  |

Quality Gates

Before marking any task complete:

GateRequirement
TestsAll existing tests pass, new tests pass
CoverageNew code has 80%+ coverage
LintingNo linter errors
TypesType checker passes (if applicable)
SecurityNo secrets in code, input validation present

Git Commit Format

<type>(<scope>): <subject>

<body>

Task: <task-id>

Types:

  • feat — New feature
  • fix — Bug fix
  • refactor — Code change without feature/fix
  • test — Adding tests
  • docs — Documentation
  • chore — Maintenance

Handling Deviations

Scope Addition

Discovered requirement not in spec:

  • Document in spec as new requirement
  • Add tasks to plan
  • Note addition in task comments

Scope Reduction

Feature deemed unnecessary:

  • Mark tasks as [-] (skipped) with reason
  • Update spec scope section
  • Document decision rationale

Technical Deviation

Different approach than planned:

  • Note deviation in task comment
  • Update tech-stack.md if dependencies changed
  • Document why original approach was unsuitable
- [x] **Task 2.1**: Implement validation `abc1234`
  - DEVIATION: Used library instead of custom code
  - Reason: Better edge case handling
  - Impact: Added email-validator to dependencies

Error Recovery

Tests Fail After GREEN

  1. Do NOT proceed to REFACTOR
  2. Identify which test started failing
  3. Revert to last known GREEN state
  4. Re-approach the implementation

Checkpoint Rejected

  1. Note rejection reason in plan
  2. Create tasks to address issues
  3. Complete remediation tasks
  4. Request checkpoint approval again

Blocked by Dependency

  1. Mark task as [!] with blocker description
  2. Check if other tasks can proceed
  3. Document expected resolution

Task Status Symbols

SymbolMeaning
[ ]Pending
[~]In progress
[x]Complete
[-]Skipped
[!]Blocked

Best Practices

  1. Never skip RED — Always write failing tests first
  2. Small commits — One logical change per commit
  3. Immediate updates — Update plan right after task completion
  4. Wait for approval — Never skip checkpoint verification
  5. Coverage discipline — Don't accept below target
  6. Sequential phases — Complete phases in order
  7. Document deviations — Note any changes from plan
  8. Clean state — Each commit leaves code working

NEVER Do

  1. NEVER skip the RED phase — writing tests first is non-negotiable in TDD
  2. NEVER proceed past checkpoints without approval — wait for explicit user confirmation
  3. NEVER commit code that doesn't pass tests — every commit must be a working state
  4. NEVER accept coverage below 80% — add tests until threshold is met
  5. NEVER hide deviations from the plan — document all changes from original spec
  6. NEVER skip phases or reorder them — phases are sequential for a reason
  7. NEVER forget to record commit SHAs — traceability requires linking tasks to commits

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

97.03%
按下载量换算12,352

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills