agentleFS
platformplatformplatformplatform/PlatformPlatform/AGENTS.md

PlatformPlatform

AGENTS.md440 starsChanged 7 months agoMITView on GitHub

Use the developer CLI skills (build, test, format, lint, e2e, aspire-restart, team-interrupt) for all code workflows. They invoke dotnet run --project developer-cli -- <command> directly. Never run dotnet, npm, or npx directly - the pre-tool-use Bash hook blocks them. Run build first, then format, lint, test in parallel with --no-build. Slow: Aspire restart, backend format, backend lint, end-to-end tests. Fast: frontend format/lint, backend test. Aspire: The aspire-restart skill manages the AppHost - always use it; never aspire run, aspire restart,…

The file

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

8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read before you write: Before adding code in a file, read the file's exports, the immediate caller, and obvious shared utilities.

    line 7
  2. Distinctive:

    Checkpoint significant steps: After each step in a multi-step task, summarize what was done, what's verified, and what's left.

    line 9
  3. Very specific:

    Use the developer CLI skills (build, test, format, lint, e2e, aspire-restart, team-interrupt) for all code workflows.

    line 15
  4. Very specific:

    Run build first, then format, lint, test in parallel with --no-build.

    line 17
  5. Distinctive:

    Never commit, amend, or revert without explicit user instruction each time.

    line 23
  6. Very specific:

    When working with [features] or [tasks], read .claude/reference/product-management/[PRODUCT_MANAGEMENT_TOOL].md to learn how to look them …

    line 33
  7. Distinctive:

    Never write to or edit any auto memory files (MEMORY.md or any file in a memory directory).

    line 37
  8. Distinctive:

    Always verify paths, names, and API routes against the actual codebase.

    line 41

≈ “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

Behavioral Guidelines

  1. Think before coding. State assumptions explicitly. If uncertain, ask rather than guess. When multiple interpretations exist, present them - don't pick silently.
  2. Goal-driven execution. Define success criteria before iterating. Loop until verified. Strong success criteria let you loop independently; "make it work" requires constant clarification.
  3. Read before you write. Before adding code in a file, read the file's exports, the immediate caller, and obvious shared utilities. "Looks orthogonal to me" is the most dangerous phrase in this codebase.
  4. Checkpoint significant steps. After each step in a multi-step task, summarize what was done, what's verified, and what's left. Don't continue from a state you can't describe back.
  5. Fail loud. Surface uncertainty, don't hide it. "Completed" is wrong if anything was skipped silently. "Tests pass" is wrong if any were skipped. "Feature works" is wrong if the edge case wasn't verified.

Build, Test, and Format

Use the developer CLI skills (build, test, format, lint, e2e, aspire-restart, team-interrupt) for all code workflows. They invoke dotnet run --project developer-cli -- <command> directly. Never run dotnet, npm, or npx directly - the pre-tool-use Bash hook blocks them.

Run build first, then format, lint, test in parallel with --no-build.

Slow: Aspire restart, backend format, backend lint, end-to-end tests. Fast: frontend format/lint, backend test.

Aspire: The aspire-restart skill manages the AppHost - always use it; never aspire run, aspire restart, or the developer CLI's run command. Port = .workspace/port.txt base + 4. Never trust Aspire MCP for the port — a common critical failure that silently runs SQL on another worktree's database. If you need other Aspire MCP data, call mcp__aspire__select_apphost with the cwd path first. In the agentic workflow, only the Guardian agent restarts Aspire. All other agents must notify the Guardian if they need it restarted.

Never commit, amend, or revert without explicit user instruction each time. Commit messages: one descriptive line in imperative form, no description body.

Product Management Tool

Whenever you see [PRODUCT_MANAGEMENT_TOOL], replace it with the configured value.

PRODUCT_MANAGEMENT_TOOL="Linear"

When working with [features] or [tasks], read .claude/reference/product-management/[PRODUCT_MANAGEMENT_TOOL].md to learn how to look them up, how to update status, and how generic statuses like [Active], [Review], [Completed] map to the tool. Read the [feature] for full context and the [task] for specific requirements.

Auto Memory

Never write to or edit any auto memory files (MEMORY.md or any file in a memory directory). These files are managed by the user only.

Source of Truth

Always verify paths, names, and API routes against the actual codebase. Never rely on memory, cached context, or prior session knowledge for these. Always look them up. Only read files within the git repository unless explicitly asked to look elsewhere.

Project Structure

This is a mono repository with multiple self-contained systems (SCS), each being a small monolith. All SCSs follow the same structure.

  • application: Contains application code, one folder per SCS, plus shared-kernel and shared-webapp.
  • cloud-infrastructure: Bash and Azure Bicep scripts (IaC).
  • developer-cli: A .NET CLI tool for automating common developer tasks.

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.