Back to Skills
GeneralFreev0.3.0
npx skills add lovstudio/skill-optimizer-skill

lovstudio:skill-optimizer

Version

่‡ชๅŠจไผ˜ๅŒ– 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:

  1. Run lint_skill.py for a baseline audit.
  2. Read any conversation context about problems the user hit with this skill.
  3. Edit SKILL.md / README.md / scripts to fix prioritized issues.
  4. Run bump_version.py to bump the version and prepend a CHANGELOG.md entry.
  5. Report what changed.
  6. 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

CheckSeverityWhat it catches
Directory prefix lovstudio-errorWrong dir naming
SKILL.md / README.md presenterrorMissing core files
Frontmatter required fieldserrorMissing name / description / license / compatibility / metadata
name matches directoryerrorlovstudio:foo vs lovstudio-bar drift
Description has trigger cueswarnMissing "Use when..." or "trigger when user mentions..."
Description lengthwarn< 80 chars likely insufficient
metadata.version semver formatwarnNon-x.y.z versions
README version badgewarnMissing ![Version](https://raw.githubusercontent.com/lovstudio/skill-optimizer-skill/main/...)
README install commandwarnMissing npx skills add ...
CHANGELOG.md existswarnNo changelog
Scripts use argparsewarnCLI without argparse
SKILL.md body lengthwarn> 500 lines โ€” should split to references/
TODO placeholderserrorUninitialized template content
CJK handling for doc skillsinfoDocument skills without visible CJK code paths

Version Bump Rules

BumpWhen to use
patchbug fix, wording, frontmatter tweak, CJK rendering fix
minornew flag/option/reference doc, expanded scope
majorbreaking CLI change, removed option, rename

Per repo convention: stay in 0.x unless explicitly authorized.

Options

lint_skill.py

OptionDefaultDescription
<name>โ€”Skill name (with/without lovstudio- prefix)
--pathโ€”Absolute path to skill dir
--jsonoffEmit JSON

bump_version.py

OptionDefaultDescription
<name>โ€”Skill name
--pathโ€”Absolute path (overrides name)
--typeโ€”patch / minor / major
--setโ€”Explicit version e.g. 0.2.0
--message, -mrequiredPrimary changelog bullet
--change, -cโ€”Additional bullet (repeatable)
--dry-runoffPreview without writing

License

MIT

metaskill-maintenanceversioningchangeloglint