GeneralFreev0.3.0
npx skills add lovstudio/skill-optimizer-skilllovstudio:skill-optimizer
่ชๅจไผๅ lovstudio skill โ ๅฎก่ฎก่ง่ใๅบ็จไฟฎๅคใbump ็ๆฌใ่ฟฝๅ changelogใ
Part of lovstudio/skills โ by lovstudio.ai
Install
npx skills add lovstudio/skills --skill lovstudio:skill-optimizer
Requires: Python 3.8+ (stdlib only, no pip install)
What It Does
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ skill-optimizer pipeline โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ 1. lint ๅฎก่ฎก SKILL.md / scripts / README โ
โ 2. apply ไผๅ
ไฟฎๅคๅฏน่ฏไธญๆๅฐ็้ฎ้ข โ
โ 3. bump patch / minor / major โ
โ 4. changelog ่ฟฝๅ Keep a Changelog ๆก็ฎ โ
โ 5. re-lint ้ช่ฏ + ่พๅบ็ฎๆฅ โ
โ 6. commit git add + commit + push โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Fully automatic โ no interactive prompts. Optimizations are driven by issues raised in the current conversation, supplemented by a generic lint pass.
Usage
In Claude Code
/lovstudio:skill-optimizer any2pdf
# or with explicit focus:
/lovstudio:skill-optimizer any2pdf โ the --theme flag trigger phrase is wrong
Claude will:
- Run
lint_skill.pyfor a baseline audit. - Read any conversation context about problems the user hit with this skill.
- Edit
SKILL.md/README.md/ scripts to fix prioritized issues. - Run
bump_version.pyto bump the version and prepend aCHANGELOG.mdentry. - Report what changed.
- Commit and push to GitHub.
CLI
Audit only:
python3 scripts/lint_skill.py any2pdf
python3 scripts/lint_skill.py any2pdf --json
Bump version and write changelog:
python3 scripts/bump_version.py any2pdf \
--type patch \
--message "fix CJK line-wrap in bullet lists" \
--change "tighten frontmatter trigger phrases"
Dry run (show without writing):
python3 scripts/bump_version.py any2pdf --type patch -m "..." --dry-run
What Gets Audited
| Check | Severity | What it catches |
|---|---|---|
Directory prefix lovstudio- | error | Wrong dir naming |
SKILL.md / README.md present | error | Missing core files |
| Frontmatter required fields | error | Missing name / description / license / compatibility / metadata |
name matches directory | error | lovstudio:foo vs lovstudio-bar drift |
| Description has trigger cues | warn | Missing "Use when..." or "trigger when user mentions..." |
| Description length | warn | < 80 chars likely insufficient |
metadata.version semver format | warn | Non-x.y.z versions |
| README version badge | warn | Missing  |
| README install command | warn | Missing npx skills add ... |
CHANGELOG.md exists | warn | No changelog |
| Scripts use argparse | warn | CLI without argparse |
| SKILL.md body length | warn | > 500 lines โ should split to references/ |
| TODO placeholders | error | Uninitialized template content |
| CJK handling for doc skills | info | Document skills without visible CJK code paths |
Version Bump Rules
| Bump | When to use |
|---|---|
patch | bug fix, wording, frontmatter tweak, CJK rendering fix |
minor | new flag/option/reference doc, expanded scope |
major | breaking CLI change, removed option, rename |
Per repo convention: stay in 0.x unless explicitly authorized.
Options
lint_skill.py
| Option | Default | Description |
|---|---|---|
<name> | โ | Skill name (with/without lovstudio- prefix) |
--path | โ | Absolute path to skill dir |
--json | off | Emit JSON |
bump_version.py
| Option | Default | Description |
|---|---|---|
<name> | โ | Skill name |
--path | โ | Absolute path (overrides name) |
--type | โ | patch / minor / major |
--set | โ | Explicit version e.g. 0.2.0 |
--message, -m | required | Primary changelog bullet |
--change, -c | โ | Additional bullet (repeatable) |
--dry-run | off | Preview without writing |
License
MIT
metaskill-maintenanceversioningchangeloglint