agentleFS
TairitsuaTairitsua/Monica/AGENTS.md

Monica

AGENTS.md18 starsChanged 7 months agoMITView on GitHub

Monica is modular .NET infrastructure for agent-driven development. Monica.slnx is the solution; do not introduce Monica.sln. Load the skills relevant to the current work; details belong there rather than in this file. For exact dependency behavior, use inspect-dependency-source when available and resolve the version actually in use. For uncertain Microsoft APIs, use microsoft-docs or microsoft-code-reference with official sources. Read dependency versions from project/package metadata instead of copying them into these instructions. For code changes, use the standard gate:

The file

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

10 rules. About 0 are common, 5 are distinctive, and 5 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.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Prefer clear boundaries and behavior on the types that own it.

    line 8
  2. Distinctive:

    Document public and developer-facing contracts, including meaningful option defaults, registration prerequisites, and lifecycle/ownership …

    line 10
  3. Distinctive:

    Read CONTRIBUTING.md before committing or preparing a release.

    line 11
  4. Distinctive:

    Follow the public repository publishing checks before uploading branches or tags.

    line 12
  5. Very specific:

    Use pwsh in place of powershell where appropriate.

    line 39
  6. Very specific:

    Avoid concurrent build/test processes that share dependencies or output paths.

    line 41
  7. Very specific:

    Run or add UI rendering tests only on explicit user request.

    line 42
  8. Distinctive:

    Before completing a skill change, run the Agent Skill checks, including the installed-profile link test.

    line 48
  9. Very specific:

    When implementation changes public behavior or yields verified reusable guidance, update the owning task reference, its routing when …

    line 49
  10. Very specific:

    Run python scripts/check_knowledge_impact.py --base <base-ref> for infrastructure changes.

    line 50

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

Monica

Monica is modular .NET infrastructure for agent-driven development. Monica.slnx is the solution; do not introduce Monica.sln.

Working rules

  • Code comments and XML documentation in this repository are also English; sibling and consumer repositories own their own conventions.
  • Prefer clear boundaries and behavior on the types that own it. Simplify the design instead of accumulating workarounds. Breaking changes are allowed unless the task requires compatibility; keep refactoring within the requested scope.
  • Apply the Monica coding standards when designing, implementing, reviewing, or simplifying framework code. Breaking changes are allowed unless the task requires compatibility; keep refactoring within the requested scope.
  • Document public and developer-facing contracts, including meaningful option defaults, registration prerequisites, and lifecycle/ownership constraints. Use the C# contracts when changing C# APIs.
  • Read CONTRIBUTING.md before committing or preparing a release; follow its Conventional Commit policy.
  • Follow the public repository publishing checks before uploading branches or tags.

Task routing

Load the skills relevant to the current work; details belong there rather than in this file.

WorkSkill
Framework implementation and module boundariesmonica-framework, then monica-development or monica-architecture
Consuming infrastructure in an applicationmonica-application and the matching monica-infra-* skill
Blazor components, themes, or user-facing stringsmonica-ui-development; also monica-ui-localization when text or resources change
Framework tests and shared test infrastructuremonica-unit-testing
Canonical skills, public guidance, or documentation ownershipmonica-docs-authoring
Guide engine, setup, or release contractsmonica-guide; engine changes use its framework-development reference
Coding standards, code review, and focused simplificationmonica-coding-standards; module-boundary redesign uses monica-architecture

For exact dependency behavior, use inspect-dependency-source when available and resolve the version actually in use. For uncertain Microsoft APIs, use microsoft-docs or microsoft-code-reference with official sources. Read dependency versions from project/package metadata instead of copying them into these instructions.

Verification

For code changes, use the standard gate:

dotnet build Monica.slnx -m -c Release
powershell -File scripts/run-tests.ps1 -NoBuild
  • Use pwsh in place of powershell where appropriate. Do not run dotnet test Monica.slnx; use the runner or the affected test project.
  • Monica builds must have zero warnings. This requirement applies only to this Monica repository; sibling and consumer repositories own their verification rules. Resolve warnings rather than suppressing them with NoWarn or other suppressions unless explicitly required by the user. The advisory-specific NuGetAuditSuppress entries in Monica.Office.csproj are approved exceptions.
  • Avoid concurrent build/test processes that share dependencies or output paths. Use MSBuild parallelism inside one build with -m.
  • Run or add UI rendering tests only on explicit user request. Use browser smoke checks for UI changes. Requested UI tests protect behavior contracts, not layout, CSS classes, localized-key presence, or visual composition; details are in monica-unit-testing.
  • For skill or documentation changes, run their validators described in CONTRIBUTING.md; do not run unrelated UI tests.

Knowledge ownership

  • Edit Monica skills only in skills/<name>/. .agents/ and .claude/ are ignored local agent state; their skills/ subdirectories are generated projections. Regenerate with python scripts/sync_agent_skills.py --write after cloning or changing skills, and never commit either root, including during merges or synchronization.
  • Before completing a skill change, run the Agent Skill checks, including the installed-profile link test. Run them again on the integrated tree after merging Skill changes.
  • When implementation changes public behavior or yields verified reusable guidance, update the owning task reference, its routing when needed, and the relevant example or behavioral check in the same change. Follow monica-docs-authoring for topic boundaries; replace obsolete guidance rather than appending session notes.
  • Run python scripts/check_knowledge_impact.py --base <base-ref> for infrastructure changes. If guidance is unaffected, pass --no-impact "<concrete reason>" and record that rationale in the PR's Knowledge impact section.
  • The catalog at .monica/agent-skill-catalog.json owns skill routing, source ownership, and release projections. Monica.Docs owns stable editorial guides and renders published skills; do not create parallel module manuals here.

Maintaining instructions

Keep this file limited to stable repository-wide rules and task routing. Put implementation procedures in the owning skill, contributor/release workflows in CONTRIBUTING.md, and machine-specific setup in personal skills or user-level instructions. Dates, incident narratives, test counts, timings, and migration status belong in change history or memory. Update the existing owner instead of duplicating a rule. CLAUDE.md imports this file.

Standalone Guide ownership

The Guide engine and client live in the sibling private ../Monica.Guide repository. This repository publishes Framework code and skills-only bundles with scripts/build_framework_bundle.py; it does not build or distribute a Guide executable. Guide implementation fixes belong in its repository.

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.