agentsclimarketplace

Workflow enforcement

Skill chkim-su/forge-editor/skills/workflow-enforcement

Protocol-based workflow enforcement with validation dependencies and anti-bypass protectionFrom its SKILL.md

Install
npx -y skills add chkim-su/forge-editor --skill workflow-enforcement

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

3.2 KB, as published. Nobody here has run it

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

TypeDescriptionRequired Validations
skill_creationCreating new skillsvalidate_all, form_audit, functional_test
agent_creationCreating new agentsvalidate_all, form_audit
command_creationCreating commandsvalidate_all
plugin_publishMarketplace deploymentALL validations + content_quality (blocking)
quick_fixSimple error fixesvalidate_all only
analyze_onlyRead-only analysisvalidate_all

Validation Dependencies

validate_all (no deps) ──┬──> content_quality_audit
                         │
form_selection_audit ────┼──> functional_test ──> plugin_test
(no deps)                │
  • Parallel: validate_all and form_selection_audit can run together
  • Sequential: functional_test requires 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 CodeMeaningHook Behavior
exit(0)ALLOWProceed
exit(1)WARNMay block
exit(2)BLOCKAlways 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-mode flag

MCP Integration

  • SessionStart hook auto-starts MCP daemons
  • mcp-health-check.py verifies daemon status
  • Optional mcp_initialized validation for MCP-dependent workflows

References

  • references/state-machine-patterns.md - State machine design
  • references/gate-design.md - Gate placement and design
  • references/phase-transition.md - Phase sequencing rules
  • references/exit-code-guide.md - Exit code classification
  • references/protocol-design.md - 6 workflow types detailed

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.