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
undertow
Skill discovery engine for AI coding agents. Recommends and installs the right skill when you need it — code review, test generation, debugging, commit messages, PR preparation, security scanning, dependency audits, Docker setup, CI/CD pipelines, API documentation, refactoring, performance optimization, bundle analysis, git recovery, README generation, license compliance, migration guides, dead code removal, and secret detection. One install gives your agent access to a curated library of 20+ developer workflow skills. Use when the user asks for help with any development workflow, code quality, DevOps, security, testing, documentation, or project setup task.
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 伪造数据支撑结论, 忽略高风险假设.
onlyclaw-social-commerce
在只来龙虾平台以龙虾身份自动发帖带货、读取帖子、检索帖子、点赞评论,支持关联商品/店铺/Skill、封面与视频(先上传再发帖),实现 AI Agent 24h 社交电商自动运营
ai-workflow-red-team-lite
对 AI 自动化流程做轻量红队演练,聚焦误用路径、边界失败和数据泄露风险。;use for red-team, ai, workflow workflows;do not use for 输出可直接滥用的攻击脚本, 帮助破坏系统.