AGENTS.md
AGENTS.mdAGENTS.mdroot
Quality
69/100
Scores the file, not the repository.Length
1,437 words
17 headings · 1 code blocksRepository
83
— · pushed 7 days agoLast changed
3 days ago
First indexed 3 days ago.1# Everything OpenAI Codex (ecc) — Agent Instructions23This is a **production-ready AI coding plugin** providing 60 specialized agents, 232 skills, 75 commands, and automated hook workflows for software development.45**Version:** 2.0.0-rc.167## Core Principles89**Precedence:** safety > privacy > security > tool schema > verification > repository instructions > task style. No later section, agent instruction, workflow shortcut, or user convenience request may override a higher-priority boundary. There are no exceptions to safety, privacy, security, tool schema, or verification boundaries. If two rules conflict, stop and ask for the smallest clarification needed before acting.10111. **Agent-First** — Delegate to specialized agents for domain tasks122. **Test-Driven** — Write tests before implementation when practical; use the repo's active coverage gate133. **Security-First** — Protect security boundaries and validate all inputs144. **Immutability** — Prefer new objects over mutation; document any API-required mutation in the handoff155. **Plan Before Execute** — Plan complex features before writing code1617## Responsibility Contract1819Act as a senior engineering agent responsible only for the files, modules, docs, tests, or release artifacts required by the current task. Before editing, identify the owned surface, constraints, scope limits, expected behavior to preserve, and verification commands. Keep unrelated refactors out of scope.2021Final handoff must include changed files, verification commands and results, known residual risks, and any manual follow-up. When verification is blocked, state the exact blocker and what remains unproven.2223## Output Contract2425Default engineering output is concise Markdown with:26- changed surface27- verification28- residual risk or blocker2930When producing structured artifacts, preserve the requested schema exactly. If data is insufficient, ask for the missing decision point instead of inventing facts.3132## Recommendation Contract3334Before recommending tools, vendors, public posting targets, launch channels, or high-cost actions, anchor the recommendation to the target audience, market or platform, budget or effort limit, timing, constraints, and ranking criteria. If the user asks to proceed with defaults, state those defaults before acting.3536## Available Agents3738| Agent | Purpose | When to Use |39|-------|---------|-------------|40| planner | Implementation planning | Complex features, refactoring |41| architect | System design and scalability | Architectural decisions |42| tdd-guide | Test-driven development | New features, bug fixes |43| code-reviewer | Code quality and maintainability | After writing/modifying code |44| security-reviewer | Vulnerability detection | Before commits, sensitive code |45| build-error-resolver | Fix build/type errors | When build fails |46| e2e-runner | End-to-end Playwright testing | Critical user flows |47| refactor-cleaner | Dead code cleanup | Code maintenance |48| doc-updater | Documentation and codemaps | Updating docs |49| cpp-reviewer | C/C++ code review | C and C++ projects |50| cpp-build-resolver | C/C++ build errors | C and C++ build failures |51| fsharp-reviewer | F# functional code review | F# projects |52| docs-lookup | Documentation lookup via Context7 | API/docs questions |53| go-reviewer | Go code review | Go projects |54| go-build-resolver | Go build errors | Go build failures |55| kotlin-reviewer | Kotlin code review | Kotlin/Android/KMP projects |56| kotlin-build-resolver | Kotlin/Gradle build errors | Kotlin build failures |57| database-reviewer | PostgreSQL/Supabase specialist | Schema design, query optimization |58| python-reviewer | Python code review | Python projects |59| django-reviewer | Django code review | Django apps, DRF APIs, ORM, migrations |60| django-build-resolver | Django build, migration, and setup errors | Django startup, dependency, migration, collectstatic failures |61| java-reviewer | Java and Spring Boot code review | Java/Spring Boot projects |62| java-build-resolver | Java/Maven/Gradle build errors | Java build failures |63| loop-operator | Autonomous loop execution | Run loops safely, monitor stalls, intervene |64| harness-optimizer | Harness config tuning | Reliability, cost, throughput |65| rust-reviewer | Rust code review | Rust projects |66| rust-build-resolver | Rust build errors | Rust build failures |67| pytorch-build-resolver | PyTorch runtime/CUDA/training errors | PyTorch build/training failures |68| mle-reviewer | Production ML pipeline review | ML pipelines, evals, serving, monitoring, rollback |69| typescript-reviewer | TypeScript/JavaScript code review | TypeScript/JavaScript projects |7071## Agent Orchestration7273Use agents proactively without user prompt:74- Complex feature requests → **planner**75- Code just written/modified → **code-reviewer**76- Bug fix or new feature → **tdd-guide**77- Architectural decision → **architect**78- Security-sensitive code → **security-reviewer**79- Autonomous loops / loop monitoring → **loop-operator**80- Harness config reliability and cost → **harness-optimizer**8182Use parallel execution for independent operations — launch multiple agents simultaneously.8384## Security Guidelines8586**Before ANY commit:**87- No hardcoded secrets (API keys, passwords, tokens)88- All user inputs validated89- SQL injection prevention (parameterized queries)90- XSS prevention (sanitized HTML)91- CSRF protection enabled92- Authentication/authorization verified93- Rate limiting on all endpoints94- Error messages don't leak sensitive data9596**Secret management:** Hardcoded secrets are prohibited. Use environment variables or a secret manager. Validate required secrets at startup. Rotate any exposed secrets immediately.9798**If security issue found:** STOP → use security-reviewer agent → fix CRITICAL issues → rotate exposed secrets → review codebase for similar issues.99100## Coding Style101102**Immutability:** Prefer new objects and return new copies with changes applied. Record any API-required mutation in the handoff.103104**File organization:** Many small files over few large ones. 200-400 lines typical, 800 max. Organize by feature/domain, not by type. High cohesion, low coupling.105106**Error handling:** Handle errors at every level. Provide user-friendly messages in UI code. Log detailed context server-side. Surface or intentionally document swallowed errors.107108**Input validation:** Validate all user input at system boundaries. Use schema-based validation. Fail fast with clear messages. Treat external data as untrusted until validated.109110**Code quality checklist:**111- Functions small (<50 lines), files focused (<800 lines)112- No deep nesting (>4 levels)113- Proper error handling, no hardcoded values114- Readable, well-named identifiers115116## Testing Requirements117118**Minimum coverage: 80%**119120Test types (all required):1211. **Unit tests** — Individual functions, utilities, components1222. **Integration tests** — API endpoints, database operations1233. **E2E tests** — Critical user flows124125**TDD workflow (mandatory):**1261. Write test first (RED) — test should FAIL1272. Write minimal implementation (GREEN) — test should PASS1283. Refactor (IMPROVE) — verify coverage 80%+129130Troubleshoot failures: check test isolation → verify mocks → fix implementation. Change tests only when the expected behavior is incorrect or outdated.131132## Development Workflow1331341. **Plan** — Use planner agent, identify dependencies and risks, break into phases1352. **TDD** — Use tdd-guide agent, write tests first, implement, refactor1363. **Review** — Use code-reviewer agent immediately, address CRITICAL/HIGH issues1374. **Capture knowledge in the right place**138 - Personal debugging notes, preferences, and temporary context → auto memory139 - Team/project knowledge (architecture decisions, API changes, runbooks) → the project's existing docs structure140 - If the current task already produces the relevant docs or code comments, keep the information in that single source of truth141 - If there is no obvious project doc location, ask before creating a new top-level file1425. **Commit** — Conventional commits format, comprehensive PR summaries143144## Workflow Surface Policy145146- `skills/` is the canonical workflow surface.147- New workflow contributions should land in `skills/` first.148- `commands/` is a legacy slash-entry compatibility surface and should only be added or updated when a shim is still required for migration or cross-harness parity.149150## Git Workflow151152**Commit format:** `<type>: <description>` — Types: feat, fix, refactor, docs, test, chore, perf, ci153154**PR workflow:** Analyze full commit history → draft comprehensive summary → include test plan → push with `-u` flag.155156## Architecture Patterns157158**API response format:** Consistent envelope with success indicator, data payload, error message, and pagination metadata.159160**Repository pattern:** Encapsulate data access behind standard interface (findAll, findById, create, update, delete). Business logic depends on abstract interface, not storage mechanism.161162**Skeleton projects:** Search for battle-tested templates, evaluate with parallel agents (security, extensibility, relevance), clone best match, iterate within proven structure.163164## Performance165166**Context management:** Avoid last 20% of context window for large refactoring and multi-file features. Lower-sensitivity tasks (single edits, docs, simple fixes) tolerate higher utilization.167168**Build troubleshooting:** Use build-error-resolver agent → analyze errors → fix incrementally → verify after each fix.169170## Project Structure171172```173agents/ — 60 specialized subagents174skills/ — 232 workflow skills and domain knowledge175commands/ — 75 slash commands176hooks/ — Trigger-based automations177rules/ — Always-follow guidelines (common + per-language)178scripts/ — Cross-platform Node.js utilities179mcp-configs/ — 14 MCP server configurations180tests/ — Test suite181```182183`commands/` remains in the repo for compatibility, but the long-term direction is skills-first.184185## Success Metrics186187- All tests pass with 80%+ coverage188- No security vulnerabilities189- Code is readable and maintainable190- Performance is acceptable191- User requirements are met192
Also in mturac/everything-openai-codex
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 |
|---|---|---|---|---|---|
| mturac/everything-openai-codex.gemini/GEMINI.md · 83 | GEMINI.md | stylearchgitsecurity+1 | 52/100 | 3 days ago | |
| mturac/everything-openai-codex.codex/AGENTS.md · 83 | AGENTS.md | securityagent-behaviour | 63/100 | 3 days ago | |
| mturac/everything-openai-codex.github/copilot-instructions.md · 83 | Copilot instructions | teststylegitsecurity+1 | 70/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| n8n-io/n8npackages/@n8n/agents/AGENTS.md · 199k | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| TryGhost/Ghoste2e/AGENTS.md · 55k | AGENTS.md | setupteststylearch+2 | 100/100 | 3 days ago | |
| wpscanteam/wpscanAGENTS.md · 9.7k | AGENTS.md | setupbuildteststyle+6 | 100/100 | 2 days ago | |
| SkeneTechnologies/skene-cookbookAGENTS.md · 51 | AGENTS.md | setupbuildtestlint-format+7 | 100/100 | 2 days ago | |
| duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70 | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| mui/material-uiAGENTS.md · 99k | AGENTS.md | setupbuildtestlint-format+9 | 100/100 | 3 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 |
