wsxwj123/opencode-skills-backup/workflow-guard

Claude Code and agent skill by wsxwj123/opencode-skills-backup

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when you want Claude Code to enforce a mandatory edit workflow using PreToolUse hooks, activation markers, and stale-session blocking.

Install

npx vskill@latest install wsxwj123/opencode-skills-backup/workflow-guard

SKILL.md

Workflow Guard Skill

This skill turns workflow rules into hard gates for Claude Code file edits.

Core model:

  • Skill = SOP definition.
  • Hook = enforcement.
  • Marker file (.workflow-active) = session state.

Included Files

text
workflow-guard-skill/
SKILL.md
scripts/
workflow_common.py
workflow_activate.py
workflow_session_check.py
workflow_gate.py

Behavior

workflow_gate.py guards Edit|Write|MultiEdit|NotebookEdit when:

  • project is workflow-managed (PROJECT.md exists), and
  • marker state is checked before edit.

Default mode is auto-activation:

  • missing/stale/invalid .workflow-active is created/refreshed automatically.
  • strict blocking can be restored with --no-auto-activate.

Default TTL is 4 hours.

Bootstrap exemptions are built in for:

  • .claude/hooks/workflow-gate.py
  • .claude/hooks/workflow-session-check.py
  • .claude/hooks/workflow-activate.py

Install

  1. Copy this folder to:

~/.claude/skills/workflow-guard/

  1. Add project marker in each managed repo:

PROJECT.md

  1. Register hook in ~/.claude/settings.json or .claude/settings.json:
json
{
"hooks": {
"PreToolUse": [
{
"matcher": "Edit|Write|MultiEdit|NotebookEdit",
"hooks": [
{
"type": "command",
"command": "python3 \"$HOME/.claude/skills/workflow-guard/scripts/workflow-gate.py\" --auto-activate --ttl-hours 4"
}
]
}
]
}
}

You can also add a second check hook if needed:

json
{
"type": "command",
"command": "python3 \"$HOME/.claude/skills/workflow-guard/scripts/workflow-session-check.py\""
}

Daily Use

In auto-activation mode, no manual command is required.

Optional manual activation is still available:

bash
python3 "$HOME/.claude/skills/workflow-guard/scripts/workflow-activate.py" --project-root "$PWD" --ttl-hours 4

If you prefer strict mode, set hook command to:

bash
python3 "$HOME/.claude/skills/workflow-guard/scripts/workflow-gate.py" --no-auto-activate

Quick Validation

  1. Ensure repo contains PROJECT.md.
  2. Ask Claude to edit a file.
  3. Confirm .workflow-active is auto-created.
  4. For strict mode testing, use --no-auto-activate and verify block behavior.

Notes

  • Blocking uses exit 2 and stderr feedback.
  • Hook input is read from stdin JSON (tool_name, tool_input, cwd).
  • Scripts force UTF-8 stdout/stderr for cross-platform stability.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
7
7-day trend score
15

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/wsxwj123/opencode-skills-backup/workflow-guard/badge)](https://verified-skill.com/skills/wsxwj123/opencode-skills-backup/workflow-guard)

Something wrong with this skill or its page? Tell us.