This example shows how to define simple guardrails for a CLI-first workflow using Opencode.
It pairs with:
loop-init --tool opencodeAfter initialization, you can customize the generated skill with project-specific constraints.
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.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.
- See
docs/safety.mdfor general safety guidance. - Compare this with the Cursor constraints example for an editor-focused workflow.