Back to skills
SKILL.md
Init
ASecurityScan a project and generate blueprint.json configuration. Use when setting up cloud-app-blueprint in a project for the first time, onboarding a new project, or regenerating blueprint.json.
- 2 stars
- 0 votes
- 0 copies
- 1 view
- Added November 11, 2026
Security analysis
100/100npx -y skills add makigjuro/cloud-app-blueprint --skill init --agent claude-codeAre you the author of Init?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/makigjuro-init)---
name: init
description: Scan a project and generate blueprint.json configuration. Use when setting up cloud-app-blueprint in a project for the first time, onboarding a new project, or regenerating blueprint.json.
allowed-tools: Bash, Read, Glob, Grep, Write, AskUserQuestion
user-invocable: true
argument-hint: "[--minimal]"
---
# Initialize Project
Scan the project structure, detect the tech stack, and generate a `blueprint.json` configuration file. This is the first thing users should run after installing cloud-app-blueprint.
## Arguments
- `--minimal` -- Generate only the essential fields, skip optional sections
## Process
### Step 1: Check for existing config
```bash
test -f blueprint.json && echo "EXISTS" || echo "NONE"
test -f cloudstack.json && echo "LEGACY" || true
```
If `blueprint.json` already exists, ask the user whether to overwrite or update it.
If only `cloudstack.json` exists (the pre-0.4 name), offer to rename it: `git mv cloudstack.json blueprint.json`, and update its `$schema` URL to `https://raw.githubusercontent.com/makigjuro/cloud-app-blueprint/main/schema/blueprint.schema.json`. The format is unchanged, so then continue with update mode. The hook scripts still read `cloudstack.json` when there is no `blueprint.json`, but the skills only look for `blueprint.json`.
### Step 2: Detect project structure
Run these scans in parallel:
**Backend detection:**
```bash
# .NET solution
find . -name "*.sln" -maxdepth 3 -not -path "./.git/*" 2>/dev/null
# Shared domain project
find . -path "*/Domain/Entities" -type d -not -path "*/bin/*" -not -path "*/obj/*" 2>/dev/null
# Shared infrastructure project
find . -path "*Shared*Infrastructure*" -name "*.csproj" -not -path "*/bin/*" 2>/dev/null
# Microservices (directories containing .Application subfolder)
find . -name "*.Application" -type d -not -path "*/bin/*" -not -path "*/obj/*" 2>/dev/null
# Messaging framework
grep -rl "WolverineFx\|MediatR\|MassTransit" --include="*.csproj" -l 2>/dev/null | head -1
# ORM detection
grep -rl "Microsoft.EntityFrameworkCore" --include="*.csproj" -l 2>/dev/null | head -1
```
**Frontend detection:**
```bash
# Package.json location
find . -name "package.json" -maxdepth 3 -not -path "*/node_modules/*" -not -path "*/tools/*" 2>/dev/null
# If found, detect framework and libraries from dependencies
cat <frontend-path>/package.json | grep -E "react|vue|angular|@tanstack|zustand|redux|shadcn|@mui|vite|webpack|next"
```
**Infrastructure detection:**
```bash
# Terraform
find . -name "*.tf" -maxdepth 4 -not -path "./.git/*" 2>/dev/null | head -1
# Terragrunt
find . -name "terragrunt.hcl" -maxdepth 4 2>/dev/null | head -1
# Helm charts
find . -name "Chart.yaml" -maxdepth 4 2>/dev/null
# Runtime: Container Apps resources/modules, AKS clusters
grep -rlE 'azurerm_container_app"|azurerm_container_app_job"' --include="*.tf" . 2>/dev/null | head -5
grep -rlE 'azurerm_kubernetes_cluster"' --include="*.tf" . 2>/dev/null | head -1
find . -path "*/terragrunt/*" -name "terragrunt.hcl" -not -path "*/.terragrunt-cache/*" 2>/dev/null
# Frontend hosting
find . -name "staticwebapp.config.json" -not -path "*/node_modules/*" 2>/dev/null | head -1
grep -rl 'azurerm_static_web_app"' --include="*.tf" . 2>/dev/null | head -1
# Docker Compose
find . -name "docker-compose*.yml" -o -name "docker-compose*.yaml" -maxdepth 3 2>/dev/null
# .NET Aspire
find . -name "*AppHost*" -type d -maxdepth 4 2>/dev/null
# CI/CD
ls .github/workflows/*.yml 2>/dev/null || ls .gitlab-ci.yml 2>/dev/null || ls azure-pipelines.yml 2>/dev/null
```
**Repository detection:**
```bash
git remote get-url origin 2>/dev/null
```
### Step 3: Resolve ambiguities
Use AskUserQuestion for anything that can't be auto-detected:
- **Multiple solutions found** -- Ask which is the primary one
- **No namespace detectable** -- Ask for the root C# namespace
- **Multiple frontend directories** -- Ask which is the main one
- **Cloud provider unclear** -- Ask Azure vs AWS vs GCP
- **Both Container Apps and AKS/Helm found** -- Ask which runtime is primary
Keep questions to a minimum. If a value is clearly detectable, don't ask.
### Step 4: Generate blueprint.json
Build the configuration object from detected values. Include:
- `$schema` reference for IDE autocompletion
- `project` -- name (from solution name or directory), namespace (from .csproj)
- `repository` -- owner/name (from git remote)
- `backend` -- solutionPath, sharedDomainPath, sharedInfraPath, services[], orm, messaging
- `frontend` -- path, framework, stateManagement, uiLibrary, bundler, devPort
- `infrastructure` -- cloud, iac, iacWrapper, terraformPath, terragruntPath, runtime, frontendHosting, plus:
- `runtime` -- `container-apps` when `azurerm_container_app` resources, `container-app*` modules, or per-app Terragrunt units exist; `aks` when `deploy/charts` (any `Chart.yaml`) or an `azurerm_kubernetes_cluster` module exists; otherwise `none`
- `frontendHosting` -- `static-web-app` when `staticwebapp.config.json` or `azurerm_static_web_app` exists; `container-app` when the frontend has its own Container App unit
- `containerApps` (runtime `container-apps`) -- `appUnitsPath` from the unit directory layout (e.g. `infra/terragrunt/{env}`), `environments` from the env directories, `gatewayApp` from the unit whose inputs set `ingress_external = true`, `migrationJobs` from units sourcing a `container-app-job` module, keyed by the service they migrate
- `chartsPath`, `namespace` (runtime `aks`)
- `localDev` -- orchestrator, appHostPath or composePath
- `conventions` -- branchFormat (detect from existing branches), commitStyle
If `--minimal` was passed, only include `project`, `backend.solutionPath`, and `backend.services[]`.
Write the file:
```bash
# Write blueprint.json to project root
```
### Step 5: Recommend plugins
Based on what was detected, recommend which plugins to install:
```markdown
## Project Initialized
Created `blueprint.json` with:
- {N} microservices detected
- {frontend framework} frontend at `{path}/`
- {iac tool} infrastructure at `{path}/`
### Recommended plugins:
| Plugin | Why | Install |
|--------|-----|---------|
| dotnet-architect | {N} .NET services detected | `/plugin install dotnet-architect@cloud-app-blueprint` |
| react-developer | React frontend at `{path}/` | `/plugin install react-developer@cloud-app-blueprint` |
| cloud-infra | Terraform + {Container Apps \| AKS/Helm} detected | `/plugin install cloud-infra@cloud-app-blueprint` |
| dev-workflow | Git workflow + CI/CD | `/plugin install dev-workflow@cloud-app-blueprint` |
### Next steps:
1. Review `blueprint.json` and adjust any values
2. Install recommended plugins above
3. Try `/dotnet-architect:check-architecture` to validate your project
```
Only recommend plugins relevant to what was detected (e.g., skip react-developer if no frontend found).
## Error Handling
- **Not a git repo:** Warn but continue -- skip repository section
- **No .NET solution found:** Skip backend section, note it
- **No frontend found:** Skip frontend section
- **Permission denied on scan:** Note the directory and skip it
## Related Skills
- `/dotnet-architect:check-architecture` -- Run after init to validate architecture
- `/dev-workflow:start-work` -- Begin implementing with proper branch workflow
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.