Comprehensive agent skill for the entire LPM package lifecycle. One skill, nine workflows — the LLM reads only the section it needs.
npx skills add lpm-dev/lpm-guide
# or
npx skills add https://github.com/lpm-dev/lpm-guideTriggers automatically on phrases related to any part of the LPM package lifecycle:
| Workflow | Triggers | What It Does |
|---|---|---|
| Scaffold | "create package", "new package", "lpm init" | Create a new LPM package from scratch |
| Migrate | "migrate to lpm", "npm to lpm", "dual publish" | Move an npm package to LPM |
| Improve | "improve quality", "quality score", "prepare for publish" | Run 28 quality checks + deep analysis, offer fixes |
| Source Config | "lpm config", "make configurable", "lpm.config.json" | Generate configurable source package config |
| Distribution | "distribution mode", "pool vs marketplace", "monetize" | Choose Private, Pool, or Marketplace |
| Pricing | "pricing strategy", "how much to charge", "license type" | Design Marketplace pricing tiers |
| Deploy | "deploy setup", "CI setup", "build fails 401", "LPM_TOKEN" | Configure CI/CD for install or publish |
| Review | "review package", "is this safe", "compare packages" | Evaluate a package before installing |
| Swift Registry | "swift registry", "SE-0292", "lpm swift-registry", "Package.swift" | Set up SPM to use LPM packages via SE-0292 |
| Skills | "create skills", "update skills", "agent skills", "lpm skills" | Create or update Agent Skills for AI coding assistants |
The entry point (SKILL.md) is a lightweight routing table (~3KB). When triggered, the LLM:
- Matches the user's intent to a workflow
- Reads only the relevant section file (~5-12KB)
- Follows the detailed instructions in that section
This keeps context usage low (~8-15KB per invocation) while covering all 10 workflows.
lpm-guide/
├── SKILL.md # Entry point with routing table
├── sections/
│ ├── scaffold.md # Create new packages
│ ├── migrate.md # Migrate from npm
│ ├── improve.md # Quality scoring & fixes
│ ├── source-config.md # lpm.config.json generation
│ ├── distribution.md # Distribution mode selection
│ ├── pricing.md # Marketplace pricing design
│ ├── deploy.md # CI/CD setup
│ ├── review.md # Package evaluation
│ ├── swift-registry.md # Swift Package Registry (SE-0292)
│ └── skills.md # Agent Skills creation & updates
├── references/
│ ├── quality-checks.md # All 28 quality checks
│ └── config-spec.md # Full lpm.config.json spec
├── README.md
└── LICENSE
MIT