← 返回 Skills 市场
aptratcn

Xiaobai Workflow Enforcer

作者 Erwin · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
83
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install xiaobai-workflow-enforcer
功能描述
Xiaobai Workflow Enforcer - Mandatory workflows for AI Agents. Design before code. Test before implement. Verify before claim. Inspired by Superpowers (161K...
使用说明 (SKILL.md)

Xiaobai Workflow Enforcer 🔒

Mandatory workflows for AI Agents. Not suggestions, not "when appropriate" — mandatory.

Inspired by Superpowers (161K stars) which proved that enforced workflows transform chaotic AI outputs into reliable engineering.

Core Philosophy

Superpowers Principle Xiaobai Implementation
Test-Driven Development EVR + TDD skill
Systematic over ad-hoc Workflow Checkpoint
Complexity reduction Simplicity Check
Evidence over claims Verification Gate

Mandatory Workflows

Workflow 1: Pre-Action Design Gate 🔒

Trigger: Before any multi-step task or code creation

Mandatory Steps:

  1. STOP. Don't write code yet.
  2. Ask clarifying questions (minimum 3)
  3. Present design/spec in chunks
  4. Get user sign-off on design
  5. Save design document
❌ Wrong:
User: Build me a scraper
Agent: [Writes code]

✅ Right:
User: Build me a scraper
Agent: Before I code, let me understand:
       1. What site are we scraping?
       2. What data do you need?
       3. How often should it run?
       4. Any rate limits to consider?
       [After answers, presents design]
       Does this design match what you need?

Workflow 2: Implementation Planning 🔒

Trigger: After design approval, before implementation

Mandatory Steps:

  1. Break into 2-5 minute tasks
  2. Each task has: file path, exact code, verification step
  3. Present plan for approval
  4. Save plan to checkpoint file
Plan Format:

## Task 1: Create scraper module (3 min)
- File: src/scraper.py
- Code: [exact code or pseudocode]
- Verify: `python -c "import scraper"`

## Task 2: Add rate limiting (2 min)
- File: src/scraper.py
- Code: [exact changes]
- Verify: Run with test request, check delay

...

Workflow 3: Test-First Gate 🔒

Trigger: Before implementing any function

Mandatory Steps:

  1. Write test first
  2. Run test, confirm it FAILS (RED)
  3. Write minimal code to pass
  4. Run test, confirm it PASSES (GREEN)
  5. Refactor if needed
  6. Commit only after GREEN
❌ Wrong:
[Writes function]
[Tests it manually]
"It works"

✅ Right:
1. Write test_function()
2. Run: pytest test_module.py
3. See: FAILED (expected)
4. Write function()
5. Run: pytest test_module.py
6. See: PASSED
7. Commit

Workflow 4: Execution Gate 🔒

Trigger: During task execution

Mandatory Steps:

  1. Read task from plan
  2. Execute exactly as planned
  3. Verify (run command, check output)
  4. Update checkpoint
  5. Only then move to next task
Checkpoint Update:
- Task 1: DONE (verified: scraper.py imports successfully)
- Task 2: IN_PROGRESS
- Tasks 3-5: PENDING

Workflow 5: Verification Gate 🔒

Trigger: Before claiming "done" or "complete"

Mandatory Steps:

  1. Run verification command
  2. Show output to user
  3. Confirm evidence matches claim
  4. Only then say "done"
❌ Wrong:
"Scraper is done!"

✅ Right:
"Scraper implementation complete.

Verification:
- Module imports: ✅
- Test suite passes: ✅ (5/5)
- Sample scrape works: ✅

Evidence:
[Output from test run]

Would you like me to proceed with deployment?"

Workflow Enforcement Protocol

Before Any Action

1. Is this a multi-step task?
   → Yes → Trigger Workflow 1 (Design Gate)

2. Is there a plan?
   → No → Trigger Workflow 2 (Planning)

3. Does this involve code?
   → Yes → Trigger Workflow 3 (Test-First)

4. Is task in progress?
   → Yes → Trigger Workflow 4 (Execution Gate)

5. About to say "done"?
   → Yes → Trigger Workflow 5 (Verification Gate)

Blockers That Must Stop Progress

Condition Action
No design doc Don't code, ask questions first
No plan Don't execute, create plan first
No test Don't write function, write test first
Test failing Don't continue, fix the code
No verification Don't say "done", verify first

Integration with Other Xiaobai Skills

  • EVR Framework — Verification gate implementation
  • Workflow Checkpoint — Plan and progress tracking
  • Skill Quality Eval — Measure workflow compliance
  • Self-Improve — Learn from workflow violations

Anti-Patterns (What This Skill Prevents)

Anti-Pattern Why It's Bad Workflow Fix
Jumping to code Solves wrong problem Design Gate
No plan Chaotic execution Planning Gate
Write-then-test Tests that pass trivially Test-First Gate
Skipping verification Silent failures Verification Gate
Claiming done prematurely User finds out later Execution Gate

Quick Reference Card

Before Coding:    DESIGN → APPROVE → PLAN → APPROVE
While Coding:     TEST(RED) → CODE → TEST(GREEN) → REFACTOR
After Coding:     VERIFY → EVIDENCE → REPORT
Always:           CHECKPOINT after each step

License

MIT

安全使用建议
This skill only contains instructions (no code, no installs, no credentials) and is coherent with its goal of enforcing development workflows. Before installing, consider that the agent will be instructed to create files, run tests/commands (pytest, python), and present outputs — make sure the agent runtime has appropriate file-system and command-execution permissions you are comfortable granting. Also review designs and checkpoint file locations produced by the agent before allowing automated execution, and limit autonomous invocation if you prefer manual approvals for actions that run code or modify your workspace.
功能分析
Type: OpenClaw Skill Name: xiaobai-workflow-enforcer Version: 1.0.0 The skill bundle defines a set of structured workflow instructions for AI agents, emphasizing Test-Driven Development (TDD), design-first principles, and mandatory verification gates. It contains no executable code, data exfiltration logic, or malicious prompt injections; the instructions in SKILL.md are entirely focused on improving the reliability and quality of the agent's software engineering output.
能力评估
Purpose & Capability
Name and description (enforcing development workflows) match the SKILL.md content. The skill only instructs process steps (design, plan, TDD, verification) and does not request unrelated binaries, credentials, or external services.
Instruction Scope
Instructions are prescriptive about agent behavior (ask questions, produce design, write tests, run pytest, save checkpoints). This is coherent for a workflow enforcer, but it grants the agent discretion to create files and run local commands; the skill does not specify storage paths or safety constraints, so runtime policy/permissions determine actual impact.
Install Mechanism
No install spec and no code files—this is instruction-only, so nothing is written to disk by the skill itself and no external packages are pulled in by the skill.
Credentials
The skill declares no required environment variables, credentials, or config paths. The runtime suggestions (running pytest, python -c, saving files) are consistent with a development workflow and do not demand unrelated secrets or service access.
Persistence & Privilege
always is false and the skill is user-invocable; it does not request persistent system-wide privileges or modify other skills' configs. Autonomous invocation is allowed by default but not combined with other risky requests.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install xiaobai-workflow-enforcer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /xiaobai-workflow-enforcer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: Mandatory workflows inspired by Superpowers (161K stars)
元数据
Slug xiaobai-workflow-enforcer
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Xiaobai Workflow Enforcer 是什么?

Xiaobai Workflow Enforcer - Mandatory workflows for AI Agents. Design before code. Test before implement. Verify before claim. Inspired by Superpowers (161K... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 83 次。

如何安装 Xiaobai Workflow Enforcer?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install xiaobai-workflow-enforcer」即可一键安装,无需额外配置。

Xiaobai Workflow Enforcer 是免费的吗?

是的,Xiaobai Workflow Enforcer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Xiaobai Workflow Enforcer 支持哪些平台?

Xiaobai Workflow Enforcer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Xiaobai Workflow Enforcer?

由 Erwin(@aptratcn)开发并维护,当前版本 v1.0.0。

💬 留言讨论