一键导入
remove-dead-code
Identify and removedead code
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Identify and removedead code
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| 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>
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