writing-skills
OBobra/superpowers298k近 7 天新增 2,631 个 star
Enables Hermes to create new reusable skills for itself by researching live web sources with TinyFish Search and Fetch, analyzing source coverage, writing SKILL.md files, and installing them into Hermes memory. Use when the user asks Hermes to learn, teach itself, upgrade itself, or save a reusable capability.
Use this skill when the user asks Hermes to:
Do not use this skill for ordinary one-off answers unless the user explicitly wants a saved skill.
Before making any TinyFish call, determine which mode to use.
1. Check for CLI:
which tinyfish && tinyfish --version || echo "TINYFISH_CLI_NOT_FOUND"
2. If CLI is found, check auth:
tinyfish auth status
If authenticated, use CLI mode for all searches and fetches below.
3. If CLI is not found, check for API key:
test -n "$TINYFISH_API_KEY" && echo "API_KEY_AVAILABLE" || echo "TINYFISH_API_KEY is not set"
If the API key is available, use API mode for all searches and fetches below.
4. If neither CLI nor API key is available, stop and tell the user:
Install the TinyFish CLI:
npm install -g @tiny-fish/cliThen authenticate:tinyfish auth loginOr set
TINYFISH_API_KEYin your environment. Get a key at: https://agent.tinyfish.ai/api-keys
Do NOT proceed until one mode is confirmed.
Acknowledge the learning request.
I'll research this with TinyFish and create a reusable skill.Search with TinyFish.
Analyze search results.
Fetch selected URLs.
Write the new skill.
SKILL.md.Install and verify.
skill_view or skills list.Use TinyFish Search when you need ranked web results, snippets, and URLs.
tinyfish search query "{topic} official documentation" --pretty
Run multiple searches:
tinyfish search query "{topic} official documentation"
tinyfish search query "{topic} API reference"
tinyfish search query "{topic} quickstart examples"
tinyfish search query "site:github.com {topic} examples issues"
tinyfish search query "{topic} common errors best practices"
For API skills, add:
tinyfish search query "{topic} authentication"
tinyfish search query "{topic} SDK reference"
tinyfish search query "{topic} rate limits errors"
For framework skills, add:
tinyfish search query "{topic} production best practices"
tinyfish search query "{topic} testing debugging deployment"
python3 - <<'PY'
import json
import os
import urllib.parse
import urllib.request
query = "Remotion official docs best practices"
api_key = os.environ["TINYFISH_API_KEY"]
url = "https://api.search.tinyfish.ai?query=" + urllib.parse.quote(query)
req = urllib.request.Request(url, headers={"X-API-Key": api_key})
with urllib.request.urlopen(req, timeout=15) as res:
data = json.load(res)
for r in data.get("results", [])[:10]:
print(json.dumps({
"position": r.get("position"),
"site_name": r.get("site_name"),
"title": r.get("title"),
"url": r.get("url"),
"snippet": r.get("snippet"),
}, ensure_ascii=False))
PY
Run the same query variations listed in CLI mode above, substituting the query variable each time.
After each search pass, decide:
If no, send a short user update and run targeted follow-up searches.
Example update:
I found the official docs and examples. I'm checking for pitfalls and validation guidance before writing the skill.
Prefer sources in this order:
Reject:
Default to 3-8 fetched URLs total.
Use TinyFish Fetch when you already know the URLs and need clean extracted content.
tinyfish fetch content get --format markdown "https://example.com/docs" "https://example.com/quickstart"
--format markdown (default) returns clean readable text.--links to include extracted links from each page.tinyfish fetch content get --format markdown --links \
"https://example.com/docs" \
"https://example.com/quickstart" \
"https://example.com/api-reference"
Fetch up to 10 URLs per request:
python3 - <<'PY'
import json
import os
import urllib.request
api_key = os.environ["TINYFISH_API_KEY"]
urls = [
"https://example.com/docs",
"https://example.com/quickstart",
]
body = json.dumps({
"urls": urls,
"format": "markdown",
}).encode()
req = urllib.request.Request(
"https://api.fetch.tinyfish.ai",
data=body,
headers={
"X-API-Key": api_key,
"Content-Type": "application/json",
},
method="POST",
)
with urllib.request.urlopen(req, timeout=150) as res:
data = json.load(res)
for page in data.get("results", []):
print("\n---SOURCE---")
print("URL:", page.get("url"))
print("FINAL:", page.get("final_url"))
print("TITLE:", page.get("title"))
print("TEXT:")
print((page.get("text") or "")[:12000])
for err in data.get("errors", []):
print("\n---FETCH ERROR---")
print(err)
PY
Fetch returns per-URL errors in errors[]. Do not fail the whole run because one source failed.
The generated skill must be raw Markdown beginning with frontmatter:
---
name: concise-kebab-case-name
description: Third-person description of what the skill does and when to use it.
---
The description must include:
Use this structure unless the topic requires a better one:
# Skill Title
## When To Use
## Core Workflow
## Defaults
## Key Patterns
## Gotchas
## Validation
## References
Write for future Hermes behavior, not for a human tutorial.
Include:
Avoid:
After writing the skill:
skill_view or equivalent.Completion message:
Done, I added the <skill-name> skill and can use it going forward.
Do not send the full SKILL.md unless the user asks.
During long runs, send concise updates:
I'll research this with TinyFish and create a reusable skill.
Searching official docs and examples...
I found 6 candidate sources and am checking coverage.
Fetching the best sources...
Writing the skill...
Installing and verifying it...
Done, I added the skill and can use it going forward.
Do not expose raw JSON, terminal logs, or full source text in chat.
Before finalizing, confirm:
name and description.OBobra/superpowers298k近 7 天新增 2,631 个 star
OBobra/superpowers298k近 7 天新增 2,631 个 star
MAmattpocock/skills288k近 7 天新增 10,178 个 star
MAmattpocock/skills288k近 7 天新增 10,178 个 star
MAmattpocock/skills288k近 7 天新增 10,178 个 star
MAmattpocock/skills288k近 7 天新增 10,178 个 star