com um clique
remove-dead-code
Identify and removedead code
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Identify and removedead code
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
A brief description, shown to the model to help it understand when to use this skill
Investigate test that fails when LRS parsing is enabled
Get behavior of reference (canonical) implementation
Write a K script that can be used as a test case
Run single test
Determine what the expected result for a test script should be
| name | remove-dead-code |
| description | Identify and removedead code |
Edit the *.csproj file for the target project, e.g., K3CSharp/K3CSharp.csproj
[ ] Add <EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild> under <PropertyGroup>
[ ] Add IDE0051 In <WarningsAsErrors> (e.g., if it is empty, <WarningsAsErrors /> change it to <WarningsAsErrors>IDE0051</WarningsAsErrors>)
[ ] run dotnet clean to clean the project
[ ] run dotnet build to build the project
[ ] resolve any IDE0051 warnings:
[ ] run a search to confirm the unused code is not used elsewhere
[ ] remove the unused code, or the entire file if it is unused
[ ] repeat cycles of dotnet build and resolve any IDE0051 warnings until you reach a clean build with no more IDE0051 warnings
[ ] remove IDE0051 from <WarningsAsErrors>
[ ] remove <EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild> under <PropertyGroup>