dependency-simplification
Remove, consolidate, or narrow unnecessary dependencies using manifest, import, runtime, licensing, and build evidence. Use for a bounded dependency-reduction slice; do not use for routine upgrades or adding convenience packages.
- License 许可
- MPL-2.0
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- dependency-simplification
- updated
- 1785024000000
- metadata
- { "version": "1.0.0", "akm-type": "skill", "akm-updated": "2026-07-26" }
- description
- Remove, consolidate, or narrow unnecessary dependencies using manifest, import, runtime, licensing, and build evidence. Use for a bounded dependency-reduction slice; do not use for routine upgrades or adding convenience packages.
- compatibility
- Requires the repository's existing package-manager and dependency validation commands.
03 SKILL.md 正文
Dependency Simplification
When To Use It
Use when an inventory identifies an unused dependency, duplicate capability, over-broad package boundary, or dependency whose removal clearly reduces risk or complexity.
When Not To Use It
Do not use for bulk upgrades, vulnerability remediation that changes versions, or adding a library solely to shorten local code.
Required Inputs
- Candidate package and declared use sites
- Manifests, lockfiles, workspace graph, and package-manager commands
- Runtime/build/plugin usage evidence
skills/coding/dependency-simplification/references/dependency-checklist.md
Procedure
- Trace declarations, direct imports, transitive use, scripts, plugins, peer requirements, generated code, and deployment packaging.
- Confirm whether the dependency is runtime, development, optional, peer, or externally supplied.
- Estimate replacement code and operational impact; prefer deletion over a home-grown substitute that increases complexity.
- Define one approved removal or consolidation slice.
- Change manifests and required lockfiles together only when the approved task requires it; avoid unrelated resolution churn.
- Run package-manager validation, build, tests, security checks, and packaging.
Constraints
- Do not add dependencies without explicit approval and demonstrated net complexity reduction.
- Do not hand-edit generated lockfile content.
- Do not combine removal with version upgrades or broad manifest formatting.
- Account for licenses, platform variants, optional features, and supply-chain policy.
Expected Output
Usage evidence, retained or removed decision, affected manifests and imports, dependency-graph delta, lockfile explanation, checks, risks, and rollback.
Verification
Use the repository package manager to regenerate and validate required artifacts. Confirm clean installation or equivalent packaging in an isolated environment when available, then run the full configured suite.
Stop Or Escalation Conditions
Stop when use may be dynamic or external, package-manager output causes unrelated churn, replacement behavior differs, licensing or deployment ownership is unclear, or removal requires a public contract change.
04 同仓库更多 Skills
tax-filing-checklist
Walk through the steps and documents needed to file an individual federal income tax return
patient-vitals-charting
Record patient vital signs consistently and flag values outside the normal reference range
pasta-from-scratch
Make fresh egg pasta dough from scratch, roll it, and cut it into shapes
knife-sharpening
Sharpen and hone kitchen knives to keep an edge safe and effective
first-aid-response
Respond to a first aid emergency using a scene-safety-first, ABC-based (airway, breathing, circulation) approach
contract-review-basics
Review a contract draft for missing terms, ambiguous language, and risky clauses before signing