Review PR
microsoft/vscode-containers
Review a specific vscode-containers pull request on demand from the CLI (or any interactive agent), the way a Container Tools maintainer would.
Detect copy-pasted code blocks across the shared source (vscode-extension/src, the repo-root src/, cli/src) with the dependency-free check-code-duplication.js detector, then pick one duplicate group…
$ npx skills add rajbos/ai-engineering-fluency --skill deduplicate-code -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install rajbos/ai-engineering-fluency deduplicate-code --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/rajbos/ai-engineering-fluency.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/deduplicate-code .claude/skills/deduplicate-code && 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 "deduplicate-code" agent skill from https://github.com/rajbos/ai-engineering-fluency/tree/main/.claude/skills/deduplicate-code into .claude/skills/deduplicate-code/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "deduplicate-code", 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/rajbos/ai-engineering-fluency/tree/main/.claude/skills/deduplicate-codeType 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 rajbos/ai-engineering-fluency --skill deduplicate-code -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install rajbos/ai-engineering-fluency deduplicate-code --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/rajbos/ai-engineering-fluency.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/deduplicate-code .agents/skills/deduplicate-code && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "deduplicate-code" agent skill from https://github.com/rajbos/ai-engineering-fluency/tree/main/.claude/skills/deduplicate-code into .agents/skills/deduplicate-code/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "deduplicate-code", 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 rajbos/ai-engineering-fluency --skill deduplicate-code -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install rajbos/ai-engineering-fluency deduplicate-code --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/rajbos/ai-engineering-fluency.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/deduplicate-code .cursor/skills/deduplicate-code && 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 "deduplicate-code" agent skill from https://github.com/rajbos/ai-engineering-fluency/tree/main/.claude/skills/deduplicate-code into .cursor/skills/deduplicate-code/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "deduplicate-code", 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/rajbos/ai-engineering-fluency.git --path .claude/skills/deduplicate-code--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 rajbos/ai-engineering-fluency --skill deduplicate-code -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install rajbos/ai-engineering-fluency deduplicate-code --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/rajbos/ai-engineering-fluency.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/deduplicate-code .gemini/skills/deduplicate-code && 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 "deduplicate-code" agent skill from https://github.com/rajbos/ai-engineering-fluency/tree/main/.claude/skills/deduplicate-code into .gemini/skills/deduplicate-code/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "deduplicate-code", 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 rajbos/ai-engineering-fluency deduplicate-codeInstalls 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 rajbos/ai-engineering-fluency --skill deduplicate-code -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/rajbos/ai-engineering-fluency.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/deduplicate-code .github/skills/deduplicate-code && 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 "deduplicate-code" agent skill from https://github.com/rajbos/ai-engineering-fluency/tree/main/.claude/skills/deduplicate-code into .github/skills/deduplicate-code/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "deduplicate-code", 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 rajbos/ai-engineering-fluency --skill deduplicate-code -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install rajbos/ai-engineering-fluency deduplicate-code --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/rajbos/ai-engineering-fluency.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/deduplicate-code .opencode/skills/deduplicate-code && 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 "deduplicate-code" agent skill from https://github.com/rajbos/ai-engineering-fluency/tree/main/.claude/skills/deduplicate-code into .opencode/skills/deduplicate-code/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "deduplicate-code", 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.
deduplicate-codeDetect copy-pasted code blocks across the shared source (vscode-extension/src, the repo-root src/, cli/src) with the dependency-free check-code-duplication.js detector, then pick one duplicate group…
Deduplicate Code is an agent skill from rajbos/ai-engineering-fluency. Detect copy-pasted code blocks across the shared source (vscode-extension/src, the repo-root src/, cli/src) with the dependency-free check-code-duplication.js detector, then pick one duplicate group and extract a shared helper to eliminate it, keeping all tests green. Use when a PR review notes duplication, when the CI step summary's "Code Duplication Analysis" grows, or when asked to reduce code duplication / DRY up the codebase.
Its SKILL.md is about 2.4k 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 Development, covering Pull requests. It works with Visual Studio Code. The repository describes itself as: Extension that shows information about the estimated token usage and more of AI in editors/CLI's. The licence is MIT.
10 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 64b51e6. 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:
npmnodetsceslintFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use npm, 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.
Deduplicate Code loads about 2.4k tokens when it runs. Until then it costs about 113 tokens; SKILL.md has 1,179 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 rajbos/ai-engineering-fluency at commit 64b51e6, republished under its MIT licence (© rajbos). 1,179 words, ~2,386 tokens.
.claude/skills/deduplicate-code/SKILL.md (or your agent's skills folder).The CI step summary runs check-code-duplication.js and reports copy-pasted
blocks across the three TypeScript source trees every PR. A growing "Code
Duplication Analysis" section (or a review finding of "this is duplicated")
is the signal this skill remediates: it finds the duplicate groups, picks
one, extracts a single shared helper in their place, and verifies nothing
broke. Like refactor-large-function, it changes one group per pass so the
diff stays reviewable and a regression points at a single extraction.
scripts/check-code-duplication.js (run as npm run check:duplicates from
vscode-extension/) normalizes source lines (whitespace collapsed, comment-only
and blank lines dropped so re-indented or re-commented copies are still caught),
hashes sliding windows of a minimum length, groups identical windows, and
extends each group to its maximal shared block. It reports clone groups as
Markdown (for the step summary) or --json. It is report-only by default;
this skill does the remediation the report asks for.
A "duplicate group" is a normalized sequence of >= --min-lines lines that
occurs in two or more places (cross-file, or non-overlapping within one file).
Get the current clone groups in machine-readable form so you can pick a target:
node scripts/check-code-duplication.js --json --min-lines 14Or, scoped to one area if the full scan is large:
node scripts/check-code-duplication.js --json --min-lines 14 --include 'src/**/*.ts'Read the groups array: each entry has lines (maximal block length),
occurrences ({ file, startLine, endLine }), and a preview (first 3 lines).
Pick the single group to remediate following these priorities:
src/adapters/*.ts and the per-editor CLI store modules
(src/kilo.ts, src/opencode.ts, src/copilotCliStore.ts, src/devinCli.ts,
src/hermes.ts) deliberately mirror each other's SQLite/stat helpers because
each editor's session layout differs. A pure structural clone between two of
these is usually NOT a safe extraction \u2014 only consolidate when the exact
same logic (not just the same shape) is being copied.vscode-extension/test/unit/
for a matching test file) so the extraction is covered.Before touching code, read the relevant sub-project instructions file for the
area you are changing \u2014 .github/instructions/vscode-extension.instructions.md
for vscode-extension/ work, .github/instructions/cli.instructions.md for
cli/, and the root AGENTS.md for shared src/ (notably the "CLI Must Reuse
Shared Functions" rule: never reimplement session parsing or cost attribution
in a place the shared module already covers).
Open every occurrence the detector reported and read the full block plus a few lines of surrounding context. Confirm it is a true behavioral duplicate and not two blocks that merely look the same but read different inputs or have different error handling. If the occurrences are only structurally similar (condemn both, then act), stop and pick a different group \u2014 forcing a shared helper onto divergent logic is the failure mode this skill exists to avoid.
Decide where the extracted helper lives:
_
prefix) at the top of the file, like refactor-large-function.src/ and vscode-extension/src) \u2192 the
helper must live in the shared src/ module and be imported by the consumer,
never copied. This is the canonical split documented in AGENTS.md.Establish a green baseline before changing anything:
cd vscode-extension
npm ci --ignore-scripts
node_modules/.bin/tsc --noEmit # type-check
npm run test:node # unit testsRecord which tests cover the target files so you know what to watch.
Apply the extraction. Rules:
_ prefix for private helpers in the same file.null (not undefined) from a helper to signal an unrecoverable
error or "nothing to do"; the caller guards with an early if (!result).cd vscode-extension && node_modules/.bin/eslint src ../src <changed-files>All new warnings introduced by your changes must be resolved before proceeding. Pre-existing warnings on other functions in the same files are acceptable \u2014 do not fix unrelated code.
Confirm the chosen group is gone and you did not introduce a new one:
node scripts/check-code-duplication.js --json --min-lines 14The group you remediated must no longer appear. If a new group appeared because your helper is itself now duplicated, that means the helper was placed in the wrong module \u2014 move it to the shared location and import it instead of copying.
cd vscode-extension
node_modules/.bin/tsc --noEmit # type-check
npm run test:node # unit tests
node esbuild.js --production # production bundleAll tests must pass and the build must succeed. If a test fails, fix the extraction \u2014 do not modify the tests unless the test itself was wrong before your change.
refactor: extract shared helper to eliminate duplicate block in <area>
<Which group was chosen, where the helper lives, and how many copies it
replaced. Note that the duplication detector no longer flags the group.>Open a pull request to main. The PR description should:
check-code-duplication.js no longer reports the group, all unit
tests pass, and the production build succeeds.tsc or unit tests fail after your change, revert and choose a different
extraction (or a different group) rather than patching around the failure.scripts/check-code-duplication.js \u2014 the detector this skill drives.vscode-extension/package.json \u2014 npm run check:duplicates script..github/workflows/ci.yml \u2014 the CI step that publishes the "Code
Duplication Analysis" report to the step summary..github/skills/refactor-large-function/SKILL.md \u2014 the companion skill
for functions that are too long rather than duplicated..github/instructions/vscode-extension.instructions.md,
.github/instructions/cli.instructions.md, AGENTS.md \u2014 the area rules
to read before editing (notably the shared-src/ reuse contract).© rajbos, 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 .claude/skills/deduplicate-code of rajbos/ai-engineering-fluency.
Open the folder on GitHubat commit 64b51e6
Deduplicate Code 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 |
|---|---|---|---|---|---|---|
| Deduplicate Code this skillrajbos/ai-engineering-fluency | 116 | — | ~2.4k | Automated safety check: Pass | MIT | |
| Review PRmicrosoft/vscode-containers | 141 | — | ~900 | Automated safety check: Pass | Custom licence | |
| Stewardyschimke/compose-ai-tools | 117 | — | ~2k | Automated safety check: Pass | Apache-2.0 | |
| Code Reviewmicrosoft/vscode-containers | 141 | — | ~415 | Automated safety check: Pass | Custom licence | |
| Promotion Brancheshardisgroupcom/sfdx-hardis | 401 | — | ~8.9k | Automated safety check: Notes | AGPL-3.0 | |
| Render Evidenceyschimke/compose-ai-tools | 117 | — | ~1.4k | Automated safety check: Pass | Apache-2.0 |
microsoft/vscode-containers
Review a specific vscode-containers pull request on demand from the CLI (or any interactive agent), the way a Container Tools maintainer would.
yschimke/compose-ai-tools
Drive a pull request on this repository to green — which fast checks to run before pushing, how to read a red check, and what to do about a review comment.
microsoft/vscode-containers
Review a pull request in this repository (the vscode-containers / Container Tools extension) when the automated reviewer has already supplied the diff and changed files.
hardisgroupcom/sfdx-hardis
How the promotion branches feature works (enablePromotionBranches, sf hardis:project:promotion:create) across sfdx-hardis and vscode-sfdx-hardis, and every file to touch when changing it.
yschimke/compose-ai-tools
Capture the before/after rendered PNGs a UI-affecting PR in this repository needs as visual evidence, including bringing an Android SDK up in a fresh sandbox.
obra/superpowers
Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.
rajbos/ai-engineering-fluency
Find all hardcoded URLs in TypeScript source files and verify they resolve (return HTTP 2xx/3xx).
rajbos/ai-engineering-fluency
Create a well-scoped GitHub issue in this repo. An agent skill from rajbos/ai-engineering-fluency.
rajbos/ai-engineering-fluency
Analyze coverage of the vscode-extension's tool-family definitions (DEFAULTTOOLFAMILIES in vscode-extension/src/toolFamilies.ts) against the canonical tool-name list in src/toolNames.json and/or a…
rajbos/ai-engineering-fluency
Load and display the last 10 cache entries as raw JSON output.
rajbos/ai-engineering-fluency
Assess the risk of a changeset (a PR, a branch, or the working tree) and classify it as low, medium, or high with a written rationale.
rajbos/ai-engineering-fluency
Describes the data files available in the coding agent environment after copilot-setup-steps runs.
Works with
Categories
Detect copy-pasted code blocks across the shared source (vscode-extension/src, the repo-root src/, cli/src) with the dependency-free check-code-duplication.js detector, then pick one duplicate group…. Deduplicate Code is an agent skill from rajbos/ai-engineering-fluency.js detector, then pick one duplicate group and extract a shared helper to eliminate it, keeping all tests green.
Deduplicate Code fits situations like: A PR review notes duplication; the CI step summarys Code Duplication Analysis grows; asked to reduce code duplication / DRY up the codebase.
Run `npx skills add rajbos/ai-engineering-fluency --skill deduplicate-code -a claude-code`. Or copy the skill folder (.claude/skills/deduplicate-code in rajbos/ai-engineering-fluency) into .claude/skills/deduplicate-code in your project. Claude Code loads it when a task matches its description.
Run `npx skills add rajbos/ai-engineering-fluency --skill deduplicate-code -a codex`. Or copy the skill folder (.claude/skills/deduplicate-code in rajbos/ai-engineering-fluency) into .agents/skills/deduplicate-code 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 rajbos/ai-engineering-fluency --skill deduplicate-code -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/deduplicate-code, .gemini/skills/deduplicate-code, .github/skills/deduplicate-code and .opencode/skills/deduplicate-code in your project.
Going by SKILL.md and its folder, Deduplicate Code needs the command-line tools its instructions call (npm, node, tsc and eslint).
SKILL.md contains no URLs. Its commands use npm, 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.
Deduplicate Code is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.4k tokens (SKILL.md is roughly 9.5k 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 Deduplicate Code: Review PR (microsoft/vscode-containers, 141 stars), Steward (yschimke/compose-ai-tools, 117 stars), Code Review (microsoft/vscode-containers, 141 stars) and Promotion Branches (hardisgroupcom/sfdx-hardis, 401 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
rajbos (a GitHub user) maintains it in rajbos/ai-engineering-fluency, which has 116 GitHub stars. The repository holds 21 skills in this directory. The repository was last updated on October 8, 2026.
Source: rajbos/ai-engineering-fluency on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.