

Also from Kynth Studios


Also from Kynth Studios


Also from Kynth Studios
1# GitHub Copilot Instructions23These instructions apply to all Copilot completions, suggestions, and chat interactions in this repository.45## The Four Laws of Agent Safety671. **Read Before Editing** - Never suggest modifications without reading the file first82. **Stay in Scope** - Only work on files within the authorized task scope93. **Verify Before Committing** - Ensure suggested code compiles, passes lint, and is tested104. **Halt When Uncertain** - Ask for clarification instead of guessing1112## Code Generation Rules1314### Scope (MANDATORY)1516- Only modify files explicitly requested by the user17- Do not refactor unrelated code "while I'm here"18- Do not add new files unless asked19- Do not delete files unless asked20- When scope is unclear: ask for confirmation2122### Production-First2324- Production code must be written before test code25- Tests written against existing production code, not stubs26- Infrastructure code comes after both production and tests2728### Error Handling2930- Validate inputs and handle errors explicitly31- Return meaningful error messages32- Never silently swallow exceptions33- Prefer explicit error returns over panics/exceptions3435### Security3637- Never suggest committing secrets, keys, or credentials38- Never suggest .env files in version control39- Validate all external inputs40- Use parameterized queries, never string concatenation for SQL4142## Forbidden Patterns4344NEVER suggest code that:45- Modifies files that haven't been read46- Mixes test and production environments47- Commits secrets or credentials48- Runs untested code in production49- Makes assumptions about user intent5051## Three Strikes Rule5253When a suggestion is rejected or produces errors:54- 1st failure: Adjust approach and retry55- 2nd failure: Try completely different approach56- 3rd failure: HALT and ask user for guidance5758## File Headers5960Include at the top of new files:6162```go63// File: <filename>64// Purpose: <one-line description>65// Created: <date>66// Author: AI-assisted (see git history)67```6869Or equivalent in the target language.7071## Architecture Patterns (Go/MCP Server)7273When working on `mcp-server/`:7475### Layer Order (Inside-Out)76771. **Domain** (`internal/domain/`) — Interfaces, value objects, ZERO external deps782. **Application** — Command/query handlers793. **Adapters** (`internal/adapters/`) — Infrastructure implementations804. **Interface** (`internal/mcp/`) — MCP handlers8182### Dependency Rule8384Outer layers depend inward. Domain is pure — no database, no HTTP imports.8586### CQRS Pattern8788| Commands (Write) | Queries (Read) |89|-----------------|----------------|90| Create | Evaluate |91| Update | List |92| Delete | Get |93| Toggle | GetViolations |9495Commands: validate → persist → publish event (cache invalidation)96Queries: cache-first, no state modification9798### Vertical Slices99100Group all code for one feature together:101102```103internal/guardrails/104├── bash/ ← model + evaluator + handler105├── git/106└── fileedit/107```108109### SOLID110111- **S**: One responsibility per type112- **O**: Add new evaluator via interface, don't modify existing code113- **L**: Implement interfaces fully114- **I**: Small focused interfaces115- **D**: Depend on interface, not concrete type116117### Forbidden (Architecture)118119- Importing database packages in domain types120- Putting concrete implementations in domain layer121- Cross-layer circular dependencies122- Adding infrastructure logic in handlers123124## References125126- `skills/shared-prompts/four-laws.md` - The Four Laws (canonical)127- `skills/shared-prompts/clean-architecture.md` - Clean Architecture patterns128- `skills/shared-prompts/cqrs.md` - CQRS details129- `docs/AGENT_GUARDRAILS.md` - Core safety protocols130- `docs/standards/TEST_PRODUCTION_SEPARATION.md` - Environment isolation131- `docs/workflows/COMMIT_WORKFLOW.md` - Commit standards132
One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| TheArchitectit/agent-guardrails-template.windsurfrules · 76 | Windsurf rules | styledo-notagent-behaviour | 73/100 | today | |
| TheArchitectit/agent-guardrails-templateCLAUDE.md · 76 | CLAUDE.md | setupstyledo-notagent-behaviour+1 | 63/100 | today |
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| chihebnabil/lovable-boilerplate.github/instructions/global.instructions.md · 65 | Copilot instructions | buildlint-formatstylearch+4 | 100/100 | 14 days ago | |
| HerringtonDarkholme/megarepo.github/copilot-instructions.md · 17 | Copilot instructions | setupbuildtestlint-format+7 | 100/100 | 14 days ago | |
| louislam/uptime-kuma.github/copilot-instructions.md · 90k | Copilot instructions | setupbuildtestlint-format+9 | 100/100 | 14 days ago | |
| bagisto/bagisto.github/copilot-instructions.md · 28k | Copilot instructions | setupbuildteststyle+5 | 97/100 | 14 days ago | |
| JCodesMore/ai-website-cloner-template.github/copilot-instructions.md · 32k | Copilot instructions | buildlint-formatstylearch+3 | 97/100 | 7 days ago | |
| nerolis-lab/nerolis-lab.github/copilot-instructions.md · 32 | Copilot instructions | setupbuildtestlint-format+11 | 96/100 | 14 days ago | |
| darkmatter/nixmac.github/copilot-instructions.md · 25 | Copilot instructions | setupbuildtestlint-format+8 | 96/100 | 14 days ago | |
| thangaram611/second-brain.github/copilot-instructions.md · 0 | Copilot instructions | setupteststylearch+4 | 96/100 | 14 days ago |
A badge carrying the measured quality of the strongest agent config file in this repository, out of 100. It reads from this index every time somebody loads your page, so it changes when the measurement changes and there is nothing to keep up to date. Free, no account, and the value is not something you or we can set by hand.
[](https://rulestack.kynth.studio/configs/thearchitectit-agent-guardrails-template-github-copilot-instructions)Would rather not hotlink us? Every badge is also served in shields.io’s endpoint schema, so shields renders the image and your readers never talk to our domain:
Published by Toolproof, the masthead over this index and eight others. The method behind the number is at toolproof.kynth.studio/methodology, and the whole thing is readable as JSON with no key at /api.