Skill discovery optimizer
Audit, optimize, publish, and distribute existing Agent Skills whose core behavior already works. Invoke automatically as a preflight whenever the user asks to publish, release, sync, push, update, or upload one or multiple Agent Skills—or a skills monorepo—to GitHub, skills.sh, an Agent Skill marketplace, registry, or curated directory, even if they do not name this optimizer. Trigger for "把所有 Skills 更新到 GitHub", "同步 Skills 仓库并发版", "把这个 Skill 发布到其他技能市场", "publish these Agent Skills and verify installation", "audit my skill before publishing", "减少这个 Skill 的误触发", or "优化 Skill description 和 GitHub metadata". Review semantic routing, trust, installability, bilingual release materials, remote installation, and listing. Do not use to build core functionality, install someone else's skill, publish an ordinary non-skill repository, do generic bilingual README work or web GEO/SEO, run long-term growth analytics, or publish an MCP server.From its SKILL.md
npx -y skills add Bing-Bryan/skills-by-bing --skill skill-discovery-optimizerAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 20 days oldThe repository was created 20 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
- 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
9.0 KB, ~1.7k tokens by cl100k_base, as published. Nobody here has run it
Skill Discovery Optimizer
Optimize an existing Agent Skill for agent-side discovery, semantic routing, trust, installation, and launch readiness. Treat publishing as an optional final step.
优化已经可运行的 Agent Skill,使其更容易被其他 Agent 发现、理解、信任、安装和触发。发布只是可选的最后一步。
Core model / 核心模型
Judge every change against four surfaces:
- Registry discovery — searchable name, description, source metadata, and successful skills.sh listing.
- Semantic routing — realistic bilingual trigger phrases and explicit negative boundaries.
- Trust and conversion — safe repository, clear documentation, license, examples, and a working install command.
- Open-web discovery — GitHub description/topics and relevant curated directories.
Reject changes that improve none of these surfaces. Do not confuse this work with generic content optimization.
Workflow / 工作流
1. Select the operating mode
- audit — inspect and report only; do not edit files or write externally.
- optimize — edit the local skill and release materials; do not publish.
- publish — optimize, commit, push, and verify after the GitHub destination is confirmed.
- distribute — perform separately approved discovery-channel actions after publication.
Infer the narrowest mode from the request. Do not cross into a later mode without explicit user intent.
Treat a request to publish, release, sync, push, update, or upload existing Agent Skills as an automatic preflight trigger. The user does not need to mention this optimizer. For a monorepo, inspect every changed Skill and shared release surface; do not rework untouched Skills without cause. Do not trigger for ordinary repositories that merely use the word “skill.”
This is semantic implicit invocation, not an operating-system or Git hook. It works only when the optimizer is installed and implicit invocation is enabled. When another Git/GitHub publishing Skill is also relevant, run this optimizer's preflight first; let the publishing Skill perform the confirmed commit/push, then return here for remote installation and listing verification.
2. Inspect the target
- Require a local folder containing a working
SKILL.mddraft. - Read the full skill, its scripts/references/assets, repository documentation, and Git state.
- Preserve the skill's core behavior unless the user separately asks to change it.
- Identify target users, the concrete job, neighboring skills, and language coverage.
- Detect whether the skill already lives in a monorepo. Preserve that repository structure by default.
3. Optimize semantic discovery
- Write
descriptionas a routing rule: what it does, when to use it, realistic user utterances, and exclusions. - Include complete English and Chinese example utterances when both audiences are in scope.
- Generate target-specific positive, near-negative, and ambiguous prompts dynamically. Do not depend on a fixed prompt bank.
- Keep some prompts hidden from the rewrite pass, then forward-test with a fresh agent/session when available.
- Optimize from held-out results; do not shorten metadata merely for aesthetics.
- Record each dynamic test as prompt, expected behavior, observed behavior, and rationale. Resolve every unexplained held-out mismatch.
- If a fresh session is unavailable, mark semantic forward-testing as unverified instead of claiming it passed.
4. Optimize searchable and trust surfaces
- Align the skill folder name and frontmatter
name. - Reflect the skill name and task language in the repository description, topics, and repository index. A monorepo name does not need to match each contained skill.
- Put a verified install command near the top of the repository README.
- Require clear examples, supported agents, a repository license, and a version/tag.
- Avoid opaque binaries, obfuscated code, credential collection, silent external writes, and unsafe installer patterns.
5. Generate bilingual release content
- Keep
README.mdas the English canonical page and linkREADME.zh-CN.mdnear the top. - Generate a complete
README.zh-CN.md, not a partial summary. - Make frontmatter
descriptionbilingual when both English and Chinese queries are in scope. - Generate bilingual GitHub description and release notes where space permits.
- Keep executable instructions in one canonical language; add bilingual module docstrings, CLI help, and high-value comments rather than duplicating every code comment.
6. Validate locally
Run the bundled deterministic validator against the target skill folder:
python3 /path/to/skill-discovery-optimizer/scripts/validate_repo.py /absolute/path/to/target-skill --mode audit
Use --mode publish when preparing a release. In audit mode, report findings without changing files. In optimize or publish mode, fix every error and explain any remaining warning. The validator checks structure and metadata; semantic quality still requires agent judgment.
7. Confirm the GitHub destination
Publishing is an external write. Immediately before it:
- Run
gh auth statusandgh api user --jq .login. - Inspect the target's Git root and
origin; verify write access. - If the skill already belongs to a repository, reuse that exact repository by default. Never create a second repository just because the skill was renamed.
- If no repository exists, propose an exact
owner/repositoryand visibility; create it only after explicit confirmation. - Show the authenticated account, exact repository, visibility, changed paths, and whether the operation will replace or add a skill directory.
Never infer repository ownership from Git author name or email. Continue only after the user confirms the exact destination.
8. Publish and verify
Build an explicit release file set before staging. Inspect git diff --cached --name-only and stop if any unintended path is staged.
Commit only intended files, push to the confirmed repository, and set the approved bilingual description/topics. Then run:
python3 /path/to/skill-discovery-optimizer/scripts/verify_publish.py owner/repository --skill skill-name
The check must confirm remote discovery, installation inside a temporary directory, and skills.sh listing. Allow a short listing delay, but never report installation success before the remote install passes.
9. Distribute only when requested
- Read references/destinations.yaml and refresh stale rules before use.
- Run
scripts/distribute.pywithout--applyto preview deterministic actions. - Use
--applyonly after the user approves the displayed external actions. - A real
npx skills addinitiates automatic skills.sh listing; curated directories require reviewable pull requests. - Adapt each submission to current contribution rules. Do not mass-post generic copy or manufacture installs/stars.
Bundled resources / 随附资源
scripts/validate_repo.py— deterministic local checks / 本地机械校验。scripts/verify_publish.py— isolated remote install and listing verification / 远程隔离安装与收录验证。scripts/distribute.py— preview/apply deterministic discovery actions / 预览或执行确定性分发动作。- references/registries.md — registry mechanics / 注册表机制。
- references/destinations.yaml — machine-readable discovery destinations / 机器可读的发现渠道。
Completion criteria / 完成条件
Finish only when:
- semantic routing has been reviewed with dynamic positive and negative prompts;
- the requested operating mode has not been exceeded;
- in optimize or publish mode, deterministic validation has no errors;
- in publish mode, complete English and Chinese repository documentation exists;
- if publishing was requested, the confirmed repository is live and remote installation passes;
- if distribution was requested, each external action is completed with a link or reported as awaiting third-party review.
What ships with it: 6 files
22.2 KB alongside SKILL.md, 3 of them executable
agents/
- openai.yaml407 B
references/
- destinations.yaml2.0 KB
- registries.md2.4 KB
scripts/
- distribute.pyruns3.7 KB
- validate_repo.pyruns8.9 KB
- verify_publish.pyruns4.8 KB
Gives 0 of the 12 instructions most mcp tooling skills give in ~1.7k tokens
Counted across 638 of the 750 authors here whose files we hold, read 2026-08-07
- Create ten complex or independent read-only evaluation questionsin 69 of 638, across 15 files
- Test servers using MCP Inspectorin 61 of 638, across 19 files
- Provide actionable error messages with specific next stepsin 54 of 638, across 12 files
- Prioritize comprehensive API coverage over specific workflows or workflow toolsin 54 of 638, across 12 files
- Use TypeScript and Streamable HTTP for remote servers or clientsin 54 of 638, across 8 files
- Define structured output schemas where possiblein 50 of 638, across 8 files
- Use Zod or Pydantic for input schemasin 47 of 638, across 5 files
- Fetch MCP specification pages with markdown suffixin 46 of 638, across 4 files
- Load framework documentation using WebFetchin 45 of 638, across 3 files
- Verify each evaluation answer independentlyin 45 of 638, across 3 files
- Implement API client with authentication and paginationin 45 of 638, across 3 files
- Define input schemas with validationin 27 of 638, across 9 files
Said here and by no other author read
- infer the narrowest operating mode from the request
- read the full skill and its repository state
- write the description as a routing rule with exclusions
- include bilingual example utterances when applicable
- generate test prompts dynamically
- verify a working install command exists
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.