DRY Refactoring With jscpd
kucherenko/jscpd
Removes copy-paste duplication found by jscpd, starting with exact clones and hotspots, then renamed and near-miss copies, using proven refactoring strategies.
A skill your agent uses when writing, reviewing, or refactoring TypeScript
$ npx skills add mrzmyr/pixy-mood-tracker-app --skill coding-standards -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install mrzmyr/pixy-mood-tracker-app coding-standards --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/mrzmyr/pixy-mood-tracker-app.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/coding-standards .claude/skills/coding-standards && 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 "coding-standards" agent skill from https://github.com/mrzmyr/pixy-mood-tracker-app/tree/main/.agents/skills/coding-standards into .claude/skills/coding-standards/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "coding-standards", 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/mrzmyr/pixy-mood-tracker-app/tree/main/.agents/skills/coding-standardsType 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 mrzmyr/pixy-mood-tracker-app --skill coding-standards -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install mrzmyr/pixy-mood-tracker-app coding-standards --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mrzmyr/pixy-mood-tracker-app.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/coding-standards .agents/skills/coding-standards && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "coding-standards" agent skill from https://github.com/mrzmyr/pixy-mood-tracker-app/tree/main/.agents/skills/coding-standards into .agents/skills/coding-standards/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "coding-standards", 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 mrzmyr/pixy-mood-tracker-app --skill coding-standards -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install mrzmyr/pixy-mood-tracker-app coding-standards --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mrzmyr/pixy-mood-tracker-app.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/coding-standards .cursor/skills/coding-standards && 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 "coding-standards" agent skill from https://github.com/mrzmyr/pixy-mood-tracker-app/tree/main/.agents/skills/coding-standards into .cursor/skills/coding-standards/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "coding-standards", 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/mrzmyr/pixy-mood-tracker-app.git --path .agents/skills/coding-standards--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 mrzmyr/pixy-mood-tracker-app --skill coding-standards -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install mrzmyr/pixy-mood-tracker-app coding-standards --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mrzmyr/pixy-mood-tracker-app.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/coding-standards .gemini/skills/coding-standards && 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 "coding-standards" agent skill from https://github.com/mrzmyr/pixy-mood-tracker-app/tree/main/.agents/skills/coding-standards into .gemini/skills/coding-standards/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "coding-standards", 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 mrzmyr/pixy-mood-tracker-app coding-standardsInstalls 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 mrzmyr/pixy-mood-tracker-app --skill coding-standards -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/mrzmyr/pixy-mood-tracker-app.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/coding-standards .github/skills/coding-standards && 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 "coding-standards" agent skill from https://github.com/mrzmyr/pixy-mood-tracker-app/tree/main/.agents/skills/coding-standards into .github/skills/coding-standards/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "coding-standards", 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 mrzmyr/pixy-mood-tracker-app --skill coding-standards -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install mrzmyr/pixy-mood-tracker-app coding-standards --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mrzmyr/pixy-mood-tracker-app.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/coding-standards .opencode/skills/coding-standards && 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 "coding-standards" agent skill from https://github.com/mrzmyr/pixy-mood-tracker-app/tree/main/.agents/skills/coding-standards into .opencode/skills/coding-standards/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "coding-standards", 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.
coding-standardsA skill your agent uses when writing, reviewing, or refactoring TypeScript
Coding Standards is an agent skill from mrzmyr/pixy-mood-tracker-app. Use when writing, reviewing, or refactoring TypeScript
Its SKILL.md is about 2.2k 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 Code quality and Refactoring. It works with TypeScript. The repository describes itself as: Minimalistic app to track your mood within one pixel a day. The licence is MIT.
Read from SKILL.md and the folder at commit 700546b. 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.
No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).
From 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.
Coding Standards loads about 2.2k tokens when it runs. Until then it costs about 18 tokens; SKILL.md has 638 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 mrzmyr/pixy-mood-tracker-app at commit 700546b, republished under its MIT licence (© mrzmyr). 638 words, ~2,175 tokens.
.claude/skills/coding-standards/SKILL.md (or your agent's skills folder).✅ Use
getUsers({ pageSize, pageIndex });
const tool = stripPrefix({
value: ctx.toolName,
prefix: prefix,
});❌ Avoid
getUsers(pageSize, pageIndex);
stripPrefix(ctx.toolName, prefix);Avoid ternaries that stand in for a branch. Oxlint rejects nested ternaries; simple ternaries still need judgment.
Every real error path must use the project's structured error helper. This includes thrown errors, returned HTTP/OAuth/JSON errors, and error logs.
Structured errors must include:
statusmessagewhyfixThe fields must be specific enough for an operator or developer to understand what happened, why it happened, and what action resolves it.
✅ Use
throw createError({
status: 502,
message: "OAuth metadata request failed",
why: `The provider returned status ${response.status} while loading OAuth metadata`,
fix: "Verify the OAuth provider is reachable and the issuer configuration is correct",
});❌ Avoid
throw new Error(`OAuth metadata request failed with ${response.status}`);Boolean-returning functions must be prefixed with a boolean-style verb.
Use prefixes like:
ishascanshouldwaswill✅ Use
function isAllowed({ userId }: { userId: string }): boolean {
return userId.length > 0;
}❌ Avoid ambiguous boolean names
function allowed(userId: string): boolean {
return userId.length > 0;
}Function names should be short and start with an action verb. Prefer verb + subject.
Use verbs like:
getsetcreateupdatedeletefetchloadparseformatincreasedecrease✅ Use
getAttrs();
increaseRetries();
formatName();❌ Avoid noun-only or abbreviated names when the function performs an action
baseAttr();
retryCount();
displayName();✅ Use one-word function names when the word is the complete, intentional API and reads clearly at the call site, especially for small DSL-style helpers or result builders
success();
error();
text();Use the file name as naming context. Do not repeat the domain already supplied by the file path or file name unless it removes ambiguity at the call site.
✅ Use
// data-analysis.ts
export function getSandbox() {
// ...
}❌ Avoid
// data-analysis.ts
export function getDataAnalysisSandbox() {
// ...
}✅ Use
const DATABASE_URL = process.env.DATABASE_URL;
if (!DATABASE_URL) {
throw createError({
status: 500,
message: "DATABASE_URL is required",
why: "DATABASE_URL was not set in the environment",
fix: "Set DATABASE_URL before starting the service",
});
}❌ Avoid
const DATABASE_URL =
process.env.DATABASE_URL ??
process.env.LEGACY_DATABASE_URL ??
"postgres://localhost:5432/app";✅ Use
async function readOnlyQuery({ db, query }) {
const result = await db.explainQuery({ query });
if (result.statementType !== "SELECT") {
// throw structured error
}
return query;
}❌ Avoid
function readOnlyQuery(query) {
const sql = String(query).trim().replace(/;+\s*$/, "");
if (!/^(select|with|explain)\b/i.test(sql)) throw new Error("read only only");
if (/\b(insert|update|delete|drop|alter|create)\b/i.test(sql)) throw new Error("mutating sql");
return sql;
}@inheritDoc or @inherit.@returns tag, write the typed errors that the function can return. These errors include Result types and tagged errors.@throws tag only if one of these is true:notYetImplemented path.✅ Good
/**
* Parse an email address from untrusted input.
*
* The input is trimmed and lower-cased before validation. Construct values
* only through this function; the brand makes raw strings unusable where an
* {@link EmailAddress} is required.
*
* @param input - The untrusted string to parse.
* @returns A parsed {@link EmailAddress}, or {@link InvalidEmailAddress} when
* the input is invalid.
*/
export function parse(input: string): Result<EmailAddress, InvalidEmailAddress> {
// ...
}
/** Input required to evaluate a boolean flag for a single user. */
export type BooleanFlagInput = {
/** The feature flag key to evaluate. */
readonly flagKey: string;
/** The user's email, used as both context key and email attribute. */
readonly userEmail: string;
/** The value returned when the flag cannot be evaluated. */
readonly defaultValue: boolean;
};❌ Bad
/**
* Parses input.
*
* @inheritDoc
* @param input - string
* @returns Result<EmailAddress, InvalidEmailAddress>
*/
export function parse(input: string): Result<EmailAddress, InvalidEmailAddress> {
// ...
}
export type BooleanFlagInput = {
readonly flagKey: string;
readonly userEmail: string;
readonly defaultValue: boolean;
};✅ Good
/**
* Context window of {@link MODEL_ID}. Declared here because this model is
* unlisted in the gateway catalog, so the build cannot resolve compaction
* metadata. Keep it in sync when the model changes.
* See https://example.com/docs/agent-config
*/
export const MODEL_CONTEXT_WINDOW_TOKENS = 1_000_000;❌ Bad
export const MODEL_CONTEXT_WINDOW_TOKENS = 1_000_000;✅ Good
/**
* Terminal assistant message held until the turn ends.
*
* `message.completed` fires inside the step that produced it, before that
* step's `step.completed` reports usage. Posting there would render a footer
* whose cost is always missing on a single-step turn, so delivery waits for
* `turn.completed`. See https://example.com/docs/sessions
*/
const pendingChannelResponse = defineState<PendingChannelResponse | null>(
"my-agent.pending-channel-response",
() => null,
);❌ Bad
const pendingChannelResponse = defineState<PendingChannelResponse | null>(
"my-agent.pending-channel-response",
() => null,
);© mrzmyr, 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/coding-standards of mrzmyr/pixy-mood-tracker-app.
Open the folder on GitHubat commit 700546b
Coding Standards 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 |
|---|---|---|---|---|---|---|
| Coding Standards this skillmrzmyr/pixy-mood-tracker-app | 153 | — | ~2.2k | Automated safety check: Pass | MIT | |
| DRY Refactoring With jscpdkucherenko/jscpd | 6.4k | — | ~2.1k | Automated safety check: Pass | MIT | |
| Qovery Console StandardsQovery/console | 227 | — | ~924 | Automated safety check: Pass | MIT | |
| jscpd Duplicate Code Detectorkucherenko/jscpd | 6.4k | — | ~4.5k | Automated safety check: Pass | MIT | |
| Typescript Best Practicesjwynia/agent-skills | 169 | — | ~2.5k | Automated safety check: Pass | MIT | |
| Clean Testsertugrul-dmr/clean-code-skills | 197 | — | ~1.4k | Automated safety check: Pass | MIT |
kucherenko/jscpd
Removes copy-paste duplication found by jscpd, starting with exact clones and hotspots, then renamed and near-miss copies, using proven refactoring strategies.
Qovery/console
Qovery Console coding standards, architecture guidelines, naming conventions, testing practices, and development workflows.
kucherenko/jscpd
Finds duplicated code in 220+ languages with jscpd, reports exact, renamed and near-miss clones in a compact agent-friendly format and measures duplication.
jwynia/agent-skills
Guide AI agents through TypeScript coding best practices including type safety, error handling, code organization, and architecture patterns.
ertugrul-dmr/clean-code-skills
A skill your agent uses when writing, fixing, editing, or refactoring TypeScript tests.
LeoYeAI/openclaw-master-skills
Code review automation for TypeScript, JavaScript, Python, Go, Swift, Kotlin.
mrzmyr/pixy-mood-tracker-app
Competitor analysis for Pixy (or any mobile app) from public App Store and Google Play data, no API keys.
mrzmyr/pixy-mood-tracker-app
Upload screenshots or videos to a PR body. An agent skill from mrzmyr/pixy-mood-tracker-app.
mrzmyr/pixy-mood-tracker-app
Build, install, and run the app on a device. An agent skill from mrzmyr/pixy-mood-tracker-app.
mrzmyr/pixy-mood-tracker-app
Add beta testers for Pixy on Android and iOS. An agent skill from mrzmyr/pixy-mood-tracker-app.
mrzmyr/pixy-mood-tracker-app
Run changed e2e flows for a pull request and note the result.
mrzmyr/pixy-mood-tracker-app
Monitor a pull request until review comments and CI are handled.
Works with
Categories
A skill your agent uses when writing, reviewing, or refactoring TypeScript. Coding Standards is an agent skill from mrzmyr/pixy-mood-tracker-app.
Coding Standards fits situations like: refactoring TypeScript; tasks that involve Code quality; tasks that involve Refactoring.
Run `npx skills add mrzmyr/pixy-mood-tracker-app --skill coding-standards -a claude-code`. Or copy the skill folder (.agents/skills/coding-standards in mrzmyr/pixy-mood-tracker-app) into .claude/skills/coding-standards in your project. Claude Code loads it when a task matches its description.
Run `npx skills add mrzmyr/pixy-mood-tracker-app --skill coding-standards -a codex`. Or copy the skill folder (.agents/skills/coding-standards in mrzmyr/pixy-mood-tracker-app) into .agents/skills/coding-standards 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 mrzmyr/pixy-mood-tracker-app --skill coding-standards -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/coding-standards, .gemini/skills/coding-standards, .github/skills/coding-standards and .opencode/skills/coding-standards in your project.
SKILL.md names no scripts, command-line tools or credentials: Coding Standards is instructions for the agent only.
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.
Coding Standards 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.2k tokens (SKILL.md is roughly 8.7k 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 Coding Standards: DRY Refactoring With jscpd (kucherenko/jscpd, 6.4k stars), Qovery Console Standards (Qovery/console, 227 stars), jscpd Duplicate Code Detector (kucherenko/jscpd, 6.4k stars) and Typescript Best Practices (jwynia/agent-skills, 169 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
mrzmyr (a GitHub user) maintains it in mrzmyr/pixy-mood-tracker-app, which has 153 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on October 8, 2026.
Source: mrzmyr/pixy-mood-tracker-app on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.