AGENTS.md
.cursor/AGENTS.mdAGENTS.md
Quality
77/100
Scores the file, not the repository.Length
1,128 words
14 headings · 1 code blocksRepository
6
— · pushed 80 days agoLast changed
3 days ago
First indexed 3 days ago.1# Everything Claude Code (ECC) — Agent Instructions23This is a **production-ready AI coding plugin** providing 48 specialized agents, 183 skills, 79 commands, and automated hook workflows for software development.45**Version:** 1.10.067## Core Principles891. **Agent-First** — Delegate to specialized agents for domain tasks102. **Test-Driven** — Write tests before implementation, 80%+ coverage required113. **Security-First** — Never compromise on security; validate all inputs124. **Immutability** — Always create new objects, never mutate existing ones135. **Plan Before Execute** — Plan complex features before writing code1415## Available Agents1617| Agent | Purpose | When to Use |18|-------|---------|-------------|19| planner | Implementation planning | Complex features, refactoring |20| architect | System design and scalability | Architectural decisions |21| tdd-guide | Test-driven development | New features, bug fixes |22| code-reviewer | Code quality and maintainability | After writing/modifying code |23| security-reviewer | Vulnerability detection | Before commits, sensitive code |24| build-error-resolver | Fix build/type errors | When build fails |25| e2e-runner | End-to-end Playwright testing | Critical user flows |26| refactor-cleaner | Dead code cleanup | Code maintenance |27| doc-updater | Documentation and codemaps | Updating docs |28| cpp-reviewer | C/C++ code review | C and C++ projects |29| cpp-build-resolver | C/C++ build errors | C and C++ build failures |30| docs-lookup | Documentation lookup via Context7 | API/docs questions |31| go-reviewer | Go code review | Go projects |32| go-build-resolver | Go build errors | Go build failures |33| kotlin-reviewer | Kotlin code review | Kotlin/Android/KMP projects |34| kotlin-build-resolver | Kotlin/Gradle build errors | Kotlin build failures |35| database-reviewer | PostgreSQL/Supabase specialist | Schema design, query optimization |36| python-reviewer | Python code review | Python projects |37| java-reviewer | Java and Spring Boot code review | Java/Spring Boot projects |38| java-build-resolver | Java/Maven/Gradle build errors | Java build failures |39| loop-operator | Autonomous loop execution | Run loops safely, monitor stalls, intervene |40| harness-optimizer | Harness config tuning | Reliability, cost, throughput |41| rust-reviewer | Rust code review | Rust projects |42| rust-build-resolver | Rust build errors | Rust build failures |43| pytorch-build-resolver | PyTorch runtime/CUDA/training errors | PyTorch build/training failures |44| typescript-reviewer | TypeScript/JavaScript code review | TypeScript/JavaScript projects |4546## Agent Orchestration4748Use agents proactively without user prompt:49- Complex feature requests → **planner**50- Code just written/modified → **code-reviewer**51- Bug fix or new feature → **tdd-guide**52- Architectural decision → **architect**53- Security-sensitive code → **security-reviewer**54- Autonomous loops / loop monitoring → **loop-operator**55- Harness config reliability and cost → **harness-optimizer**5657Use parallel execution for independent operations — launch multiple agents simultaneously.5859## Security Guidelines6061**Before ANY commit:**62- No hardcoded secrets (API keys, passwords, tokens)63- All user inputs validated64- SQL injection prevention (parameterized queries)65- XSS prevention (sanitized HTML)66- CSRF protection enabled67- Authentication/authorization verified68- Rate limiting on all endpoints69- Error messages don't leak sensitive data7071**Secret management:** NEVER hardcode secrets. Use environment variables or a secret manager. Validate required secrets at startup. Rotate any exposed secrets immediately.7273**If security issue found:** STOP → use security-reviewer agent → fix CRITICAL issues → rotate exposed secrets → review codebase for similar issues.7475## Coding Style7677**Immutability (CRITICAL):** Always create new objects, never mutate. Return new copies with changes applied.7879**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.8081**Error handling:** Handle errors at every level. Provide user-friendly messages in UI code. Log detailed context server-side. Never silently swallow errors.8283**Input validation:** Validate all user input at system boundaries. Use schema-based validation. Fail fast with clear messages. Never trust external data.8485**Code quality checklist:**86- Functions small (<50 lines), files focused (<800 lines)87- No deep nesting (>4 levels)88- Proper error handling, no hardcoded values89- Readable, well-named identifiers9091## Testing Requirements9293**Minimum coverage: 80%**9495Test types (all required):961. **Unit tests** — Individual functions, utilities, components972. **Integration tests** — API endpoints, database operations983. **E2E tests** — Critical user flows99100**TDD workflow (mandatory):**1011. Write test first (RED) — test should FAIL1022. Write minimal implementation (GREEN) — test should PASS1033. Refactor (IMPROVE) — verify coverage 80%+104105Troubleshoot failures: check test isolation → verify mocks → fix implementation (not tests, unless tests are wrong).106107## Development Workflow1081091. **Plan** — Use planner agent, identify dependencies and risks, break into phases1102. **TDD** — Use tdd-guide agent, write tests first, implement, refactor1113. **Review** — Use code-reviewer agent immediately, address CRITICAL/HIGH issues1124. **Capture knowledge in the right place**113 - Personal debugging notes, preferences, and temporary context → auto memory114 - Team/project knowledge (architecture decisions, API changes, runbooks) → the project's existing docs structure115 - If the current task already produces the relevant docs or code comments, do not duplicate the same information elsewhere116 - If there is no obvious project doc location, ask before creating a new top-level file1175. **Commit** — Conventional commits format, comprehensive PR summaries118119## Workflow Surface Policy120121- `skills/` is the canonical workflow surface.122- New workflow contributions should land in `skills/` first.123- `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.124125## Git Workflow126127**Commit format:** `<type>: <description>` — Types: feat, fix, refactor, docs, test, chore, perf, ci128129**PR workflow:** Analyze full commit history → draft comprehensive summary → include test plan → push with `-u` flag.130131## Architecture Patterns132133**API response format:** Consistent envelope with success indicator, data payload, error message, and pagination metadata.134135**Repository pattern:** Encapsulate data access behind standard interface (findAll, findById, create, update, delete). Business logic depends on abstract interface, not storage mechanism.136137**Skeleton projects:** Search for battle-tested templates, evaluate with parallel agents (security, extensibility, relevance), clone best match, iterate within proven structure.138139## Performance140141**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.142143**Build troubleshooting:** Use build-error-resolver agent → analyze errors → fix incrementally → verify after each fix.144145## Project Structure146147```148agents/ — 48 specialized subagents149skills/ — 183 workflow skills and domain knowledge150commands/ — 79 slash commands151hooks/ — Trigger-based automations152rules/ — Always-follow guidelines (common + per-language)153scripts/ — Cross-platform Node.js utilities154mcp-configs/ — 14 MCP server configurations155tests/ — Test suite156```157158`commands/` remains in the repo for compatibility, but the long-term direction is skills-first.159160## Success Metrics161162- All tests pass with 80%+ coverage163- No security vulnerabilities164- Code is readable and maintainable165- Performance is acceptable166- User requirements are met167
Also in ThanhTrunggDEV/DontBeLazy
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 |
|---|---|---|---|---|---|
| ThanhTrunggDEV/DontBeLazy.cursor/rules/zh-agents.mdc · 6 | Cursor rules | no sections | 50/100 | 3 days ago | |
| ThanhTrunggDEV/DontBeLazy.cursor/rules/zh-patterns.mdc · 6 | Cursor rules | api | 30/100 | 3 days ago | |
| ThanhTrunggDEV/DontBeLazy.agent/AGENTS.md · 6 | AGENTS.md | buildteststylearch+4 | 77/100 | 3 days ago | |
| ThanhTrunggDEV/DontBeLazy.cursor/rules/common-agents.mdc · 6 | Cursor rules | agent-behaviour | 50/100 | 3 days ago | |
| ThanhTrunggDEV/DontBeLazy.cursor/rules/common-code-review.mdc · 6 | Cursor rules | styletesting-strategygitsecurity+3 | 65/100 | 3 days ago | |
| ThanhTrunggDEV/DontBeLazy.cursor/rules/common-coding-style.mdc · 6 | Cursor rules | style | 54/100 | 3 days ago | |
| ThanhTrunggDEV/DontBeLazy.cursor/rules/common-development-workflow.mdc · 6 | Cursor rules | gitagent-behaviour | 39/100 | 3 days ago | |
| ThanhTrunggDEV/DontBeLazy.cursor/rules/common-git-workflow.mdc · 6 | Cursor rules | lint-formatgitagent-behaviour | 43/100 | 3 days ago | |
| ThanhTrunggDEV/DontBeLazy.cursor/rules/common-hooks.mdc · 6 | Cursor rules | styletypessecuritydo-not | 36/100 | 3 days ago | |
| ThanhTrunggDEV/DontBeLazy.cursor/rules/common-patterns.mdc · 6 | Cursor rules | lint-formatstyleapi | 52/100 | 3 days ago | |
| ThanhTrunggDEV/DontBeLazy.cursor/rules/common-performance.mdc · 6 | Cursor rules | buildperformance | 48/100 | 3 days ago | |
| ThanhTrunggDEV/DontBeLazy.cursor/rules/common-security.mdc · 6 | Cursor rules | security | 39/100 | 3 days ago | |
| ThanhTrunggDEV/DontBeLazy.cursor/rules/common-testing.mdc · 6 | Cursor rules | testtesting-strategyagent-behaviour | 34/100 | 3 days ago | |
| ThanhTrunggDEV/DontBeLazy.cursor/rules/cpp-coding-style.mdc · 6 | Cursor rules | lint-formatstyle | 52/100 | 3 days ago | |
| ThanhTrunggDEV/DontBeLazy.cursor/rules/cpp-hooks.mdc · 6 | Cursor rules | buildlint-formatdeployment | 60/100 | 3 days ago | |
| ThanhTrunggDEV/DontBeLazy.cursor/rules/cpp-patterns.mdc · 6 | Cursor rules | style | 54/100 | 3 days ago | |
| ThanhTrunggDEV/DontBeLazy.cursor/rules/cpp-security.mdc · 6 | Cursor rules | securityperformancedo-not | 73/100 | 3 days ago | |
| ThanhTrunggDEV/DontBeLazy.cursor/rules/cpp-testing.mdc · 6 | Cursor rules | testtesting-strategy | 55/100 | 3 days ago | |
| ThanhTrunggDEV/DontBeLazy.cursor/rules/csharp-coding-style.mdc · 6 | Cursor rules | lint-formatstyletypes | 66/100 | 3 days ago | |
| ThanhTrunggDEV/DontBeLazy.cursor/rules/csharp-hooks.mdc · 6 | Cursor rules | no sections | 33/100 | 3 days ago |
Diff against .cursor/rules/zh-agents.mdc Diff against .cursor/rules/zh-patterns.mdc Diff against .agent/AGENTS.md Diff against .cursor/rules/common-agents.mdc Diff against .cursor/rules/common-code-review.mdc Diff against .cursor/rules/common-coding-style.mdc Diff against .cursor/rules/common-development-workflow.mdc Diff against .cursor/rules/common-git-workflow.mdc Diff against .cursor/rules/common-hooks.mdc Diff against .cursor/rules/common-patterns.mdc Diff against .cursor/rules/common-performance.mdc Diff against .cursor/rules/common-security.mdc Diff against .cursor/rules/common-testing.mdc Diff against .cursor/rules/cpp-coding-style.mdc Diff against .cursor/rules/cpp-hooks.mdc Diff against .cursor/rules/cpp-patterns.mdc Diff against .cursor/rules/cpp-security.mdc Diff against .cursor/rules/cpp-testing.mdc Diff against .cursor/rules/csharp-coding-style.mdc Diff against .cursor/rules/csharp-hooks.mdc
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| trick77/agents-md-syncAGENTS.md · 2 | AGENTS.md | setupbuildteststyle+5 | 100/100 | 3 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 | |
| wpscanteam/wpscanAGENTS.md · 9.7k | AGENTS.md | setupbuildteststyle+6 | 100/100 | 2 days ago | |
| mui/material-uiAGENTS.md · 99k | AGENTS.md | setupbuildtestlint-format+9 | 100/100 | 3 days ago | |
| 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 | |
| code-yeongyu/oh-my-openagentpackages/web/AGENTS.md · 67k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 2 days ago |
