Skip to content
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
cb5b280
Add aspire-init-typescript and aspire-init-csharp skills
maddymontaquila Apr 6, 2026
4fd6956
Register aspire-init skills in CLI infrastructure
maddymontaquila Apr 6, 2026
5094840
Gut InitCommand into skill-driven skeleton launcher
maddymontaquila Apr 6, 2026
670a322
Merge init skills into single unified aspire-init skill
maddymontaquila Apr 6, 2026
0353f29
Enhance init skill: docker-compose parsing, certs as troubleshooting
maddymontaquila Apr 7, 2026
3177984
Add comprehensive AppHost wiring reference to init skill
maddymontaquila Apr 7, 2026
6099136
Add guiding principles: minimize user code changes, surface tradeoffs
maddymontaquila Apr 7, 2026
50680af
Focus init skill on local dev, surface external service dependencies
maddymontaquila Apr 7, 2026
58db00e
Add .env file migration guidance to init skill
maddymontaquila Apr 7, 2026
ce6116a
Add aspirify-eval playground apps for init skill benchmarking
maddymontaquila Apr 7, 2026
ab440b1
Flesh out eval app READMEs with full before-state docs
maddymontaquila Apr 7, 2026
7d7da27
Move eval rubric out of app dirs so agents can't cheat
maddymontaquila Apr 7, 2026
2cee73d
Update aspire-init skill based on eval findings
maddymontaquila Apr 7, 2026
64eff44
Add tiered integration preference to aspire-init skill
maddymontaquila Apr 7, 2026
5ef224a
Replace AddProject with AddCsharpApp, preserve .env files, strengthen…
maddymontaquila Apr 7, 2026
9c71ba6
Use aspire run for TS scripts, be package-manager agnostic
maddymontaquila Apr 7, 2026
efcedf6
Fix dev.localhost value prop, replace AddNpmApp, add CLI validation, …
maddymontaquila Apr 7, 2026
6e8b0e2
Prefer HTTPS over HTTP, add WithHttpsDeveloperCertificate guidance
maddymontaquila Apr 7, 2026
1462ebb
Update src/Aspire.Cli/Agents/SkillDefinition.cs
maddymontaquila Apr 7, 2026
c584bb1
Fix AddCSharpApp casing (capital S, capital H)
maddymontaquila Apr 7, 2026
93cecec
Note aspire list integrations requires MCP server
maddymontaquila Apr 7, 2026
0d6331d
Emphasize iterate until aspire start works without errors
maddymontaquila Apr 7, 2026
3928b19
Fix aspire init writing 'already exists' on fresh repos
maddymontaquila Apr 7, 2026
2b622f5
Improve skill based on excalidraw real-world test
maddymontaquila Apr 7, 2026
b5d173b
Fix init flow, profiles, ASPNETCORE_URLS, and CI issues
maddymontaquila Apr 7, 2026
89fb461
Add Step 2 smoke test: verify skeleton boots before wiring
maddymontaquila Apr 7, 2026
3165e26
Fix dev.localhost guidance: use aspire.config.json profiles, not with…
maddymontaquila Apr 7, 2026
9ebfdef
Fix aspire.config.json message: always say 'Created' during init
maddymontaquila Apr 7, 2026
cf4a676
Improve init closing message with one-shot agent commands
maddymontaquila Apr 7, 2026
003af46
Add summary output to skill validation step
maddymontaquila Apr 7, 2026
a10cced
Leave AppHost running after init completes
maddymontaquila Apr 7, 2026
fcb5e09
Strengthen withUrlForEndpoint and hardcoded URL prohibitions in skill
maddymontaquila Apr 7, 2026
b313c8d
Fix init skill follow-up commands
maddymontaquila Apr 7, 2026
7d63fe0
Strengthen init skill port guidance
maddymontaquila Apr 7, 2026
c693ab7
Clarify mixed SDK AppHost guidance
maddymontaquila Apr 7, 2026
e332ba9
Fix solution-aware init scaffold
maddymontaquila Apr 7, 2026
d1d239c
Modularize init solution guidance
maddymontaquila Apr 7, 2026
af2381f
Clarify init validation states
maddymontaquila Apr 7, 2026
3749481
Improve aspire-init skill for large/complex repos
maddymontaquila Apr 8, 2026
bab9105
Add critical rules: no workloads, no SDK changes, no TFM changes
maddymontaquila Apr 8, 2026
de34384
Clarify config files per AppHost mode, fix ServiceDefaults placement
maddymontaquila Apr 8, 2026
06a0c2c
Fix issues from bitwarden eval run
maddymontaquila Apr 8, 2026
966377b
Use aspire-apphost template for full-solution init
maddymontaquila Apr 8, 2026
7c58b65
Make core loop expansion explicit — don't stop early
maddymontaquila Apr 8, 2026
4dbde16
Add Redis auto-TLS, stable SDK, and ServiceDefaults dedup guidance
maddymontaquila Apr 9, 2026
e98cb15
Optimize aspire-init skill: deduplicate, split references, trim
maddymontaquila Apr 10, 2026
b0c9c24
Merge branch 'main' into spike/skill-driven-init
maddymontaquila Apr 10, 2026
1e04e6e
Fix bad merge: remove stale code and restore fallback defaults
maddymontaquila Apr 10, 2026
31c864e
Warn about stale persistent volumes causing auth failures
maddymontaquila Apr 10, 2026
f63c8ad
aspire-init skill: add doctor prereq, WithArgs secret warning, OTel v…
maddymontaquila Apr 13, 2026
ac0492e
aspire-init skill: add monorepo guidance for .withYarn() file locking
maddymontaquila Apr 13, 2026
f67a2bd
Merge remote-tracking branch 'origin/main' into spike/skill-driven-init
maddymontaquila Apr 13, 2026
ba552df
Fix InitCommand build: use AgentInitExecutionResult.ExitCode
maddymontaquila Apr 13, 2026
f2fd169
Rename aspire-init skill to aspireify
maddymontaquila Apr 23, 2026
5857155
Merge remote-tracking branch 'origin/main' into spike/skill-driven-init
maddymontaquila Apr 23, 2026
ccf047b
Rename playground/aspirify-eval to aspireify-eval to match skill name
maddymontaquila Apr 27, 2026
6fab67e
Address PR feedback on aspire init / aspireify skill
maddymontaquila Apr 27, 2026
65efd5a
Merge remote-tracking branch 'origin/main' into spike/skill-driven-init
maddymontaquila Apr 27, 2026
12e7afd
Fix and extend CLI tests for skill-driven init refactor
maddymontaquila Apr 27, 2026
a70dda6
Default-select aspireify skill in init prompt
maddymontaquila Apr 27, 2026
7ae799d
Merge remote-tracking branch 'origin/main' into spike/skill-driven-init
JamesNK Apr 28, 2026
48e4e01
Address PR feedback: install templates, trust certs, fix skill correc…
davidfowl Apr 28, 2026
74ac85a
Exclude aspireify-eval projects from CI build glob
davidfowl Apr 28, 2026
e3f671b
Fix init CI regressions
davidfowl Apr 29, 2026
67a7f6d
Address remaining init feedback
davidfowl Apr 29, 2026
0d29153
Hide deprecated init compatibility options
davidfowl Apr 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
892 changes: 892 additions & 0 deletions .agents/skills/aspire-init/SKILL.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .agents/skills/aspire/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Resources are typically defined in an AppHost such as, `AppHost.cs`, `apphost.ts
## Use this skill for

- Starting, restarting, and stopping AppHosts with `aspire start` and `aspire stop`
- Initializing Aspire in an existing app with `aspire init`
- Initializing Aspire in an existing app with `aspire init` (drops skeleton files; use the `aspire-init` skill to complete wiring)
- Inspecting resources, logs, traces, and docs
- Adding integrations with `aspire add`
- Recovering missing TypeScript AppHost support files with `aspire restore`
Expand Down
120 changes: 120 additions & 0 deletions playground/aspirify-eval/EVAL-RUBRIC.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
# Aspirify Eval Rubric

**Do NOT place this file inside the eval app directories** — it contains expected outcomes
that the agent should not be able to read during the eval.

## Scoring

Each criterion is pass/fail. A good aspirification should hit most of these.

---

## dotnet-traditional/ (C# AppHost, full project mode)

### Infrastructure (must-have)
- [ ] `aspire start` launches the app successfully
- [ ] Postgres runs as an Aspire-managed container
- [ ] Redis runs as an Aspire-managed container
- [ ] All services appear in the Aspire dashboard

### AppHost wiring
- [ ] Full project mode used (`.slnx` detected → creates `*.AppHost/` directory with `.csproj`)
- [ ] BoardApi modeled as `AddProject` with references to Postgres DB and Redis
- [ ] AdminDashboard modeled as `AddProject` with reference to Postgres DB
- [ ] MigrationRunner modeled as `AddProject` with reference to Postgres DB
- [ ] Frontend modeled (AddViteApp, AddNpmApp, or similar) with reference to BoardApi
- [ ] BoardData NOT modeled (it's a class library, not a runnable service)

### Dependency ordering
- [ ] MigrationRunner waits for Postgres (`WaitFor`)
- [ ] BoardApi waits for Postgres and Redis (`WaitFor`)
- [ ] BoardApi waits for MigrationRunner to complete (`WaitForCompletion`)
- [ ] AdminDashboard waits for Postgres (`WaitFor`)
- [ ] Frontend waits for BoardApi (`WaitFor`)

### ServiceDefaults
- [ ] ServiceDefaults project created (via `dotnet new aspire-servicedefaults`)
- [ ] ServiceDefaults added to solution
- [ ] BoardApi, AdminDashboard, and MigrationRunner reference ServiceDefaults
- [ ] `builder.AddServiceDefaults()` added to each .NET service's Program.cs
- [ ] `app.MapDefaultEndpoints()` added where applicable

### Secret & config migration
- [ ] `DATABASE_URL` replaced — Postgres connection managed by Aspire via `WithReference`
- [ ] `REDIS_URL` replaced — Redis connection managed by Aspire via `WithReference`
- [ ] `EXTERNAL_API_KEY` migrated to `AddParameter("external-api-key", secret: true)`
- [ ] `ADMIN_SECRET` migrated to `AddParameter("admin-secret", secret: true)`
- [ ] `FEATURE_ENABLE_NOTIFICATIONS` handled (either `WithEnvironment` or parameter)
- [ ] `.env` file no longer needed for running via Aspire

### Dev experience niceties (nice-to-have)
- [ ] Postgres container uses persistent lifetime
- [ ] Redis container uses persistent lifetime
- [ ] Data volumes configured for Postgres
- [ ] Frontend has `WithExternalHttpEndpoints()`
- [ ] User was asked about tradeoffs (e.g., renaming DATABASE_URL → ConnectionStrings:db)

### Observability
- [ ] OpenTelemetry wired for Vue frontend (or noted as not applicable for static frontend)
- [ ] .NET services get OTel via ServiceDefaults automatically

### Cleanup
- [ ] Init skill self-removed after completion
- [ ] Evergreen `aspire` skill confirmed present

---

## polyglot/ (TypeScript AppHost, single-file mode)

### Infrastructure (must-have)
- [ ] `aspire start` launches the app successfully
- [ ] Redis runs as an Aspire-managed container
- [ ] All services appear in the Aspire dashboard

### AppHost wiring
- [ ] Single-file `apphost.ts` used (no `.sln` → no project mode)
- [ ] `aspire.config.json` created at repo root
- [ ] api-weather modeled (AddPythonApp or similar) with Redis reference
- [ ] api-geo modeled (likely AddDockerfile or custom) with HTTP endpoint using `env: "PORT"`
- [ ] api-events modeled (AddProject for .csproj) with HTTP endpoint
- [ ] Frontend modeled (AddViteApp or AddNpmApp) with references to backend services
- [ ] Redis modeled as `addRedis` (typed integration, not raw container)

### Dependency ordering
- [ ] Backend services wait for Redis (`waitFor`)
- [ ] Frontend waits for backend services (`waitFor`)

### Secret & config migration
- [ ] `REDIS_URL` replaced — Redis managed by Aspire via `withReference`
- [ ] `GEOCODING_API_KEY` migrated to a secret parameter
- [ ] `WEATHER_API_KEY` migrated to a secret parameter
- [ ] `OPENAI_API_KEY` migrated to a secret parameter
- [ ] `.env` file no longer needed for running via Aspire

### Service communication
- [ ] Frontend gets backend URLs injected (not hardcoded localhost)
- [ ] Go service gets PORT injected via `withHttpEndpoint({ env: "PORT" })`
- [ ] Python service gets Redis connection via Aspire (not hardcoded host:port)
- [ ] User was asked about tradeoffs (e.g., frontend URL injection approach)

### Dev experience niceties (nice-to-have)
- [ ] Redis container uses persistent lifetime
- [ ] Data volume configured for Redis
- [ ] Frontend has `withExternalHttpEndpoints()`
- [ ] `*.dev.localhost` domains suggested or configured

### Observability
- [ ] OpenTelemetry suggested for Python service (fastapi + OTLP exporter)
- [ ] OpenTelemetry suggested for Go service (OTLP exporter)
- [ ] User was asked before modifying service code for OTel
- [ ] C# service gets OTel consideration (single project, may not need full ServiceDefaults)

### Package & config setup
- [ ] `package.json` at root configured for apphost (type: module, start script)
- [ ] `tsconfig.json` configured for apphost compilation
- [ ] `aspire restore` run successfully
- [ ] `npm install` run successfully

### Cleanup
- [ ] Init skill self-removed after completion
- [ ] Evergreen `aspire` skill confirmed present
28 changes: 28 additions & 0 deletions playground/aspirify-eval/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Aspirify Eval Apps

These are **pre-aspirification** playground apps used to evaluate the `aspire-init` skill.
They are intentionally NOT wired up with Aspire — the goal is to run `aspire init` on them
and have the agent use the `aspire-init` skill to fully aspirify them.

## Apps

### dotnet-traditional/

A traditional .NET solution with a JS frontend, similar to a real-world LOB app.
See its README for architecture and manual setup instructions.

### polyglot/

A polyglot microservices app with multiple languages, no solution file.
See its README for architecture and manual setup instructions.

## Eval process

1. `cd` into either app directory
2. Run `aspire init`
3. Let the agent execute the `aspire-init` skill
4. Score against the rubric in `EVAL-RUBRIC.md`

**Important**: The app READMEs only describe the "before" state (how to run manually).
The eval rubric is in this directory, NOT inside the app directories, so the agent
can't peek at the expected outcomes.
6 changes: 6 additions & 0 deletions playground/aspirify-eval/dotnet-traditional/BoardApp.slnx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<Solution>
<Project Path="src/BoardApi/BoardApi.csproj" />
<Project Path="src/AdminDashboard/AdminDashboard.csproj" />
<Project Path="src/MigrationRunner/MigrationRunner.csproj" />
<Project Path="src/BoardData/BoardData.csproj" />
</Solution>
107 changes: 107 additions & 0 deletions playground/aspirify-eval/dotnet-traditional/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
# BoardApp — .NET Traditional (Pre-Aspirification)

A traditional .NET LOB app with a Vue frontend. This app is **intentionally not aspirified** — it represents the "before" state for evaluating the `aspire-init` skill.

## Architecture

```

Check failure on line 7 in playground/aspirify-eval/dotnet-traditional/README.md

View workflow job for this annotation

GitHub Actions / lint

Fenced code blocks should have a language specified [Context: "```"]
frontend/ → Vue 3 + Vite (port 5173), proxies /api/* to BoardApi
src/BoardApi/ → ASP.NET minimal API (port 5220), EF Core + Postgres, Redis caching
src/AdminDashboard/→ Blazor Server (port 5230), shares DB with BoardApi
src/MigrationRunner/→ Worker service, runs EF Core migrations then exits
src/BoardData/ → Class library, shared EF Core DbContext + models
BoardApp.slnx → Solution file tying it all together
.env → All config: DB connection, Redis, API keys, secrets
```

## Dependencies

- [.NET 10 SDK](https://dotnet.microsoft.com/download)
- [Node.js 20+](https://nodejs.org/)
- PostgreSQL (localhost:5432)
- Redis (localhost:6379)

## Configuration

All config lives in `.env` at the repo root:

| Variable | Purpose | Secret? |
|----------|---------|---------|
| `DATABASE_URL` | Postgres connection string | Yes (contains password) |
| `REDIS_URL` | Redis host:port | No |
| `EXTERNAL_API_KEY` | Third-party notification service key | Yes |
| `ADMIN_SECRET` | Admin dashboard auth token | Yes |
| `FEATURE_ENABLE_NOTIFICATIONS` | Feature flag | No |

Each .NET service reads these via `Environment.GetEnvironmentVariable()`. The frontend reads `API_URL` in `vite.config.ts` for the dev proxy target.

## Running locally (without Aspire)

You need 4 terminal windows and 2 infrastructure services running.

### 1. Start infrastructure

```bash
# Terminal 1: Start Postgres (or use an existing instance)
docker run -d --name boardapp-pg \
-e POSTGRES_PASSWORD=localdev123 \
-e POSTGRES_DB=boardapp \
-p 5432:5432 \
postgres:16

# Terminal 1: Start Redis
docker run -d --name boardapp-redis \
-p 6379:6379 \
redis:7
```

### 2. Load environment variables

```bash
# In each terminal where you run a .NET service:
export $(cat .env | xargs)
```

### 3. Run database migrations

```bash
# Terminal 2:
cd src/MigrationRunner
dotnet run
# Wait for "Migrations complete." then this process exits
```

### 4. Start the API

```bash
# Terminal 2 (reuse after migrations):
cd src/BoardApi
dotnet run --urls http://localhost:5220
```

### 5. Start the admin dashboard

```bash
# Terminal 3:
cd src/AdminDashboard
dotnet run --urls http://localhost:5230
```

### 6. Start the frontend

```bash
# Terminal 4:
cd frontend
npm install
npm run dev
# Opens on http://localhost:5173
```

## Verifying it works

- **Frontend**: http://localhost:5173 — should show "BoardApp" with a list of seeded items
- **API health**: http://localhost:5220/api/health — should return `{"status":"healthy"}`
- **API items**: http://localhost:5220/api/items — should return seeded board items
- **Admin stats**: http://localhost:5230/admin/stats — should return item/user counts
- **Cached count**: http://localhost:5220/api/cached-count — tests Redis connectivity

12 changes: 12 additions & 0 deletions playground/aspirify-eval/dotnet-traditional/frontend/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>BoardApp</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
17 changes: 17 additions & 0 deletions playground/aspirify-eval/dotnet-traditional/frontend/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "boardapp-frontend",
"version": "1.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"vue": "^3.5.0"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.2.0",
"vite": "^6.3.0"
}
}
32 changes: 32 additions & 0 deletions playground/aspirify-eval/dotnet-traditional/frontend/src/App.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<template>
<div>
<h1>BoardApp</h1>
<p>Status: {{ status }}</p>
<h2>Items</h2>
<ul>
<li v-for="item in items" :key="item.id">
{{ item.title }} — {{ item.isComplete ? '✅' : '⏳' }}
</li>
</ul>
</div>
</template>

<script setup lang="ts">
import { ref, onMounted } from 'vue';

const status = ref('loading...');
const items = ref<{ id: number; title: string; isComplete: boolean }[]>([]);

onMounted(async () => {
try {
const healthRes = await fetch('/api/health');
const health = await healthRes.json();
status.value = health.status;

const itemsRes = await fetch('/api/items');
items.value = await itemsRes.json();
} catch (e) {
status.value = 'error: ' + (e as Error).message;
}
});
</script>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { createApp } from 'vue';
import App from './App.vue';

createApp(App).mount('#app');
13 changes: 13 additions & 0 deletions playground/aspirify-eval/dotnet-traditional/frontend/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"jsx": "preserve",
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
},
"include": ["src/**/*.ts", "src/**/*.vue"]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';

export default defineConfig({
plugins: [vue()],
server: {
port: 5173,
proxy: {
'/api': {
target: process.env.API_URL || 'http://localhost:5220',
changeOrigin: true,
},
},
},
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\BoardData\BoardData.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" />
</ItemGroup>
</Project>
Loading
Loading