agentleFS
zhaoliangbin42zhaoliangbin42/AI-MarkDone/AGENTS.md

AI-MarkDone

AGENTS.md193 starsChanged 9 months agoMITView on GitHub

This repository uses a Codex-first engineering guide for day-to-day development. Keep this file short, stable, and focused on entrypoints. - Treat user corrections as process failures, not one-off mistakes. - State what was wrong. - Adjust the plan or rule you are following. - Do not repeat the same mistake silently. - For bug fixes, reproduce the bug with a failing test before changing implementation whenever the bug is testable in this repository. - If it is not realistically testable,…

  • Deletes or force-pushes
  • 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 repositoryOne other file it gives its agents.

The file

Show its rules and text

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

16 rules. About 0 are common, 10 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Search before editing. Do not assume files, symbols, selectors, or contracts exist.

    line 34
  2. Very specific:

    Do not use destructive rollback commands such as git checkout --, git reset --hard, or bulk sed replacements.

    line 35
  3. Very specific:

    Do not use !important outside explicit print-only rules.

    line 37
  4. Very specific:

    Keep architecture changes aligned with the authoritative docs in docs/.

    line 38
  5. Distinctive:

    Treat user corrections as process failures, not one-off mistakes.

    line 44
  6. Distinctive:

    Do not repeat the same mistake silently.

    line 47
  7. Distinctive:

    If it is not realistically testable, state why and add the closest practical regression check.

    line 49
  8. Distinctive:

    Before writing code for a materially ambiguous request, ask clarifying questions instead of guessing.

    line 52
  9. Distinctive:

    After any code change, explicitly list important edge cases and suggest the tests that should cover them.

    line 53
  10. Distinctive:

    Do not claim success from reasoning alone.

    line 54
  11. Distinctive:

    Use commands, tests, or build output as evidence.

    line 55
  12. Distinctive:

    Prefer the smallest safe change that satisfies the request and preserves current contracts.

    line 56
  13. Very specific:

    when and how to update docs/*

    line 71
  14. Very specific:

    Run npm run build after repo-tracked code changes.

    line 125
  15. Distinctive:

    Update the relevant authoritative docs when contracts, platform support, architecture boundaries, or testing gates change.

    line 126
  16. Very specific:

    Update CHANGELOG.md in English when the change affects end users.

    line 127

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

AI-MarkDone Engineering Guide

This repository uses a Codex-first engineering guide for day-to-day development. Keep this file short, stable, and focused on entrypoints.

Project Facts

ItemValue
ProductAI-MarkDone
Product platformChatGPT only; see the 2026-09-11 scope decision in docs/FEATURES.md
TypeBrowser extension
TargetsChrome MV3, Firefox MV2
Runtime surfacescontent runtime, background runtime, extension UI
StackTypeScript, Vite, Shadow DOM
Core constraintsplatform adapters, tokenized UI, dual-browser build parity

Read Order

  1. This file for repository-wide expectations.
  2. .codex/rules/* for cross-cutting engineering rules.
  3. .codex/guides/* for task-oriented guidance.
  4. docs/README.md for the long-lived system of record.
  5. The specific contract or architecture document for the area you are changing.

Common Commands

  • npm install
  • npm run test:smoke
  • npm run test:core
  • npm run build

Non-Negotiables

  • Search before editing. Do not assume files, symbols, selectors, or contracts exist.
  • Do not use destructive rollback commands such as git checkout --, git reset --hard, or bulk sed replacements.
  • UI changes must use the established --aimd-* token system. Do not hardcode colors, spacing, radius, or z-index values in shipped UI.
  • Do not use !important outside explicit print-only rules.
  • Keep architecture changes aligned with the authoritative docs in docs/.
  • New feature design, implementation, settings, and acceptance target ChatGPT only (including its in-page and detached Reader). Existing other-platform code is legacy, not a requirement for feature parity; Chrome/Firefox build parity still applies.
  • Any repo-tracked code change must be verified with npm run build before completion unless the user explicitly waives it.

Required Engineering Behaviors

  • Treat user corrections as process failures, not one-off mistakes.
    • State what was wrong.
    • Adjust the plan or rule you are following.
    • Do not repeat the same mistake silently.
  • For bug fixes, reproduce the bug with a failing test before changing implementation whenever the bug is testable in this repository.
    • If it is not realistically testable, state why and add the closest practical regression check.
    • For overlay, modal, popover, panel, or shared-primitive regressions, do not stop at direct surface tests. Also add or update at least one test that enters through the real user-facing trigger path.
  • Before writing code for a materially ambiguous request, ask clarifying questions instead of guessing.
  • After any code change, explicitly list important edge cases and suggest the tests that should cover them.
  • Do not claim success from reasoning alone.
    • Use commands, tests, or build output as evidence.
  • Prefer the smallest safe change that satisfies the request and preserves current contracts.

Where Rules Live

  • .codex/rules/critical-rules.md
    • hard constraints that apply across all work
  • .codex/rules/commenting.md
    • comment policy for why, contracts, and directive reasons
  • .codex/rules/logging.md
    • log shape, level selection, and sensitive-data guardrails
  • .codex/rules/style-guide.md
    • UI token, Shadow DOM, and selector rules
  • .codex/rules/changelog.md
    • user-facing changelog policy
  • .codex/rules/documentation.md
    • when and how to update docs/*

Where Guides Live

  • .codex/guides/development.md
    • new behavior, refactors, and feature work
  • .codex/guides/bug-fix.md
    • reproduce, diagnose, fix, and verify bugs
  • .codex/guides/code-review.md
    • review expectations, findings format, and verification
  • .codex/guides/release.md
    • release preparation and validation
  • .codex/guides/platform-adaptation.md
    • adding or extending platform support
  • .codex/guides/style-modification.md
    • style-system specific workflow

Source Of Truth

docs/ remains the long-lived system of record for architecture, contracts, testing, and governance.

Start here:

  • docs/README.md
  • docs/architecture/CURRENT_STATE.md
  • docs/architecture/BLUEPRINT.md
  • docs/architecture/DEPENDENCY_RULES.md
  • docs/architecture/RUNTIME_PROTOCOL.md
  • docs/architecture/BROWSER_COMPATIBILITY.md
  • docs/design.md
  • docs/testing/CURRENT_TEST_GATES.md
  • docs/testing/TESTING_BLUEPRINT.md
  • docs/governance/DOCS_GOVERNANCE.md

Change Routing

  • Adapter or platform behavior
    • read src/drivers/content/adapters/base.ts
    • read docs/architecture/CURRENT_STATE.md
    • read docs/FEATURES.md
  • Architecture or layer boundaries
    • read docs/architecture/CURRENT_STATE.md
    • read docs/architecture/BLUEPRINT.md
    • read docs/architecture/DEPENDENCY_RULES.md
  • Runtime messaging or background/content boundaries
    • read docs/architecture/RUNTIME_PROTOCOL.md
  • Style-system or theme changes
    • read docs/design.md
  • Testing or release gates
    • read docs/testing/CURRENT_TEST_GATES.md
    • read docs/testing/TESTING_BLUEPRINT.md

Minimum Verification

  • Run npm run build after repo-tracked code changes.
  • Update the relevant authoritative docs when contracts, platform support, architecture boundaries, or testing gates change.
  • Update CHANGELOG.md in English when the change affects end users.
  • For version prep or store submission, also follow .codex/guides/release.md, including README / release-notes sync, bookmarks information-page checks, and maintainer manual review of release-facing copy.

Scope Note

This guide is for Codex-based collaboration in this repository. It intentionally does not document tool-specific artifact workflows, slash commands, or prompt rituals.

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.