Skip to content

gaia-research/gaia-skill-tree / .agents/skills/fuse

Combine two AI agent skills into one. Trigger phrases: /fuse, "fuse these skills", "combine skills", "merge these two skills", "create a fusion skill"

FileKindSize
.gitignoreother41 B
CITATION.cffother818 B
LICENSEother1.0 KB
README.mdmarkdown11.0 KB
SKILL.mdskill md1.3 KB
install.shscript651 B
powered-by-gaia.svgother1.2 KB
reference/compose.mdmarkdown2.1 KB
reference/detect.mdmarkdown1.0 KB
reference/name.mdmarkdown772 B
reference/register.mdmarkdown1.4 KB
scripts/candidates.shscript1.7 KB
scripts/validate.shscript1.0 KB

reference/compose.md

View on GitHub
# Step 2: Compose

Apply the composition protocol to merge the two source skills into a single fused capability.

## Source Analysis

1. Read the full `SKILL.md` (or main definition) file for both source skills.
2. Read all files inside the `reference/` directory of both source skills, if they exist.
3. Read all files inside the `scripts/` directory of both source skills, if they exist.

## Composition Prompt

Submit the gathered sources to the LLM (using the user's preferred model, or any available model) with the following template:

```
You are composing two AI agent skills into a single fused skill.

=== SKILL A ===
{paste full SKILL.md of skill A}

=== SKILL B ===  
{paste full SKILL.md of skill B}

Create a single SKILL.md that:

1. TRIGGERS: Union of both skills' trigger phrases, deduplicated. Add new triggers that describe the combined capability.
2. SETUP: Merge setup steps. Remove redundancy. If both skills read project context, do it once.
3. WORKFLOW: Create a unified flow that leverages both capabilities together. This is not concatenation -- find the natural integration points where skill A's output feeds skill B, or where they complement each other.
4. REFERENCES: If both skills have reference/ files, list them all. Prefix with the source skill name if there are filename conflicts (e.g., reference/skillA-audit.md).
5. GRACEFUL DEGRADATION: If only one skill's capability is needed in a given invocation, the fused skill should handle that cleanly (not force both workflows).

Output: A complete SKILL.md file with YAML frontmatter (name, description) and markdown body.
Do not add meta-commentary. Output only the SKILL.md content.
```

## Validation

1. Verify that the generated output contains valid YAML frontmatter:
   - Starts with `---` as the first line.
   - Contains a `name:` field.
   - Contains a `description:` field.
   - Closes with `---` on its own line.
2. Run validation script on the output:
   ```bash
   bash scripts/validate.sh <path-to-output-SKILL.md>
   ```

## Preview & Consent

Show a preview of the composed skill definition to the user and prompt for approval before creating files on disk.
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall