agentleFS
mwalczyk81mwalczyk81/roleradar/AGENTS.md

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

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

    Use the fast loop while working.

    line 20
  2. Very specific:

    Never run anything against the developer's running Mongo, docker compose down -v, wipe, or restore --force-overwrite.

    line 22
  3. Very specific:

    Every action: call validateCsrfToken(...) (timing-safe), use data() with typed action data, never hand-built JSON responses.

    line 31
  4. Very specific:

    Treat all posting, company and application text as untrusted: React text nodes only, links only for http/https with rel="noopener …

    line 32
  5. Very specific:

    Verify with: pnpm --filter web run typecheck, lint, test, build, test:e2e, then pwsh ./scripts/test-fast.ps1, pre-commit run --all-files, …

    line 36
  6. Very specific:

    Never read or print secrets (web/.env.local, deploy/.env).

    line 37
  7. Distinctive:

    Never commit or push. Leave changes in the working tree for review.

    line 43
  8. Very specific:

    Never touch bin/, obj/, dist/.

    line 44
  9. Very specific:

    Prefer an existing tool or GitHub Action to a new custom script.

    line 45
  10. Very specific:

    Write every file with LF line endings (.gitattributes and .editorconfig say so.

    line 46
  11. Very specific:

    Every ICommandHandler is wrapped by TransactionCommandDecorator.

    line 48
  12. Distinctive:

    No hard-delete tools or endpoints.

    line 49
  13. Very specific:

    All OData reads go through IOwnerReadSeam, which scopes by OwnerId.

    line 54
  14. Very specific:

    Read only specs/<current feature> as resolved from the branch name.

    line 65

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

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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.sh from 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-stack and scan for the other heavy lanes); scripts and CI select by --filter "Lane=...", never by class-name fragments, and TestLaneCoverageTests fails for a class without a lane (ADR 0036). review-gate.ps1 scans the images it builds with the pinned Trivy and runs the scan test with ROLERADAR_REQUIRE_SCAN=1; a plain dotnet test skips the scan test with its reason when no reports exist.
  • Never run anything against the developer's running Mongo, docker compose down -v, wipe, or restore --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 through EnumContractRegistry; take the type from the generated types and hand-write only labels, tones and order (web/app/lib/enum-order.ts makes 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 to EnumContractRegistry or its allowlist with a reason, or EnumContractRegistryTests fails. Regenerate with dotnet build src/RoleRadar.Api then npx --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 through web/app/ui.ts. Do not edit web/app/ds.
  • No any, no casts to silence types; use type guards. pnpm --filter web run typecheck must exit 0 and runs in CI.
  • Every action: call validateCsrfToken(...) (timing-safe), use data() with typed action data, never hand-built JSON responses. Use assertApiOk for 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.ts for nav items, dispositions.ts and company-enums.ts for enums. Do not copy their logic into routes.
  • List pages read through OData (/odata/<Set>) with the typed odata-client builder and loadODataList; 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 clamp limit to 1..100 and offset to >= 0.
  • Tests first and shown failing before the implementation. Axe checks use the shared reduced-motion helper in web/tests/e2e so 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, then pwsh ./scripts/test-fast.ps1, pre-commit run --all-files, and pwsh ./scripts/review-gate.ps1 at 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 (.gitattributes and .editorconfig say so; only *.cmd and *.bat use 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 ICommandHandler is wrapped by TransactionCommandDecorator.
  • No hard-delete tools or endpoints. Every write records an append-only audit entry.
  • stdout in Mcp.Stdio is reserved for MCP frames; log to stderr.
  • Owner ids come from OwnerId only; no string literals elsewhere.
  • Tool and API schemas must declare explicit types for every parameter.
  • OData reads (feature 006, ADR 0028): $orderby fields are allowlisted per controller and heavy or private properties (note content, ruleText) are blocked from $filter. Widen either deliberately, with a test.
  • All OData reads go through IOwnerReadSeam, which scopes by OwnerId. The API never touches Mongo directly.
  • String $filter terms must be tolower() 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 run reconcile-read-models.
  • The MCP server Claude uses is a published build (dist/mcp*, see docs/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 run reconcile-read-models (owner only). Never publish into or edit dist/ 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.

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.