Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计未展示

lovstudio%3askill-optimizerlovstudio%3akill 优化器

Agent Skill

lovstudio%3askill-optimizer 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

574

周安装

23

GitHub Stars

45

下载量

186
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:lovstudio%3askill-optimizer(lovstudio%3akill 优化器)
来源仓库:https://github.com/lovstudio/skills
仓库路径:skills/lovstudio%3Askill-optimizer
安装命令:
npx skills add https://github.com/lovstudio/skills --skill lovstudio:skill-optimizer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/lovstudio/skills --skill lovstudio:skill-optimizer

简介

lovstudio%3askill-optimizer 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词或任务场景快速定位候选结果。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用该技能。
  • 安装前需确认权限范围和维护状态,注意可能触发联网、命令执行或文件读写操作。
  • 建议结合原始 README 和仓库内容进一步核验具体功能和用法边界。

SKILL.md

skill-optimizer — 自动优化 lovstudio skill 并维护版本与 changelog

Runs a lint → fix → bump → changelog pipeline on an existing skill in this repo. Fully automatic — no interactive prompts. Every run produces a concrete version bump and a new CHANGELOG.md entry so optimization history is traceable.

When to Use

  • User mentioned a concrete problem with an existing skill in this conversation (wrong trigger phrases, stale CLI flags, missing README badge, etc.) and wants it fixed.
  • User asks to "audit", "polish", "refine", "刷一遍" an existing skill.
  • User explicitly asks to bump a skill's version or update its changelog.
  • Proactively after another skill has been modified meaningfully — run this to record the change with a version bump.

Workflow (MANDATORY, fully automatic)

Do not ask the user for options. Infer everything from (a) the target skill name and (b) any optimization notes mentioned in the current conversation.

Step 1: Identify target & context

From the user's message, extract:

  1. Target skill name — e.g. any2pdf, lovstudio-any2pdf, or lovstudio:any2pdf. Normalize to the bare name (strip prefix). If the user did not name a skill explicitly, infer it from recent conversation context (the skill they were just working on). If still ambiguous, ask one targeted question.
  2. Context-driven fix list — scan the current conversation for issues the user raised about this skill: wrong flags, trigger misfires, broken CJK rendering, missing options, confusing README, etc. This list is the primary driver. The generic lint only supplements it.

Step 2: Lint

python3 skills/lovstudio-skill-optimizer/scripts/lint_skill.py <name> --json

Parse the JSON findings. Combine with the context-driven fix list from Step 1. Prioritize in this order:

  1. Fixes the user explicitly mentioned in conversation (highest priority)
  2. Lint error findings
  3. Lint warn findings
  4. Lint info findings — apply only if cheap and safe

Step 3: Apply fixes directly

Edit SKILL.md, README.md, scripts/*.py with the Edit tool based on the prioritized fix list. Guidelines:

  • SKILL.md frontmatter description: make sure it covers what + when + concrete trigger phrases (中文 + English). Don't bloat it; keep under ~800 chars.
  • CLI args in scripts: if the user hit a bug with a specific flag, fix the root cause — don't paper over it.
  • Progressive disclosure: if SKILL.md body > 500 lines, split the largest section to references/<topic>.md.
  • Don't write tests or docs that weren't asked for. The CHANGELOG entry IS the documentation of the change.
  • Don't add emojis unless the original file already uses them consistently.

Step 4: Decide bump type

Choose semver bump based on the fixes applied:

BumpUse when
patchbug fix, wording fix, frontmatter tweak, CJK rendering fix
minornew CLI flag, new option, new reference doc, expanded scope
majorbreaking CLI change, removed option, renamed skill

Stay in 0.x unless explicitly told otherwise — per repo release conventions.

Step 5: Bump version + write changelog

python3 skills/lovstudio-skill-optimizer/scripts/bump_version.py <name> \
  --type <patch|minor|major> \
  --message "<one-line summary of the biggest change>" \
  --change "<additional bullet>" \
  --change "<additional bullet>"

This updates:

  • README.md version badge (source of truth)
  • SKILL.md frontmatter metadata.version (kept in sync if present)
  • CHANGELOG.md — prepends a new entry with today's date (creates the file if missing)

Step 6: Re-lint & report

python3 skills/lovstudio-skill-optimizer/scripts/lint_skill.py <name>

Report to the user, in this exact shape and nothing more:

optimized: lovstudio-<name>
version:   <old> → <new>
fixes:
  - <bullet 1>
  - <bullet 2>
remaining lint warnings: <count>  (or "none")

Do not print a trailing summary, self-congratulation, or next-step suggestions. The diff speaks for itself.

Step 7: Commit, push & sync all locations

Skills live in three locations that must stay in sync:

source (edit here):  ~/projects/lovstudio-skills/        → lovstudio/skills
claude reads from:   ~/.claude/skills/*                   → symlinks to source
distribution repo:   ~/projects/lovstudio-pro-skills/     → lovstudio/pro-skills

7a. Commit & push to source repo:

cd ~/projects/lovstudio-skills
git add skills/lovstudio-<name>/
git commit -m "fix(<name>): <one-line summary>"
git push
  • Commit message follows repo convention: fix|feat|docs(<skill-name>): <summary>
  • Use fix for patch, feat for minor, feat! for major

7b. Sync to pro-skills distribution repo:

The two repos have independent git histories (not forkable), so sync via file copy:

SRC=~/projects/lovstudio-skills/skills/lovstudio-<name>
DST=~/projects/lovstudio-pro-skills/skills/lovstudio-<name>
rsync -av --delete "$SRC/" "$DST/"
cd ~/projects/lovstudio-pro-skills
git add skills/lovstudio-<name>/
git commit -m "sync(<name>): <version> from lovstudio/skills"
git push origin main

~/.claude/skills/ is already up-to-date via symlinks — no action needed.

If any step fails, report the sync state to the user rather than silently skipping. A partial sync (source updated but pro-skills stale) is the exact problem this step exists to prevent.

CLI Reference

lint_skill.py

ArgumentDefaultDescription
<name>Skill name (with or without lovstudio- prefix)
--pathAbsolute path to skill dir (overrides name)
--jsonoffEmit findings as JSON

Exit code: 2 if any error-severity finding, 0 otherwise.

bump_version.py

ArgumentDefaultDescription
<name>Skill name
--pathAbsolute path to skill dir (overrides name)
--typepatch \minor \major (mutually exclusive with --set)
--setExplicit version e.g. 0.2.0
--message, -mrequiredPrimary changelog bullet
--change, -cAdditional bullet (repeatable)
--dry-runoffShow what would change without writing

Dependencies

Python 3.8+ (stdlib only, no pip install needed).

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.84%
按下载量换算69

Claude

27.41%
按下载量换算51

Cursor

19.39%
按下载量换算36

Gemini CLI

8.99%
按下载量换算17

安全审计

暂无安全审计结果可展示。

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills