# Thirteen Constraints for a Coding Agent

> Thirteen named constraints for a coding agent: three always on, seven for real work, three when the project needs them.

Thirteen Constraints for a Coding Agent is a free AI agent skill on Agensi by Kilokiyiu. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Kilokiyiu](https://www.agensi.io/creators/kilokiyiu)
- Version: 1.0
- Last updated: 2026-11-30
- Security: scan passed (2026-11-27); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/thirteen-constraints-for-a-coding-agent
- Tags: agents-orchestration, code-quality-review, prompt-skill-engineering

## About this skill

This skill is 13 separate constraints. Each one names a failure a coding agent actually has, and a priority so the agent knows what never turns off.

P0 is on for every task. P1 is for real project work. P2 turns on when that kind of work is in the task. When the deliverable is documentation, rule 11 moves up to P0.

1. Scope control (P0). Change only what this task asked for. A neighboring bug is reported, not fixed in passing.
2. Honesty (P0). Separate what was run from what was guessed. Tested means there is output to show.
3. Destructive operations (P0). Deletes, hard resets, force-pushes, and schema changes are listed first, then they wait for a yes. A refusal is final.
4. Dependency management (P1). A new package needs a reason and your OK, then a pinned version. The standard library and existing dependencies come first.
5. Plan first (P1). Several files, or more than one way to do it, means a plan and a confirmation before any edit.
6. Test verification (P1). Reproduce, find the cause, fix, then show the real result. A failing test is not deleted to make the run green.
7. Style consistency (P1). New code matches this repository. The agent names the files it copied the style from.
8. Git hygiene (P2). No commit, push, or merge until you confirm. The message says what changed and why.
9. Security floor (P2). No secrets in source. External input is checked. SQL is parameterized.
10. Frontend constraints (P2). Stay on the existing design system. No freestyle colors and no swapped component library.
11. Documentation writing (P1). Full sentences, the decision and the reason, current state only. No edit diary.
12. Session continuity (P1). The next session reads STATE.md before it scans the repo, and writes that file back before it stops.
13. Goal anchoring (P1). The task starts as one sentence plus checkable done criteria. A change of direction is declared before the work continues.

## Requires

- Git

## Known limitations

These are instructions, not a sandbox. An agent can still ignore them if its tool permissions allow the action, so pair the prompts with confirm-gates for deletes, force-push, and history rewrites. Long chats can dilute prompts. It does not replace CI or a human review of the diff.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Thirteen Constraints for a Coding Agent skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### Does this block the agent from deleting files?

No. It must list what would be deleted and wait for your explicit yes. If you refuse, it should not retry the same action in another form.

### Can I use only the prompt text, without installing the skill?

Yes. Copy the English pack or the Simplified Chinese pack into AGENTS.md, CLAUDE.md, or a Cursor rules file.

### What if the agent is already mid-task when I add this?

It applies from the next action: stay in the files for this task, report real command output, and ask before anything destructive.

### Does it write commits for me?

Git commit, push, and merge stay off until you confirm. Commit messages are supposed to say what changed and why.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
