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:
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,337 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 repository34 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- monica-application-building-block-developmentSkill
- monica-application-microserviceSkill
- monica-application-modular-monolithSkill
- monica-applicationSkill
- monica-application-ui-developmentSkill
- monica-application-uiSkill
- monica-application-unit-testingSkill
- monica-architectureSkill
- monica-coding-standardsSkill
- monica-contributionSkill
- monica-developmentSkill
- monica-docs-authoringSkill
- monica-frameworkSkill
- monica-guideSkill
- monica-infra-aiSkill
- monica-infra-configurationSkill
- monica-infra-hostingSkill
- monica-infra-jobsSkill
- monica-infra-messagingSkill
- monica-infra-observabilitySkill
- monica-infra-persistenceSkill
- monica-infra-uiSkill
- monica-infra-webSkill
- monica-opentelemetrySkill
- monica-requirement-designSkill
- monica-third-party-module-developmentSkill
- monica-troubleshootingSkill
- monica-ui-auditSkill
- monica-ui-bridge-debugSkill
- monica-ui-designSkill
- monica-ui-developmentSkill
- monica-ui-localizationSkill
- monica-unit-testingSkill
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
- Distinctive: line 8
Prefer clear boundaries and behavior on the types that own it.
- Distinctive: line 10
Document public and developer-facing contracts, including meaningful option defaults, registration prerequisites, and lifecycle/ownership …
- Distinctive: line 11
Read CONTRIBUTING.md before committing or preparing a release.
- Distinctive: line 12
Follow the public repository publishing checks before uploading branches or tags.
- Very specific: line 39
Use pwsh in place of powershell where appropriate.
- Very specific: line 41
Avoid concurrent build/test processes that share dependencies or output paths.
- Very specific: line 42
Run or add UI rendering tests only on explicit user request.
- Distinctive: line 48
Before completing a skill change, run the Agent Skill checks, including the installed-profile link test.
- Very specific: line 49
When implementation changes public behavior or yields verified reusable guidance, update the owning task reference, its routing when …
- Very specific: line 50
Run python scripts/check_knowledge_impact.py --base <base-ref> for infrastructure changes.
≈ “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
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.
| Work | Skill |
| Framework implementation and module boundaries | monica-framework, then monica-development or monica-architecture |
| Consuming infrastructure in an application | monica-application and the matching monica-infra-* skill |
| Blazor components, themes, or user-facing strings | monica-ui-development; also monica-ui-localization when text or resources change |
| Framework tests and shared test infrastructure | monica-unit-testing |
| Canonical skills, public guidance, or documentation ownership | monica-docs-authoring |
| Guide engine, setup, or release contracts | monica-guide; engine changes use its framework-development reference |
| Coding standards, code review, and focused simplification | monica-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
pwshin place ofpowershellwhere appropriate. Do not rundotnet 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
NoWarnor other suppressions unless explicitly required by the user. The advisory-specificNuGetAuditSuppressentries 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; theirskills/subdirectories are generated projections. Regenerate withpython scripts/sync_agent_skills.py --writeafter 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-authoringfor 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.jsonowns 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.
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.

