skill-creator
Create, write, add, edit, update, or review a fir skill — author SKILL.md with frontmatter and agent-facing instructions, run the quality checklist, and tell the user to /reload.
- License 许可
- MIT
- 所属仓库
- kfet/fir
- 最近更新
- 2026-11-12
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- skill-creator
- builtin
- true
- override
- true
- description
- Create, write, add, edit, update, or review a fir skill — author SKILL.md with frontmatter and agent-facing instructions, run the quality checklist, and tell the user to /reload.
03 SKILL.md 正文
Skill Creator
Use this skill whenever you are writing a new skill, editing an existing one, or just reviewing a SKILL.md for quality.
Skill files target a smart AI, not a beginner. Skip anything obvious. Every sentence must earn its place.
Location
Skills live under .fir/skills/<name>/SKILL.md. The directory name must match the name key in frontmatter.
Format
Every SKILL.md starts with YAML frontmatter followed by Markdown instructions for the executing agent:
---
name: <skill-name>
description: One-line, keyword-rich trigger statement used by the agent to decide when to load this skill.
---
Steps
- Create or open
.fir/skills/<name>/SKILL.md. - Write the frontmatter —
namematching the directory, plus a keyword-richdescription. - Write clear, agent-facing Markdown instructions — no stubs, no TODOs, no user-facing fluff.
- Run the review checklist below and fix issues in place.
- Tell the user to
/reload.
Catalog pattern (umbrella skills)
When several skills share the same trigger (e.g. four loop-style agents all about "watch the project"), collapse them into a single catalog skill to cut system-prompt bloat:
- One real
SKILL.mdat<name>/SKILL.mdwith a narrow keyword-richdescriptionand a body that lists each child role and when to use it. - Children live as plain markdown under
<name>/docs/<role>.md— no frontmatter, not namedSKILL.mdso the discovery walker silently skips them. - The catalog directs the agent to
Readthe relevant sub-doc on demand. Supporting scripts live under<name>/scripts/at the skill root (not underdocs/), so they're easy to find and reference from any sub-doc.
See project-ops for a working example.
Review checklist
Apply this on every create or edit (including review-only passes on hand-edited files).
Frontmatter
description is the sole trigger signal. It must be a single tight sentence naming the concrete action and the key nouns a user would say — precise and keyword-rich.
Good:
name: releaser
description: Release a new version. Confirms reviews and tests pass, updates VERSION and CHANGELOG.md, commits, tags, and installs.
Body
Cut anything vague, redundant, incomplete, or longer than necessary. Instructions must target the executing agent, not the user.
No project-root boilerplate. The shell already starts in the project root. Remove any git rev-parse --show-toplevel calls and any PROJECT_ROOT / PROJECT preambles that exist only to locate the repo. Use $PWD or relative paths directly.
Checklist
namematches the directory namedescriptionis a one-sentence keyword-rich trigger- No stubs or TODOs
- Agent-facing language throughout
04 同仓库更多 Skills
wt
Spawn a fresh fir agent in its own tmux session on its own git worktree. Use whenever the user wants the work — or the conversation about the work — to happen over there, not here. If the user points at this skill, or has directly loaded it in the context, that alone is the cue — spawn, don't inline.
wrap-up
Wrap up work on a project branch — review, fix, and simplify in a loop until clean, then ff-merge to main.
tmux-observer
Attach a tmux window to an already-running fir session — observe its transcript and drive its input via tmux send-keys. Use when you need to watch or steer another fir agent.
tmux-driver
Drive interactive CLIs (python, gdb, etc.) via named tmux sessions with multi-window support. Falls back to fir's built-in PTY driver when tmux is unavailable.
telegram-bot-setup
Set up a new Telegram bot channel for a fir project — install the telegram MCP, create a per-project state dir, drop in the bot token, wire .fir/mcp.json with TELEGRAM_STATE_DIR, pair the user, and verify. Use when the user asks to add, configure, or onboard a Telegram bot for a fir worktree/project.
sync
Sync with an upstream source repo — detect changed files, apply equivalent downstream edits, update the baseline, and report any new features or non-trivial changes picked up.