library-extraction-stabilisation

Assess readiness criteria before extracting shared code into versioned libraries.

1|1|Updated Jan 3, 2026
One-click install
npx skills add https://github.com/mcj-coder/development-skills --skill library-extraction-stabilisation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: library-extraction-stabilisation
Source: https://github.com/mcj-coder/development-skills/tree/main/skills/library-extraction-stabilisation
Command: npx skills add https://github.com/mcj-coder/development-skills --skill library-extraction-stabilisation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill prevents premature or unstable code extractions into shared libraries, ensuring that shared code is only extracted after proven stability, clear ownership, and a robust versioning strategy are in place.

Core Features & Use Cases

  • Readiness Assessment: Evaluates consumer count, stability, ownership, and support before extraction.
  • Risk Mitigation: Identifies red flags and provides alternative approaches for unready extractions.
  • Governance Guidance: Offers templates for decision matrices, migration plans, and documentation.
  • Use Case: A developer wants to extract a utility function used by two services. This Skill will guide them to wait until a third consumer emerges and the function has demonstrated stability over several months, preventing potential upgrade fatigue and maintenance overhead.

Quick Start

Use the library-extraction-stabilisation skill to assess if the 'payment-processing' module should be extracted into a shared library.

Frequently Asked Questions about library-extraction-stabilisation

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

FAQPage Schema
When should I extract shared code into a versioned library?

Extract shared code into a versioned library only after evaluating consumer count, stability, ownership, and support. Wait until a third consumer emerges and the code has demonstrated stability over several months to prevent upgrade fatigue and maintenance overhead.

How do I assess readiness for extracting duplicated code into a shared package?

Assess readiness for extracting duplicated code by enforcing readiness criteria and governance. Evaluate consumer count, demonstrated stability, clear ownership, and a robust versioning strategy before proceeding with the shared package extraction.

What are the risks of premature code extraction into internal libraries?

Premature code extraction into internal libraries risks upgrade fatigue and maintenance overhead. Identify red flags early and apply alternative approaches to mitigate instability, ensuring shared code has proven stability and clear ownership before abstraction.

How do I govern the stabilization of existing internal libraries?

Govern the stabilization of existing internal libraries by enforcing readiness criteria, clear ownership, and versioning strategies. Use decision matrices, migration plans, and documentation templates to ensure sustainable code sharing and prevent unstable extractions.

Can I extract a utility function used by only two services into a shared library?

Extracting a utility function used by only two services into a shared library is not recommended. Wait until a third consumer emerges and the function has demonstrated stability over several months to avoid potential maintenance overhead and upgrade fatigue.

What is the best way to prevent unstable code extractions into shared libraries?

The best way to prevent unstable code extractions is to enforce readiness criteria and software governance before abstraction. Ensure proven stability, clear ownership, versioning strategy, and support are in place to sustainably extract shared code.