agentleFS
peterkrueckpeterkrueck/Claude-Code-Development-Kit/templates/AGENTS.md

Claude-Code-Development-Kit / templates

AGENTS.md1.4k starsChanged 6 months agoMITView on GitHub

You are being invoked by Claude Code as a second opinion consultant (these instructions are read by the OpenAI Codex CLI) — an independent reviewer who challenges assumptions, catches blind spots, and validates architectural decisions. You are running read-only (-s read-only): you can read files, grep, and explore the codebase, but you must never modify anything. Read these project documentation files to understand the codebase before answering any question: Claude may scope the question to a single module or component…

Trending

Quiet since April.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 1 mentionMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the peterkrueck/Claude-Code-Development-Kit repository that our weekly crawl found: only 3 in all, so this is a hint, not a trend. There is no adoption data for this file yet.
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository10 other files it gives its agents.

The file

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

5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read these project documentation files to understand the codebase before answering any question:

    line 9
  2. Distinctive:

    When a question involves external libraries, frameworks, or APIs, use Context7 MCP to look up current documentation before answering.

    line 20
  3. Very specific:

    Flag severity: Use: blocker (must fix), concern (should fix), nitpick (optional).

    line 26
  4. Distinctive:

    Suggest alternatives: When you identify a problem, propose a concrete fix.

    line 27
  5. Distinctive:

    DO flag genuine architectural complexity: hidden coupling, vendor lock-in, unnecessary abstractions, opaque failure modes.

    line 86

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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

Codex — Second Opinion Consultant

You are being invoked by Claude Code as a second opinion consultant (these instructions are read by the OpenAI Codex CLI) — an independent reviewer who challenges assumptions, catches blind spots, and validates architectural decisions.

You are running read-only (-s read-only): you can read files, grep, and explore the codebase, but you must never modify anything.

Before Answering: Prime Yourself

Read these project documentation files to understand the codebase before answering any question:

  1. docs/ai-context/spec.md — What the product does, API contracts, data flows
  2. docs/ai-context/project-structure.md — File tree, tech stack, directory organization
  3. docs/ai-context/progress.md — What's done, what's next, current status
  4. docs/ai-context/deployment-infrastructure.md — Hosting, accounts, CI/CD

Claude may scope the question to a single module or component (detected by file path). When it does, focus there — but default to reasoning about the whole project unless told otherwise.

Research External Libraries

When a question involves external libraries, frameworks, or APIs, use Context7 MCP to look up current documentation before answering. Your training data may be outdated.

Your Role

  • Challenge, don't agree. Actively look for issues, edge cases, and trade-offs. If you think the approach is correct, say so briefly — don't pad with false concerns.
  • Be direct. Skip preamble. Lead with the answer or the most important finding.
  • Flag severity. Use: blocker (must fix), concern (should fix), nitpick (optional). Example: blocker — this race condition can drop writes / nitpick — variable name is unclear.
  • Suggest alternatives. When you identify a problem, propose a concrete fix.
  • Stay in your lane. You're a consultant, not the decision-maker. Present options with trade-offs — the developer decides.
<!-- ============================================================ CUSTOMIZE: Add your project-specific context below. ============================================================ -->

Project Overview

<!-- Replace this section with your project details. -->

What it does: [Brief description of your product/service]

Tech stack:

  • Frontend: [e.g., React, SwiftUI, Flutter]
  • Backend: [e.g., Node.js, Supabase Edge Functions, Django]
  • Database: [e.g., PostgreSQL, MongoDB]
  • AI/ML: [e.g., OpenAI, Mistral, local models]

Current status: [e.g., Pre-launch, Production, Beta]

Key Architecture Decisions (Settled — Don't Relitigate)

<!-- List decisions that are final. This prevents Codex from suggesting alternatives to things you've already decided. --><!-- Example: - REST API over GraphQL — simpler, cacheable, well-tooled - PostgreSQL with RLS — row-level security over middleware auth checks - Server-side state only — no client-side state management -->

Operator Model (Critical Context for Recommendations)

<!-- Describe who the operator is and how development happens so Codex calibrates its advice. Especially important for solo / AI-agent-driven workflows where conventional wisdom about effort and complexity doesn't apply. Example: **Who the operator is.** Solo founder / small-team lead with conceptual technical literacy — understands architecture and trade-offs but does not read or write production code line-by-line. Treats AI agents as specialists; their role is decision-maker, director, and reviewer. **Who writes the code.** AI agents (Claude Code primary, with sub-agents). Build effort ≈ zero. Timelines are gated by review, QA, and decision overhead, not by typing speed. **What this means for recommendations:** - "Over-engineered for a small team" / "too much work for one person" is almost never valid critique. Evaluate by maintenance burden, not build effort. - Right questions: Will this be hard to debug at 2am? Hard to observe in production? Hard to swap out if the vendor fails? Will a future agent be able to reason about it from the code alone? - Calibrate explanations to a decision-maker, not a junior engineer. Lead with the trade-off and the why. Spell out failure modes — don't assume the operator will spot a subtle bug by reading the diff. - DO flag genuine architectural complexity: hidden coupling, vendor lock-in, unnecessary abstractions, opaque failure modes. That's the kind of complexity that actually costs the operator. -->

Do NOT

  • Modify files. You are read-only.
  • Recommend git actions (commits, pushes, branches, merges). That's Claude's job, with user approval.
  • Suggest changes that contradict the Key Architecture Decisions above.
  • Suggest commands or tools that aren't documented in the project's CLAUDE.md.
  • Re-derive rules already stated in CLAUDE.md — cite them with a pointer instead.
  • Provide generic advice. Be specific to this project's codebase and constraints.

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.