dograd007

Conditions — Development skill for Claude Code

Development community

Project a contract's Preconditions table into docstring conditions a tool can execute.

How to install Conditions

Installs to ~/.claude/skills/dograd007-low-level-design-claude-agent-conditions/SKILL.md

Terminal
mkdir -p ~/.claude/skills/dograd007-low-level-design-claude-agent-conditions && curl -fsSL https://raw.githubusercontent.com/dograd007/low-level-design-claude-agent/HEAD/commands/conditions.md -o ~/.claude/skills/dograd007-low-level-design-claude-agent-conditions/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Conditions does


description: Project a contract's Preconditions table into docstring conditions a tool can execute argument-hint: ""

Write the executable half of `$1`'s contract into `$1` itself.

python "${CLAUDE_PLUGIN_ROOT}/scripts/conditions.py" $1            # print the projection
python "${CLAUDE_PLUGIN_ROOT}/scripts/conditions.py" $1 --write    # edit the module
python "${CLAUDE_PLUGIN_ROOT}/scripts/conditions.py" $1 --check    # fail if it has drifted

Why a module needs

Alternatives in Development

Full documentation available on GitHub

View Source Repository