Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Chegginv0.1.0MITIn 1 marketplace
Deterministic phase-gated skill enforcement for AI coding agents. Blocks file edits until earlier workflow phases complete.
Claude loads one when your task matches it, or you run it by name.
1 caution to review before installing
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
skill-chain, workflow, enforcement, phase-gate, claude-code, codex, multi-agent, design ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Deterministic phase-gated skill enforcement for AI coding agents. Forces agents to follow a defined workflow order — no skipping discovery, no jumping straight to code.
Works with Claude Code and OpenAI Codex CLI. Zero dependencies.
AI coding agents skip steps. Ask one to "build a website" and it jumps straight to writing code — skipping research, design, brand guidelines, accessibility, and quality checks. Prompt instructions help but agents forget ~20% of them. You need mechanical enforcement.
Define a skill chain — an ordered sequence of phases that must complete before the agent can edit files:
{
"flows": {
"website-design": {
"trigger_skill": "website-creation",
"gate_patterns": ["app/**", "components/**", "*.tsx", "*.css"],
"phases": [
{ "name": "discovery", "required": ["shape", "brand-guidelines"] },
{ "name": "foundation", "required": ["website-creation", "impeccable"] },
{ "name": "refinement", "anyOf": { "of": ["layout", "typeset"], "min": 1 } },
{ "name": "quality", "required": ["polish"] },
{ "name": "ship", "required": ["deploy-pipeline"] }
]
}
}
}
When the agent tries to edit app/page.tsx without having invoked shape and brand-guidelines first:
[skill-chain] Flow "website-design", phase 1 "discovery" is incomplete.
Invoke before continuing: shape, brand-guidelines.
The edit is blocked at the tool level. Not a suggestion — a hard gate.
Edit/Write calltrigger_skill was most recently called)gate_patternsexit 2 = edit blocked with a message naming the missing skillsNo state files. No external services. The session transcript is the single source of truth.
/plugin marketplace add Cheggin/skill-chain
/plugin install skill-chain@skill-chain
This registers the enforcer hook and all 8 example skills automatically. Skills become available as /skill-chain:<skill-name>.
git clone https://github.com/Cheggin/skill-chain
cp skill-chain/skill-chain.mjs your-project/
cp skill-chain/skill-chains.json your-project/
cp -r skill-chain/skills/ your-project/skills/
cd your-project
node skill-chain.mjs # or use setup.mjs to wire hooks automatically
node setup.mjs # auto-detects runtime
node setup.mjs --runtime claude # Claude Code only
node setup.mjs --runtime codex # Codex CLI only
This adds the enforcer as a PreToolUse hook in .claude/settings.json or .codex/hooks.json.
Edit skill-chains.json to define your flows. Each flow needs:
| Field | Purpose |
|---|---|
trigger_skill | Which skill activation starts this flow |
gate_patterns | Glob patterns for files that are gated |
phases | Ordered list of phases with required skills |
Skills are just markdown files at skills/<name>/SKILL.md with YAML frontmatter. The enforcer only checks skill names (slugs) — it never reads the skill files themselves.
This repo includes 8 example skills for the website-design chain. Use them as-is or write your own.
Three ways to define what "complete" means for a phase:
// ALL must fire
{ "name": "discovery", "required": ["shape", "brand-guidelines"] }
// At least ONE must fire
{ "name": "styling", "oneOf": ["tailwind-setup", "css-modules-setup"] }
// At least N of M must fire
{ "name": "refinement", "anyOf": { "of": ["layout", "typeset", "colorize", "adapt"], "min": 2 } }
The included skill-chains.json defines a 5-phase website build flow:
| Phase | Skills | What it enforces |
|---|---|---|
| Discovery | shape, brand-guidelines | Research UX and brand before touching code |
| Foundation | website-creation, impeccable | Set up the project with design principles |
| Refinement | 1+ of layout, typeset | Apply at least one design refinement pass |
| Quality | polish | Final quality pass before shipping |
| Ship | deploy-pipeline | Structured deploy process |
User: "Build me a landing page"
Agent: *immediately writes app/page.tsx*
Result: Generic layout, no brand consistency, no responsive design, ships broken
npx claudepluginhub cheggin/skill-chain --plugin skill-chainBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground