From create-workflow
Generate .claude/rules/ files — the constraint layer of the workflow system. Produces focused rule files that hooks enforce and agents follow. Scoped by topic and optionally by file path. Invoked by scaffold or standalone via /generate-rules.
How this skill is triggered — by the user, by Claude, or both
Slash command
/create-workflow:generate-rulesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Produce `.claude/rules/` files. Each rule file is focused on one concern and loaded automatically alongside CLAUDE.md.
Produce .claude/rules/ files. Each rule file is focused on one concern and loaded automatically alongside CLAUDE.md.
Rules are the constraints — the laws that hooks enforce and agents follow. Every rule exists to protect a workflow invariant. Hooks are the enforcement mechanism; rules are what they enforce. Agents consult rules to stay within boundaries.
Rules (constraints)
← Declared from CLAUDE.md standards
→ Enforced by Hooks (automatic)
→ Followed by Agents (by instruction)
→ Respected by Skills (by convention)
Scan results, grill decisions, and the workflow design that determines what invariants need protection. Read .claude/scaffold-decisions.md if it exists — this is the primary source for resolved grill decisions. If standalone, scan first.
Files in .claude/rules/ with optional paths frontmatter for scoping:
---
paths:
- "src/api/**"
- "src/middleware/**"
---
# API Conventions
[Rules specific to these paths]
Generate only categories that apply (based on scan + grill):
| Category | File | When |
|---|---|---|
| Code style | code-style.md | Style rules beyond CLAUDE.md basics |
| Testing | testing.md | Test conventions, coverage requirements, framework-specific patterns |
| Security | security.md | Auth patterns, input validation, secret management |
| Git workflow | git-workflow.md | Commit format, branch naming, PR process |
| Architecture | architecture.md | Module boundaries, dependency rules, patterns |
| Performance | performance.md | Perf-critical paths, caching rules, query patterns |
| Accessibility | accessibility.md | A11y requirements, ARIA patterns, testing |
paths frontmatter to scope rules to relevant directoriesUse paths frontmatter when rules only apply to specific directories:
---
paths:
- "src/components/**" # React components
- "src/hooks/**" # Custom hooks
---
Rules without paths apply globally.
/generate-rules — scan + generate. Use --quick-grill for abbreviated interrogation.
$ARGUMENTS:
--category=security,testing — Generate only specified categories--quick-grill — Abbreviated interrogation (3-5 questions)npx claudepluginhub zpankz/create-workflow --plugin create-workflowCreates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.