基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ikangai/tmuxllm --skill codebase-trio命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Clone a GitHub repository, detect its build system, and run the canonical install — pure shell, zero LLM calls. Crystallises the install-from-source dance so an agent doesn't surrender on "binary not found".
Single-conversation role-cycling variant of codebase-trio — one tmuxllm agent performs writer and reviewer roles in sequence, with role briefs loaded substrate-purely from roles/*.md
Spawn a persistent named agent from a known role archetype (calendar, email, code-review, monitor, scheduler). Reads the archetype's markdown template, asks the user the domain questions it names, composes a role-shaped persona, then calls `system/spawn-agent` to spawn with that persona installed. Use when the user says "set up a calendar agent", "give me an email assistant", "spawn a code-review bot", etc.
| name | codebase-trio |
| description | Two-agent codebase journal (writer + reviewer) over a deterministically pre-computed context bundle |
| capabilities | ["shell"] |
Produces one journal entry about a codebase via:
Phase 0 — context bundle (deterministic shell, no LLM):
prepare_context.sh emits $WS/context.md with the file tree, last
30 commits, last 5 commit diffs, function/class definitions across
src/, pattern grep over concurrency / caching / IPC / TODO / design-doc
markers, and a LOC summary. ~7K tokens.
Phase 1 — writer agent: reads the bundle, picks ONE non-obvious
thing, drafts a ~200-word note to $WS/draft.md. Signals reviewer
via $WS/wr2rv FIFO.
Phase 2 — reviewer agent: blocks on the FIFO; reads the bundle
plus the writer's draft; validates every substantive claim; writes
the final entry to $WS/final.md. Combines the original critic and
editor into one LLM conversation — no second handoff.
The skill name still says "trio" because the bundled-context phase functionally substitutes for the third role: pre-computed deterministic work used to be done redundantly by all three agents; now it's done once, by the shell, before any LLM runs.
The original three-agent design (writer → critic → editor with two FIFO handoffs and live codebase exploration via every agent) was anti-amortizing — exercising the skill cost ~2× more than letting a single tmuxllm agent figure out the journal task from scratch.
Diagnosis (in docs/plans/2026-04-26-skills-architecture.md §"Phase 1
verification gate — result and reframe"):
The reform moves deterministic plumbing into shell, collapses the two LLM personas with no capability difference (critic + editor) into one, and keeps a single FIFO handoff (the irreducible synchronisation).
tmuxllm-skill run codebase-trio
Env vars (override defaults):
TMUXLLM_PROFILE — provider profile (default: openrouter-gemini-3.1-flash-lite)REPO — codebase to analyse (default: $PWD)WS — workspace dir (default: /tmp/codebase-trio)JOURNAL — journal output dir (default: $HOME/.local/share/tmuxllm/journal)prepare_context.sh) that lifts
deterministic codebase enumeration out of every agent loop$WS/{writer,reviewer}.jsonl$JOURNAL/$(date +%Y-%m-%d).mdopenrouter-sonnet; multiply by 3 for opus.find / grep without producing a focused note. Scope REPO to a
subdirectory if needed.Use launchd (macOS) or cron (Linux). Example launchd plist that runs at 09:00:
<plist version="1.0">
<dict>
<key>Label</key><string>com.user.tmuxllm-codebase-trio</string>
<key>ProgramArguments</key>
<array>
<string>/bin/bash</string>
<string>-lc</string>
<string>cd /path/to/repo && tmuxllm-skill run codebase-trio</string>
</array>
<key>EnvironmentVariables</key>
<dict>
<key>TMUXLLM_PROFILE</key><string>openrouter-sonnet</string>
<key>OPENROUTER_API_KEY</key><string>...</string>
</dict>
<key>StartCalendarInterval</key>
Hour9Minute0
0 9 * * * cd /path/to/repo && TMUXLLM_PROFILE=openrouter-sonnet OPENROUTER_API_KEY=... tmuxllm-skill run codebase-trio >> /tmp/codebase-trio.log 2>&1
Either way, expect ~/.local/share/tmuxllm/journal/YYYY-MM-DD.md to
accumulate one entry per day.
$WS/context.md ← prepare_context.sh writes; both agents read
$WS/draft.md ← writer writes; reviewer reads
$WS/final.md ← reviewer writes (the journal entry)
$WS/wr2rv (FIFO) ← writer signals "draft ready"
Topology: linear handoff. Writer → reviewer → exit. The trailing
&& echo signaled (writer) and && echo published (reviewer) cues
keep the LLM from exiting before the FIFO write or final-file write
actually lands.
REVISE: <reason> to a
feedback file instead of finalising; writer reads it, revises,
re-signals the reviewer. Cap rounds in each prompt.Wrap with timeout 600 so a misbehaving agent doesn't deadlock the
orchestrator (e.g. writer exits without signalling wr2rv, leaving
the reviewer blocked on read):
timeout 600 tmuxllm-skill run codebase-trio