monica-application-project-unit-development
Skill13 starsChanged 7 months agoMITView on GitHub
Create or refactor Monica application ProjectUnits, including requests, handlers, domain services, entities, repositories, events, options, and jobs. Use with the chosen microservice or modular-monolith architecture skill.
In this repository100 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- code-simplifierSkill
- microsoft-code-referenceSkill
- microsoft-docsSkill
- microsoft-skill-creatorSkill
- monica-application-microserviceSkill
- monica-application-modular-monolithSkill
- monica-applicationSkill
- monica-application-unit-testingSkill
- monica-architectureSkill
- 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-ui-auditSkill
- monica-ui-bridge-debugSkill
- monica-ui-designSkill
- monica-ui-developmentSkill
- monica-ui-localizationSkill
- monica-unit-testingSkill
- planning-with-filesSkill
- playwright-cliSkill
- code-simplifierSkill
- microsoft-code-referenceSkill
- microsoft-docsSkill
- microsoft-skill-creatorSkill
- monica-application-microserviceSkill
- monica-application-modular-monolithSkill
- monica-application-project-unit-developmentSkill
- monica-applicationSkill
- monica-application-unit-testingSkill
- monica-architectureSkill
- 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
- The first 60 shown.
The file
Show its rules and text
We split this skill 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
- Very specific: line 10
Use this skill for unit-level application development in Monica-based DDD projects.
- Very specific: line 18
Use Monica-native base classes and interfaces only.
- Very specific: line 19
Follow the naming, placement, and boundary rules in 01-project-unit-naming-and-boundaries.md.
- Very specific: line 20
Keep persistence concerns in repositories and persistence classes, not in request handlers.
- Very specific: line 21
Keep repository implementations in the owning subdomain or service infrastructure boundary.
- Distinctive: line 22
Keep contracts stable: requests, DTOs, and events are not persistence entities.
- Very specific: line 23
Add explicit [ProjectUnitMetadata] and one or more [ProjectUnitRequirement] annotations to every discovered unit.
- Distinctive: line 24
Treat missing metadata, description, ownership, and requirement references as four independent catalog debts.
- Very specific: line 25
If a handler returns Res<string>, use Res.Ok<string>(value) instead of Res.Ok(value) to avoid the non-generic string overload.
- Very specific: line 28
Put [assembly: WebApiGenerationConfig(...)] in each assembly that owns attributed requests.
- Very specific: line 29
Do not add MVC [Http*], [Route], or [From*] attributes to generated ApplicationService endpoints.
- Very specific: line 30
Use ApplicationService only for HTTP-exposed mediator handlers.
- Very specific: line 50
Use monica-application-microservice to decide service splits, published-language layout, and migration project boundaries.
- Very specific: line 51
Use monica-application-modular-monolith to decide module splits, host composition, and cross-module contracts.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill 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 Application ProjectUnit Development
Overview
Use this skill for unit-level application development in Monica-based DDD projects. It defines the common ProjectUnit language shared by both monica-application-microservice and monica-application-modular-monolith.
Workflow
Choose the owning subdomain and project with $monica-application-microservice or $monica-application-modular-monolith. Use unit overview and composition map when the feature's units are unclear; load only the matching unit example below. Keep rich entity behavior in the domain and orchestration in handlers.
Ground Rules
- Use Monica-native base classes and interfaces only. Do not introduce
Our*wrappers or FIPS-specific conventions. - Follow the naming, placement, and boundary rules in 01-project-unit-naming-and-boundaries.md. These rules are aligned with the current
Monica.ProjectUnitsdiscovery behavior. - Keep persistence concerns in repositories and persistence classes, not in request handlers. Use
$monica-infra-persistencefor the current operation, transaction, and provider contracts. - Keep repository implementations in the owning subdomain or service infrastructure boundary. Do not move a repository or adapter to
Platformjust because it uses an external library; only project-common reusable infrastructure belongs inPlatform. - Keep contracts stable: requests, DTOs, and events are not persistence entities.
- Add explicit
[ProjectUnitMetadata]and one or more[ProjectUnitRequirement]annotations to every discovered unit. Do not rely on metadata inherited from a base class. - Treat missing metadata, description, ownership, and requirement references as four independent catalog debts. Do not collapse them into one readiness score.
- If a handler returns
Res<string>, useRes.Ok<string>(value)instead ofRes.Ok(value)to avoid the non-generic string overload. - Make HTTP contracts request-owned. Put
[ApiEndpoint]on the request type and keep route, verb, binding, and optional operation name off theApplicationServicehandler. - A request is published for generated RPC clients only when it is attributed source in the exact namespace
*.PublishedLanguages.Domain{DomainName}.Requests. Attributed requests outside that boundary remain local HTTP endpoints. - Put
[assembly: WebApiGenerationConfig(...)]in each assembly that owns attributed requests. Protocol assemblies select the requiredRpcClientTargets; local-only assemblies normally useNone. - Do not add MVC
[Http*],[Route], or[From*]attributes to generatedApplicationServiceendpoints. The request contract is the single endpoint authority. - Use
ApplicationServiceonly for HTTP-exposed mediator handlers. If a request is intentionally internal and must have no HTTP endpoint, implementIRequestHandler<TRequest, TResult>as a normal transient dependency instead of omitting[ApiEndpoint]from anApplicationService. - For capability setup and runtime behavior, use
$monica-infra-configuration,$monica-infra-jobs,$monica-infra-messaging, and$monica-infra-webas applicable. This skill owns the application unit's shape and placement.
Reference Navigation
- Unit catalog and responsibilities: 00-project-unit-overview.md
- Naming, placement, and boundary rules: 01-project-unit-naming-and-boundaries.md
- Unit selection by feature shape: 02-project-unit-composition-map.md
- Metadata, ownership, and requirement traceability: 03-project-unit-context-metadata.md
ApplicationServicetemplates: 10-application-service-template.mdDomainServicetemplates: 11-domain-service-template.md- Entity, request, and event templates: 12-entity-request-event-template.md
- Repository and DbContext templates: 13-repository-and-persistence-template.md
- Event handler templates: 14-event-handler-template.md
- Job templates: 15-job-template.md
- Configuration templates: 16-configuration-template.md
Scope Notes
- This skill is architecture-agnostic. It explains unit design, not solution topology.
- Use
monica-application-microserviceto decide service splits, published-language layout, and migration project boundaries. - Use
monica-application-modular-monolithto decide module splits, host composition, and cross-module contracts.
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.

