Practical patterns, starters & CLI tools for loop engineering with AI coding agents. Design systems that prompt and orchestrate agents (inspired by Addy Osmani and Boris Cherny). Includes loop-audit, loop-init, loop-cost.
TypeScript agentic-aiai-agentsai-codinganthropicautomationclaudeclaude-codecodexcoding-agentsdevops-automationdevtoolsgithub-actionsgrokllmloop-engineeringmcpprompt-engineering
Opencode Constraints Example
This example shows how to define simple guardrails for a CLI-first workflow using Opencode.
It pairs with:
loop-init --tool opencode
After initialization, you can customize the generated skill with project-specific constraints.
Example
skills/
└── loop-triage/
└── SKILL.md
# Loop Triage
## Constraints
- Read-only during the first week of onboarding.
- Never force-push to any branch.
- Only modify files directly related to the assigned issue.
- Request confirmation before deleting or renaming files.
- Do not expose secrets, tokens, or internal URLs.
Why use constraints?
Constraints help make automated workflows predictable and reduce the chance of accidental or unsafe actions.
They are especially useful for new contributors or shared repositories.
Related documentation
- See
docs/safety.mdfor general safety guidance. - Compare this with the Cursor constraints example for an editor-focused workflow.