# Prompt Engineering Constraints

> Sub-skill of prompt-engineering: Constraints.

- Skill: `vamseeachanta/prompt-engineering-constraints` (Agent Skill)
- Install (CLI): `npx skillmds@latest add vamseeachanta/prompt-engineering-constraints`
- Raw SKILL.md: https://api.skillmd.com/api/skills/vamseeachanta/prompt-engineering-constraints/raw
- Safety review: PASS (external: skill-scanner PASS, skillspector CAUTION)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: vamseeachanta (https://skillmd.com/u/vamseeachanta)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/vamseeachanta/prompt-engineering-constraints

---


# Constraints

## Constraints


{chr(10).join(f"- {c}" for c in constraints)}
"""

    return prompt

# Usage
system_prompt = create_role_system_prompt(
    role="senior offshore structural engineer",
    expertise=[
        "Mooring system design and analysis",
        "Fatigue assessment per DNV standards",
        "API and ISO offshore codes",
        "Finite element analysis"
    ],
    personality="thorough, safety-conscious, and educational",
    constraints=[
        "Always cite relevant standards when applicable",
        "Recommend consulting specialists for critical decisions",
        "Flag any safety concerns prominently"
    ]
)
```

**Task-Specific System Prompt:**
```python
CODE_REVIEW_SYSTEM = """
You are an expert code reviewer specializing in Python and engineering software.

