v1.31.0
workflownuevo-proyectoreferences/

ejecucion-y-plantillas.md

Referencia que nuevo-proyecto carga bajo demanda desde su SKILL.md.

nuevo-proyectoskill
referencescarpeta
7545 Btamaño
2026-10-06último cambio del pack

Referencia del workflow nuevo-proyecto. Se lee bajo demanda desde su SKILL.md, no al invocar la skill: la dieta de contexto obliga a no cargar el monolito entero.


🚀 EJECUCIÓN DE CREACIÓN

Fase 1: Crear Estructura

# Variables del wizard
$nombreBase = "ScholarshipManagement"
$nombreCompleto = "$namespacePrefix.$nombreBase"   # organization.namespacePrefix

# Crear en src
cd src
mkdir $nombreCompleto
cd $nombreCompleto

# Crear solución (usar .slnx si el usuario lo seleccionó y es .NET 8+)
# Formato por defecto: .sln (compatibilidad máxima)
$formatoSolucion = "sln"  # Cambiar a "slnx" si usuario seleccionó .slnx

if ($formatoSolucion -eq "slnx") {
    # .slnx requiere creación manual o conversión posterior
    # Crear .sln primero y convertir
    dotnet new sln -n $nombreCompleto
    Write-Host "💡 Para convertir a .slnx: Abrir en VS 2022 17.10+ → Guardar como → .slnx"
} else {
    dotnet new sln -n $nombreCompleto
}

# Crear proyectos con nomenclatura de la organización.*
dotnet new webapi -n "$nombreCompleto.Api" -o "src/$nombreCompleto.Api"
dotnet new webapp -n "$nombreCompleto.Web" -o "src/$nombreCompleto.Web"
dotnet new classlib -n "$nombreCompleto.Application" -o "src/$nombreCompleto.Application"
dotnet new classlib -n "$nombreCompleto.Domain" -o "src/$nombreCompleto.Domain"
dotnet new classlib -n "$nombreCompleto.Infrastructure" -o "src/$nombreCompleto.Infrastructure"
dotnet new xunit -n "$nombreCompleto.UnitTests" -o "tests/$nombreCompleto.UnitTests"
dotnet new xunit -n "$nombreCompleto.IntegrationTests" -o "tests/$nombreCompleto.IntegrationTests"

# Añadir a solución
dotnet sln add (Get-ChildItem -Recurse *.csproj)

Fase 2: Generar appsettings.json (con valores del wizard)

appsettings.json generado automáticamente:

{
  "AzureAd": {
    "Instance": "https://login.microsoftonline.com/",
    "Domain": "example.org",
    "TenantId": "12345678-1234-1234-1234-123456789012",
    "ClientId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "ClientSecret": "",
    "Scopes": "api://MyCompany.ScholarshipManagement/.default",
    "CallbackPath": "/signin-oidc",
    "Roles": {
      "AdminGroupId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
      "UserGroupId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    }
  },
  "ConnectionStrings": {
    "DefaultConnection": "Server=SQLDEV01;Database=MyOrg_ScholarshipManagement;Trusted_Connection=True;TrustServerCertificate=True;"
  },
  "KeyVault": {
    "VaultUri": "https://kv-myorg-dev.vault.azure.net/",
    "SecretNames": {
      "DbConnectionString": "ConnectionStrings--DefaultConnection"
    }
  },
  "ApplicationInsights": {
    "ConnectionString": ""
  },
  "BlobStorage": {
    "AccountName": "",
    "ContainerName": "documentos"
  },
  "Serilog": {
    "MinimumLevel": {
      "Default": "Information",
      "Override": {
        "Microsoft": "Warning",
        "System": "Warning"
      }
    },
    "WriteTo": [
      { "Name": "Console" },
      { "Name": "ApplicationInsights" }
    ]
  },
  "AllowedHosts": "*"
}

appsettings.Development.json:

{
  "ConnectionStrings": {
    "DefaultConnection": "Server=SQLDEV01;Database=MyOrg_ScholarshipManagement;Trusted_Connection=True;TrustServerCertificate=True;"
  },
  "KeyVault": {
    "Enabled": false
  },
  "Serilog": {
    "MinimumLevel": {
      "Default": "Debug"
    }
  }
}

Fase 3: Actualizar CLAUDE.md principal

Añadir al CLAUDE.md principal del proyecto:

## Soluciones en src/

### MyCompany.ScholarshipManagement

**Descripción:** Sistema para gestionar las applications de scholarships de students.

**Estructura:**
- `MyCompany.ScholarshipManagement.Api` - API REST principal
- `MyCompany.ScholarshipManagement.Web` - Portal web
- `MyCompany.ScholarshipManagement.Application` - Casos de uso
- `MyCompany.ScholarshipManagement.Domain` - Entidades de dominio
- `MyCompany.ScholarshipManagement.Infrastructure` - EF Core, Azure

**Configuración:**
- Azure AD: Tenant example.org
- BD: SQL Server (SQLDEV01)
- Key Vault: kv-myorg-dev

Fase 4: Actualizar _hilo/ESTADO_PROYECTO.json

{
  "proyecto": {
    "nombre": "MyCompany.ScholarshipManagement",
    "fecha_inicio": "2026-01-27",
    "descripcion": "Sistema para gestionar las applications de scholarships de students"
  },
  "estado": {
    "modo": "desarrollo",
    "version_actual": "0.1.0"
  },
  "soluciones": [
    {
      "nombre": "MyCompany.ScholarshipManagement",
      "ubicacion": "src/MyCompany.ScholarshipManagement/",
      "proyectos": [
        "MyCompany.ScholarshipManagement.Api",
        "MyCompany.ScholarshipManagement.Web",
        "MyCompany.ScholarshipManagement.Application",
        "MyCompany.ScholarshipManagement.Domain",
        "MyCompany.ScholarshipManagement.Infrastructure"
      ]
    }
  ]
}

El stack (framework, lenguaje, ORM, autenticación) va a _hilo/CONTEXTO_TECNICO.md y la infraestructura a la sección infraestructura: ESTADO_PROYECTO.json no tiene secciones tecnologias ni azure, y una clave que el contrato no declara no la lee nadie.


📄 ARCHIVOS GENERADOS AUTOMÁTICAMENTE

ArchivoContenido
appsettings.json✅ Con todos los valores del wizard
appsettings.Development.json✅ Configuración de desarrollo
Program.cs✅ Con Azure AD, Serilog, DI configurado
DependencyInjection.cs✅ Por cada capa
README.md✅ Documentación del proyecto
CLAUDE.md principal✅ Actualizado con nueva solución
_hilo/ESTADO_PROYECTO.json✅ Actualizado

📊 RESUMEN FINAL

╔═══════════════════════════════════════════════════════════════════════════════╗
║  ✅ PROYECTO CREADO EXITOSAMENTE                                              ║
╚═══════════════════════════════════════════════════════════════════════════════╝

📦 MyCompany.ScholarshipManagement
├── Ubicación: src/MyCompany.ScholarshipManagement/
├── Proyectos: 7 (5 src + 2 tests)
├── Arquitectura: Clean Architecture + CQRS
└── Auth: Azure AD (Entra ID)

📄 ARCHIVOS CONFIGURADOS
✅ appsettings.json (con valores del wizard)
✅ appsettings.Development.json
✅ Program.cs (Azure AD + Serilog + DI)
✅ CLAUDE.md principal actualizado
✅ _hilo/ESTADO_PROYECTO.json actualizado

⚠️ PENDIENTE DE CONFIGURAR
□ Crear App Registrations en Azure Portal (si no existen)
□ Crear base de datos MyOrg_ScholarshipManagement
□ Configurar secretos en Key Vault
□ Verificar permisos en Azure AD

🚀 PRÓXIMOS PASOS
1. /analizar                    ← Análisis inicial
2. /nuevo-evolutivo "HV-01"     ← Primera funcionalidad
3. dotnet run                   ← Ejecutar

📧 Soporte: soporte@example.com

💾 PLANTILLAS PREDEFINIDAS

/nuevo-proyecto --template api-estandar      # API estándar del ecosistema
/nuevo-proyecto --template fullstack         # API + Web + Worker
/nuevo-proyecto --template microservice      # Microservicio minimal
/nuevo-proyecto --template sync-service      # Worker de sincronización

← Volver a la ficha de nuevo-proyecto

Ovillo v1.31.0tag v1.31.0 (2026-10-06) · sin decisiones posteriores69 skills · 19 agents · 22 hooks · 3 reglas · 15 tools · 103 decisionesfuente: ovillo/.claude/skills/nuevo-proyecto/references/ejecucion-y-plantillas.mdCopyright 2026 Hugo Valer Rojas · Apache-2.0