roleradar
AGENTS.md0 starsChanged 46 days agoMITView on GitHub
RoleRadar is a single-owner, local-first job-search tracker. A stdio MCP server (12 tools) and a CLI sit on a shared .NET 10 Application layer; MongoDB (replica set) is the only domain store. This is a public repo: strictly fictional data only. Standing rules for every web phase. A phase prompt only adds scope and contract facts.
- Reads credentials
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,196 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 repository25 other files it gives its agents.
- speckit-analyzeSkill
- speckit-checklistSkill
- speckit-clarifySkill
- speckit-constitutionSkill
- speckit-convergeSkill
- speckit-git-commitSkill
- speckit-git-featureSkill
- speckit-git-initializeSkill
- speckit-git-remoteSkill
- speckit-git-validateSkill
- speckit-implementSkill
- speckit-planSkill
- speckit-specifySkill
- speckit-tasksSkill
- speckit-taskstoissuesSkill
- speckit-analyzeSkill
- speckit-checklistSkill
- speckit-clarifySkill
- speckit-constitutionSkill
- speckit-convergeSkill
- speckit-implementSkill
- speckit-planSkill
- speckit-specifySkill
- speckit-tasksSkill
- speckit-taskstoissuesSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
14 rules. About 0 are common, 2 are distinctive, and 12 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 20
Use the fast loop while working.
- Very specific: line 22
Never run anything against the developer's running Mongo, docker compose down -v, wipe, or restore --force-overwrite.
- Very specific: line 31
Every action: call validateCsrfToken(...) (timing-safe), use data() with typed action data, never hand-built JSON responses.
- Very specific: line 32
Treat all posting, company and application text as untrusted: React text nodes only, links only for http/https with rel="noopener …
- Very specific: line 36
Verify with: pnpm --filter web run typecheck, lint, test, build, test:e2e, then pwsh ./scripts/test-fast.ps1, pre-commit run --all-files, …
- Very specific: line 37
Never read or print secrets (web/.env.local, deploy/.env).
- Distinctive: line 43
Never commit or push. Leave changes in the working tree for review.
- Very specific: line 44
Never touch bin/, obj/, dist/.
- Very specific: line 45
Prefer an existing tool or GitHub Action to a new custom script.
- Very specific: line 46
Write every file with LF line endings (.gitattributes and .editorconfig say so.
- Very specific: line 48
Every ICommandHandler is wrapped by TransactionCommandDecorator.
- Distinctive: line 49
No hard-delete tools or endpoints.
- Very specific: line 54
All OData reads go through IOwnerReadSeam, which scopes by OwnerId.
- Very specific: line 65
Read only specs/<current feature> as resolved from the branch name.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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.
Files
AGENTS.md
RoleRadar is a single-owner, local-first job-search tracker. A stdio MCP server (12 tools) and a CLI sit on a shared .NET 10 Application layer; MongoDB (replica set) is the only domain store. This is a public repo: strictly fictional data only.
Project map (dependency direction: Domain -> Application -> Infrastructure -> hosts)
Domain: entities, enums,OwnerId, audit types. No dependencies.Application: command/query handlers, decorators,Result<T>, tracker import pipeline. References Domain.Infrastructure: MongoDB repositories, backup/restore, CSV reader. References Domain and Application.Mcp.Stdio,Cli: thin hosts. Reference Application and Infrastructure.tests/:Architecture,Unit,Contract,Integration(Docker/Testcontainers). Do not add test projects.
Commands
- Build quietly:
dotnet build RoleRadar.sln -c Release -v q --nologo -warnaserror - Fast tests (Architecture + Unit + Contract):
pwsh ./scripts/test-fast.ps1 - Web typecheck:
pnpm --filter web run typecheck - Linux web gate (typecheck, lint, tests, build, e2e in node:22):
bash scripts/linux-web-check.shfrom Git Bash. Windows runs alone are not enough before a web phase boundary: the Linux CI image is stricter. - One project or test:
dotnet test tests/RoleRadar.Tests.Unit -c Release --filter "FullyQualifiedName~Name" - Use the fast loop while working. Run
pwsh ./scripts/review-gate.ps1(includes Integration) once at the end of a feature phase or when asked, and report numbers from its output, never remembered ones. - Integration test classes that need the shipped images or a launched host carry
[Trait("Lane", "images")](web-container,real-stackandscanfor the other heavy lanes); scripts and CI select by--filter "Lane=...", never by class-name fragments, andTestLaneCoverageTestsfails for a class without a lane (ADR 0036).review-gate.ps1scans the images it builds with the pinned Trivy and runs the scan test withROLERADAR_REQUIRE_SCAN=1; a plaindotnet testskips the scan test with its reason when no reports exist. - Never run anything against the developer's running Mongo,
docker compose down -v,wipe, orrestore --force-overwrite.
Web app (web/, React Router v7 SSR, Node 22)
Standing rules for every web phase. A phase prompt only adds scope and contract facts.
- Contract first. Field names, request shapes and enum values come from
contracts/client/api-types.ts, which is generated from the API (ADR 0035). Enum-typed properties (dispositions, company status, ownership type, application status, event types and the other registered enums) are string-literal unions generated from the Domain enums throughEnumContractRegistry; take the type from the generated types and hand-write only labels, tones and order (web/app/lib/enum-order.tsmakes a missing member a compile error). Never add a hand snapshot of enum values. A new Domain enum property on an API shape must be added toEnumContractRegistryor its allowlist with a reason, orEnumContractRegistryTestsfails. Regenerate withdotnet build src/RoleRadar.Apithennpx --yes openapi-typescript@7.10.1 contracts/openapi/roleradar-api.json -o contracts/client/api-types.ts. Never invent values, DTO names or endpoints; if tasks.md disagrees with the contract, the contract wins and tasks.md gets fixed. - Vendored design system is copy-only (
web/app/ds). Import components only throughweb/app/ui.ts. Do not editweb/app/ds. - No
any, no casts to silence types; use type guards.pnpm --filter web run typecheckmust exit 0 and runs in CI. - Every action: call
validateCsrfToken(...)(timing-safe), usedata()with typed action data, never hand-built JSON responses. UseassertApiOkfor 401 (one re-login, no loop), 403 (/not-authorized) and 404. Forms use<Form>/useFetcher: 400 shows inline field errors, 409 shows the Toast with Reload (revalidate), success revalidates. - Treat all posting, company and application text as untrusted: React text nodes only, links only for http/https with
rel="noopener noreferrer". - Shared helpers:
formatDate(UTC dates, no locale formatting),useTheme,nav.tsfor nav items,dispositions.tsandcompany-enums.tsfor enums. Do not copy their logic into routes. - List pages read through OData (
/odata/<Set>) with the typedodata-clientbuilder andloadODataList; detail reads and commands stay on/api/v1. Sort only by the allowlisted fields of that set (docs/api/odata-queries.md), sort and page server-side, never in the browser, and clamplimitto 1..100 andoffsetto >= 0. - Tests first and shown failing before the implementation. Axe checks use the shared reduced-motion helper in
web/tests/e2eso results are deterministic. Mutations get real-Chromium e2e tests (success, 400, 409, bad CSRF, 401). Fictional data only. - Verify with:
pnpm --filter web run typecheck,lint,test,build,test:e2e, thenpwsh ./scripts/test-fast.ps1,pre-commit run --all-files, andpwsh ./scripts/review-gate.ps1at the end of a phase. Report numbers from command output only, say what you could not run, and stop at the phase boundary. - Never read or print secrets (
web/.env.local,deploy/.env). Never run anything against the developer's running stack.
Rules
- Standards first (Principle X): before building a mechanism, check for an RFC, a platform feature or a maintained library, and record it in the plan's "Standards considered" table. Examples: RFC 9457 ProblemDetails, not a custom error envelope; W3C Trace Context, not a custom correlation id; ASP.NET Core Identity, not hand-rolled TOTP; a maintained retry library, not a web retry helper.
- A hand-rolled mechanism needs an ADR naming what it lost to. For a near fit, extend thinly in-repo or contribute upstream. Never open an upstream issue, PR or discussion without the owner's approval, and never put real data in one.
- Never commit or push. Leave changes in the working tree for review.
- Never touch
bin/,obj/,dist/. - Prefer an existing tool or GitHub Action to a new custom script; a new script needs a one-line justification in the spec, and CI-only logic goes in web/scripts/*.mjs tested by Vitest, not in PowerShell tested through xUnit.
- Write every file with LF line endings (
.gitattributesand.editorconfigsay so; only*.cmdand*.batuse CRLF, and fixtures keep their exact bytes). Never write CRLF. If a tool or editor produced CRLF, convert the file before you report. - Expected failures return
Result<T>; never throw them. - Every
ICommandHandleris wrapped byTransactionCommandDecorator. - No hard-delete tools or endpoints. Every write records an append-only audit entry.
stdoutinMcp.Stdiois reserved for MCP frames; log tostderr.- Owner ids come from
OwnerIdonly; no string literals elsewhere. - Tool and API schemas must declare explicit types for every parameter.
- OData reads (feature 006, ADR 0028):
$orderbyfields are allowlisted per controller and heavy or private properties (notecontent,ruleText) are blocked from$filter. Widen either deliberately, with a test. - All OData reads go through
IOwnerReadSeam, which scopes byOwnerId. The API never touches Mongo directly. - String
$filterterms must betolower()over a lowercase literal; anything else is rejected with 400. - Derived stored fields (
disposition_rank,company_name,has_*flags, milestones) are written only at the repository choke point. Never bypass it; after changing a derived field runreconcile-read-models. - The MCP server Claude uses is a published build (
dist/mcp*, seedocs/mcp-clients.md), not the working tree. A change to a derived field, a repository write path or a tool schema does nothing for rows Claude adds until the owner republishes it; a stale build writes rows without the new fields and the Insights page then shows "needs a one-time backfill". When a change touches any of these, the hand-off must say, in its own lines: republish the MCP build, restart Claude desktop, then runreconcile-read-models(owner only). Never publish into or editdist/yourself.
Constitution (full text: .specify/memory/constitution.md)
I Privacy first, no real data anywhere. II Tests first; isolated containers only. III Architecture tests enforce layering and decorators. IV Named seams only (no generic repository, mediator or event bus without an ADR). V Treat posting text as untrusted; narrow audited tools. VI stdout hygiene in the stdio host. VII Durable data; destructive scripts need confirmation; backups encrypted. VIII ADRs for decisions; pin every package and image tag. IX .NET 10, nullable, warnings as errors, UTC, UUIDv7, owner_id on every collection. X Standards first: check for an RFC, platform feature or maintained library before building a mechanism; a hand-rolled one needs an ADR.
Specs
Read only specs/<current feature> as resolved from the branch name. Specs 001 to 004 are shipped; ignore them. Never read the whole specs/ tree.
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
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.

