skill-forge
Meta-skill that forges, audits, and refines other skills. Three modes – forge a new skill from a brief, audit recent chat transcripts for new-skill candidates and pain points, or refine an existing skill with additive-only changes. Triggers on "skill-forge a thing that does X", "forge a skill", "skill-forge audit", "skill audit", "refine my skills", "skill-forge refine <name>", or "/skill-forge". Auto-opens a PR against mphinance/alpha-skills (never auto-merges).
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 32
- Forks
- 6
01 前言 Front Matter
- name
- skill-forge
- description
- Meta-skill that forges, audits, and refines other skills. Three modes – forge a new skill from a brief, audit recent chat transcripts for new-skill candidates and pain points, or refine an existing skill with additive-only changes. Triggers on "skill-forge a thing that does X", "forge a skill", "skill-forge audit", "skill audit", "refine my skills", "skill-forge refine <name>", or "/skill-forge". Auto-opens a PR against mphinance/alpha-skills (never auto-merges).
02 资源文件 6
- 参考文档feature_list.json6.8 KB
- 脚本scripts/forge_new.py4.9 KB
- 脚本scripts/mine_chats.py22.0 KB
- 脚本scripts/publish.py9.9 KB
- 参考文档SPEC.md5.5 KB
- 其他templates/SKILL.md.tmpl274 B
03 SKILL.md 正文
skill-forge
The skill of skills, for skills. Builds new ones, refines existing ones, and mines chat transcripts for what to build next.
When to invoke
Three modes. Pick by what the user says.
| Mode | Triggers | What it does |
|---|---|---|
| forge | "skill-forge a thing that does X", "forge a skill that ...", "build me a skill for ..." | Ask 2-3 clarifying questions, scaffold ~/.claude/skills/<name>/SKILL.md from the template, open PR to mphinance/alpha-skills. |
| audit | "skill-forge audit", "skill audit", "/skill-forge", "what skills should I build" | Run the miner over ~/.claude/projects/**/*.jsonl, present reports/latest.md, ask which candidates to forge or refine. |
| refine | "refine my skills", "skill-forge refine <name>", "improve the <name> skill" | Propose additive-only changes (new trigger phrase, new example, new section) to an existing skill. Opens PR with diff. |
Flow
forge mode
- Ask the user 2-3 questions max: skill name (kebab-case), one-sentence purpose, primary trigger phrase. Don't over-interview.
- Run the scaffolder.
The scaffolder readspython scripts/forge_new.py --name <name> --brief "<one-sentence purpose>"templates/SKILL.md.tmpland substitutes{{name}},{{description}},{{title}},{{when_to_invoke}},{{flow}},{{hard_rules}}. - Open the freshly written
~/.claude/skills/<name>/SKILL.md. Review with the user. Tighten copy if needed. - Publish.
This clonespython scripts/publish.py <name>mphinance/alpha-skillsinto~/.cache/skill-forge/alpha-skillsif missing, branchesskill-forge/<name>-<short-ts>, commits, pushes, opens PR. Prints PR URL. Stop there. User reviews and merges.
audit mode
- Run the miner.
python scripts/mine_chats.py --days 30 - Read
reports/latest.mdaloud (the markdown report) andreports/latest.json(structured candidates). - Present the three sections: new-skill candidates, refinement candidates, pain points. Ask which to act on.
- For each chosen new-skill candidate, drop into forge mode with
publish.py --from-auditso the PR body cites the mined evidence. - For each chosen refinement candidate, drop into refine mode.
refine mode
- Read the target skill's existing SKILL.md in full. You are not allowed to remove or restructure anything.
- Propose additions only: new trigger phrase in the frontmatter description, new example, new "When NOT to use" bullet, new flow step.
- Write the proposed change to
proposals/<skill-name>/CHANGES.difffirst. Confirm with the user. - Apply the additive edit to
~/.claude/skills/<skill-name>/SKILL.md. - Publish.
Commit message starts with "Refine <name> skill: <one-line summary>". PR body explains the addition and links the mined evidence.python scripts/publish.py <skill-name>
Hard rules
- Never auto-merge PRs.
publish.pyopens the PR. User merges. Nogh pr mergeever. - Never restructure existing skills in refine mode. Additive-only. If a skill needs a rewrite, that's a new forge, not a refine.
- Refinements are additive-only. No removed lines beyond pure whitespace.
publish.pyenforces this in refine mode. - Never mine recursively on skill-forge's own sessions. The miner already filters self-references. Don't disable it.
- Skip SSH transcripts. Project paths starting with
ssh-or cwd under/home/are remote work and not mined. - No em dashes. Use en dash with spaces or commas. No emojis in forged skills.
- stdlib only. Forged skills and skill-forge scripts use Python stdlib, no pip installs.
- Always go through PR. Never edit files in
~/.cache/skill-forge/alpha-skills/skills/directly.
Scheduling
The audit is the part you want on a cron. Two options:
-
Preferred – use the
/scheduleskill./schedule weekly /skill-forge auditRuns the audit weekly, writes
reports/latest.md, notifies you next session. -
Free-tier alternative for the miner alone. Wire Windows Task Scheduler to run
python C:\Users\mphan\.claude\skills\skill-forge\scripts\mine_chats.py --days 7on a weekly trigger. Zero tokens spent. You readreports/latest.mdwhen you feel like it, then invokeskill-forge auditinteractively to act on candidates.
Forge and refine modes are interactive by design. Don't schedule those.
Out of scope
- Auto-merging PRs. User merges, always.
- In-place edits to skills in
~/.claude/skills/during refine mode. Always go through PR againstmphinance/alpha-skills. - Mining transcripts from machines other than this one.
- Forging non-markdown skills (binary plugins, MCP servers, anything that isn't a SKILL.md plus optional scripts).
- Rewriting or restructuring existing skills. Refinements are additive-only.
04 同仓库更多 Skills
order-lifecycle-safety
Idempotency, reconcile-before-retry, audit-before-forward and environment-proof preflight rules for any code or agent that places broker orders. Use when building or reviewing an order path, handling a timeout or unknown order outcome, adding client_order_id, deciding whether a retry is safe, or confirming paper vs live before sending an order.
order-lifecycle-safety
Idempotency, reconcile-before-retry, audit-before-forward and environment-proof preflight rules for any code or agent that places broker orders. Use when building or reviewing an order path, handling a timeout or unknown order outcome, adding client_order_id, deciding whether a retry is safe, or confirming paper vs live before sending an order.
write-a-skill
Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill.
wireframe-sketch
A hand-drawn wireframe exploration — graph-paper background, marker / pencil tone, multiple tab labels for variants, sticky-note annotations, scribbled chart placeholders, hatched fills. Reads like a designer's whiteboard before any pixels are committed. Use when the brief asks for "wireframe", "sketch wireframe", "hand-drawn", "lo-fi", "whiteboard", "草稿", or "手绘原型".
weekly-update
Single-file horizontal-swipe slide deck for a weekly team update — shipped, in flight, blocked, metrics, asks. 6–8 slides. Use when the brief mentions "weekly update", "team update slides", "weekly status", "周报演示".
webull-openapi
Trade stocks, options, futures, crypto, and event contracts on Webull. Query real-time and historical market data. Manage accounts and positions. Supports US, HK, JP, SG, TH, MY, UK, MX, BR, EU, ZA, and AU regions with configurable risk controls.