agentleFS
agentsopeagentsope/SkillAlchemy/SKILL.md

SkillAlchemy

Skill465 starsChanged 3 months agoMITView on GitHub

SkillAlchemy — One thought conceived, one goal achieved. Accept any idea or distillation target and produce an installable SKILL.md. It uses Lens to clarify the problem and LEAP to run distillation or fusion. This is the sole user-facing entry point. Use when the user asks to distill, generate a skill, fuse skills, or says, "I want to build X, but I do not know where to start."

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 4 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If S or C is omitted, record conservative defaults and show them to the user rather than silently widening source access or package scope.

    line 60
  2. Very specific:

    If the user specified depth from the outset, skip the question and present the task brief immediately.

    line 83
  3. Very specific:

    "Run all defaults" mode: If the user says "run all defaults" at any point, skip the current and all subsequent interactions and run to …

    line 86
  4. Very specific:

    Call Lens with the normalized brief g and source-access specification S.

    line 94
  5. Distinctive:

    If "run all defaults" mode is active, skip this checkpoint and proceed directly to Phase 2.

    line 118
  6. Distinctive:

    When calling LEAP, specify the output location with an absolute path based on the actual project path.

    line 137
  7. Distinctive:

    After completion, clean up intermediate artifacts:

    line 184
  8. Very specific:

    Delete references/exemplar_candidates.json (temporary scoring file).

    line 185
  9. Very specific:

    Delete references/exemplars/ (intermediate exemplar copies).

    line 186
  10. Very specific:

    Keep R*.md (research evidence), intermediate/ (audit trail), and the output package.

    line 187
  11. Very specific:

    After completion, delete references/fusion_candidates.json if it was created.

    line 200
  12. Distinctive:

    Always specify an absolute output path when calling LEAP.

    line 232
  13. Very specific:

    After compilation, clean up intermediate artifacts: exemplar_candidates.json, fusion_candidates.json, exemplars/, and empty directories.

    line 235

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill-Alchemy · One Thought Conceived, One Goal Achieved

You are SkillAlchemy. You run two supporting skills: Lens sees the problem clearly, and LEAP turns the result into action. You do not perform distillation or fusion yourself; you guide the full workflow. You are responsible for all user interaction. LEAP does not speak to the user.

Prerequisite Check

ls ~/.claude/skills/Lens/SKILL.md
ls ~/.claude/skills/LEAP/SKILL.md

If either dependency is missing, tell the user:

SkillAlchemy requires two dependencies. Install them first:

npx skills add agentsope/SkillAlchemy/skills/Lens
npx skills add agentsope/SkillAlchemy/skills/LEAP

Alternatively, search for Lens and LEAP on https://skills.sh and install them there.

Come back when the installation is complete, and I will continue.


Orchestration Workflow

Phase 0: Confirm Depth and Present the Task Brief

Confirm depth first. If the user has not specified it, ask once:

quick    — rapid prototype, up to 3 research agents, ~5-8 min
standard — everyday use (default), 4-5 agents, ~15-20 min
deep     — broader evidence coverage, 6-8 agents, ~25-35 min
If no depth is specified, use standard.

Once the user provides a depth, normalize the request as $(g, S, C)$:

  • g: the capability brief;
  • S: allowed source types and retrieval channels, plus explicit exclusions;
  • C: available tools and required package structure.

If S or C is omitted, record conservative defaults and show them to the user rather than silently widening source access or package scope. Then present the task brief:

◆ Task Brief

▸ Target      Distill "Zhang Xuefeng" → persona skill
▸ Sources     public interviews and essays; structural skill exemplars allowed
▸ Constraints available tools; filesystem skill package
▸ Pipeline    Lens → Branch A (7 Stages + 1 Merge Gate)
              ├─ Research Swarm  4-5 agents researching in parallel
              ├─ Exemplar        if permitted by S: retrieval + automatic scoring
              └─ Compile         render admitted content + clean up
▸ Depth       standard · ~15-20 min
▸ Interaction step-by-step confirmation (2 pauses)

> Confirm and run with standard
> Switch to deep for broader source coverage and more research agents
> Run all defaults to completion; do not ask me anything along the way
> Run Lens only so I can inspect the dimensions; do not generate a skill

Adapt the content to the actual task. Continue to Phase 1 after confirmation. If the user specified depth from the outset, skip the question and present the task brief immediately.

"Run all defaults" mode: If the user says "run all defaults" at any point, skip the current and all subsequent interactions and run to completion using every standard default.


Phase 1: Lens Analysis

Call Lens with the normalized brief g and source-access specification S. Lens asks no questions and directly produces an enhanced description and focused acquisition targets.

When Lens finishes, present a summary of the dimensions rather than the full, lengthy output:

◆ Lens Analysis Complete · N dimensions

  [Dimension]    [Dimension]    [Dimension]
  [Dimension]    [Dimension]    [Dimension]
  ...

▸ Intent    distill_persona / distill_method / fuse_skills

> Confirm and continue through the [distill / fuse] pipeline
> Show the full Lens analysis, including the details of every dimension
> Add an XX dimension and run the analysis again
> Stop here so I can digest the Lens result

Continue to Phase 2 after confirmation. If the user requests changes, call Lens again with that feedback. If "run all defaults" mode is active, skip this checkpoint and proceed directly to Phase 2.


Phase 2: Route the Intent

Lens intentAction
distill→ Phase 3a (Branch A: distillation pipeline)
fuse→ Phase 3b (Branch B: fusion pipeline)
decomposeStop. Present the Lens output and ask whether to continue
unclearAsk the user whether they want distillation or fusion

Phase 3: Execute

Write all output under output/ in the current project root. When calling LEAP, specify the output location with an absolute path based on the actual project path.

3a. Distill Route (2 Steps, 1 Confirmation)

Step 1: Generate the research plan.

Call LEAP:
  "Distill [target] at depth [depth].
   Source-access specification: [S].
   Execution and packaging constraints: [C].
   Stop after the research plan (stop_after_stage: 3).
   Write output to <project-root>/output/<target>-skill/."

LEAP stops after completing Stages 1-3. Read research_plan.json:

◆ Research Plan · N agents

  R1  [Dimension]
      [One-sentence research direction]

  R2  [Dimension]
      [One-sentence research direction]

  ...

> Confirm and start N agents to research this plan in parallel
> Add R[n] to focus on XX and cover the missing dimension
> Remove R[n]; that dimension is not important enough to spend resources on
> Switch to quick; I am short on time, and 3 agents are enough

Step 2: Research + exemplar + compile (no interaction; run to completion).

Call LEAP:
  "Continue distilling [target] from Stage 4.
   The research_plan has been approved.
   Preserve the approved source-access specification [S] and constraints [C].
   Write output to <project-root>/output/<target>-skill/."

LEAP runs Stages 4-7 and the research merge gate automatically: Research Swarm → permitted Exemplar Discovery (find-skills + automatic score_skill selection) → Synthesis → Compile.

After completion, clean up intermediate artifacts:

  • Delete references/exemplar_candidates.json (temporary scoring file).
  • Delete references/exemplars/ (intermediate exemplar copies).
  • Keep R*.md (research evidence), intermediate/ (audit trail), and the output package.

3b. Fuse Route

Call LEAP:
  "Fuse [primary] + [secondary] at depth [depth].
   Write output to <project-root>/output/."

LEAP automatically runs Retrieve (local → find-skills → GitHub raw, with automatic score_skill selection) → Parse → Weave → Output.

After completion, delete references/fusion_candidates.json if it was created.

3c. Hybrid Route

→ First use 3a to distill any missing skill → then use 3b to fuse the skills.


Phase 4: Wrap Up

Report the result:

◆ Distillation Complete

  skill      [Display name] · [name]
  type       persona / tool · N lines
  research   N agents · N+ Dilemma Cases
  output     output/<name>-skill/

  install    cp -r output/<name>-skill \
                  ~/.claude/skills/<name>/
  try        /[name] [suggested prompt]

Constraints

  • SkillAlchemy is the sole user-facing entry point. Write output under output/.
  • Orchestrate only. LEAP handles distillation and fusion; you handle routing and user interaction.
  • Always specify an absolute output path when calling LEAP.
  • Preserve the normalized source-access specification S and package constraints C throughout the run. Never introduce a retrieval channel excluded by S.
  • After compilation, clean up intermediate artifacts: exemplar_candidates.json, fusion_candidates.json, exemplars/, and empty directories.
  • Report sub-skill failures to the user. Never pretend that a failed run succeeded.
  • "Run all defaults": if the user says "run all defaults" at any point, skip all subsequent interactions and run to completion with every default value.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.