instruction-tune
Process accumulated instruction-feedback into edits — read the global friction log, cluster by target, propose and apply fixes to AGENTS.md and skill files across projects, then archive. Use when asked to tune, review, or correct your instructions.
- License 许可
- MIT
- 所属仓库
- kfet/fir
- 最近更新
- 2026-11-15
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- instruction-tune
- builtin
- true
- override
- true
- description
- Process accumulated instruction-feedback into edits — read the global friction log, cluster by target, propose and apply fixes to AGENTS.md and skill files across projects, then archive. Use when asked to tune, review, or correct your instructions.
02 资源文件 1
- 参考文档evals/triggers.json1.6 KB
03 SKILL.md 正文
instruction-tune
The reader side of the instruction-feedback loop. ship-it writes friction
entries passively; this skill turns them into actual edits, on demand. User-
invoked only — never auto-run.
Steps
-
Read the log:
cat ~/.config/fir/instruction-feedback.jsonl 2>/dev/nullIf absent or empty, say so and stop.
-
Cluster by
target. Patterns across multiple entries are signal; a lone one-off is likely noise — flag it as low-confidence rather than acting automatically.target: "task-prompt"entries have no file to edit; surface them grouped as prompt-writing patterns for the user. -
For each cluster with a file target, locate the file. Entries record an absolute
projectpath, so the target may live in another project — read it there. Propose a concrete edit that resolves the friction (tighten an ambiguous instruction, remove dead-weight guidance, fix a contradiction). Show the user the diff and apply on consent. -
Archive processed entries so they do not resurface: append them to
~/.config/fir/instruction-feedback.archive.jsonland rewrite the live log without them. Preserve any entries you did not process.
Rules
- Propose, then apply on consent — never silently rewrite a user's instructions.
- One-offs are low-confidence. Prefer clustering; don't over-fit to a single report.
- Cross-project is expected. Edit the file where it actually lives, not a copy in the current project.
Output
Per cluster: target, number of entries, the friction, the edit made (or deferred). End with how many entries were archived and how many remain.
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.