Diagnose project
Skill gaelic-ghost/socket/plugins/dotnet-skills/skills/diagnose-project
The Source for macOS Agent Workflows
npx -y skills add gaelic-ghost/socket --skill diagnose-projectAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 6 stars6 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Diagnose .NET SDK, restore, build, test, package, target framework, F# compile-order, C# analyzer, and project-reference failures with concrete next checks.
The file declares its own license as Apache-2.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
4.4 KB, 893 tokens by cl100k_base, as published. Nobody here has run it
Diagnose .NET Project
Purpose
Find the first meaningful cause of a .NET failure and explain it in human terms.
The useful answer is not "build failed." It is what command failed, which project failed, which phase failed, why it most likely failed, and the smallest next check or fix.
When To Use
- Use this skill when
dotnet restore,dotnet build,dotnet test, ordotnet packfails. - Use this skill when SDK selection, target framework, package restore, or project references are unclear.
- Use this skill when F# compile order or C# analyzer/nullability failures need explanation.
- Use this skill before widening into refactors after a vague .NET error.
Source Check
Use repo-local .NET files, checked-out dependency sources, Dash MCP or Dash HTTP for installed .NET docsets, and then official Microsoft documentation when Dash/local coverage is missing or stale:
- .NET CLI documentation
dotnet restoredocumentationdotnet builddocumentationdotnet testdocumentationdotnet packdocumentationglobal.jsondocumentation
Diagnostic Workflow
- Capture repository shape:
rg --files -g '*.sln' -g '*.slnx' -g '*.fsproj' -g '*.csproj' -g 'global.json' -g 'Directory.Build.props' -g 'Directory.Packages.props' -g 'NuGet.config' - Check SDK context only when relevant:
dotnet --info dotnet --list-sdks - Re-run the narrowest failing command.
- Classify the failure phase:
- SDK selection
- restore
- build
- test discovery
- test execution
- pack
- publish or release
- Identify the first meaningful error.
- Explain likely cause and next check.
Common Failure Classes
SDK Selection
Look for global.json, installed SDK versions, target framework, and CI SDK setup.
Report when a repo asks for an SDK that is not installed or when local and CI SDK versions likely differ.
Restore
Look for package source, authentication, locked mode, central package management, and NuGet.config.
Do not turn an authenticated feed problem into a generic network diagnosis. Name the package source or credential surface when visible.
Build
Look for target framework mismatch, project references, analyzer failures, nullable failures, generated code, and compile order.
For F#, inspect .fsproj file ordering when names are unresolved. For C#, inspect nullable and analyzer settings before suppressing warnings.
Test
Separate test discovery from test execution.
Discovery failures usually point at framework adapters, target frameworks, build output, or project type. Execution failures usually point at behavior, environment, timing, or fixture setup.
Pack
Look for missing metadata, invalid project type, failed Release build, project references, and artifact output path.
Remember that package publication is separate from package creation.
Output Shape
Return:
Command: exact failing command.Phase: SDK, restore, build, discovery, execution, pack, or release.Project: solution or project path involved.First meaningful error: short quoted or paraphrased error.Likely cause: concrete explanation.Next check: one or two smallest useful commands or edits.
Guardrails
- Do not bury the first meaningful error under a long transcript.
- Do not rerun broad commands repeatedly before narrowing the phase.
- Do not delete build artifacts, caches, or lockfiles without explaining why and getting approval when destructive.
- Do not suppress warnings to make a build pass unless the suppression is intentional and documented.
- Do not assume C# project behavior explains an F# compile-order failure.