Coding

Workflow Guardian

Try it

Defines, enforces, and tracks structured workflows for any task type. Manages do/don't rules, execution sequences, hard gates, soft advisories, checkpoints,...

What it does

Give the agent a system for HOW to work — not just what to do. Every repeating task type gets a defined workflow. Every workflow has rules, checkpoints, and gates. Violations are caught in real time and logged for review.

The skill document

Workflow Guardian Skill

Purpose

Give the agent a system for HOW to work — not just what to do. Every repeating task type gets a defined workflow. Every workflow has rules, checkpoints, and gates. Violations are caught in real time and logged for review.


Core Concepts

ConceptMeaning
workflowOrdered step sequence for a specific task type
ruleA do or don't that applies globally or per workflow
checkpointMandatory verification point inside a workflow
gateHard stop — cannot proceed until condition is met
advisorySoft warning — log it, do not block
violationA rule or gate broken during execution
post-fixCorrective action applied after a violation

Workflow States

StateMeaning
pendingDefined, not yet started
activeCurrently executing
pausedWaiting on gate condition or owner input
completedFinished successfully, all checkpoints passed
abortedStopped — violation or owner cancel
post-fixCompleted but violation found, correction in progress

Rule Types

TypeEnforcementWhat happens on break
hard-doMandatory actionGate — workflow stops
hard-dontProhibited actionGate — workflow stops
soft-doRecommended actionAdvisory — log + warn
soft-dontDiscouraged actionAdvisory — log + warn
globalApplies to ALL workflowsEither hard or soft
scopedApplies to one workflow onlyEither hard or soft

Folder Structure

workflow-guardian/
  workflows/
    active/                  ← currently defined workflows
      /
        workflow.md          ← definition: steps, gates, rules
        run-log.md           ← execution history (append-only)
    archived/                ← deprecated workflows (never delete)
    templates/               ← reusable workflow templates
  rules/
    global/
      do.md                  ← global hard/soft dos
      dont.md                ← global hard/soft don'ts
    do/                      ← scoped do rules by workflow
      .md
    dont/                    ← scoped don't rules by workflow
      .md
  checkpoints/
    .md         ← checkpoint definitions per workflow
  violations/
    raw/                     ← captured immediately on detection
      YYYY-MM-DD--/entry.md
    reviewed/                ← processed violations
  hooks/
    pre-task.md              ← runs before any workflow step
    post-task.md             ← runs after any workflow step
    on-violation.md          ← fires immediately on rule break
    on-complete.md           ← fires when workflow completes
  memory/
    schema.json              ← validated memory structure
    index.json               ← runtime state (auto-managed)
  templates/
    workflow.md              ← template for new workflow definitions
    violation-entry.md       ← template for violation entries
  crons/
    active/
    completed/
  WORKFLOW_LOG.md            ← master execution log (append-only)
  RULES_INDEX.md             ← all rules in one place
  STATS.md                   ← compliance rate, violation counts
  SOUL.md                    ← persistent soul context
  AGENT.md                   ← behavioral enforcement rules

Slug Format

Workflow IDs: - e.g. code-review, file-creation, api-integration Violation slugs: YYYY-MM-DD--


Immediate Violation Capture Rule

The moment a rule is broken — before any other action:

  1. Write to violations/raw//entry.md (minimum viable)
  2. Fire hooks/on-violation.md
  3. If hard rule → GATE: stop workflow, surface to owner
  4. If soft rule → ADVISORY: log, warn, continue

Post-Fix Protocol

When a violation is found AFTER workflow completion:

  1. Set workflow state to post-fix
  2. Write violation entry
  3. Determine corrective action
  4. Apply fix if autonomous, else escalate
  5. Mark workflow completed only after fix confirmed

Workflow Definition Requirements

Every workflow in workflows/active/ MUST define:

  • steps[] — ordered list with descriptions
  • gates[] — hard stop conditions
  • checkpoints[] — verification points
  • rules[] — scoped dos and don'ts
  • post-fix-policy — what to do if violation found after completion

Stats Tracking

After every workflow completion or violation:

  • Update STATS.md compliance rate
  • Update memory/index.json
  • If compliance rate drops below 80% for any workflow → advisory to owner

Related skills

Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.

by Iván855 installs69 stars

Stores durable facts in a categorized, plain-markdown vault on disk, alongside your agent's built-in memory.

by Iván559 installs18 stars

Join a video meeting as an AI bot with voice, avatar, and screenshare across four operating modes.

by johnpatternai22 installs8 stars

Generate and edit Draw.io, Mermaid, and Excalidraw diagrams from natural language using a structured JSON spec.

by nssa.io1.0k installs47 stars

Run Git operations — commits, branches, merges, rebases, conflict resolution, and recovery — with safety rules enforced.

by Iván535 installs31 stars

More from vk

Browse all skills

Autonomous nightly Linux server security audits over SSH MCP with CVE scanning and policy-driven auto-fixes.

by cyber-bye16 installs

Full-stack social media management skill. Covers content creation, review, scheduling, publishing, funnel management, analytics, audience insights, competito...

by cyber-bye23 installs2 stars

Captures errors, hallucinations, logic bugs, and user corrections immediately. Runs a nightly 11 PM IST review to attempt self-fixes. Failed fixes escalate t...

by cyber-bye21 installs2 stars

Create, update, and maintain structured identity entries for every person, org, or group mentioned in conversation. Supports human and AI entity subtypes, gr...

by cyber-bye19 installs2 stars

Perform stealth browser automation to bypass bot detection (Cloudflare, Akamai, Datadome) using Patchright.

by cyber-bye9 installs1 stars

Graph-based memory MCP server with 9 consolidated tools, 8-phase auto-linking, persona tracking, emotional memory, adaptive learning, and knowledge graph ent...

by cyber-bye6 installs