agentleFS
YishenTuYishenTu/claudian/tests/AGENTS.md

claudian / tests

AGENTS.md16k starsChanged 4 months agoMITView on GitHub

Trending

Less talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 1 mentionFeb 2026: 1 mentionMar 2026: 8 mentionsApr 2026: 3 mentionsMay 2026: 2 mentionsJun 2026: 1 mentionJul 2026: 4 mentionsAug 2026: 3 mentionsSep 2026: 2 mentionsOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the YishenTu/claudian repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about YishenTu/claudian

The biggest 5 of 26 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 26

Talked about on GitHub and Bluesky (26 times).

On GitHub · 16

11 more on GitHub

On Bluesky · 10

5 more on Bluesky
  • 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 repository5 other files it gives its agents.

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    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. Very specific:

    Use package test commands: npm run test:unit -- --runTestsByPath <path> runs either a unit or integration Jest file with the required Node …

    line 3
  2. Distinctive:

    Prefer focused integration tests for behavior spanning multiple components.

    line 6
  3. Distinctive:

    When branches, callers, ownership, or dependencies change, revisit the affected coverage.

    line 7
  4. Distinctive:

    Do not add production facades solely for testing, or APIs or state solely to expose implementation details to tests.

    line 13

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

Test constraints

  • Use package test commands: npm run test:unit -- --runTestsByPath <path> runs either a unit or integration Jest file with the required Node local-storage option. npm run test also runs script/architecture/config checks; targeted Jest does not.
  • Before adding a test, inspect coverage of the behavior across unit and integration suites, not just the changed module's test file. Identify the observable contract and a plausible regression existing coverage misses. If an existing test catches it, use that test for before/after verification without adding a case. Otherwise extend the case or table that owns the contract; additional test layers need a distinct failure mode.
  • Choose the test boundary from the intended behavior and plausible failure, rather than the function or file being changed. Exercise the real components needed to establish that behavior, and assert the observable result at the relevant boundary. Isolated tests of individual steps do not establish that those steps work together.
  • Prefer focused integration tests for behavior spanning multiple components. Use unit tests for self-contained contracts and detailed edge cases; use broader or real-environment tests when the relevant failure cannot be reproduced within the integration boundary.
  • When branches, callers, ownership, or dependencies change, revisit the affected coverage. Consolidate redundant proof and remove support made obsolete by the change; keep this maintenance within the affected area.
  • Tests must exercise the behavior they claim; mocks must not supply the transformation, persistence, admission, or ordering being asserted. Do not assert state or DOM relationships established entirely by fixture construction or mock callbacks. Integration tests keep interacting owned modules real; use narrow public ports only for environment, Obsidian, provider, or other dependencies outside the behavior under test.
  • Assertions must distinguish correct behavior from the relevant fault, with independently grounded expected results. Negative fixtures must reach the intended guard; asynchronous assertions must observe the lifecycle point where the failure could become visible. For UI absence checks, establish that the relevant surface rendered and the query still addresses the current control or state. If a stale query could pass unnoticed, verify it detects an injected forbidden control or state.
  • Optional method presence, copied option arrays, private markup and call sequences are not contracts by themselves. Assert the behavior through real consumers when they already cover the same contract; retain direct checks when they protect a distinct compatibility, protocol, lifecycle or performance requirement.
  • Before removing or consolidating coverage, identify retained proof for each meaningful assertion or establish that the behavior is retired. Carry missing assertions into the keeper first. Passing tests alone do not establish equivalent coverage; use a targeted fault check when equivalence is uncertain. Absence of repository-local callers is insufficient to retire an externally reachable plugin or compatibility contract.
  • Preserve coverage for distinct protocol, platform, security, lifecycle, persistence, and compatibility failures. Consolidation must retain assertions that distinguish those failures. Small tests and static checks are not deletion candidates merely because of their form.
  • Do not add production facades solely for testing, or APIs or state solely to expose implementation details to tests.
  • Express fixture timestamps with @test/helpers/testClock, which captures a current-time baseline for each test module environment. Derive related creation, expiry, and assertion dates from that timeline; share one injected clock across interacting services and advance it explicitly for expiry tests. Do not add fixed calendar anchors. CI also runs selected Jest tests about three years ahead under libfaketime.
  • Shared provider changes need neutral-contract coverage and distinct native adapter cases.
  • DOM interaction and accessibility regressions need real-DOM tests with Testing Library role/name queries and targeted jest-axe checks. Isolated controller logic may use unit tests without a DOM; MockElement class/tag assertions do not establish accessibility or keyboard behavior.
  • CSS assertions need a functional, compatibility or explicit design requirement; copying current spacing, color or selector literals is not sufficient. jsdom computed styles can check declarations and state changes, but do not prove rendered geometry or contrast. Use rendered measurements or a repeatable host reproduction for those claims, while retaining narrow host-compatibility and functional-state checks.
  • Real-process tests run on macOS/Windows only when listed in crossPlatformTests in scripts/testSuites.cjs; the Windows Pi launch test has its own CI step. Linux results do not prove process or launch behavior.
  • Tests that read source files through fs (CSS, locales, captured fixtures) are invisible to Jest's graph; register them in fileConsumers in scripts/ciTestSelection.mjs (suites under tests/unit/style/ are listed automatically) or CI and test:affected skip them.

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.