/sfp:sfp-hivefrom sfp
Selects and orders SFP skills for a task based on project files, task words, and phase of work. Learns from feedback to improve future selections.
Ships in sfp. 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.
SFP has hundreds of skills. Loading many at once costs context and blurs the instructions. The hive works like a honeybee colony choosing a nest: five scouts (task words, project files, phase of work, category, history) each vote, a skill is chosen only when enough of them agree (quorum), similar skills are silenced once one is chosen (stop signals), and each job (plan, build, test, secure, ship) goes to the skill that suits it best. It returns the few skills that fit this task in this project, and the order to use them in. It learns: feedback on each decision strengthens skills that helped and weakens ones that did not, for the words of that kind of task.
Run the hive from this skill's folder with the user's own words and the project folder. It takes a few milliseconds and runs on this machine:
python3 scripts/select_skills.py select "<the user's task>" --project <project folder>
Add what you know:
--goal "<end goal>" when the user wants more than the task, for example "ship it today".--after skill-a,skill-b with the skills already used, most recent last.--budget 6000 to keep the loaded instructions small for a quick task.--json for every signal and the full detail.If the SFP MCP server is connected, call its select_skills tool instead, with task and project_path.
Call it once at the start, and again when the work moves to a new phase (from building to testing, or to shipping). Do not call it for every message: the list holds until the job changes. Keep the decision id it returns: you need it for feedback.
| Layer | Its job | How to use it |
|---|---|---|
base | Does the work: research, plan, design, build, debug | Read it first and follow it while you work |
check | Verifies the work: tests, security, review | Apply it once the base work exists |
finish | Gets it out: performance, docs, release | Apply it last, if the task goes that far |
Read each skill only when you reach its layer. Its file is at <SFP>/<path from the list>, where <SFP> is the folder written in ~/.sfp/root. Installed skills can be invoked by name instead. Tell the user, in one line, which skills you are using and why.
"No skill took: test" means the task needs that job and no skill was strong enough for it. Do that part with your own judgement, or select again with clearer words for it.
This is how the hive learns from its mistakes. When the task is done, report how the decision went. Ask the user one short question if you are not sure: "Were these skills useful? Was one missing?"
python3 scripts/select_skills.py feedback last --helped django-tdd --unhelpful django-celery --missing python-testing
With the MCP server, call give_feedback with the same lists.
| Verdict | Use it when | What it teaches |
|---|---|---|
--helped | A chosen skill clearly made the work better | Favour it for tasks with these words |
--unhelpful | A chosen skill misled you or added nothing | Avoid it for tasks with these words |
--ignored | A chosen skill was never opened or used | A weak signal against it |
--missing | You needed a skill that was not chosen | Favour it for these words, and find it even when search misses it |
Only report what you actually observed. Do not mark a skill helped just because the task finished. A wrong report teaches the wrong thing, though no single report can ban a skill: the effect is strongly damped and fades over months.
Mention once, the first time, what is stored: skill names, verdicts, times, the project's main technologies and the stems of the task's main words (for example test, order, view), in ~/.sfp on this machine. No sentences, no file contents, nothing leaves the machine. python3 scripts/select_skills.py status shows what it has learned; forget deletes it all. SFP_LEARN_WORDS=0 stops recording words, and SFP_NO_LEARNING=1 stops recording and learning altogether.
If you cannot run the script, apply the same rules yourself, using the sfp skill's index to find candidates:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub siddu1004/sfp --plugin sfp2 skills in this plugin