PMCRO Cognitive Architecture Project Generator v2
Generates a complete, production-ready .NET 10 Aspire PMCRO project from three parameters.
Input Contract
| Parameter |
Example |
Description |
CompanyName |
Tooensure |
PascalCase company — becomes namespace root + folder prefix |
ProjectName |
CogArch |
PascalCase project — combined as CompanyName.ProjectName everywhere |
SeedIntent |
"Develop PMCR-O Cognitive Architecture" |
Injected into InitFrame, TRAIN-000, SKILL.md files, Directory.Build.props |
If any are missing, ask before generating.
Generation Workflow
- Confirm all three parameters.
- Run
scripts/generate_project.py --company X --name Y --intent Z --output /path/
- Script produces
CompanyName.ProjectName.zip.
- Present the ZIP via
present_files.
python3 /path/to/pmcro-v2/scripts/generate_project.py \
--company "CompanyName" \
--name "ProjectName" \
--intent "SeedIntent" \
--output /mnt/user-data/outputs/
What Gets Generated
See references/project-structure.md for the complete file tree.
Architecture
External REST (HTTP)
│
▼
OrchestrationApi (:8080)
│
│ gRPC (internal)
▼
OrchestratorService (:7075)
│ │ │ │
│ │ │ └─► ReflectorService (:7074) [gRPC]
│ │ └──────► CheckerService (:7073) [gRPC]
│ └───────────► MakerService (:7072) [gRPC]
└────────────────► PlannerService (:7071) [gRPC]
│
MCP Actuators (HTTP)
├── Mcp.FileSystem (:7221)
├── Mcp.Playwright (:7273)
└── Mcp.Git (:7222)
Key Pillars
Infrastructure:
Directory.Build.props — net10.0, C# latest, ArtifactsPath, SeedIntent MSBuild property
Directory.Build.targets — SKILL.md → output copy + VerifyPmcroIdentity target
Directory.Packages.props — Central Package Management (ALL versions, no Version= in csproj)
.template.config/template.json — dotnet new pmcro -company X -name Y -intent Z
AppHost (Aspire):
- All services + MCPs registered with named endpoints
- WaitFor chains: phase agents wait for MCPs; Orchestrator waits for all phases; Api waits for Orchestrator
WithEnvironment("SeedIntent", ...) injected into every service
Phase Services (gRPC internal, MAF):
CompanyName.ProjectName.Contracts — shared .proto files + generated stubs
PlannerService, MakerService, CheckerService, ReflectorService — each with SKILL.md + gRPC impl
OrchestratorService — governs the loop, issues EXTEND/ACCEPT/ESCALATE/LOOP/INTERRUPT verdicts
OrchestrationApi — sole external REST surface, minimal controller, maps to OrchestratorService gRPC
MCP Actuators (3-pillar: Tools + Resources + Prompts):
Mcp.FileSystem — TYPE 1 write + TYPE 2 read, full LocalFileSystemService, path sandboxing
Mcp.Playwright — browser automation, snapshot_page, browser_click, browser_type
Mcp.Git — git read (TYPE 2) + write (TYPE 1) operations
Shared Libraries:
CompanyName.ProjectName.Core — domain entities, EF DbContext, trail records
CompanyName.ProjectName.AI — SovereignInference, SovereignSkillsProvider
CompanyName.ProjectName.ServiceDefaults — OpenTelemetry, health checks, service discovery
Laws (Never Violate)
- NEVER add
Version= to any <PackageReference> — all versions in Directory.Packages.props
- NEVER hardcode CompanyName or ProjectName — template tokens replace everything
- NEVER add gRPC to an MCP project — MCPs are actuators, not phase agents
- NEVER add Microsoft.Agents.AI to an MCP project
- ALWAYS include SKILL.md in every project with
I AM declaration
- ALWAYS use
WithToolsFromAssembly() / WithResourcesFromAssembly() / WithPromptsFromAssembly()
- ALWAYS classify MCP tools as TYPE 1 (Orchestrator-only write) or TYPE 2 (any cognitive service read)
- ALWAYS use
Stateless = true on HTTP MCP transport
1---
2name: pmcro-project-generator
3description: >
4 Generates a complete, production-ready PMCR-O Cognitive Architecture .NET 10 Aspire project
5 as a downloadable ZIP file. The generated project follows the real PMCRO substrate pattern:
6 Aspire AppHost, gRPC-internal / REST-external hybrid, Microsoft Agent Framework (MAF) phase
7 services (Planner, Maker, Checker, Reflector, OrchestratorService, OrchestrationApi),
8 MCP actuators with three pillars (Tools + Resources + Prompts), Central Package Management,
9 Directory.Build.props/targets, SKILL.md per service, and SeedIntent injection.
10 Use this skill whenever a user provides a CompanyName, ProjectName, and SeedIntent and wants
11 to scaffold a full PMCRO project. Triggers on: "generate PMCRO project", "scaffold cognitive
12 architecture", "new PMCRO project", "generate project zip", "dotnet new pmcro", or any
13 combination of intent + project name implying a PMCRO scaffold is desired.
14compatibility: .NET 10 | C# 14 | Aspire 13.x | MAF 1.0.0-rc2 | MCP 1.2.0 | gRPC | Docker
15metadata:
16 source: https://skillmd.com/skills/aibot88/pmcro-project-generator
17---
18
19# PMCRO Cognitive Architecture Project Generator v2
20
21Generates a **complete, production-ready** .NET 10 Aspire PMCRO project from three parameters.
22
23## Input Contract
24
25| Parameter | Example | Description |
26|-----------|---------|-------------|
27| `CompanyName` | `Tooensure` | PascalCase company — becomes namespace root + folder prefix |
28| `ProjectName` | `CogArch` | PascalCase project — combined as `CompanyName.ProjectName` everywhere |
29| `SeedIntent` | `"Develop PMCR-O Cognitive Architecture"` | Injected into InitFrame, TRAIN-000, SKILL.md files, Directory.Build.props |
30
31If any are missing, ask before generating.
32
33---
34
35## Generation Workflow
36
371. Confirm all three parameters.
382. Run `scripts/generate_project.py --company X --name Y --intent Z --output /path/`
393. Script produces `CompanyName.ProjectName.zip`.
404. Present the ZIP via `present_files`.
41
42```bash
43python3 /path/to/pmcro-v2/scripts/generate_project.py \
44 --company "CompanyName" \
45 --name "ProjectName" \
46 --intent "SeedIntent" \
47 --output /mnt/user-data/outputs/
48```
49
50---
51
52## What Gets Generated
53
54See `references/project-structure.md` for the complete file tree.
55
56### Architecture
57
58```
59External REST (HTTP)
60 │
61 ▼
62OrchestrationApi (:8080)
63 │
64 │ gRPC (internal)
65 ▼
66OrchestratorService (:7075)
67 │ │ │ │
68 │ │ │ └─► ReflectorService (:7074) [gRPC]
69 │ │ └──────► CheckerService (:7073) [gRPC]
70 │ └───────────► MakerService (:7072) [gRPC]
71 └────────────────► PlannerService (:7071) [gRPC]
72 │
73 MCP Actuators (HTTP)
74 ├── Mcp.FileSystem (:7221)
75 ├── Mcp.Playwright (:7273)
76 └── Mcp.Git (:7222)
77```
78
79### Key Pillars
80
81**Infrastructure:**
82- `Directory.Build.props` — net10.0, C# latest, ArtifactsPath, SeedIntent MSBuild property
83- `Directory.Build.targets` — SKILL.md → output copy + VerifyPmcroIdentity target
84- `Directory.Packages.props` — Central Package Management (ALL versions, no Version= in csproj)
85- `.template.config/template.json` — `dotnet new pmcro -company X -name Y -intent Z`
86
87**AppHost (Aspire):**
88- All services + MCPs registered with named endpoints
89- WaitFor chains: phase agents wait for MCPs; Orchestrator waits for all phases; Api waits for Orchestrator
90- `WithEnvironment("SeedIntent", ...)` injected into every service
91
92**Phase Services (gRPC internal, MAF):**
93- `CompanyName.ProjectName.Contracts` — shared `.proto` files + generated stubs
94- `PlannerService`, `MakerService`, `CheckerService`, `ReflectorService` — each with SKILL.md + gRPC impl
95- `OrchestratorService` — governs the loop, issues EXTEND/ACCEPT/ESCALATE/LOOP/INTERRUPT verdicts
96- `OrchestrationApi` — sole external REST surface, minimal controller, maps to OrchestratorService gRPC
97
98**MCP Actuators (3-pillar: Tools + Resources + Prompts):**
99- `Mcp.FileSystem` — TYPE 1 write + TYPE 2 read, full `LocalFileSystemService`, path sandboxing
100- `Mcp.Playwright` — browser automation, `snapshot_page`, `browser_click`, `browser_type`
101- `Mcp.Git` — git read (TYPE 2) + write (TYPE 1) operations
102
103**Shared Libraries:**
104- `CompanyName.ProjectName.Core` — domain entities, EF DbContext, trail records
105- `CompanyName.ProjectName.AI` — `SovereignInference`, `SovereignSkillsProvider`
106- `CompanyName.ProjectName.ServiceDefaults` — OpenTelemetry, health checks, service discovery
107
108---
109
110## Laws (Never Violate)
111
112- NEVER add `Version=` to any `<PackageReference>` — all versions in `Directory.Packages.props`
113- NEVER hardcode CompanyName or ProjectName — template tokens replace everything
114- NEVER add gRPC to an MCP project — MCPs are actuators, not phase agents
115- NEVER add Microsoft.Agents.AI to an MCP project
116- ALWAYS include SKILL.md in every project with `I AM` declaration
117- ALWAYS use `WithToolsFromAssembly()` / `WithResourcesFromAssembly()` / `WithPromptsFromAssembly()`
118- ALWAYS classify MCP tools as TYPE 1 (Orchestrator-only write) or TYPE 2 (any cognitive service read)
119- ALWAYS use `Stateless = true` on HTTP MCP transport