← スキル一覧に戻る

workflow-enforcement
by chkim-su
⭐ 1🍴 0📅 2026年1月16日
SKILL.md
name: workflow-enforcement description: Protocol-based workflow enforcement with validation dependencies and anti-bypass protection category: architecture tools: []
Workflow Enforcement Patterns
Protocol-based workflow enforcement with dependency graphs and anti-bypass protection.
Core Concept
validate_all ──┬──> content_quality_audit
│
form_audit ────┼──> functional_test ──> plugin_test
│
└──> (MCP workflows)
Workflow Types
| Type | Description | Required Validations |
|---|---|---|
skill_creation | Creating new skills | validate_all, form_audit, functional_test |
agent_creation | Creating new agents | validate_all, form_audit |
command_creation | Creating commands | validate_all |
plugin_publish | Marketplace deployment | ALL validations + content_quality (blocking) |
quick_fix | Simple error fixes | validate_all only |
analyze_only | Read-only analysis | validate_all |
Validation Dependencies
validate_all (no deps) ──┬──> content_quality_audit
│
form_selection_audit ────┼──> functional_test ──> plugin_test
(no deps) │
- Parallel:
validate_allandform_selection_auditcan run together - Sequential:
functional_testrequires both to pass first
Anti-Bypass Protection
Agent-required validations cannot be manually passed:
# This will FAIL (manual bypass attempt)
python3 forge-state.py mark-validation form_selection_audit passed
# This will SUCCEED (triggered by hook after agent completes)
python3 forge-state.py mark-validation form_selection_audit passed --from-hook
Protected validations: form_selection_audit, functional_test, plugin_test
Quick Start
# Initialize workflow
python3 scripts/forge-state.py init skill_creation
# Check status
python3 scripts/forge-state.py status
# Check dependencies before validation
python3 scripts/forge-state.py check-deps functional_test
# Mark validation (via hook only for protected ones)
python3 scripts/forge-state.py mark-validation validate_all passed
# Verify protocol completion
python3 scripts/forge-state.py verify-protocol
Exit Code Policy
| Exit Code | Meaning | Hook Behavior |
|---|---|---|
exit(0) | ALLOW | Proceed |
exit(1) | WARN | May block |
exit(2) | BLOCK | Always blocks in PreToolUse |
Content Quality Validation
W037 (Korean) and W038 (emoji) warnings:
- Normal mode: Warning only (exit 0)
- Publish mode: Blocking (exit 2) via
--publish-modeflag
MCP Integration
- SessionStart hook auto-starts MCP daemons
mcp-health-check.pyverifies daemon status- Optional
mcp_initializedvalidation for MCP-dependent workflows
References
references/state-machine-patterns.md- State machine designreferences/gate-design.md- Gate placement and designreferences/phase-transition.md- Phase sequencing rulesreferences/exit-code-guide.md- Exit code classificationreferences/protocol-design.md- 6 workflow types detailed
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です