Construction avec Nuke Build

VérifiéSûr

Utilise Nuke Build pour toutes les opérations de build .NET (compilation, tests, nettoyage, restauration). Elle garantit des builds reproductibles et évite les commandes dotnet brutes. À utiliser lorsque l'utilisateur demande de compiler, tester ou effectuer toute opération de build.

Spar Skills Guide Bot
DeveloppementDébutant
8002/06/2026
Claude Code
#dotnet#nuke#build-automation#testing

Recommandé pour

Notre avis

Ce skill utilise Nuke Build pour exécuter toutes les opérations de build, test, nettoyage et restauration de projets .NET, en évitant les commandes dotnet brutes.

Points forts

  • Standardise les builds entre environnements local et CI
  • Gère correctement les dépendances et l'ordre de compilation
  • Intègre générateurs de code et tâches pré/post-build

Limites

  • Nécessite que Nuke soit installé et configuré dans le projet
  • Ne couvre pas les projets non .NET
Quand l'utiliser

Quand vous devez compiler, tester ou nettoyer un projet .NET qui utilise Nuke Build.

Quand l'éviter

Pour des projets .NET simples sans Nuke, où dotnet build suffit.

Analyse de sécurité

Sûr
Score qualité88/100

The skill only instructs running nuke build commands, which are standard build automation. No destructive, exfiltrative, or obfuscated actions are present.

Aucun point d'attention détecté

Exemples

Build solution
Build the .NET solution using Nuke.
Run all tests
Run all tests with Nuke.
Clean and rebuild
Clean and then rebuild the project using Nuke.

name: build version: 0.1.0 kind: cli description: "Build, test, or compile the solution using Nuke. Use when asked to build, compile, run tests, clean, restore, or perform any .NET build operation." contracts: success: "Build completes successfully with zero errors" failure: "Build fails with compilation errors or missing dependencies"

Build Skill

This project uses Nuke Build for all build operations. Never use raw dotnet commands.

Command Reference

| Operation | Nuke Command | Do NOT Use | |-----------|--------------|------------| | Build | nuke compile | dotnet build | | Test | nuke test | dotnet test | | Clean | nuke clean | dotnet clean | | Restore | nuke restore | dotnet restore | | Pack | nuke pack | dotnet pack |

Common Workflows

Build the solution

nuke compile

Run all tests

nuke test

Clean and rebuild

nuke clean compile

List available targets

nuke --help

Why Nuke (Not dotnet)

  • Ensures consistent build behavior across local and CI environments
  • Handles project dependencies and build ordering correctly
  • Runs code generators and pre/post-build tasks
  • Provides reproducible builds with proper configuration

Instructions

When the user asks to build, test, compile, or perform any .NET build operation:

  1. Use the appropriate nuke command from the table above
  2. Report build errors clearly from the output
  3. Never suggest dotnet build, dotnet test, or other raw dotnet commands as alternatives
  4. If a specific project needs building, check if there's a Nuke target for it first
Skills similaires