skill-refactor

Audit DSO Skill SKILL.md and phase files for reliability and token inefficiencies.

6|1|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/navapbc/digital-service-orchestra --skill skill-refactor-navapbc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: skill-refactor
Source: https://github.com/navapbc/digital-service-orchestra/tree/main/.claude/skills/skill-refactor
Command: npx skills add https://github.com/navapbc/digital-service-orchestra --skill skill-refactor-navapbc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill guides teams through a structured, end-to-end refactor of an existing DSO skill to improve clarity, token efficiency, and reliability — covering script relocation, reference updates, change-detector test removal, and ticket reconciliation.

Core Features & Use Cases

  • End-to-end eight-phase workflow: critical review, remediation plan, script relocation, reference updates, change-detector sweep, ticket reconciliation, renumbering, and commit readiness.
  • Structural hygiene: consolidates and standardizes steps, assets, and references to prevent drift across skills.
  • Cross-skill consistency: ensures moved files and updated references remain aligned with repository-wide conventions and governance.

Quick Start

Inspect the target Skill and prepare a remediation plan to begin the refactor process.

Frequently Asked Questions about skill-refactor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit an existing workflow skill for reliability issues and token inefficiencies?

To audit an existing workflow skill, you can run a structured eight-phase refactor that surfaces reliability issues and token inefficiencies in SKILL.md and phase files, then delivers a remediation roadmap. This process results in a clean, commit-ready skill unit.

What is the best way to refactor code-quality and process-improvement drift in skill files?

The best way to refactor code-quality drift in skill files is to apply a structured workflow that identifies inconsistencies, relocates skill-scoped scripts, and updates references. This ensures cross-skill consistency and prevents future structural drift.

How does script relocation and reference updating work during a skill audit?

Script relocation during a skill audit works by moving skill-scoped files to standardized locations and updating all corresponding references across the repository. This structural hygiene step ensures moved files remain aligned with repository-wide conventions.

When do I need to perform a change-detector sweep and ticket reconciliation for workflow skills?

You need to perform a change-detector sweep and ticket reconciliation when existing workflow skills exhibit drift or structural inconsistency. This sweep removes obsolete change-detector tests and aligns the skill with current governance standards.

Can I use a structured workflow to prepare a refactored skill for commit readiness?

Yes, you can use a structured eight-phase workflow to prepare a refactored skill for commit readiness. The final phases handle renumbering and deliver concrete changes necessary to achieve a clean, commit-ready skill unit.

Why does skill drift occur in SKILL.md and phase files, and how can I remediate it?

Skill drift occurs in SKILL.md and phase files when structural hygiene is neglected over time, causing misaligned references and token inefficiencies. You can remediate this by executing a critical review and applying a structured remediation plan.