Unused CSS
thedaviddias/Front-End-Checklist
A skill your agent uses when reviewing stylesheets, component styles, and responsive behavior related to Remove unused CSS rules.
当用户要求扫描、识别、清理、常态化治理 NextClaw 仓库里的死代码、无用代码、unused files、unused exports、unused dependencies,尤其是核心包越来越臃肿、想删旧实现或做定期减债时使用。
$ npx skills add Peiiii/nextclaw --skill nextclaw-dead-code-governance -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install Peiiii/nextclaw nextclaw-dead-code-governance --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/Peiiii/nextclaw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/wiki/skills/operations/nextclaw-dead-code-governance .claude/skills/nextclaw-dead-code-governance && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "nextclaw-dead-code-governance" agent skill from https://github.com/Peiiii/nextclaw/tree/master/.agents/wiki/skills/operations/nextclaw-dead-code-governance into .claude/skills/nextclaw-dead-code-governance/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nextclaw-dead-code-governance", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/Peiiii/nextclaw/tree/master/.agents/wiki/skills/operations/nextclaw-dead-code-governanceType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add Peiiii/nextclaw --skill nextclaw-dead-code-governance -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install Peiiii/nextclaw nextclaw-dead-code-governance --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Peiiii/nextclaw.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/wiki/skills/operations/nextclaw-dead-code-governance .agents/skills/nextclaw-dead-code-governance && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "nextclaw-dead-code-governance" agent skill from https://github.com/Peiiii/nextclaw/tree/master/.agents/wiki/skills/operations/nextclaw-dead-code-governance into .agents/skills/nextclaw-dead-code-governance/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nextclaw-dead-code-governance", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Peiiii/nextclaw --skill nextclaw-dead-code-governance -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install Peiiii/nextclaw nextclaw-dead-code-governance --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Peiiii/nextclaw.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/wiki/skills/operations/nextclaw-dead-code-governance .cursor/skills/nextclaw-dead-code-governance && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "nextclaw-dead-code-governance" agent skill from https://github.com/Peiiii/nextclaw/tree/master/.agents/wiki/skills/operations/nextclaw-dead-code-governance into .cursor/skills/nextclaw-dead-code-governance/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nextclaw-dead-code-governance", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/Peiiii/nextclaw.git --path .agents/wiki/skills/operations/nextclaw-dead-code-governance--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add Peiiii/nextclaw --skill nextclaw-dead-code-governance -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install Peiiii/nextclaw nextclaw-dead-code-governance --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Peiiii/nextclaw.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/wiki/skills/operations/nextclaw-dead-code-governance .gemini/skills/nextclaw-dead-code-governance && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "nextclaw-dead-code-governance" agent skill from https://github.com/Peiiii/nextclaw/tree/master/.agents/wiki/skills/operations/nextclaw-dead-code-governance into .gemini/skills/nextclaw-dead-code-governance/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nextclaw-dead-code-governance", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install Peiiii/nextclaw nextclaw-dead-code-governanceInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add Peiiii/nextclaw --skill nextclaw-dead-code-governance -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/Peiiii/nextclaw.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/wiki/skills/operations/nextclaw-dead-code-governance .github/skills/nextclaw-dead-code-governance && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "nextclaw-dead-code-governance" agent skill from https://github.com/Peiiii/nextclaw/tree/master/.agents/wiki/skills/operations/nextclaw-dead-code-governance into .github/skills/nextclaw-dead-code-governance/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nextclaw-dead-code-governance", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Peiiii/nextclaw --skill nextclaw-dead-code-governance -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install Peiiii/nextclaw nextclaw-dead-code-governance --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Peiiii/nextclaw.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/wiki/skills/operations/nextclaw-dead-code-governance .opencode/skills/nextclaw-dead-code-governance && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "nextclaw-dead-code-governance" agent skill from https://github.com/Peiiii/nextclaw/tree/master/.agents/wiki/skills/operations/nextclaw-dead-code-governance into .opencode/skills/nextclaw-dead-code-governance/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nextclaw-dead-code-governance", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
nextclaw-dead-code-governance当用户要求扫描、识别、清理、常态化治理 NextClaw 仓库里的死代码、无用代码、unused files、unused exports、unused dependencies,尤其是核心包越来越臃肿、想删旧实现或做定期减债时使用。
Nextclaw Dead Code Governance is an agent skill from Peiiii/nextclaw. 当用户要求扫描、识别、清理、常态化治理 NextClaw 仓库里的死代码、无用代码、unused files、unused exports、unused dependencies,尤其是核心包越来越臃肿、想删旧实现或做定期减债时使用。
Its SKILL.md is about 970 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
The repository describes itself as: A human-centered long-term AI partner—not a task-centered assistant. The licence is MIT.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 297cf0e. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
pnpmrgnodegitFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use pnpm and git, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Nextclaw Dead Code Governance loads about 974 tokens when it runs. Until then it costs about 37 tokens; SKILL.md has 196 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from Peiiii/nextclaw at commit 297cf0e, republished under its MIT licence (© Peiiii). 196 words, ~974 tokens.
.claude/skills/nextclaw-dead-code-governance/SKILL.md (or your agent's skills folder).把“感觉项目越来越臃肿”变成可重复、低误删风险的清理流程。
这个 skill 只负责死代码治理:找出并删除无引用、重复、过期、被新路径替代的代码。它不负责一般性能优化、功能重构或目录治理战役;若任务扩大到长期自治推进,再联动 autonomous-maintainability-campaign。
本 skill 命中后拥有本次死代码扫描、删除与实现结果,不拥有阶段切换;完成当前 slice 后返回生命周期,由 Validation、Review、Delivery 和 Retrospective 各自处理后续合同。长期自治战役、迭代留痕或规则修改只有条件实际成立时才加载对应 owner,不重新加载上游 lifecycle。
死代码候选分三类:
确定可删:生产代码无引用、无 package exports、无 bin/脚本入口、无动态注册、无文档要求保留,且已有替代路径或本身无行为价值。疑似可删:机器扫不到引用,但可能是公共 API、插件入口、协议类型、测试入口、构建资源、CLI/bin、动态 import 或外部包消费表面。暂不删除:NCP 协议类型、SDK/export 表面、runtime/plugin 注册点、CLI/bin 入口、构建产物、资源文件、测试入口噪声、兼容迁移仍需要的旧路径。默认只删除 确定可删。疑似可删 先列入报告或下一批验证,不在同一刀里硬删。
先确认:
git status --short。核心包优先级通常是:
packages/nextclawpackages/nextclaw-corepackages/nextclaw-runtimepackages/nextclaw-app-runtimepackages/nextclaw-serverpackages/ncp-packages/*packages/nextclaw-ui优先使用仓库已有信号:
pnpm metrics:local
pnpm lint:maintainability:hotspots再用 knip 扫死代码,按作用域收窄:
pnpm dlx knip --workspace <package-or-path> --include files,exports,dependencies --reporter compact --no-exit-code --max-show-issues 200对生产路径可补:
pnpm dlx knip --production --workspace <package-or-path> --include files,exports,dependencies --reporter compact --no-exit-code --max-show-issues 200对局部未用符号可补:
pnpm -C <package> exec tsc -p tsconfig.json --noEmit --noUnusedLocals --noUnusedParametersknip 常见误报必须先过滤:
*.test.*、tests/:多半是测试入口未配置,不等于可删。ui-dist/、dist/、public/sw.js、资源目录:可能是构建或发布资源。exports 指向的类型和入口:可能被外部用户消费。bin、scripts、worker entry、dynamic import、plugin manifest、runtime registry:不能只看静态 import。index.ts barrel 暴露的公共类型:先判断是否属于 API surface,再决定是否收窄导出。删除前必须至少做一次源码反查:
rg -n "<symbol-or-file-stem>" packages scripts apps docs -g '!**/dist/**' -g '!**/ui-dist/**' -g '!**/node_modules/**'同时检查:
package.json 的 exports、bin、files、scriptstsconfig.json path aliasindex.ts barrel优先顺序:
每一刀要小,默认只做同一责任链的一组删除。不要把“死代码清理”顺手扩大成架构重构。
knip --fix 或自动删除文件。触达 TypeScript 源码、类型或导入导出边界时,必须跑:
pnpm -C <package> tsc源码清理还要跑 package lint:
pnpm -C <package> lint如果 package lint 或全量治理被无关工作区改动阻塞,改跑当前触达文件的 targeted 版本,并在最终回复说明阻塞来源:
pnpm lint:new-code:governance -- --files <touched-files...>定向测试优先跑被删除路径的替代 owner 或邻近行为测试:
pnpm -C <package> exec vitest run <relevant-tests...>收尾必须跑:
node .agents/skills/development-review/scripts/check-maintainability.mjs --non-feature --paths <touched-files...>
pnpm check:governance-backlog-ratchet删除后可复扫:
pnpm dlx knip --workspace <package-or-path> --include files,exports --reporter compact --no-exit-code --max-show-issues 120最终汇报必须包含:
tsc、lint、测试、maintainability guard、governance 的结果。删除 或 简化。docs/logs 迭代记录。常态治理时,每轮只选择一个高置信批次:
每完成一批,记录剩余候选和下一刀建议。若剩余项需要产品/API 兼容判断,停止并向用户报告,不要强行继续。
© Peiiii, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/wiki/skills/operations/nextclaw-dead-code-governance of Peiiii/nextclaw.
Open the folder on GitHubat commit 297cf0e
Nextclaw Dead Code Governance next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Nextclaw Dead Code Governance this skillPeiiii/nextclaw | 260 | — | ~974 | Automated safety check: Pass | MIT | |
| Unused CSSthedaviddias/Front-End-Checklist | 74k | — | ~415 | Automated safety check: Pass | MIT | |
| Board Governancesickn33/agentic-awesome-skills | 47k | 1 repos | ~4.1k | Automated safety check: Pass | MIT | |
| Agent Governancegithub/awesome-copilot | 40k | 2 repos | ~4.6k | Automated safety check: Pass | MIT | |
| Dead Dependenciesredis/RedisInsight | 8.9k | — | ~1.5k | Automated safety check: Pass | Custom licence | |
| Dead End Pagesthedaviddias/Front-End-Checklist | 74k | — | ~683 | Automated safety check: Pass | MIT |
thedaviddias/Front-End-Checklist
A skill your agent uses when reviewing stylesheets, component styles, and responsive behavior related to Remove unused CSS rules.
sickn33/agentic-awesome-skills
Board and governance register: meeting date, agenda, decision, resolution number, vote result, action owner and due date.
github/awesome-copilot
Patterns and techniques for adding governance, safety, and trust controls to AI agent systems.
redis/RedisInsight
Find and safely remove unused ("dead") npm dependencies in RedisInsight using a grep + leaf-check + build-gate recipe.
thedaviddias/Front-End-Checklist
A skill your agent uses when auditing a site's internal link graph for dead-end pages, suggesting related-content links to add to thin or standalone pages, or reviewing CMS templates that produce…
sickn33/agentic-awesome-skills
Establish model registry standards, governance controls, metadata schemas, approvals, and lifecycle policies for enterprise AI deployments.
Peiiii/nextclaw
A skill your agent uses when a user wants to browse, apply, inspect, create, refine, switch, or remove a NextClaw skin; wants a personal skin with arbitrary CSS, JavaScript, images, SVG, DOM…
Peiiii/nextclaw
A skill your agent uses when a development task needs visible phase tracing, task-level or phase-level Token measurement, model/effort comparison, or a deterministic usage report or local dashboard…
Peiiii/nextclaw
当 NextClaw 产品更新后需要生成、替换、挑毛病或检查官网、GitHub README、用户文档或社交传播中的真实截图、AI 宣传视觉、整页 HTML 宣传预览、社区二维码等对外视觉资产时使用;也用于“更新截图”“重新截一批图”“做宣传页”“生成 campaign 页面”“视觉审稿”“五星挑刺法”或发布前检查视觉资产。普通站点布局开发或只写文章不触发。
Peiiii/nextclaw
A skill your agent uses when the user wants professional UI/UX design guidance, design-system generation, UX review, or stack-specific frontend guidance through a bundled local UI/UX Pro Max dataset…
Peiiii/nextclaw
A skill your agent uses when the user wants distinctive, production-grade frontend design, anti-generic AI aesthetics, UX critique, technical UI audits, or final polish through bundled Impeccable…
Peiiii/nextclaw
Curate NextClaw skill resources, including OpenClaw and community sources.
当用户要求扫描、识别、清理、常态化治理 NextClaw 仓库里的死代码、无用代码、unused files、unused exports、unused dependencies,尤其是核心包越来越臃肿、想删旧实现或做定期减债时使用。. Nextclaw Dead Code Governance is an agent skill from Peiiii/nextclaw.
Run `npx skills add Peiiii/nextclaw --skill nextclaw-dead-code-governance -a claude-code`. Or copy the skill folder (.agents/wiki/skills/operations/nextclaw-dead-code-governance in Peiiii/nextclaw) into .claude/skills/nextclaw-dead-code-governance in your project. Claude Code loads it when a task matches its description.
Run `npx skills add Peiiii/nextclaw --skill nextclaw-dead-code-governance -a codex`. Or copy the skill folder (.agents/wiki/skills/operations/nextclaw-dead-code-governance in Peiiii/nextclaw) into .agents/skills/nextclaw-dead-code-governance in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Peiiii/nextclaw --skill nextclaw-dead-code-governance -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/nextclaw-dead-code-governance, .gemini/skills/nextclaw-dead-code-governance, .github/skills/nextclaw-dead-code-governance and .opencode/skills/nextclaw-dead-code-governance in your project.
Going by SKILL.md and its folder, Nextclaw Dead Code Governance needs the command-line tools its instructions call (pnpm, rg, node and git).
SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Nextclaw Dead Code Governance is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 974 tokens (SKILL.md is roughly 3.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Nextclaw Dead Code Governance: Unused CSS (thedaviddias/Front-End-Checklist, 74k stars), Board Governance (sickn33/agentic-awesome-skills, 47k stars), Agent Governance (github/awesome-copilot, 40k stars) and Dead Dependencies (redis/RedisInsight, 8.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Peiiii (a GitHub user) maintains it in Peiiii/nextclaw, which has 260 GitHub stars. The repository holds 70 skills in this directory. The repository was last updated on October 8, 2026.
Source: Peiiii/nextclaw on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.