long-task-claudem-tmux
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 6
- Forks
- 0
03 SKILL.md 正文
long-ta[REDACTED_OPENAI_KEY] — Drive a claudem worker to PR via tmux
When the user explicitly steers away from AO worker dispatch in favor of a
direct claudem (claude + MiniMax) invocation, AND the task is multi-step
(multi-file edit + push + PR is too long for claudem -p --max-turns 40), use
this pattern.
Pre-flight (mandatory)
- Verify writable remote —
gh api repos/jleechanorg/<repo> --jq '.permissions.push'must returntrue. If it returnsfalse, STOP — the user owns the repo under a differentghaccount. - Confirm no PR collision —
gh pr list --head <branch> --state open. If a PR with that branch exists, the user's intent overlaps an in-flight PR pernever-push-onto-someone-elses-pr-head— STOP and ask. - Branch from
origin/main(not from a feature branch with history) perpr-clean-branch-from-main-no-history-bloat. Pattern:git worktree add -b feat/<topic> /tmp/<wt> origin/main - Fix .venv symlink if broken — common Your Project failure:
uvremoved the underlying 3.12.12 interpreter and.venv/bin/pythonis a broken symlink. Fix:ln -sfn /opt/homebrew/bin/python3.12 <wt>/.venv/bin/python MOCK_SERVICES_MODEis exportedtruein the parent shell. Always run worker commands withenv -u MOCK_SERVICES_MODE ...per the discoverd 2026-07-26 lesson.ghtoken resolution underenv -istrips PATH. ResolveGH_TOKENin the outer shell BEFORE the wrap.
Tmux setup (recipe)
SESSION="<short>-<topic>"
tmux kill-session -t "$SESSION" 2>/dev/null || true
tmux new-session -d -s "$SESSION" -x 140 -y 50
tmux set-environment -t "$SESSION" ANTHROPIC_BASE_URL "https://api.minimax.io/anthropic"
tmux set-environment -t "$SESSION" ANTHROPIC_API_KEY "$MINIMAX_API_KEY"
tmux set-environment -t "$SESSION" ANTHROPIC_MODEL "MiniMax-M3"
tmux send-keys -t "$SESSION" "source ~/.bashrc && cd <wt> && claudem" Enter
sleep 8 # wait for claudem welcome banner
Send the brief
Per claude-code-claudem skill — long pasted text can be split across two
[Pasted text #N +M lines] blocks. Always send TWO literal Enter keystrokes
after the paste to guarantee submission:
tmux send-keys -t "$SESSION" "<task text>" Enter
sleep 2
tmux send-keys -t "$SESSION" Enter
Then poll:
tmux capture-pane -t "$SESSION" -p -S -100 | tail -60
GitHub rate-limit fallback (verified 2026-07-26)
When gh pr create returns API rate limit exceeded (GraphQL bucket
exhausted, REST still has quota), gh pr create is GraphQL-backed and will
also fail. Worker fallback (verified by claude/MiniMax-M3 worker on PR #8629):
- Do the edits +
git push(no API needed). - POST to REST endpoint:
curl -sS -X POST -H "Authorization: token \$GH_TOKEN" -H "Accept: application/vnd.github+json" "https://api.github.com/repos/<owner>/<repo>/pulls" -d '{"title":"...","head":"<branch>","base":"main","body":"..."}' - Response includes
"URL": "https://github.com/<owner>/<repo>/pull/N"and"NUMBER": N. Verify withcurl -sS -H "Authorization: token $GH_TOKEN" "https://api.github.com/repos/<owner>/<repo>/pulls/N"showsstate: open.
Slack ack (per dispatched-ta[REDACTED_OPENAI_KEY])
Post ONE short status message in the originating thread within 60s of dispatch: ? In-flight: spawned a claudem worker on branch X from origin/main HEAD Y. Working dir Z, bead <id>. Posting again when PR is open or 5 min elapsed.
When PR is open: ? PR OPEN: <URL> (NO trailing *).
Verification before claiming "done"
gh api repos/<owner>/<repo>/pulls/<N> --jq '.state'→opengit -C <wt> rev-parse HEADmatchesgit -C <main-repo> ls-remote origin <branch>- The PR diff matches the user's stated scope; no unrelated drift files
(per
pr-cleanup-replayPhase 1 evidence gate).
Verified case
2026-07-26, $GITHUB_REPOSITORY PR #8629
(feat/prompt-tier-compression-visenya-v9, 12 files / +754/-5):
worker applied 5 prompt-only edits, created evidence/visenya-v9-samples/
with 8 sample scenes, wrote 11-assertion contract test, single
ao/MiniMax-M3: commit, pushed, opened PR via REST fallback after GraphQL
rate limit. Single-shot completion in ~10m wall time.
04 同仓库更多 Skills
instinct
Use when the user invokes /instinct or /in, or asks to "message Instinct", "ask Instinct", "tell Instinct", "check Instinct", or read replies from the configured peer assistant. iMessage first, WhatsApp Web as fallback.
hr
Compatibility alias for history-resume; produce the same fresh-state, provenance-aware resume briefing.
history-resume
Resume briefing for the current repository branch or worktree using fresh state and admitted history sources.
grok
Alias for the canonical grokbot browser conversation workflow; /grok talks to the Grok bot the same way /dot talks to Dot.
codexa-bench
Compare `codexa` and normal `codex` on a fair split of comparable work by default; use `--strict` for duplicate runs of the exact same task.
frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.