orient
Map an unfamiliar repo once and bookmark the map (layout, build/test commands, key packages, gotchas) with note prefix `orient:` so future sessions find it via `recall`. Run when `recall` finds no `orient:` bookmarks for this repo, or when the user asks to orient/seed a project.
- License 许可
- MIT
- 所属仓库
- kfet/fir
- 最近更新
- 2026-11-15
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- orient
- builtin
- true
- description
- Map an unfamiliar repo once and bookmark the map (layout, build/test commands, key packages, gotchas) with note prefix `orient:` so future sessions find it via `recall`. Run when `recall` finds no `orient:` bookmarks for this repo, or when the user asks to orient/seed a project.
02 资源文件 5
- 资产文件assets/Chart.yaml.template802 B
- 资产文件assets/values.yaml.template3.1 KB
- 参考文档references/chart-structure.md11.5 KB
- 参考文档resources/implementation-playbook.md11.1 KB
- 脚本scripts/validate-chart.sh6.4 KB
03 SKILL.md 正文
orient — seed a repo map future sessions can recall
Agent-driven; no human step. Budget: a handful of cheap commands, a few minutes. Pointers, not conclusions.
1. Explore briefly
git rev-parse --show-toplevel; git log --oneline -5
ls; cat AGENTS.md CLAUDE.md README* 2>/dev/null | head -80
ls Makefile justfile package.json go.mod pyproject.toml Cargo.toml 2>/dev/null
grep -E '^[a-z][a-z0-9_-]*:' Makefile 2>/dev/null | head -20
Glance at top-level dirs (ls pkg cmd src 2>/dev/null) — don't read code
deeply.
2. Write the map as one short message
Under ~25 lines, covering only:
- layout — top-level dirs, one line each
- build/test — exact commands (
make all,make test, …) - key packages/entry points — paths
- gotchas — things that would bite a newcomer (generated files, min language versions, editor-requiring git commands, symlinked dirs)
Paths and commands, not opinions about the code. It will go stale; pointers age better than conclusions.
3. Bookmark it
Quote a distinctive line of that message:
bookmark(quote="<distinctive line from the map>", note="orient: <repo-name> map — layout, build/test, gotchas")
One bookmark per repo per orient run. Additional standalone gotchas found
later may be bookmarked with orient: gotcha — …. Never put secrets in them.
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.