/sf-platform:find-skillsfrom sf-platform
Searches the skill-factory marketplace catalog for an existing skill that fits a task and gives the exact /plugin install command for the best match. Use when the user asks "is there a skill for <task>?", "find a skill that can <task>", "what skills do we have for <topic>?", or asks you to write a new skill (check first).
Ships in sf-platform. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Check whether a skill already exists before anyone writes a new one or starts a repetitive workflow from scratch. One search finds the answer. Report the best matches with their install commands. If nothing fits, say so plainly.
Bash to run the search. Never use Write or Edit. This skill creates and changes no files.Turn the request into a short task phrase. Pull out the task words, for example summarise pull request diffs from "is there a skill that can summarise my PRs?". Drop filler such as "is there a skill for".
Verify: the phrase is 3 to 10 words and names the task, not the request.
Run the search with the script's full path. $SKILL_DIR stands for this skill's base directory, which Claude Code shows when the skill loads ("Base directory for this skill: …"):
python3 "$SKILL_DIR/scripts/find_skills.py" "summarise pull request diffs" --limit 5
Verify: the command exits 0 and prints a JSON list (it can be []).
Sort the hits into strong and weak. Each hit has skill, plugin, tier, score (0-1), goal and install. A score of 0.15 or more is a candidate. A score below 0.15 is a weak match. Read the goal of each candidate and keep only the ones that really fit the task.
Verify: every hit you keep has a score of at least 0.15 and a goal that matches the task.
Report the result. For each match, best first, give one line:
<skill> (<plugin>, score <score>): <goal>
install: <install>
Copy the install value exactly, for example /plugin install <plugin>@skill-factory. If no hit is strong enough, say: "No existing skill fits ." You can mention the weak matches, and label them as weak.
Verify: each install command in your reply is copied word for word from the script output.
Stop, or ask before you build. If the user only asked whether a skill exists, you are done. If they asked you to write a new skill, end with one question: install the best match, or write a new skill? Do not write anything until they answer. Then follow their choice. Verify: no files were created or edited in this turn, and your reply ends with the question when a new skill was requested.
| Symptom | Action |
|---|---|
Exit code 2, catalog not found or unreadable at ... | The bundled references/catalog.json is missing. It is written by sf build. Tell the user to rebuild with sf build, and say that you could not search. Do not write a catalog yourself. |
Output is [] | Try once more with synonyms or a broader phrase (for example pr review instead of summarise pull request diffs). If it is still empty, report "No existing skill fits". |
| All scores are below 0.15 | Report "No existing skill fits ", and list the top weak hits as weak only. |
No such file or directory for the script | Use the full path to this skill's scripts/find_skills.py. Do not recreate the script. |
python3: command not found | Try python. If that also fails, tell the user that the search could not run. |
| The user insists on a new skill even though a match exists | Do what they choose. The search result was advice, not a block. |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub yennanliu/skill-factory-1 --plugin sf-platform2 skills in this plugin