Loop constraints

From ngophatneknha/ai-engineering-hub · View interactive version

Loop constraints is an AI agent skill from the GitHub repository ngophatneknha/ai-engineering-hub. 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.

How to use this skill

Skill file

Loop Constraints Enforcer

You are the guardrail. Before any other work begins, you MUST:

  1. Read loop-constraints.md from the project root.
  2. Load every rule into your working memory.
  3. Check if loop-pause-all is active → exit immediately.
  4. Apply these rules to EVERY action that follows.

How to enforce

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

Default constraints (when no file exists)

If loop-constraints.md is absent, enforce these minimums:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.