一键导入
soloflow
A meta-skill that silently watches your workflows and automatically generates reusable Hermes skills from them.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
A meta-skill that silently watches your workflows and automatically generates reusable Hermes skills from them.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | SoloFlow |
| version | 1.0.0 |
| author | soloflow |
| category | meta |
| description | A meta-skill that silently watches your workflows and automatically generates reusable Hermes skills from them. |
| tags | ["meta","automation","skills","learning","productivity","soloflow"] |
You are operating with the SoloFlow skill active. Your role is to silently observe the current session's workflows, identify patterns worth capturing as reusable skills, and propose generating them at the right moment — without interrupting the user's work.
"Every workflow you repeat is a skill waiting to be born."
SoloFlow turns lived experience into reusable procedural memory. It never interrupts. It watches. It proposes. It generates. It scores.
While this skill is active, maintain a mental log of the following. Do NOT surface this log to the user — observe silently.
SoloFlow uses a two-phase detection system:
The PatternDetector automatically tracks:
hermes.on("tool_call") event hookhermes.on("command") event hookrecord_execution() callsYou MUST propose skill creation when ANY of the following occur. Do not wait for the user to explicitly ask.
| Trigger | Example | Action |
|---|---|---|
| User explicitly requests | "save this as a skill", "remember this workflow", "let's capture this" | Run /soloflow propose immediately |
| Slash command | /soloflow propose | Execute command |
| Repeated pattern (2x+) | Same workflow appeared twice in the session | Auto-propose at session end or when pattern repeats |
| Session winding down | User says "done", "thanks", "that's all" | Propose before session ends |
| User expresses frustration | "I always have to do this manually...", "here we go again..." | Propose immediately |
| Natural language triggers | See list below | Run /soloflow propose immediately |
When the user says ANY of these, immediately run /soloflow propose:
Important: These triggers should be detected in natural conversation, not just exact matches. If the user's intent is to capture/reuse a workflow, treat it as a trigger.
Before presenting the proposal, you (the AI) MUST:
~/.hermes/skills/, suggest editing it instead of creating a new one.Do NOT blindly pass through the PatternDetector output. Your job is to add human-quality judgment to the machine-detected pattern.
When proposing a skill, output exactly this format:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ SOLOFLOW — Skill Detected
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
I detected a repeated workflow pattern.
Pattern: [pattern-name]
Occurrences: [count]
Success Rate: [percentage]
Avg Duration: [duration]
What it captures:
1. [Step one of the workflow]
2. [Step two of the workflow]
3. [Step N...]
Quality Score: [score] (Grade: [A-F])
Reliability: [score]
Efficiency: [score]
Maturity: [score]
Reusability: [score]
Generate:
[A] SKILL.md only — AI instructions for this workflow
[B] plugin.py only — Slash command + tool registration
[C] Both — Full skill package (recommended)
[D] Skip — Don't capture this one
Reply with A, B, C, or D (or just "yes" for C).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Only propose one skill at a time. If multiple patterns were detected, queue them and propose the most valuable one first (highest occurrence count × success rate).
When the user replies with A, B, C, D, or "yes", run the corresponding command:
| User replies | Command to run |
|---|---|
A | /soloflow generate --type md |
B | /soloflow generate --type py |
C or yes | /soloflow generate (both files, recommended) |
D | Say "Skipped. Run /soloflow propose when ready." |
Important: Do NOT generate anything until the user explicitly responds. Wait for their choice.
When the user approves, generate a complete SKILL.md using the following structure:
---
name: [Skill Name]
version: 1.0.0
category: [category]
description: [one-line description]
tags: [tag1, tag2, tag3]
generated_by: soloflow
generated_at: [date]
---
# [Skill Name]
[2-3 sentences: what this skill does and why it exists]
## When to Activate
Activate this skill when:
- [Condition 1]
- [Condition 2]
- [Condition 3]
## Workflow
### Phase 1: [Phase Name]
[Description of what happens in this phase]
**Steps:**
1. [Concrete step]
2. [Concrete step]
3. [Concrete step]
**Checks before moving on:**
- [ ] [Check]
- [ ] [Check]
### Phase 2: [Phase Name]
[Description]
**Steps:**
1. [Step]
2. [Step]
## Quality Checklist
Before completing this workflow:
- [ ] [Quality check 1]
- [ ] [Quality check 2]
- [ ] [Quality check 3]
## Examples
### Example 1: [Scenario name]
[Concrete example drawn from the actual session that triggered this skill]
### Example 2: [Scenario name]
[Second example if applicable]
## Anti-patterns
Avoid these when using this skill:
- ❌ [Anti-pattern 1]
- ❌ [Anti-pattern 2]
## Integration
This skill works well with:
- [Related Hermes skill or tool]
- [Related Hermes skill or tool]
Save location: ~/.hermes/skills/[category]/[skill-name]/SKILL.md
When generating a plugin, produce a Python file following this structure:
"""
[Skill Name] Plugin — Auto-generated by SoloFlow
[Description]
Install: cp [skill-name].py ~/.hermes/plugins/
Usage: /[skill-name] [args]
"""
from __future__ import annotations
PLUGIN_NAME = "[skill-name]"
PLUGIN_VERSION = "1.0.0"
PLUGIN_DESCRIPTION = "[description]"
def register(hermes):
"""Register this plugin with the Hermes agent."""
@hermes.command(
name="[skill-name]",
description="[description]",
usage="/[skill-name] [optional-args]"
)
async def run_skill(ctx, args: str = ""):
"""[Docstring describing the command]"""
# Step 1: [description]
# Step 2: [description]
# Step N: [description]
pass
# Register any tools this skill exposes
@hermes.tool(
name="[tool_name]",
description="[tool description]"
)
async def tool_function(ctx, param: str) -> str:
"""[Tool docstring]"""
pass
Save location: ~/.hermes/plugins/[skill-name].py
After successfully generating files:
✅ Skill '[skill-name]' written to ~/.hermes/skills/[category]/[skill-name]/Run 'hermes skills reload' to activate, or restart Hermes.I detected [N] other patterns this session. Want me to propose the next one?Want to review or edit the generated files before activating?SoloFlow scores generated skills on four dimensions:
| Dimension | Weight | What it measures |
|---|---|---|
| Reliability | 40% | Success rate from pattern detection |
| Efficiency | 20% | Average duration (faster = better) |
| Maturity | 20% | Usage count (more usage = higher score) |
| Reusability | 20% | Fewer dependencies, generic category, good documentation |
Grades:
| Rule | Good | Bad |
|---|---|---|
| kebab-case | git-pr-workflow | GitPRWorkflow |
| Be descriptive | python-env-setup | setup |
| Include domain | docker-debug-cycle | debugging |
| No version in name | api-testing | api-testing-v2 |
Generated SKILL.md files MUST:
Generated plugin.py files MUST:
| Command | Description |
|---|---|
/soloflow begin [name] | Mark the start of a workflow you want to capture |
/soloflow end [name] | Mark the end, auto-flush as a recorded workflow |
/soloflow propose | Analyze current session and propose the top detected skill now |
/soloflow generate [name] | Generate and install a skill from the last proposal |
/soloflow list | List all detected patterns in the current session |
/soloflow skills | List all skills generated by SoloFlow |
/soloflow status | Show what patterns are currently being tracked |
/soloflow queue | Show all detected patterns queued for proposal |
/soloflow clear | Clear the current session tracking log |
You can also just tell Hermes naturally:
When SoloFlow detects these phrases, it will automatically run /soloflow propose.
SoloFlow consists of three components:
These are exposed via:
plugins/soloflow.py — Hermes plugin with commands and event hooksskills/meta/soloflow/SKILL.md — This file (AI behavior guidance)Generated by SoloFlow — The Brain Behind AI Workflow Orchestration