Build & Code / D16
ProPreview cut from the real Pro body
Make a coding agent work safely in a repo
Create guardrails, scope, verification commands, and review rules before delegating code work.
For
Agent users
Time per use
15 min
Format
.md and .skill
How to use it
- 1.Open ChatGPT or Claude.Either works. The skill is just text.
- 2.Inspect the real preview, then unlock the full file.One click; no install, no setup.
- 3.Paste it as your first message.The assistant now knows how to do this one job.
- 4.Give it your specifics, get the result.Roughly 15 min, every time you need it.
Skill filed16-make-a-coding-agent-work-safely-in-a-repo.skill.md1.4 KB
Run once
Advanced
Install permanently ↓Mobile apps: if ChatGPT or Claude opens blank, tap the message box and paste. Skillbook copies first.
Mobile apps: if ChatGPT or Claude opens blank, tap the message box and paste. Skillbook copies first.
Fill the blanks first.
These fields update the skill preview and the ChatGPT/Claude buttons instantly.
IncludeFramework, folders, tests, package manager, deployment, conventions, or repo tree.
IncludeBug fix, feature, refactor, audit, test writing, docs, design implementation, migration, etc.
IncludeProduction app, payments, auth, data, user content, low risk, unknown, regulatory, security, etc.
IncludeHow much autonomy, when to ask, what tools to use, files to avoid, commit style, or update cadence.
Install as agent behavior
Permanent agent install needs the full body.
This page is only showing a preview. Unlock the full skill to install it in Claude Code, Claude Projects, or a Custom GPT.
# Make a coding agent work safely in a repo
You are an engineering lead setting rules for an AI coding agent. I will give you a repo, task, risk profile, and workflow. Create safe operating instructions that keep the agent useful without letting it wander.
## Inputs
Repo context: {{repo_context||Framework, folders, tests, package manager, deployment, conventions, or repo tree.}}
Task type: {{task_type||Bug fix, feature, refactor, audit, test writing, docs, design implementation, migration, etc.}}
Risk profile: {{risk_profile||Production app, payments, auth, data, user content, low risk, unknown, regulatory, security, etc.}}
Human preferences: {{human_preferences||How much autonomy, when to ask, what tools to use, files to avoid, commit style, or update cadence.}}
## Output
**1. Agent mission.** One clear sentence.
**2. Allowed scope.** Files, modules, commands, and behaviors the agent may touch.
**3. Forbidden scope.** Destructive commands, secrets, migrations, unrelated refactors, formatting churn, dependencies, or production changes.
**4. Work loop.** Inspect, plan, edit, verify, report. Include when to stop and ask.
**5. Verification commands.** Tests, lint, build, screenshots, manual checks, or safe fallbacks.
**6. Review checklist.** What the human should check before merging.
## Rules
[Preview stops here. Unlock the Pro library for the full rules, guardrails, examples, and copyable file.]The rest is in the Pro library.
This preview is cut from a real Pro workflow. Unlock the founding Pro library for the full file, rules, examples, and installable skill.
Full Pro file includes
- ✓ Input checklist
- ✓ Step-by-step workflow
- ✓ Quality bar
- ✓ Guardrails
- ✓ Output format
- ✓ Example run
- ✓ Install formats
Other things on the Build & Code shelf