AGENT SKILL

fuse

Combine named upstream skills into one short h00man skill that copies their files through includes.toml, then build and check it. Runs only when the user types /fuse.

License 许可
Apache-2.0
最近更新
2026-11-13
Stars
★ 0
Forks
0

01 前言 Front Matter

name
fuse
metadata
{ "opencode/autoinvoke": false }
description
Combine named upstream skills into one short h00man skill that copies their files through includes.toml, then build and check it. Runs only when the user types /fuse.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

fuse

Make one h00man skill from several upstream skills. The result is a short SKILL.md that says when to use what, in which order, and which choices are h00man's own. The upstream text stays verbatim in reference files that includes.toml copies. Never paste upstream rules into SKILL.md.

Input: the new skill's name and the skills to fuse, as <plugin>:<skill> (for example /fuse review pstack:interrogate matt:diagnosing-bugs). If the user names an existing h00man skill, add the sources to it and keep its substance.

Reference files

  • references/includes.md: the includes.toml format, the path rules, and which files are generated. Read it before step 3.
  • references/pstack-unslop.md: the numbered catalog of AI patterns that rule 10 of the rubric cites.
  • references/rubric.md: the rules every h00man skill must pass, and the scopes of the model skills. Read it before step 2, and again at step 7.

0. Find the library

Run from the library root, the folder with sources.toml and plugins/h00man/. If the current folder is not the library, find it or ask the user for its path. The upstream sources are in plugins/<source>/. Never edit them, plugins/h00man/shared/, or plugins/h00man/drafts/.

Build the tool once:

cargo build -q --manifest-path apps/workflow-setup/Cargo.toml
W=apps/workflow-setup/target/debug/workflow-setup

If apps/workflow-setup is not there, workflow-setup may be on the PATH. If neither exists, stop and tell the user.

1. Read every source in full

Read each named skill folder in plugins/<plugin>/skills/<name>/: SKILL.md and each file it links. Use $W library to find a skill whose plugin you do not know. For each source, write down three things:

  • What it does that no other source does.
  • Where it conflicts with another source (defaults, counts, cleanup, who decides).
  • Which other skills it names (for example "the how skill", pstack:tdd, /council).

2. Pick the kind and the scope

Make it a command unless the model must trigger it without the user. A command has the three settings in step 4 and costs no context until the user types it.

For a model skill, read the frontmatter of every plugins/h00man/skills/*/SKILL.md. Write a description with the words a user types. Keep it inside one scope from the rubric. If the work belongs in an existing skill, stop and offer to fuse into that one.

3. Write includes.toml

List the upstream files the skill needs, one [[include]] per file or folder. Include a whole folder when its SKILL.md uses its scripts or reference files. Then copy them:

$W build

Read the build output. Fix each problem that names your skill.

4. Write SKILL.md

Keep it under 150 lines with the frontmatter. Use this order:

  1. Frontmatter: name (the folder name) and description. A command needs three settings. Put disable-model-invocation: true and metadata: opencode/autoinvoke: false in the frontmatter. Add agents/openai.yaml with policy: allow_implicit_invocation: false. Copy the form from the plan skill.
  2. One short paragraph: what the skill makes, and its main idea.
  3. A list of the reference files. For each, give its path, when to read it, and what to take from it.
  4. The upstream names. h00man is standalone, so never route to a skill of another plugin. For each skill that an included file names, say which h00man file serves it. When the skill needs a part that no file serves, include it or write it. Only a part the skill can do without may stay unmapped: say that it is not in the stack and what to do instead.
  5. The steps, in order. Each step says what to do and which file to read for detail.
  6. The choices only h00man makes: how you settled each conflict from step 1.
  7. ## Sources, last.

Write in your own words. Use second person, imperative, active voice, and one instruction per sentence. Apply each rule in pstack's unslop catalog, references/pstack-unslop.md. Do not copy a run of 10 words from an included file. Point to the file instead.

Own reference files (written by you, not copied) go in references/ or modes/. Use them for detail that would push SKILL.md past 150 lines.

5. Credit the sources

End SKILL.md with ## Sources. Write one bullet per source plugin: the plugin name, the author, the repository, the license, and what this skill takes from it. Get the repository from sources.toml and the license from plugins/<source>/LICENSE or the skill folder. Credit the user's own earlier skill as h00man:<old name>.

6. Check

$W check

Your skill passes when its line reads <skill>: pass. Fix each problem and run check again. Lines for other skills are not your task. Stop after 3 failed rounds and report why.

7. Read it as a stranger

Read the finished SKILL.md once more, as an agent that has never seen the sources. Check the review rules in references/rubric.md: the kind, one voice, the upstream names, and the unslop rules. Fix what fails.

Report

Give the skill's line count, its number of includes, the check result, each upstream name you mapped, each conflict you settled, and each assumption.

Request (if empty, the one the user is asking about in this conversation): $ARGUMENTS

Sources

04 同仓库更多 Skills