Test Writing Workflow
iOfficeAI/AionUi
Sets the test-writing workflow for the repository: risk-first scenario lists, behavior-focused Vitest tests, a full run before each commit and a coverage target.
Searches for duplicate code, duplicate tests, and dead code across the SharpLsp repo, then safely merges or removes them.
$ npx skills add Nimblesite/SharpLsp --skill code-dedup -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install Nimblesite/SharpLsp code-dedup --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/Nimblesite/SharpLsp.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/code-dedup .claude/skills/code-dedup && 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 "code-dedup" agent skill from https://github.com/Nimblesite/SharpLsp/tree/main/.agents/skills/code-dedup into .claude/skills/code-dedup/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "code-dedup", 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/Nimblesite/SharpLsp/tree/main/.agents/skills/code-dedupType 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 Nimblesite/SharpLsp --skill code-dedup -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install Nimblesite/SharpLsp code-dedup --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Nimblesite/SharpLsp.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/code-dedup .agents/skills/code-dedup && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "code-dedup" agent skill from https://github.com/Nimblesite/SharpLsp/tree/main/.agents/skills/code-dedup into .agents/skills/code-dedup/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "code-dedup", 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 Nimblesite/SharpLsp --skill code-dedup -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install Nimblesite/SharpLsp code-dedup --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Nimblesite/SharpLsp.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/code-dedup .cursor/skills/code-dedup && 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 "code-dedup" agent skill from https://github.com/Nimblesite/SharpLsp/tree/main/.agents/skills/code-dedup into .cursor/skills/code-dedup/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "code-dedup", 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/Nimblesite/SharpLsp.git --path .agents/skills/code-dedup--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 Nimblesite/SharpLsp --skill code-dedup -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install Nimblesite/SharpLsp code-dedup --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Nimblesite/SharpLsp.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/code-dedup .gemini/skills/code-dedup && 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 "code-dedup" agent skill from https://github.com/Nimblesite/SharpLsp/tree/main/.agents/skills/code-dedup into .gemini/skills/code-dedup/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "code-dedup", 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 Nimblesite/SharpLsp code-dedupInstalls 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 Nimblesite/SharpLsp --skill code-dedup -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/Nimblesite/SharpLsp.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/code-dedup .github/skills/code-dedup && 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 "code-dedup" agent skill from https://github.com/Nimblesite/SharpLsp/tree/main/.agents/skills/code-dedup into .github/skills/code-dedup/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "code-dedup", 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 Nimblesite/SharpLsp --skill code-dedup -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install Nimblesite/SharpLsp code-dedup --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Nimblesite/SharpLsp.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/code-dedup .opencode/skills/code-dedup && 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 "code-dedup" agent skill from https://github.com/Nimblesite/SharpLsp/tree/main/.agents/skills/code-dedup into .opencode/skills/code-dedup/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "code-dedup", 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.
code-dedupSearches for duplicate code, duplicate tests, and dead code across the SharpLsp repo, then safely merges or removes them.
Code Dedup is an agent skill from Nimblesite/SharpLsp. Searches for duplicate code, duplicate tests, and dead code across the SharpLsp repo, then safely merges or removes them. Use when the user says "deduplicate", "find duplicates", "remove dead code", "DRY up", or "code dedup". Requires test coverage — refuses to touch untested code.
Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Testing & QA, covering Test coverage and Code simplification. It works with TypeScript. The licence is MIT.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 34f38bf. 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:
makeFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
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.
Code Dedup loads about 1.6k tokens when it runs. Until then it costs about 73 tokens; SKILL.md has 854 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 Nimblesite/SharpLsp at commit 34f38bf, republished under its MIT licence (© Nimblesite). 854 words, ~1,592 tokens.
.claude/skills/code-dedup/SKILL.md (or your agent's skills folder).<!-- agent-pmo:2efd847 -->
Carefully search for duplicate code, duplicate tests, and dead code across the repo. Merge duplicates and delete dead code — but only when test coverage proves the change is safe.
Before touching ANY code, verify these conditions. If any fail, stop and report why.
make test — all tests must pass. If tests fail, stop. Do not dedup a broken codebase.make test — tests are fail-fast AND enforce the coverage threshold from coverage-thresholds.json. If anything fails, stop and fix it before deduping.tsconfig.json must have "strict": true — proceedCopy this checklist and track progress:
Dedup Progress:
- [ ] Step 1: Prerequisites passed (tests green, coverage met, typed)
- [ ] Step 2: Dead code scan complete
- [ ] Step 3: Duplicate code scan complete
- [ ] Step 4: Duplicate test scan complete
- [ ] Step 5a: Dead code removed
- [ ] Step 5b: Duplicate code merged
- [ ] Step 5c: Duplicate tests removed
- [ ] Step 6: Verification passed (tests green, coverage stable)Before deciding what to touch, understand what is tested.
make test to confirm green baseline. make test is fail-fast AND enforces the coverage threshold from coverage-thresholds.json. It exits non-zero on any test failure OR coverage shortfall.Search for code that is never called, never imported, never referenced.
make lint output for clippy warningsnoUnusedLocals/noUnusedParameters in tsconfig, look for unexported functions with zero referencesSearch for code blocks that do the same thing in multiple places.
Search for tests that verify the same behavior.
For each change, follow this cycle: change -> test -> verify coverage -> continue or revert.
make test (fail-fast + coverage + threshold all in one)make test exits non-zero (test failure OR coverage drop): revert immediately and investigatemake testmake testmake test exits non-zero — revert immediately. The "duplicate" test was covering something the other wasn't.make lint — all linters must passmake test — tests must pass AND coverage must remain >= the baseline from Step 1pub function signatures, public class members, or export declarations that external code depends on. Internal refactoring only.© Nimblesite, 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/skills/code-dedup of Nimblesite/SharpLsp.
Open the folder on GitHubat commit 34f38bf
Code Dedup 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 |
|---|---|---|---|---|---|---|
| Code Dedup this skillNimblesite/SharpLsp | 137 | — | ~1.6k | Automated safety check: Pass | MIT | |
| Test Writing WorkflowiOfficeAI/AionUi | 33k | 1 repos | ~1.2k | Automated safety check: Pass | Apache-2.0 | |
| Apprunyysun/apprun | 1.2k | — | ~1.3k | Automated safety check: Pass | MIT | |
| Supercovsupercorp-ai/supercov | 148 | 1 repos | ~415 | Automated safety check: Pass | MIT | |
| Coverage Toolszkldi/Tachi | 237 | — | ~580 | Automated safety check: Pass | None | |
| Write Testsopenplayerjs/openplayerjs | 649 | — | ~1.8k | Automated safety check: Pass | MIT |
iOfficeAI/AionUi
Sets the test-writing workflow for the repository: risk-first scenario lists, behavior-focused Vitest tests, a full run before each commit and a coverage target.
yysun/apprun
AppRun architecture guidance for building, reviewing, or fixing AppRun applications and the AppRun library itself.
supercorp-ai/supercov
Measures test coverage and code quality in a repository with the supercov CLI, and turns what it finds into small, focused tests or fixes.
zkldi/Tachi
Aggregates Vitest v8/Istanbul coverage across Tachi workspaces via tachi-coverage-tools (manifest, CLI, optional programmatic API).
openplayerjs/openplayerjs
Write or extend Jest tests for OpenPlayerJS to this repo's exact conventions — makeCore factories, typed internals handles instead of as any, media property mocking, fake timers, ads/vast mocks, and…
supercorp-ai/supercov
Scans a repository's source for security vulnerabilities with the supercov CLI, pointing to the line of each finding and mapping it to CWE classes.
Nimblesite/SharpLsp
Prepares the current branch for CI by running the exact same steps locally and fixing issues.
Nimblesite/SharpLsp
Upgrades all project dependencies to latest compatible versions.
Works with
Categories
Searches for duplicate code, duplicate tests, and dead code across the SharpLsp repo, then safely merges or removes them. Code Dedup is an agent skill from Nimblesite/SharpLsp. Searches for duplicate code, duplicate tests, and dead code across the SharpLsp repo, then safely merges or removes them.
Code Dedup fits situations like: the user says deduplicate; find duplicates; remove dead code.
Run `npx skills add Nimblesite/SharpLsp --skill code-dedup -a claude-code`. Or copy the skill folder (.agents/skills/code-dedup in Nimblesite/SharpLsp) into .claude/skills/code-dedup in your project. Claude Code loads it when a task matches its description.
Run `npx skills add Nimblesite/SharpLsp --skill code-dedup -a codex`. Or copy the skill folder (.agents/skills/code-dedup in Nimblesite/SharpLsp) into .agents/skills/code-dedup 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 Nimblesite/SharpLsp --skill code-dedup -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/code-dedup, .gemini/skills/code-dedup, .github/skills/code-dedup and .opencode/skills/code-dedup in your project.
Going by SKILL.md and its folder, Code Dedup needs the command-line tools its instructions call (make).
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. 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.
Code Dedup is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.6k tokens (SKILL.md is roughly 6.4k 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 Code Dedup: Test Writing Workflow (iOfficeAI/AionUi, 33k stars), Apprun (yysun/apprun, 1.2k stars), Supercov (supercorp-ai/supercov, 148 stars) and Coverage Tools (zkldi/Tachi, 237 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Nimblesite (a GitHub organization) maintains it in Nimblesite/SharpLsp, which has 137 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 6, 2026.
Source: Nimblesite/SharpLsp on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.