wsxwj123/opencode-skills-backup/workflow-guard
Claude Code and agent skill by wsxwj123/opencode-skills-backup
- community
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-guardSKILL.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
Behavior
workflow_gate.py guards Edit|Write|MultiEdit|NotebookEdit when:
- project is workflow-managed (
PROJECT.mdexists), and - marker state is checked before edit.
Default mode is auto-activation:
- missing/stale/invalid
.workflow-activeis 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
- Copy this folder to:
~/.claude/skills/workflow-guard/
- Add project marker in each managed repo:
PROJECT.md
- Register hook in
~/.claude/settings.jsonor.claude/settings.json:
You can also add a second check hook if needed:
Daily Use
In auto-activation mode, no manual command is required.
Optional manual activation is still available:
If you prefer strict mode, set hook command to:
Quick Validation
- Ensure repo contains
PROJECT.md. - Ask Claude to edit a file.
- Confirm
.workflow-activeis auto-created. - For strict mode testing, use
--no-auto-activateand verify block behavior.
Notes
- Blocking uses
exit 2and 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
- SKILL.md in the repositoryCheckingworkflow-guard/SKILL.md
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
[](https://verified-skill.com/skills/wsxwj123/opencode-skills-backup/workflow-guard)