requirements-framework-usage
This skill should be used when the user asks about "using requirements framework", "how to configure requirements", "add requirement checklist", "customize requirements", "requirements not working", "bypass requirements", "satisfy requirements", or needs help with the requirements framework CLI (req command). Also triggers on questions about requirement scopes, session management, or troubleshooting hooks.
What this skill does
# Requirements Framework Usage
Help users configure, customize, and troubleshoot the **Claude Code Requirements Framework** - a hook-based system that enforces development workflow practices.
**Repository**: https://github.com/HarmAalbers/claude-requirements-framework
**Documentation**: `~/.claude/hooks/README-REQUIREMENTS-FRAMEWORK.md`
## Core Capabilities
1. **Configuration Guidance** - Help set up global, project, and local configs
2. **Checklist Customization** - Add/modify checklists for requirements
3. **CLI Usage** - Explain `req` command and session management
4. **Troubleshooting** - Debug hooks, permissions, and sync issues
5. **Best Practices** - Recommend workflows and patterns
## Quick Reference
### Essential CLI Commands
```bash
req status # Check requirement status
req satisfy commit_plan # Mark requirement satisfied
req clear commit_plan # Clear a requirement
req list # List all requirements
req sessions # View active sessions
req init # Interactive project setup
req config commit_plan # View/modify configuration
req doctor # Verify installation
```
**โ Full CLI reference**: See `references/cli-reference.md`
### Configuration Locations
1. **Global** (`~/.claude/requirements.yaml`) - Defaults for all projects
2. **Project** (`.claude/requirements.yaml`) - Shared team config (committed)
3. **Local** (`.claude/requirements.local.yaml`) - Personal overrides (gitignored)
### Requirement Scopes
| Scope | Lifetime | Use Case |
|-------|----------|----------|
| `session` | Until Claude session ends | Daily planning, ADR review |
| `branch` | Persists across sessions | GitHub ticket linking |
| `permanent` | Never auto-cleared | Project setup |
| `single_use` | Cleared after action | Pre-commit review (each commit) |
## Common Tasks
### Task: Add Checklist to Requirement
```yaml
# In .claude/requirements.yaml
requirements:
commit_plan:
enabled: true
scope: session
checklist:
- "Plan created via EnterPlanMode"
- "Atomic commits identified"
- "TDD approach documented"
```
### Task: Create Custom Requirement
```yaml
requirements:
my_requirement:
enabled: true
scope: session
trigger_tools:
- Edit
- Write
message: |
๐ฏ **Custom Requirement**
Explain what needs to be done.
**To satisfy**: `req satisfy my_requirement`
checklist:
- "First step"
- "Second step"
```
**โ More examples**: See `examples/custom-requirement.yaml`
### Task: Block Specific Bash Commands
```yaml
requirements:
pre_commit_review:
enabled: true
scope: single_use
trigger_tools:
- tool: Bash
command_pattern: "git\\s+commit"
message: "Review required before commit"
```
**Pattern Tips**:
- `\\s+` matches whitespace
- `|` for OR: `git\\s+(commit|push)`
- Case-insensitive by default
**โ More patterns**: See `examples/bash-command-trigger.yaml`
### Task: Temporarily Disable Requirements
**Option 1**: Local override
```yaml
# .claude/requirements.local.yaml
enabled: false
```
**Option 2**: Environment variable
```bash
export CLAUDE_SKIP_REQUIREMENTS=1
```
**Option 3**: Disable specific requirement
```bash
req config commit_plan --disable --local
```
## Interactive Setup
Use `req init` for guided project setup:
```bash
req init # Interactive wizard
req init --preset strict # Use preset (non-interactive)
req init --yes # Non-interactive with defaults
```
**Presets**:
- `strict` - All requirements, session scope (teams)
- `relaxed` - Basic requirements, branch scope
- `minimal` - Only commit_plan (learning)
- `advanced` - All features + branch limits + guards
- `inherit` - Inherit from global config
## Configuration Management
View and modify settings without editing YAML:
```bash
# View
req config # All requirements
req config commit_plan # Specific requirement
# Modify
req config commit_plan --enable
req config commit_plan --disable
req config commit_plan --scope branch
req config adr_reviewed --set adr_path=/custom/path
```
**โ Full config options**: See `references/cli-reference.md`
## Session Management
Sessions are auto-detected. Manual override when needed:
```bash
req sessions # List active sessions
req satisfy commit_plan --session ID # Explicit session
```
## Troubleshooting Quick Guide
### Hook Not Triggering?
1. Check if on main/master (skipped by design)
2. Verify config enabled: `req config`
3. Check hook registration: `req doctor`
4. Check permissions: `ls -la ~/.claude/hooks/*.py`
5. Verify no skip flag: `echo $CLAUDE_SKIP_REQUIREMENTS`
### Session Not Found?
```bash
req sessions # Find session ID
req satisfy NAME --session ID
req prune # Clean stale sessions
```
**โ Full troubleshooting guide**: See `references/troubleshooting.md`
## Advanced Features
### Auto-Satisfaction via Skills
Skills can automatically satisfy requirements:
```
1. git commit โ Blocked by pre_commit_review
2. /requirements-framework:pre-commit runs
3. Auto-satisfies pre_commit_review
4. git commit โ Success!
5. single_use clears โ Next commit requires review again
```
**Built-in mappings (review skills)**:
- `requirements-framework:pre-commit` โ `pre_commit_review`
- `requirements-framework:deep-review` โ `pre_pr_review`
- `requirements-framework:arch-review` โ `commit_plan`, `adr_reviewed`, `tdd_planned`, `solid_reviewed`
- `requirements-framework:codex-review` โ `codex_reviewer`
**Built-in mappings (process skills)**:
- `requirements-framework:brainstorming` โ `design_approved`
- `requirements-framework:writing-plans` โ `plan_written`, `commit_plan`
- `requirements-framework:test-driven-development` โ `tdd_planned`
- `requirements-framework:systematic-debugging` โ `debugging_systematic`
- `requirements-framework:verification-before-completion` โ `verification_evidence`
- `requirements-framework:requesting-code-review` โ `pre_commit_review`
### Process Skills (Development Lifecycle)
The framework includes process skills that guide the full development lifecycle:
| Skill | Purpose |
|-------|---------|
| `brainstorming` | Design-first development (explore โ design โ approve) |
| `writing-plans` | Create bite-sized implementation plans |
| `executing-plans` | Execute plans with batch checkpoints |
| `test-driven-development` | RED-GREEN-REFACTOR cycle enforcement |
| `systematic-debugging` | 4-phase root-cause investigation |
| `verification-before-completion` | Fresh evidence before claiming done |
| `subagent-driven-development` | Parallel task execution with review |
| `finishing-a-development-branch` | Branch completion and merge options |
| `using-git-worktrees` | Isolated workspace creation |
| `dispatching-parallel-agents` | Concurrent problem solving |
| `receiving-code-review` | Technical evaluation of feedback |
| `requesting-code-review` | Dispatching review agents |
| `writing-skills` | TDD-for-documentation (meta-skill) |
Use `/brainstorm`, `/write-plan`, `/execute-plan` commands to invoke process skills directly.
For large multi-layer refactors that exceed a single session, use `/requirements-framework:refactor-orchestrate` โ multi-layer top-down refactor workflow (produces plan + orchestrator-prompt for fresh-session execution).
### Single-Use Scope
Requires satisfaction before EACH action:
```yaml
pre_commit_review:
scope: single_use # Must satisfy before EVERY commit
```
### Dynamic Requirements
Auto-calculated conditions (e.g., branch size):
```yaml
branch_size_limit:
type: dynamic
threshold: 400
```
### Guard Requirements
Condition checks (e.g., protected branches):
```yaml
protected_branch:
type: guard
branches: [main, master]
```
**โ Advanced features details**: See `references/advanced-features.md`
## Checklist Best Practices
1. **Keep items concise** - 5-10Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.