ops-recap
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "ops-recap":https://skillpi.com/zh/skills/deepskill-9c2989c89623dfdb5a6bc91c070d09293ca9b320705efc15c76fe257e732dbb7。安装前核对上游来源和版本:https://github.com/Lifecycle-Innovations-Limited/claude-ops。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
按需运维(OPS on-demand):当用户请求“recap daemon”、“tmux marquee”或类似操作时使用此技能以处理相应的运维请求。
介绍来源: third_party · Lifecycle-Innovations-Limited · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: ops-recap
description: "OPS on-demand: This skill should be used when the user asks to \"recap daemon\", \"tmux marquee\", or…"
argument-hint: '[status|tail|configure|restart]'
allowed-tools:
- Bash
- Read
- Write
- Edit
- AskUserQuestion
effort: low
maxTurns: 12OPS ► RECAP
Load ops-rules before acting. Public repo (no personal data). Outbound: one draft → one approval → one send. If AskUserQuestion / Workflow are missing, follow Rule 10 in ops-rules (Hermes: numbered options / two-turn Telegram card; delegate_task).
The recap marquee is a launchd-managed daemon that aggregates per-session Claude transcripts (via the recap-capture Stop hook) and per-tool activity (via the recap-tool-activity PostToolUse hook) into a single rolling headline at /tmp/claude-recap-digest. Tmux reads that file every refresh interval via scripts/recap/marquee.sh and scrolls it across status-right.
Files:
| Path | Role |
|---|---|
${CLAUDE_PLUGIN_ROOT}/scripts/recap/daemon.sh |
Background loop — polls inputs, calls digest.sh when stale |
${CLAUDE_PLUGIN_ROOT}/scripts/recap/digest.sh |
Synthesizes one-line digest via claude -p (session default model; OPS_RECAP_MODEL overrides) |
${CLAUDE_PLUGIN_ROOT}/scripts/recap/marquee.sh |
Tmux-side scroller (called from status-right) |
${CLAUDE_PLUGIN_ROOT}/hooks/recap-capture.sh |
Stop hook → writes /tmp/claude-recap-<sid> |
${CLAUDE_PLUGIN_ROOT}/hooks/recap-tool-activity.sh |
PostToolUse hook → live activity per session |
~/Library/LaunchAgents/com.claude-ops.recap-daemon.plist |
Launchd agent (macOS) |
/tmp/claude-recap-digest |
Rolling one-liner (read by tmux + marquee.sh) |
/tmp/claude-recap-daemon.log |
Daemon log (rotated at 500KB) |
/tmp/claude-recap-digest.log |
Last 50 generated digests, chronological |
Subcommand: status (default)
Print a compact health panel:
PLIST=~/Library/LaunchAgents/com.claude-ops.recap-daemon.plist
LABEL=com.claude-ops.recap-daemon
DIGEST=/tmp/claude-recap-digest
DAEMON_LOG=/tmp/claude-recap-daemon.log
# Plist installed?
if [ -f "$PLIST" ]; then echo "✓ plist installed: $PLIST"; else echo "✗ plist missing"; fi
# Launchd loaded?
launchctl print "gui/$(id -u)/${LABEL}" >/dev/null 2>&1 \
&& echo "✓ launchd loaded ($LABEL)" \
|| echo "✗ launchd not loaded — run /ops:recap restart"
# Daemon process alive?
if [ -f /tmp/claude-recap-daemon.pid ]; then
pid=$(cat /tmp/claude-recap-daemon.pid)
kill -0 "$pid" 2>/dev/null && echo "✓ daemon alive (pid $pid)" || echo "✗ stale pid file"
else
echo "✗ no pid file"
fi
# Digest freshness
if [ -f "$DIGEST" ]; then
age=$(($(date +%s) - $(stat -f %m "$DIGEST" 2>/dev/null || stat -c %Y "$DIGEST" 2>/dev/null || echo 0)))
echo "✓ digest age: ${age}s"
echo " preview: $(head -c 120 "$DIGEST")..."
else
echo "✗ digest file missing — daemon may not have produced one yet"
fi
# Log size
if [ -f "$DAEMON_LOG" ]; then
bytes=$(stat -f %z "$DAEMON_LOG" 2>/dev/null || stat -c %s "$DAEMON_LOG" 2>/dev/null)
echo " log: $DAEMON_LOG (${bytes} bytes)"
fi
# tmux integration?
# Display surfaces — tmux status-right + Claude Code statusLine can coexist
tmux_wired=0
statusline_wired=0
if command -v tmux >/dev/null 2>&1; then
if grep -q claude-recap "$HOME/.tmux.conf" 2>/dev/null; then
echo "✓ tmux status-right wired"
tmux_wired=1
else
echo "○ tmux installed but status-right not wired — run /ops:recap configure"
fi
else
echo "○ tmux not installed"
fi
SETTINGS="$HOME/.claude/settings.json"
statusline_check_skipped=0
if ! command -v jq >/dev/null 2>&1; then
echo "○ Claude Code statusLine — cannot check (jq not installed; install via 'brew install jq' or your distro's package manager)"
statusline_check_skipped=1
elif [ ! -f "$SETTINGS" ]; then
echo "○ Claude Code statusLine — no ~/.claude/settings.json found (run Claude Code at least once, or run /ops:recap configure to create one)"
statusline_check_skipped=1
else
sl_cmd=$(jq -r '.statusLine.command // empty' "$SETTINGS" 2>/dev/null)
if echo "$sl_cmd" | grep -q claude-recap-digest; then
echo "✓ Claude Code statusLine wired"
statusline_wired=1
else
echo "○ Claude Code statusLine not wired — run /ops:recap configure"
fi
fi
# Only warn "no display surface active" when we actually verified both surfaces.
# If statusline check was skipped due to missing prerequisites, statusline_wired
# being 0 is uninformative — surface that explicitly instead of misleading text.
if [ "$tmux_wired" -eq 0 ] && [ "$statusline_wired" -eq 0 ]; then
if [ "$statusline_check_skipped" -eq 1 ]; then
echo " → tmux not wired; statusLine status unknown (prerequisite missing — see above). Daemon still produces /tmp/claude-recap-digest (useful for /ops:recap tail)."
else
echo " → no display surface active. Daemon still produces /tmp/claude-recap-digest (useful for /ops:recap tail)."
fi
fi
Subcommand: tail
Stream the rolling digest log:
echo "─── Last 20 generated digests ───"
tail -n 20 /tmp/claude-recap-digest.log 2>/dev/null || echo "(no digest log yet)"
echo
echo "─── Daemon log (tail 30) ───"
tail -n 30 /tmp/claude-recap-daemon.log 2>/dev/null || echo "(no daemon log yet)"
Subcommand: configure
Walk the user through display-surface integration. Two surfaces are supported and they can coexist: tmux status-right and Claude Code statusLine (~/.claude/settings.json). Detect existing config first to avoid clobbering.
-
Check tmux availability — if missing, jump to the statusLine fallback flow below:
if ! command -v tmux >/dev/null 2>&1; then echo "tmux not installed — offering Claude Code statusLine fallback." # → see "statusLine fallback" section below fi -
Check current
~/.tmux.conf:TMUX_CONF="$HOME/.tmux.conf" tmux_already_wired=0 if grep -q claude-recap "$TMUX_CONF" 2>/dev/null; then echo "✓ tmux status-right already configured." tmux_already_wired=1 fi existing=$(grep -E '^\s*set\s+-g\s+status-right' "$TMUX_CONF" 2>/dev/null | head -1)Steps 3–5 only apply when tmux is not already wired (
tmux_already_wired=0): -
If
existingis non-empty,AskUserQuestion:- Question: "Existing tmux status-right detected:
$existing. Append recap marquee?" - Options:
[Append (keep existing)][Replace with recap-only][Skip]
- Question: "Existing tmux status-right detected:
-
On append: insert the marquee snippet ahead of the existing setting so both render. On replace: comment out the old line and add the new one.
Snippet to append — expand the plugin path when writing
~/.tmux.conf(tmux#()does not expand env vars):PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT:-$(ls -d "$HOME/.claude/plugins/cache/ops-marketplace/ops"/*/ 2>/dev/null | sort -V | tail -1)}" cat >> "$TMUX_CONF" <<TMUX
claude-ops recap marquee
set -g status-right '#('"${PLUGIN_ROOT}"'/scripts/recap/marquee.sh) #[fg=#a6e3a1]%H:%M ' set -g status-interval 2 TMUX
- Reload if tmux is running:
tmux info >/dev/null 2>&1 && tmux source-file "$TMUX_CONF" 2>/dev/null
configure — statusLine fallback (no tmux, or in addition to tmux)
When tmux is missing — or the user wants a second surface — wire the recap into Claude Code's own status bar via ~/.claude/settings.json.
-
AskUserQuestion(Rule 1 — exactly 4 options):Wire recap into Claude Code statusLine (~/.claude/settings.json)? [Add to Claude Code statusLine] [Show me the JSON, I'll add manually] [Skip] [Help] -
On
Add to Claude Code statusLine, detect existing entry:SETTINGS="$HOME/.claude/settings.json" mkdir -p "$(dirname "$SETTINGS")" [ -f "$SETTINGS" ] || echo '{}' > "$SETTINGS" existing=$(jq -r '.statusLine // empty' "$SETTINGS") -
If
existingis non-empty, ask (Rule 1 — 3 options):Existing statusLine detected. How to handle? [Replace with recap] [Append after current (chain commands)] [Skip] -
Merge with
jqso other settings are preserved:TMP=$(mktemp) jq '.statusLine = { "type": "command", "command": "cat /tmp/claude-recap-digest 2>/dev/null | head -c 80", "refreshInterval": 30 }' "$SETTINGS" > "$TMP" && mv "$TMP" "$SETTINGS"For the append branch, chain commands so both render side-by-side:
prev_cmd=$(jq -r '.statusLine.command // ""' "$SETTINGS") if [ -n "$prev_cmd" ]; then new_cmd="${prev_cmd}; cat /tmp/claude-recap-digest 2>/dev/null | head -c 80" else new_cmd="cat /tmp/claude-recap-digest 2>/dev/null | head -c 80" fi TMP=$(mktemp) jq --arg cmd "$new_cmd" '.statusLine.command = $cmd' "$SETTINGS" > "$TMP" && mv "$TMP" "$SETTINGS" -
Print:
✓ Claude Code statusLine wired — restart Claude Code (or open a new session) to activate.
The JSON snippet (for the manual / Show me the JSON path):
{
"statusLine": {
"type": "command",
"command": "cat /tmp/claude-recap-digest 2>/dev/null | head -c 80",
"refreshInterval": 30
}
}
Subcommand: restart
Reload the launchd agent without reconfiguring:
LABEL=com.claude-ops.recap-daemon
PLIST=~/Library/LaunchAgents/com.claude-ops.recap-daemon.plist
launchctl bootout "gui/$(id -u)/${LABEL}" 2>/dev/null || true
rm -rf /tmp/claude-recap-daemon.lock /tmp/claude-recap-daemon.pid
launchctl bootstrap "gui/$(id -u)" "$PLIST" && echo "✓ daemon restarted"
Linux / systemd alternative
The launchd plist is macOS-only. Linux users can wrap scripts/recap/daemon.sh in a systemd --user unit. Minimal example (~/.config/systemd/user/claude-recap-daemon.service):
[Unit]
Description=Claude Ops Recap Daemon
After=default.target
[Service]
Type=simple
ExecStart=/bin/sh %h/.claude/plugins/cache/ops-marketplace/ops/CURRENT/scripts/recap/daemon.sh
Restart=always
RestartSec=30
[Install]
WantedBy=default.target
Then systemctl --user daemon-reload && systemctl --user enable --now claude-recap-daemon. The CLI subcommands above (status / tail / restart) won't auto-detect systemd — use systemctl --user status claude-recap-daemon directly.
Invocation
/ops:recap (alias: shows status). Subcommand parsing:
sub="${1:-status}"
case "$sub" in
status|tail|configure|restart) ;;
*) echo "Unknown subcommand: $sub. Try: status | tail | configure | restart"; exit 1 ;;
esac版本历史
-
v3.12.1
GitHub ↗
原版更新说明
### Fixed - ops-task-reminder: the portable lock now runs the whole counter transaction under a real fcntl.flock, so one worker can no longer remove another's fresh lock and lose counter updates.
-
v3.12.0
GitHub ↗
原版更新说明
### Changed Add /ops:ops-mix and evidence-only A&R mix-evidence mode using the configured Mixforge engine.
-
v3.11.0
GitHub ↗
原版更新说明
### Changed Release safety, maintenance and inbox fixes from #1033: passive daemon monitoring, timezone-safe AWS audit dates, fail-closed release merge gates (same-head CI, Copilot review, resolved threads), progressive inbox with attachment and archive read-back proofs, and gate-only outbound wording in ops-desk and ops-leadgen.
-
v3.10.29
GitHub ↗
原版更新说明
### Fixed - `ops-speedup --clean` stays under 60s: on macOS it skips the slow login-items query (#1036); on Linux it skips the unused disk-reclaim scan and keeps the page cache unless `--aggressive` is set (#1035). - `ops-inbox` shows validated drafts as soon as each one is ready instead of after the whole scan (#1031). ### Changed - Hooks `ops-pretool-skill-update` and `ops-task-reminder` run async; the reminder takes a per-session lock so concurrent runs no longer lose counts, and it now also resets on Task* tools (#1032).
-
v3.10.28
GitHub ↗
原版更新说明
### Changed ops-ar: Cyanite schema drift (fileUploadRequest id, ID! upload var), real auth test via libraryTracks, webhook must verify HMAC-SHA512 Signature, bpmRangeAdjusted vs bpmPrediction, Soundcharts app-id/key pairing.
此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 高价值/高频刚需。直接解决用户明确的核心任务痛点,显著提升日常高频场景的效率,自动化运维任务和信息聚合
亮点
- 触发词精准完整,覆盖多种变体,边界清晰
亮点
- Phase/步骤清晰,有出口条件,含端到端示例,frontmatter完整,单文件≤500行
亮点
- 工具来源明确,参数正确,覆盖主要异常,不可逆操作有确认机制
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
删除文件
先确认绝对路径及作用范围,保留可恢复备份;不要直接对重要目录运行示例命令。
主文档提及 · 第 260 行 -
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 95 行
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。