constraint-modeler — Claude Code command for system constraints
Model system limits, map their dependencies, and explore optimization options. Use it to assess business, technical, regulatory, or resource constraints.
npx claude-code-templates@latest --command simulation/constraint-modelerWhat constraint-modeler does
Run /constraint-modeler with a domain or a flag: --business, --technical, --regulatory, or --resource. The command groups constraints as hard, soft, or dynamic, maps how they affect one another, and outlines ways to validate the model.
Its output includes a constraint model, interaction matrices, a validation report, and optimization recommendations. It also covers sensitivity analysis, bottlenecks, and scenario boundaries. The command uses project documentation or configuration files for context, so constraints need to be described separately when those materials do not capture them.
What it helps with
- classify system limits as hard, soft, or dynamic
- map dependencies between constraints
- check whether a constraint model is accurate and relevant
- identify bottlenecks and define scenario boundaries
- draft options for relaxing or replacing constraints
Example prompts for the agent
- Model the system's technical constraints and map their dependencies:
/constraint-modeler --technical. - Build a model of business constraints for resource planning:
/constraint-modeler --business. - Analyze regulatory constraints and define scenario boundaries:
/constraint-modeler --regulatory.
How to install constraint-modeler
1claude-code-templates
npx claude-code-templates@latest --command simulation/constraint-modeler2Manually: put the files in place
.claude/commands/constraint-modeler.mdCall it with /constraint-modeler. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/constraint-modeler.mdCall it with /prompts:constraint-modeler. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/constraint-modeler.prompt.mdManually: put the files in place
.gemini/commands/constraint-modeler.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about constraint-modeler
How do I install constraint-modeler in Claude Code?
Run npx claude-code-templates@latest --command simulation/constraint-modeler. The command is installed at .claude/commands/constraint-modeler.md.
What does constraint-modeler do?
It builds a system constraint model, maps dependencies, and proposes optimization approaches. Its output includes interaction matrices and a validation report.
Which kinds of constraints can it analyze?
It covers hard, soft, and dynamic constraints, along with their dependencies. Choose a focus with --business, --technical, --regulatory, or --resource.
Source text
constraint-modeler.md · MIT
--- allowed-tools: Read, Write, Edit, WebSearch argument-hint: "[constraint-domain] | --business | --technical | --regulatory | --resource" description: Model system constraints with validation, dependency mapping, and optimization strategies --- # Constraint Modeler Model comprehensive system constraints with systematic validation and optimization: **$ARGUMENTS** ## Current System Context - Domain scope: Based on $ARGUMENTS (business, technical, operational, financial) - Existing constraints: @documentation or configuration files - System boundaries: Current limitations and dependencies - Change dynamics: Historical constraint evolution patterns ## Task Create comprehensive constraint models for accurate simulation and decision-making: **Constraint Domain**: Use $ARGUMENTS to focus on business, technical, regulatory, or resource constraints **Constraint Framework**: 1. **Hard Constraints** - Absolute limits that cannot be violated (legal, physical, technical) 2. **Soft Constraints** - Preferences and trade-offs that can be managed (budget, quality, timing) 3. **Dynamic Constraints** - Limitations that evolve over time (market, technology, capacity) 4. **Constraint Dependencies** - Relationships and interactions between different limitations 5. **Validation Framework** - Methods to verify constraint accuracy and relevance 6. **Optimization Strategies** - Approaches to relax, substitute, or circumvent constraints **Advanced Analysis**: Constraint sensitivity analysis, bottleneck identification, scenario boundary definition, and optimization algorithms. **Strategic Application**: Link constraint models to decision scenarios, resource allocation, and strategic planning. **Output**: Complete constraint model with interaction matrices, validation reports, optimization recommendations, and scenario boundary definitions.
© davila7 · MIT · davila7/claude-code-templates