Skip to main content

dry-refactoring

Guided workflow to eliminate copy-paste duplication in packages/hr-skills-build and packages/hr-skills-ref, detected by jscpd. Extract shared functions, constants, and types into their own files instead of growing an existing one.

v1.0.2New

Unsigned, install at your own risk

Unverified

This skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.

Install this skill

Run this command in your terminal. No account required — it auto-detects your AI tool and installs the skill file.

npx @skills-hub-ai/cli install hr-skills-dry-refactoring
Or download directly:
Browse all CLI commands →

Setup by platform

Claude Code

~/.claude/skills/<skill>/SKILL.md

Setup guide →

Install

One-click setup for your editor

Run in your project root

npx @skills-hub-ai/cli install hr-skills-dry-refactoring --target claude-code
0

Instructions

This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all
hr-hr-managementHelp HR directors, HRBPs, and People leaders manage the HR function effectively, including HR team leadership, HR department planning, budgeting, governance, performance management for HR teams, and building HR function credibility. Use when asked to "manage the HR team", "build the HR department", "set HR team goals", "plan the HR budget", "improve HR function effectiveness", or "lead the HR organization".1 installshr-consultingHelp HR business partners, HR leaders, and internal HR consultants advise business stakeholders, diagnose people problems, build business cases, and deliver strategic HR consulting engagements. Use when asked to advise a business leader on a people issue, build an HR business case, consult on an org problem, run an HR diagnostic, or position HR as a strategic advisor.1 installshr-talent-crmHelp TA teams design and operate a talent CRM to nurture candidate relationships, segment talent communities, and build pipeline ahead of need. Use when asked to set up a talent CRM, segment our talent pool, build a nurture campaign in our CRM, design talent community engagement, or improve our silver medalist re-engagement process.1 installshr-technologyHelp HR managers with HR technology strategy and implementation. Use when asked to evaluate HR systems, implement an HRIS, create an HR technology roadmap, select an ATS, develop HR chatbots, manage HR automation, write an HR technology RFP, or any HR technology task.1 installshr-frontendHelp HR managers, recruiters, and talent acquisition teams understand Frontend Engineering concepts, hiring requirements, frontend ecosystems, frontend candidate evaluation, and modern frontend workflows. Use when asked to explain frontend development, screen frontend candidates, understand React/Vue/Angular, compare frontend frameworks, evaluate frontend skills, create frontend interview questions, understand frontend architecture, or any frontend hiring and recruiting task.1 installshr-devopsHelp HR managers, recruiters, and talent acquisition teams understand DevOps, Platform Engineering, Site Reliability Engineering (SRE), cloud infrastructure, CI/CD, and modern software delivery workflows. Use when asked to explain DevOps, screen DevOps candidates, understand CI/CD, compare DevOps and SRE, evaluate infrastructure skills, create DevOps interview questions, understand cloud systems, or any DevOps hiring and recruiting task.1 installs

More from HR Skills

View source
github-awesome-copilot-git-commitGenerate high-quality, atomic Conventional Commits by analyzing Git changes, recommending logical commit boundaries, validating commit messages, and assisting with PRs, changelogs, and releases.3 installshr-cultureHelp HR managers, recruiters, and people leaders understand, assess, build, and communicate organizational culture. Use when asked to explain company culture, assess culture fit, build a strong workplace culture, write culture-related job description content, evaluate culture add vs culture fit, diagnose culture problems, design culture interview questions, improve employee engagement through culture, or any organizational culture, values, and workplace environment task.2 installshr-recruitingHelp HR managers with end-to-end recruiting and talent acquisition. Use when asked to write or improve a job description for a role, create interview questions, screen resumes, develop employer branding, send offer letters, conduct reference checks, or any other recruiting and hiring task, or handle day-to-day recruiting tasks for a role.2 installshr-payrollHelp HR operations specialists, payroll administrators, and compensation teams understand, design, and run payroll processing, compliance, and payroll-related HR operations. Use when asked to set up a payroll process, run a payroll compliance audit, design a payroll calendar, handle a payroll discrepancy, build a payroll onboarding checklist, calculate overtime and statutory deductions, design a multi-country payroll process, or any payroll administration, compliance, and operations task.2 installsskill-vetterSecurity-first vetter for SKILL.md files — checks permissions, suspicious patterns, and metadata before installing or publishing skills. Useful for validating third-party skills for this repo.2 installshr-employee-relationsHelp HR managers with employee relations matters. Use when asked to handle a grievance, conduct an exit interview, manage workplace investigations, create a remote work policy, write employee contracts, manage accommodations, conduct satisfaction surveys, or any employee relations task.1 installs

More Build skills

Browse category
ui-design-systemUI design system toolkit for Senior UI Designer including design token generation, component documentation, responsive design calculations, and developer handoff tools. Use when creating design systems, generating design tokens, maintaining visual consistency, or facilitating design-dev collaboration and developer handoff.230 installssenior-frontendFrontend development skill for React, Next.js, TypeScript, and Tailwind CSS applications. Use when building React components, optimizing Next.js performance, analyzing bundle sizes, scaffolding frontend projects, implementing accessibility, or reviewing frontend code quality.167 installsfrontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.122 installsself-improving-agentCurate Claude Code's auto-memory into durable project knowledge. Analyze MEMORY.md for patterns, promote proven learnings to CLAUDE.md and .claude/rules/, extract recurring solutions into reusable skills. Use when: (1) reviewing what Claude has learned about your project, (2) graduating a pattern from notes to enforced rules, (3) turning a debugging solution into a skill, (4) checking memory health and capacity.87 installssenior-backendDesigns and implements backend systems including REST APIs, microservices, database architectures, authentication flows, and security hardening. Use when the user asks to "design REST APIs", "optimize database queries", "implement authentication", "build microservices", "review backend code", "set up GraphQL", "handle database migrations", or "load test APIs". Covers Node.js/Express/Fastify development, PostgreSQL optimization, API security, and backend architecture patterns.78 installsusing-superpowersUse when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions67 installs

Frequently asked questions about dry-refactoring

What does the dry-refactoring skill do?

Guided workflow to eliminate copy-paste duplication in packages/hr-skills-build and packages/hr-skills-ref, detected by jscpd. Extract shared functions, constants, and types into their own files instead of growing an existing one. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the dry-refactoring skill?

Run `npx @skills-hub-ai/cli install hr-skills-dry-refactoring` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/hr-skills-dry-refactoring/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does dry-refactoring work with?

dry-refactoring runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the dry-refactoring skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use dry-refactoring after installing it?

In Claude Code, type `/hr-skills-dry-refactoring` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the dry-refactoring skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.