# agentsope/skillalchemy architecture

> Architecture diagram of the GitHub repository agentsope/skillalchemy, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/agentsope/skillalchemy
- Repository: https://github.com/agentsope/skillalchemy

## Overview

SkillAlchemy turns an underspecified skill brief into an installable agent skill: it discovers omitted requirements, gathers public-source procedures, decides which claims are reusable versus scoped or excluded, and compiles admitted knowledge. The README also describes persona and method distillation and skill fusion. LEAP’s corpus scripts are included as a separate analytical branch because they are substantial indexed modules; their runtime relationship to the main creation workflow is not established by the sampled evidence.

Main entry points: [`skills/LEAP/SKILL.md`](https://github.com/agentsope/skillalchemy/blob/master/skills/LEAP/SKILL.md) (Persona distillation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Brief discovery"]
  node_brief["Skill brief"]
  node_requirements["Implicit requirements"]
  node_persona["Persona distillation<br/>[SKILL.md]"]
  node_method["Method distillation<br/>[SKILL.md]"]
end

subgraph group_evidence["Evidence acquisition"]
  node_public_sources["Public sources"]
  node_grounded_procedures["Grounded procedures"]
end

subgraph group_admission["Procedure admission"]
  node_scope_decision["Scope decision"]
  node_reusable_instructions["Reusable instructions"]
  node_scoped_examples["Scoped examples"]
  node_excluded_content["Excluded content"]
  node_skill_fusion["Skill fusion<br/>[SKILL.md]"]
end

subgraph group_packaging["Skill packaging"]
  node_compiler["Skill compilation"]
  node_installable_skill["Installable skill"]
end

subgraph group_leap["LEAP analysis"]
  node_corpus_builder["Corpus builder<br/>[build_corpus.py]"]
  node_component_index["Component index"]
  node_skill_scorer["Skill scorer<br/>[score_skill.py]"]
end

node_creator(("Skill creator"))

node_creator -->|"provides brief"| node_brief
node_brief -->|"reveals gaps"| node_requirements
node_public_sources -->|"yields procedures"| node_grounded_procedures
node_grounded_procedures -->|"informs scope"| node_scope_decision
node_scope_decision -->|"admits reusable"| node_reusable_instructions
node_scope_decision -->|"admits scoped"| node_scoped_examples
node_scope_decision -->|"excludes unsupported"| node_excluded_content
node_reusable_instructions -->|"compiles knowledge"| node_compiler
node_scoped_examples -->|"packages examples"| node_compiler
node_compiler -->|"produces package"| node_installable_skill
node_creator -->|"distills people"| node_persona
node_creator -->|"distills methods"| node_method
node_creator -->|"fuses skills"| node_skill_fusion

click node_persona "https://github.com/agentsope/skillalchemy/blob/master/skills/LEAP/SKILL.md"
click node_method "https://github.com/agentsope/skillalchemy/blob/master/skills/LEAP/SKILL.md"
click node_skill_fusion "https://github.com/agentsope/skillalchemy/blob/master/skills/LEAP/SKILL.md"
click node_corpus_builder "https://github.com/agentsope/skillalchemy/blob/master/skills/LEAP/scripts/build_corpus.py"
click node_component_index "https://github.com/agentsope/skillalchemy/blob/master/skills/LEAP/scripts/build_component_index.py"
click node_skill_scorer "https://github.com/agentsope/skillalchemy/blob/master/skills/LEAP/scripts/score_skill.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_brief,node_requirements,node_persona,node_method toneBlue
class node_public_sources,node_grounded_procedures toneAmber
class node_scope_decision,node_reusable_instructions,node_scoped_examples,node_excluded_content,node_skill_fusion toneMint
class node_compiler,node_installable_skill toneRose
class node_corpus_builder,node_component_index,node_skill_scorer,node_creator toneIndigo
```

## Components

### Brief discovery

- **Skill brief**
- **Implicit requirements**
- [Persona distillation](https://github.com/agentsope/skillalchemy/blob/master/skills/LEAP/SKILL.md): `skills/LEAP/SKILL.md`
- [Method distillation](https://github.com/agentsope/skillalchemy/blob/master/skills/LEAP/SKILL.md): `skills/LEAP/SKILL.md`

### Evidence acquisition

- **Public sources**
- **Grounded procedures**

### Procedure admission

- **Scope decision**
- **Reusable instructions**
- **Scoped examples**
- **Excluded content**
- [Skill fusion](https://github.com/agentsope/skillalchemy/blob/master/skills/LEAP/SKILL.md): `skills/LEAP/SKILL.md`

### Skill packaging

- **Skill compilation**
- **Installable skill**

### LEAP analysis

- [Corpus builder](https://github.com/agentsope/skillalchemy/blob/master/skills/LEAP/scripts/build_corpus.py): `skills/LEAP/scripts/build_corpus.py`
- [Component index](https://github.com/agentsope/skillalchemy/blob/master/skills/LEAP/scripts/build_component_index.py): `skills/LEAP/scripts/build_component_index.py`
- [Skill scorer](https://github.com/agentsope/skillalchemy/blob/master/skills/LEAP/scripts/score_skill.py): `skills/LEAP/scripts/score_skill.py`

### Other components

- **Skill creator**

## Connections

- Skill creator → Skill brief: provides brief (evidence: `README.md`)
- Skill brief → Implicit requirements: reveals gaps (evidence: `README.md`)
- Public sources → Grounded procedures: yields procedures (evidence: `README.md`)
- Grounded procedures → Scope decision: informs scope (evidence: `README.md`)
- Scope decision → Reusable instructions: admits reusable (evidence: `README.md`)
- Scope decision → Scoped examples: admits scoped (evidence: `README.md`)
- Scope decision → Excluded content: excludes unsupported (evidence: `README.md`)
- Reusable instructions → Skill compilation: compiles knowledge (evidence: `README.md`)
- Scoped examples → Skill compilation: packages examples (evidence: `README.md`)
- Skill compilation → Installable skill: produces package (evidence: `README.md`)
- Skill creator → Persona distillation: distills people (evidence: `README.md`)
- Skill creator → Method distillation: distills methods (evidence: `README.md`)
- Skill creator → Skill fusion: fuses skills (evidence: `README.md`)
