agentleFS
AytsuuAytsuu/codemini/AGENTS.md

codemini

AGENTS.md0 starsChanged 6 months agoMITView on GitHub

This is a production-ready AI coding plugin providing 18 specialized agents, 28 skills, and automated hook workflows for software development. Version: 2.0.0-rc.1 Use agents proactively without user prompt: - Complex feature requests → planner - Code just written/modified → code-reviewer - Bug fix or new feature → tdd-guide - Architectural decision → architect - Security-sensitive code → security-reviewer - Performance bottlenecks → performance-optimizer - SEO improvements → seo-specialist Use parallel execution for independent operations — launch multiple agents simultaneously. When…

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

20 rules. About 3 are common, 15 are distinctive, and 2 are very specific to this project.

  • ≈3

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈15

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use agents proactively without user prompt:

    line 40
  2. Distinctive:

    Use parallel execution for independent operations — launch multiple agents simultaneously.

    line 49
  3. Distinctive:

    Use more specific documentation tools before general web search when they apply:

    line 55
  4. Very specific:

    Use the built-in web search/browser tools only for quick lightweight lookups, specialized built-in data tools such as …

    line 60
  5. Common:

    No hardcoded secrets (API keys, passwords, tokens)

    line 65
  6. Distinctive:

    All user inputs validated

    line 66
  7. Common:

    Secret management: NEVER hardcode secrets. Use environment variables or a secret manager.

    line 74
  8. Common:

    If security issue found: STOP → use security-reviewer agent → fix CRITICAL issues → rotate exposed secrets → review codebase for similar …

    line 76
  9. Distinctive:

    Immutability (CRITICAL): Always create new objects, never mutate.

    line 80
  10. Distinctive:

    No deep nesting (>4 levels)

    line 90
  11. Distinctive:

    Test types (all required):

    line 98
  12. Distinctive:

    Write test first (RED) — test should FAIL

    line 104
  13. Distinctive:

    Write minimal implementation (GREEN) — test should PASS

    line 105
  14. Distinctive:

    If the current task already produces the relevant docs or code comments, do not duplicate the same information elsewhere

    line 118
  15. Distinctive:

    If there is no obvious project doc location, ask before creating a new top-level file

    line 119
  16. Very specific:

    Keep root-level AI docs limited to AGENTS.md, RULES.md, and tool manifests.

    line 126
  17. Distinctive:

    Skeleton projects: Search for battle-tested templates, evaluate with parallel agents (security, extensibility, relevance), clone best …

    line 141
  18. Distinctive:

    Context management: Avoid last 20% of context window for large refactoring and multi-file features.

    line 145
  19. Distinctive:

    Build troubleshooting: Use build-error-resolver agent → analyze errors → fix incrementally → verify after each fix.

    line 147
  20. Distinctive:

    All tests pass with 80%+ coverage

    line 162

≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Agent Instructions

This is a production-ready AI coding plugin providing 18 specialized agents, 28 skills, and automated hook workflows for software development.

Version: 2.0.0-rc.1

Core Principles

  1. Agent-First — Delegate to specialized agents for domain tasks
  2. Test-Driven — Write tests before implementation, 80%+ coverage required
  3. Security-First — Never compromise on security; validate all inputs
  4. Immutability — Always create new objects, never mutate existing ones
  5. Plan Before Execute — Plan complex features before writing code

Available Agents

AgentPurposeWhen to Use
plannerImplementation planningComplex features, refactoring
architectSystem design and scalabilityArchitectural decisions
tdd-guideTest-driven developmentNew features, bug fixes
code-reviewerCode quality and maintainabilityAfter writing/modifying code
security-reviewerVulnerability detectionBefore commits, sensitive code
build-error-resolverFix build/type errorsWhen build fails
refactor-cleanerDead code cleanupCode maintenance
doc-updaterDocumentation and codemapsUpdating docs
docs-lookupDocumentation lookup via Context7API/docs questions
python-reviewerPython code reviewPython projects
typescript-reviewerTypeScript/JavaScript code reviewTypeScript/JavaScript projects
code-architectCode architecture analysisStructural decisions
code-explorerCodebase exploration and navigationUnderstanding unfamiliar code
code-simplifierCode simplification and clarityReducing complexity
comment-analyzerCode comment quality analysisDocumentation review
performance-optimizerPerformance profiling and tuningPerformance bottlenecks
seo-specialistSEO analysis and optimizationSearch visibility
silent-failure-hunterDetect silent failures and swallowed errorsReliability audits

Agent Orchestration

Use agents proactively without user prompt:

  • Complex feature requests → planner
  • Code just written/modified → code-reviewer
  • Bug fix or new feature → tdd-guide
  • Architectural decision → architect
  • Security-sensitive code → security-reviewer
  • Performance bottlenecks → performance-optimizer
  • SEO improvements → seo-specialist

Use parallel execution for independent operations — launch multiple agents simultaneously.

Web Research Tooling

When web search, web crawling, or full-page extraction is needed, use Firecrawl MCP as the primary web data provider whenever it is available. If Firecrawl tools are not already loaded, discover them through tool_search first, then use the Firecrawl search, scrape, crawl, or extract tool that matches the task.

Use more specific documentation tools before general web search when they apply:

  • OpenAI docs tooling for OpenAI product/API questions.
  • Context7 or docs-lookup for library, framework, SDK, CLI, and cloud-service documentation.
  • Supabase docs/MCP tooling for Supabase-specific schema, auth, RLS, Edge Function, CLI, and platform questions.

Use the built-in web search/browser tools only for quick lightweight lookups, specialized built-in data tools such as finance/weather/sports/time, opening a known URL, or as a fallback when Firecrawl or the more specific docs tool is unavailable or fails.

Security Guidelines

Before ANY commit:

  • No hardcoded secrets (API keys, passwords, tokens)
  • All user inputs validated
  • SQL injection prevention (parameterized queries)
  • XSS prevention (sanitized HTML)
  • CSRF protection enabled
  • Authentication/authorization verified
  • Rate limiting on all endpoints
  • Error messages don't leak sensitive data

Secret management: NEVER hardcode secrets. Use environment variables or a secret manager. Validate required secrets at startup. Rotate any exposed secrets immediately.

If security issue found: STOP → use security-reviewer agent → fix CRITICAL issues → rotate exposed secrets → review codebase for similar issues.

Coding Style

Immutability (CRITICAL): Always create new objects, never mutate. Return new copies with changes applied.

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.

Error handling: Handle errors at every level. Provide user-friendly messages in UI code. Log detailed context server-side. Never silently swallow errors.

Input validation: Validate all user input at system boundaries. Use schema-based validation. Fail fast with clear messages. Never trust external data.

Code quality checklist:

  • Functions small (<50 lines), files focused (<800 lines)
  • No deep nesting (>4 levels)
  • Proper error handling, no hardcoded values
  • Readable, well-named identifiers

Testing Requirements

Minimum coverage: 80%

Test types (all required):

  1. Unit tests — Individual functions, utilities, components
  2. Integration tests — API endpoints, database operations
  3. E2E tests — Critical user flows

TDD workflow (mandatory):

  1. Write test first (RED) — test should FAIL
  2. Write minimal implementation (GREEN) — test should PASS
  3. Refactor (IMPROVE) — verify coverage 80%+

Troubleshoot failures: check test isolation → verify mocks → fix implementation (not tests, unless tests are wrong).

Development Workflow

  1. Plan — Use planner agent, identify dependencies and risks, break into phases
  2. TDD — Use tdd-guide agent, write tests first, implement, refactor
  3. Review — Use code-reviewer agent immediately, address CRITICAL/HIGH issues
  4. Capture knowledge in the right place
    • Personal debugging notes, preferences, and temporary context → auto memory
    • Team/project knowledge (architecture decisions, API changes, runbooks) → the project's existing docs structure
    • If the current task already produces the relevant docs or code comments, do not duplicate the same information elsewhere
    • If there is no obvious project doc location, ask before creating a new top-level file
  5. Commit — Conventional commits format, comprehensive PR summaries

Workflow Surface Policy

  • contexts/ is the team-facing home for agent-related project assets.
  • .agents/skills/ remains the runtime-loaded skill surface.
  • Keep root-level AI docs limited to AGENTS.md, RULES.md, and tool manifests.
  • New workflow contributions should land in the organized surfaces above instead of adding new root directories.

Git Workflow

Commit format: <type>: <description> — Types: feat, fix, refactor, docs, test, chore, perf, ci

PR workflow: Analyze full commit history → draft comprehensive summary → include test plan → push with -u flag.

Architecture Patterns

API response format: Consistent envelope with success indicator, data payload, error message, and pagination metadata.

Repository pattern: Encapsulate data access behind standard interface (findAll, findById, create, update, delete). Business logic depends on abstract interface, not storage mechanism.

Skeleton projects: Search for battle-tested templates, evaluate with parallel agents (security, extensibility, relevance), clone best match, iterate within proven structure.

Performance

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.

Build troubleshooting: Use build-error-resolver agent → analyze errors → fix incrementally → verify after each fix.

Project Structure

contexts/
  agents/        — team-maintained agent definitions
  rules/         — always-follow guidance by stack/domain
  baseline/      — base rules, standards, and templates for new projects and agents
.agents/
  skills/        — runtime-loaded skills and plugin asset

Success Metrics

  • All tests pass with 80%+ coverage
  • No security vulnerabilities
  • Code is readable and maintainable
  • Performance is acceptable
  • User requirements are met

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.