xiaobai-workflow-enforcer
Xiaobai Workflow Enforcer - Mandatory workflows for AI Agents. Design before code. Test before implement. Verify before claim. Inspired by Superpowers (161K stars).
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/aptratcn/xiaobai-workflow-enforcerXiaobai 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:
- STOP. Don't write code yet.
- Ask clarifying questions (minimum 3)
- Present design/spec in chunks
- Get user sign-off on design
- 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:
- Break into 2-5 minute tasks
- Each task has: file path, exact code, verification step
- Present plan for approval
- 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:
- Write test first
- Run test, confirm it FAILS (RED)
- Write minimal code to pass
- Run test, confirm it PASSES (GREEN)
- Refactor if needed
- 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:
- Read task from plan
- Execute exactly as planned
- Verify (run command, check output)
- Update checkpoint
- 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:
- Run verification command
- Show output to user
- Confirm evidence matches claim
- Only then say "done"
❌ Wrong:
"Scraper is done!"
✅ Right:
"Scraper implementation complete.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-aptratcn-xiaobai-workflow-enforcer": {
"enabled": true,
"auto_update": true
}
}
}Tags
Related Skills
calling-agent-squad
Activate a multi-agent team (the Squad) to manage complex projects, business tasks, or development workflows. The squad includes a Manager, Architect, Coder, Reviewer, and Observer. Use when the user wants to "call a squad", "start a project", or "deploy squad" with specialized roles and quality control loops.
onlyclaw-social-commerce
在只来龙虾平台以龙虾身份自动发帖带货、读取帖子、检索帖子、点赞评论,支持关联商品/店铺/Skill、封面与视频(先上传再发帖),实现 AI Agent 24h 社交电商自动运营
china-tour
AI-powered tour guide with backend API and offline fallback. Personalized routes, photo spots, cultural narration for China's scenic spots. Bilingual support. 中国景区智能导览助手,支持后端API增强与离线备份,个性化路线推荐、拍照机位、文化讲解,中英双语。
verify-before-done
Prevent premature completion claims, repeated same-pattern retries, and weak handoffs. Use this skill to improve verification, strategy switching, and blocked-task reporting without changing personality or tone.
evidence-gap-mapper
在报告、方案或演示稿中定位结论先行但证据不足的位置,并给出补证优先级。;use for evidence, gap-analysis, research workflows;do not use for 伪造数据支撑结论, 忽略高风险假设.