Refactoring packages
Agent skills, templates, examples, validators, and docs for operating Amadeus DLC, a lifecycle contract for AI driven software development.
npx -y skills add amadeus-dlc/amadeus --skill refactoring-packagesAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 5 stars5 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Use when actively refactoring an existing codebase's package or module structure. Detects cycles, oversized modules, misplaced responsibilities, and dependency direction problems, then proposes and executes a migration plan. Trigger for cleaning dependencies, breaking cycles, splitting modules, moving files, or structural refactoring work.
SKILL.md
1.4 KB, as published. Nobody here has run it
Refactoring Packages
Refactor structure in small, verifiable moves. Preserve behavior while improving dependency shape.
Workflow
-
Inventory the current package tree and dependency graph.
-
Identify cycles, large modules, unstable public APIs, and misplaced responsibilities.
-
Propose a target structure based on change reasons and dependency direction.
-
Move one coherent slice at a time.
-
Update imports, tests, build files, and public documentation as needed.
-
Run the relevant checks after each meaningful batch.
Reference
Read references/analysis-patterns.md for common structural smells and remedies.
Detailed Reference
For non-trivial implementation, review, or refactoring work, read references/details.md before giving final guidance. It contains the detailed rules, examples, smells, and migration notes that do not belong in the short invocation body.
Output
Return findings, target structure, migration checklist, executed changes, and verification results.