AGENTS.md
AGENTS.mdAGENTS.mdroot
Quality
96/100
Scores the file, not the repository.Length
1,453 words
20 headings · 6 code blocksRepository
0
— · pushed 11 days agoLast changed
2 days ago
First indexed 2 days ago.1# AGENTS.md23## Purpose45Universal operating rules for coding agents working on Conditions Translator.67This is the cross-agent source of truth for Codex, Cline-hosted models such as Z.AI, Copilot-compatible agents, and other repository-aware coding assistants.89Tool-specific instruction files may add workflow details but must not contradict this file.1011---1213## Non-Negotiable Rules1415Every agent must:1617- Read the project documentation before implementation.18- Ask for clarification whenever the task, requirements, or next step is unclear.19- Preserve the approved architecture unless an explicit architecture-change process is followed.20- Never change the PRD.21- Never bypass the `READY` Document requirement.22- Never bypass ownership or authorization checks.23- Never expose server secrets.24- Never push or merge Git branches.25- Create branches when the environment permits.26- Make small, logical local commits when the environment permits.27- Use PowerShell commands only.28- Update `.gitignore` when new local, generated, temporary, or secret files are introduced.29- Check current official documentation before installing or configuring dependencies whose setup may have changed.30- Report limitations when the environment cannot perform Git, testing, file, or package operations.3132---3334## Instruction Precedence3536This is the single canonical documentation authority hierarchy for the project. Other project documents must refer to this hierarchy rather than restating it.3738Follow instructions in this order:39401. Frozen PRD412. Architecture Overview423. Relevant subsystem specification434. `AGENTS.md`445. Tool-specific instructions such as `CLAUDE.md` or `.clinerules/`456. Current task instructions4647A current task may refine implementation details, but it may not silently override architecture, ownership, privacy, AI grounding, lifecycle states, retention, or security.4849When sources conflict, the higher-authority source wins. Do not guess which source controls. Stop and ask for clarification.5051---5253## Required Reading Order5455Before coding:56571. `README.md`582. `docs/01_MVP_PRD.md`593. `docs/02_Architecture_Overview.md`604. Relevant subsystem specification615. `docs/08_Conditions_Translator_Implementation_Roadmap.md`626. Relevant sections of the Launch Readiness Checklist, Coding Risk Register, and Testing Guide6364Do not begin implementation until the applicable specification has been reviewed.6566---6768## Git Workflow6970Create a dedicated branch for each phase, feature, test effort, bug fix, refactor, rework, documentation change, or chore.7172Use these prefixes:7374```text75feat/76fix/77refactor/78test/79docs/80chore/81rework/82build/83ci/84```8586Examples:8788```text89feat/document-intake90test/prisma-ownership91fix/chat-session-expiry92refactor/ocr-service93docs/update-schema-spec94chore/configure-eslint95rework/account-transfer96```9798Agents may create local branches, make local commits, and inspect Git status/history.99100Agents must not push, merge, force-push, delete remote branches, or merge pull requests.101102The user handles pushing and GitHub merges.103104If the environment cannot create branches or commits, report that clearly and provide the exact PowerShell commands the user should run.105106---107108## Commit Rules109110Use small, coherent commits. Do not commit an entire phase or large feature as one oversized commit.111112Use conventional prefixes:113114```text115feat:116fix:117refactor:118test:119docs:120chore:121build:122ci:123perf:124style:125revert:126```127128Commit messages must be descriptive, concise, understandable to another developer or employer, and focused on one coherent change.129130A phase may contain many commits.131132---133134## PowerShell-Only Commands135136All commands must be written for PowerShell.137138Do not provide Bash syntax unless explicitly requested.139140Examples:141142```powershell143npm install144npm run dev145npm run build146npm run test147npx prisma generate148npx prisma migrate dev149Copy-Item .env.example .env.local150New-Item -ItemType Directory -Path .agent-memory -Force151```152153---154155## Dependency and Official Documentation Checks156157Before installing or configuring important dependencies:1581591. Read the relevant project specification.1602. Check current official documentation.1613. Confirm the integration pattern is current.1624. Explain any setup choice that differs from older examples.1635. Avoid relying on outdated syntax.1646. Record important setup decisions in session memory or the Decision Log.165166This is especially important for Prisma, Next.js, authentication libraries, OpenAI SDK, Vercel Blob, Neon, testing frameworks, and build tooling.167168---169170## Architecture Invariants171172Every agent must preserve:173174- A Document is the central domain object.175- Pages belong to exactly one Document.176- A Document has exactly one owner: user or temporary session.177- Only `READY` Documents are available to AI.178- Accepted page text is the factual source of truth.179- AI chat is temporary.180- Full chat history is not permanent.181- AI answers are grounded in selected `READY` Documents.182- General AI knowledge must not fill supervision gaps.183- Architecture changes require a separate Decision Log entry, affected documentation updates, and explicit approval before implementation.184185---186187## Package Scripts188189Keep `package.json` scripts clear and easy to inspect.190191Add scripts incrementally as functionality is implemented.192193Suggested structure:194195```json196{197 "scripts": {198 "dev": "next dev",199 "build": "next build",200 "lint": "eslint .",201 "typecheck": "tsc --noEmit",202 "test": "vitest run",203 "test:watch": "vitest",204 "test:schema": "vitest run tests/schema",205 "test:auth": "vitest run tests/auth",206 "db:generate": "prisma generate",207 "db:migrate": "prisma migrate dev",208 "db:validate": "prisma validate"209 }210}211```212213Do not add duplicate or confusing scripts without a clear reason.214215---216217## Testing Expectations218219Required for:220221- schema and ORM changes222- authentication223- authorization and ownership224- document lifecycle225- deletion and cleanup226- security-sensitive code227- environment configuration228- temporary session behavior229230Strongly advised for:231232- OCR233- AI prompts234- AI safety behavior235- section generation236- upload workflow237- dashboard238- multi-document chat239240Optional for:241242- documentation-only updates243- styling-only changes244- copy changes245- non-functional refactors246247Always report tests run, tests passed, tests failed, tests not run, and known gaps.248249---250251## UI Rules252253- Mobile-first.254- Must also work in desktop browsers.255- Prioritize functional flows before polish.256- Prefer one primary decision per screen where practical.257- Use clear loading, empty, success, and error states.258- Do not invent final styling or interaction patterns before wireframes exist.259- Add basic wireframes when a flow needs validation.260- Preserve readability, accessibility, and simple navigation.261- Avoid overbuilding the visual system before core logic is stable.262263---264265## Clarification Rule266267If an agent is unsure:268269- stop270- explain what is unclear271- ask a focused clarification question272- do not guess at architecture273- do not invent requirements274- do not proceed silently275276---277278## Shared Agent Memory279280Use:281282```text283.agent-memory/284 CURRENT_SESSION.md285 DECISIONS.md286 OPEN_QUESTIONS.md287 WORK_LOG.md288```289290Required behavior:291292- Read these files before resuming work.293- Update `CURRENT_SESSION.md` during long sessions.294- Record durable implementation decisions in `DECISIONS.md`.295- Record unresolved issues in `OPEN_QUESTIONS.md`.296- Add concise chronological notes to `WORK_LOG.md`.297- Never store secrets, tokens, passwords, private document text, or sensitive user data.298- Keep entries concise.299300Recommended Git policy:301302Local only:303- `CURRENT_SESSION.md`304- `WORK_LOG.md`305306Potentially committed:307- `DECISIONS.md`308- `OPEN_QUESTIONS.md`309310Claude-specific memory remains separate under `.claude/session-memory/`.311312---313314## Tool-Specific Files315316Claude Code must also read `CLAUDE.md`.317318Cline-hosted models, including Z.AI through Cline, must also follow `.clinerules/`.319320A Copilot-specific bridge may exist at `.github/copilot-instructions.md` and must not contradict this file.321322---323324## Model Routing Guide325326Use this table to decide which model to assign a task to. The current agent should327flag a handoff recommendation in `OPEN_QUESTIONS.md` when the active task crosses328into another model's strength zone.329330| Task Type | Best Model | Why |331|---|---|---|332| Schema design, ownership logic, auth flow | Claude Opus 4.8 | Complex multi-file reasoning, fewer architectural mistakes |333| API routes, Prisma queries, migrations, tests | Claude Sonnet 4.6 | Fast, reliable daily implementation driver |334| React components, Tailwind UI, loading/empty states | GLM-4.7 (via Cline/Cerebras) | ~17x faster, strong UI output, lower cost |335| Multi-file refactors, repo-wide sweep, PR review | OpenAI Codex | Parallel task execution across the whole codebase |336| AI safety system prompt, grounding rules (Phase 6) | Claude Opus 4.8 | Critical correctness required |337| Phase 1–2 foundation and config | Claude Sonnet 4.6 | Routine but must be exact |338| Phase 3 document intake UI | GLM-4.7 | Fast React/Tailwind iteration |339| Phase 7 ownership transfer (atomic) | Claude Opus 4.8 | High-risk, complex transactional logic |340341### Handoff Signal342343If you are mid-task and recognize the next logical step belongs to a different model,344do not attempt it. Instead:3453461. Complete your current atomic unit of work and commit it.3472. Add a note to `OPEN_QUESTIONS.md`: `[MODEL SWITCH NEEDED] — suggest switching to <model> for <reason>`3483. Report it in your Change Summary under "What should happen next?"349350---351352## Change Summary353354For meaningful changes, report:3553561. What changed?3572. Why was it changed?3583. Which specification guided the work?3594. What assumptions were made?3605. What tests were run?3616. What remains untested?3627. What should happen next?3638. Which commits were created?364365---366367## Stop Conditions368369Stop and ask before:370371- changing architecture372- changing the PRD373- changing ownership behavior374- changing lifecycle states375- changing AI grounding rules376- replacing a major framework or provider377- introducing permanent chat storage378- weakening authorization379- changing data-retention behavior380- installing a major dependency without checking current official documentation381
Also in summer-marie/conditions-translator
Diff this repo’s formatsOne 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 |
|---|---|---|---|---|---|
| summer-marie/conditions-translator.clinerules/01-project-rules.md · 0 | Cline rules | do-notagent-behaviour | 46/100 | 2 days ago | |
| summer-marie/conditions-translatorCLAUDE.md · 0 | CLAUDE.md | setupbuildtestlint-format+7 | 96/100 | 2 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| aaif-goose/gooseAGENTS.md · 52k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| TryGhost/Ghoste2e/AGENTS.md · 55k | AGENTS.md | setupteststylearch+2 | 100/100 | 3 days ago | |
| duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70 | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| n8n-io/n8npackages/@n8n/agents/AGENTS.md · 199k | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| mui/material-uiAGENTS.md · 99k | AGENTS.md | setupbuildtestlint-format+9 | 100/100 | 3 days ago | |
| SkeneTechnologies/skene-cookbookAGENTS.md · 51 | AGENTS.md | setupbuildtestlint-format+7 | 100/100 | 2 days ago | |
| trick77/agents-md-syncAGENTS.md · 2 | AGENTS.md | setupbuildteststyle+5 | 100/100 | 3 days ago | |
| code-yeongyu/oh-my-openagentpackages/web/AGENTS.md · 67k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 2 days ago |
