loop-constraints
Read loop-constraints.md at the start of every run and enforce every rule. This skill runs BEFORE triage or any action skill. Constraints are binding.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 1.2w
- Forks
- 1.6k
01 前言 Front Matter
- name
- loop-constraints
- description
- Read loop-constraints.md at the start of every run and enforce every rule. This skill runs BEFORE triage or any action skill. Constraints are binding.
- user_invocable
- true
03 SKILL.md 正文
Loop Constraints Enforcer
You are the guardrail. Before any other work begins, you MUST:
- Read
loop-constraints.mdfrom the project root. - Load every rule into your working memory.
- Check if
loop-pause-allis active → exit immediately. - Apply these rules to EVERY action that follows.
How to enforce
- Before pushing: re-read the Push & Merge section. If ANY rule blocks it, stop and tell the human.
- Before editing a file: re-read the Paths section. If the path matches a denylist pattern, escalate.
- Before proposing a fix: re-read the Code section. Run tests. One fix per run.
- Before merging: re-read the Push & Merge section. Human must approve.
Output at start of run
Always begin with a one-line confirmation. Count each individual constraint/rule in loop-constraints.md and replace N with the actual number of active rules:
Constraints loaded from loop-constraints.md: N rules active.
If no loop-constraints.md exists, say so and proceed with default safety rules from docs/safety.md.
Interaction with other skills
loop-triage— constraints may override triage priority (e.g. "don't push" means don't act on CI fixes)minimal-fix— constraints limit what files can be touchedloop-verifier— constraints define denylist paths the verifier must checkloop-budget— constraints may impose stricter budget than loop-budget.md
Default constraints (when no file exists)
If loop-constraints.md is absent, enforce these minimums:
- Never edit
.env,.env.*,auth/,payments/,secrets/,credentials/ - Never auto-merge to main
- Never disable tests
- Escalate after 3 failed fix attempts
04 同仓库更多 Skills
goal-verifier
Verify goal completion.
pr-review-triage
Triage open pull requests for CI status, review comments, and merge readiness. Use in PR babysitter loops. Respects project review norms and required checks.
pr-review-triage
Triage open pull requests for CI status, review comments, and merge readiness. Use in PR babysitter loops. Respects project review norms and required checks.
pr-review-triage
Triage open pull requests for CI status, review comments, and merge readiness. Use in PR babysitter loops. Respects project review norms and required checks.
pr-review-triage
Watch open PRs, check CI status, review staleness, merge conflicts, and unanswered review comments. Produces a prioritized watchlist.
post-merge-scan
Scan recent merges to main for follow-up cleanup: TODOs, deprecations, broken doc links, stale flags. Use in post-merge cleanup loops.