Reference ArchiveSource Docs
Workflow → Skill pattern
Hermes-style pattern: capture a repeatable workflow as a **skill** the agent can invoke.
1 min read
This is a migrated reference document from the original Anvio source repo. Content is preserved as-is; canonical documentation lives in the sections above in the sidebar.
Original path: docs/74-workflow-to-skill-example.md
Hermes-style pattern: capture a repeatable workflow as a skill the agent can invoke.
When to convert
- DAG/workflow ran successfully ≥2 times with same structure
- Steps are deterministic (gather → transform → report)
- Output is reusable prose or checklist
Example mapping
| Workflow node | Skill section |
|---|---|
gather-a, gather-b | ## Procedure steps |
merge output template | ## Output format |
Workflow inputs.topic | Skill frontmatter inputs |
Files in this repo
| Artifact | Path |
|---|---|
| Source workflow | workspace/workflows/example-dag.md |
| Derived skill | workspace/skills/dag-report-skill.md |
CLI flow
# 1. Run workflow
anvio workflow run example-dag topic=architecture
# 2. Agent loads skill on next run
anvio run architect "Use dag-report skill for topic=api-design"
# 3. Promote via learning loop (optional)
anvio learning drafts
anvio learning promote <draft-id>Authoring checklist
- Keep workflow
nodes≤7 for skill-sized procedures - Name skill slug matching workflow slug when 1:1
- Add
metadata.sourceWorkflow: example-dagin skill frontmatter - Validate:
anvio skill validate dag-report-skill
See 49-workspace-artifacts.md and the ROADMAP.
Edit on GitHub
Last updated on