Token导航 LogoToken导航TokenDH.com
效率执行命令clawhub未标认证来源可访问clear审计通过

sageox-summarySageox 总结

Agent Skill

sageox-summary 用于补充效率相关能力,适合在 OpenClaw 中需要让 Agent 承接效率相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,794

周安装

152

GitHub Stars

公开资料未说明

下载量

1,228
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:sageox-summary(Sageox 总结)
来源仓库:https://github.com/galexy/sageox-summary
安装命令:
openclaw skills install sageox-summary
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install sageox-summary

简介

sageox-summary 生成团队过去24小时的综合活动摘要,整合每日蒸馏内容。

  • 适用于快速掌握团队进展和产品动态的效率类任务场景。
  • 通过 clawhub 安装后,可自动聚合“牛蒸馏历史”条目并输出结构化总结。
  • 使用前需确认对相关系统的访问权限,防止信息越权获取。
  • 建议结合具体业务场景调整摘要粒度与输出格式。

SKILL.md

name
sageox-summary
description
Generate an overall team summary covering the last 24 hours across all SageOx-enabled teams. Reads distilled daily entries via ox distill history and produces a structured, Slack-ready overview.
version
0.3.1
metadata

SageOx Summary

You are an agent that generates a cross-team summary of the last 24 hours of SageOx distilled activity. You enumerate each team's recent distilled entries via ox distill history, inline their content into a prompt for claude -p, and return a structured Slack-formatted summary.

This skill pairs with the sageox-distill skill — distill writes the source material, this skill synthesizes it.

ox version requirement: this skill uses ox distill history list and ox distill history show, which landed in PR #507. If ox distill history --help returns "unknown command" or similar, update ox (see § 3 below) before continuing.

Prerequisites

Before doing anything else, verify the user's environment. Run every check in order. If any required check fails, explain precisely what's missing and stop. Do not proceed until the user has fixed it.

1. Required binaries

ox, claude, and jq are declared in the front matter's requires.bins, so OpenClaw checks them before running the skill. claude (npm) and jq (brew) have declarative installs in the front matter; ox does not. If OpenClaw reports a missing bin, surface its message to the user and stop — except for ox, which has the interactive install flow in § 3 below.

claude -p will use whatever credentials claude already has — either an OAuth session from claude login (Pro/Max subscription) or ANTHROPIC_API_KEY exported in the shell that launched OpenClaw. The skill no longer accepts a per-skill apiKey.

2. Path validation rules

Several steps below read a path from a JSON state file. Before interpolating any such value into a shell command, the agent must validate it against these rules:

  1. Absolute path required. Must start with / or ~. Reject relative

paths and bare names.

  1. No .. segments. Reject anything containing ...
  2. No shell metacharacters. Reject anything containing any of these

characters: ; $ ` ` | & < > ( ) { } * ? [ ] ! \` newline.

On any validation failure: print a clear error to the user explaining which rule failed and ask them to provide a different path. Do not attempt to "fix up" or sanitize the input — reject and re-prompt.

Treat values read from ~/.openclaw/memory/*.json files as untrusted even though this skill writes them: the user (or a process running as the user) may have edited the file by hand or by another tool between runs. Re-validate every read.

3. Installing ox

The ox CLI install state is recorded in ~/.openclaw/memory/sageox-ox-install.json. On every run of this skill, invoke the bundled readiness gate:

bash scripts/update-ox.sh

Contract:

  • Stdout: nothing on success
  • Stderr: on any failure, a two-line message — an error: line

describing what's wrong, followed by a fix: line with the remediation. Surface both verbatim to the user.

  • Exit: 0 ox is pinned, installed, and reports the expected

version (continue to § 4); 2 ox is not usable — one of: state file missing, binary missing at $HOME/.local/bin/ox, ox on PATH resolves to a different binary, binary fails to run, or binary reports a version other than the one recorded in sageox-ox-install.json. On exit 2, STOP, read references/INSTALL.md, follow the install flow, then re-run this script to confirm.

There is no per-run auto-update. The curl install pins a specific ox release by tag and sha256; users pick up newer releases by re-running clawhub install for this skill after a new skill version publishes. The user can say "reinstall ox" at any time to re-enter the flow in references/INSTALL.md.

Do not install ox via Homebrew or any package manager (e.g. brew install sageox/tap/ox, apt, dnf, pacman). The tap exists for general use but is not supported inside OpenClaw skills — only the pinned-release curl flow is.

4. Authentication

  1. ox status — confirm ox is authenticated. If not, tell the user to

run ox login and try again.

  1. Smoke-test claude -p:
   claude -p "say hi" --model claude-sonnet-4-6

If it fails with an auth error, claude has no usable credentials. Tell the user to either run claude login (Pro/Max OAuth) or export ANTHROPIC_API_KEY in the shell that launches OpenClaw, then re-run the skill. The skill cannot inject the key itself.

Configuration

The skill uses two pieces of state:

  1. Repo manifest~/.openclaw/memory/sageox-distill-repos.json

(shared with the sageox-distill skill). Format:

   {
     "repos": [
       { "path": "/home/user/repos/my-project", "team_id": "my-team" }
     ]
   }

The team_id values are what drive the summary — they're passed directly to ox distill history list --team. The path entries are not used by this skill, but stay in the manifest so sageox-distill keeps working.

  1. Summary state~/.openclaw/memory/sageox-summary-state.json.

Tracks which distilled daily entry ids have already been included in a prior summary run so the skill never re-summarizes the same content. Shape: {updated_at, teams: {<team_id>: {included_ids: [<id>, ...]}}}. Missing file → empty state (first run). Treat contents as untrusted: every id must pass ^[0-9]{4}-[0-9]{2}-[0-9]{2}-[0-9a-f-]+$ or be silently dropped. Both bundled scripts handle this already — the rule is stated here for anyone reading the state file directly.

Pre-0.2.0 versions of this skill stored entries under included_files (with a .md suffix). That field is ignored by the current scripts; users upgrading from 0.1.x will re-summarize the most recent window once and the state file will converge to the new schema on the next successful run.

If the manifest does not exist, tell the user to run the sageox-distill skill first to set up the repos, or ask for paths directly and populate it.

The skill no longer needs a SageOx endpoint file or any team-context directory layout knowledge — ox distill history resolves paths internally. Earlier versions read ~/.openclaw/memory/sageox-endpoint.txt; that file is ignored now and can be left alone or removed.

Summary Pipeline

When the user asks for a summary, run the steps in order. Steps 2 and 5 delegate their mechanics to scripts/select-new-entries.sh and scripts/update-state.sh (invoke via bash scripts/<name>).

Step 1: Load the Manifest and Summary State

  1. Read ~/.openclaw/memory/sageox-distill-repos.json with jq.

Re-validate every path entry against the Path validation rules in Prerequisites § 2 before using it — the manifest is user-writable and may have been hand-edited between runs. (The summary pipeline itself does not dereference the paths, but if the manifest looks corrupt we stop rather than guess at intent.)

  1. Read ~/.openclaw/memory/sageox-summary-state.json with jq if it

exists. If it is missing, proceed silently as if the teams map were empty — first runs are normal. If it exists but is malformed or unreadable, proceed as if empty AND emit exactly one warning to stderr:

   warning: sageox-summary-state.json was unreadable, starting from empty state

Never route this warning to stdout — stdout is the final summary (Step 6), and mixing decorative output into it breaks downstream consumers. This file is rewritten at the end of every successful run (see Step 5).

  1. Collect the unique team_id values from the manifest. These drive

every subsequent ox distill history call.

Step 2: Select New Entries per Team

The window is the last 24h, resolved server-side by ox distill history list against entry created_at timestamps. ox auto-expands the window around the UTC day boundary so runs don't miss yesterday's late entries — this skill passes 24h verbatim and lets ox decide how wide to actually look. The state file then subtracts anything already summarized, so re-runs within the window are idempotent. First run (no state file) = every candidate is new, not an error.

For each unique team_id, invoke scripts/select-new-entries.sh. It runs ox distill history list --team <tid> --since 24h --layer daily --format json, extracts the entry ids, and subtracts the team's included_ids set from the state file. Contract:

  • Usage: select-new-entries.sh <team_id> <since> <state_file>
  • Stdout: one entry id per line, sorted; empty if nothing new
  • Stderr: one-line warnings (malformed state, failed ox call)
  • Exit: 0 success (empty is not a failure; a failed ox call is

treated as "no new entries" so the remaining teams still summarize), 2 usage, 3 internal (jq or ox missing)

STATE_FILE=~/.openclaw/memory/sageox-summary-state.json
NEW_IDS="$(bash scripts/select-new-entries.sh \
  "$TEAM_ID" 24h "$STATE_FILE")"

Then:

  1. If NEW_IDS is empty for a team, skip it this run — log

<team_id>: no new entries since last summary to stderr and continue with the remaining teams.

  1. If every team ends up with zero new entries, stop the pipeline

before invoking Claude. Print one line to stdout — No new distilled content since last summary. — and exit. Do not modify the state file; Step 5's prune on the next successful run will collect any stale entries.

Step 3: Fetch Entry Content and Build the Prompt

For each team that survived Step 2, fetch the content of every new entry in a single ox distill history show call. show accepts multiple ids and emits each entry's markdown separated by its own <!-- entry: <id> --> header:

# shellcheck disable=SC2086
TEAM_BLOCK="$(ox distill history show \
  --team "$TEAM_ID" \
  --format content \
  $NEW_IDS)"

(Intentionally unquoted expansion: NEW_IDS is a sorted set of ids, each already matched against ^[0-9]{4}-[0-9]{2}-[0-9]{2}-[0-9a-f-]+$ by Step 2, so word-splitting is safe and desired here.)

If the show call fails for a team, surface the stderr and stop the whole run — partial summaries misrepresent the team's activity, and Step 5 stays untouched so the next run retries the same set.

Then read the template from the skill's assets directory: ./assets/SUMMARIZE.md (relative to this SKILL.md file). The file path on disk depends on where OpenClaw loaded the skill from — typically one of:

  • ~/.openclaw/skills/sageox-summary/assets/SUMMARIZE.md
  • ./skills/sageox-summary/assets/SUMMARIZE.md (workspace skill)

Substitute template placeholders:

  • {{ENTRIES}} — one section per team that has a non-empty NEW_IDS

set, in this format:

  ### Team "<team_id>"

  <TEAM_BLOCK for that team>

Teams with zero new entries were already dropped in Step 2 and must not appear in {{ENTRIES}}. Do not re-number, re-wrap, or otherwise mutate the markdown inside TEAM_BLOCK — it is authored by ox distill and preserves the citation anchors Claude references in the final summary.

  • {{MULTI_TEAM_RULES}} — if two or more teams survived Step 2

with non-empty entry sets, replace with:

  - Organize the summary by team, using each team ID as a section header
  - Attribute insights to the correct team

Otherwise, replace with an empty string.

Step 4: Run Claude

Invoke claude -p with the substituted prompt. The prompt already contains every entry's full text, so Claude does not need filesystem access — do not pass --add-dir and do not grant read tools.

  • --model claude-sonnet-4-6
  • No --add-dir (content is inline)
  • No --allowedTools (prompt is self-contained)
  • The substituted prompt passed via stdin

claude -p will use whatever credentials claude already has — either an OAuth session from claude login or ANTHROPIC_API_KEY from the shell that launched OpenClaw (see Prerequisites § 1). Wrap the invocation in timeout 600 (10 minutes) — this matches the timeout used by pkg/sessionsummary/claude.go in the ox repo for comparable Claude synthesis work and gives the model enough headroom for cross-team summaries that inline many daily entries:

timeout 600 claude -p \
  --model claude-sonnet-4-6 <<< "$PROMPT"

If the invocation fails (non-zero exit, timeout exit 124, network error), surface the error to the user and do not proceed to Step 5 — leaving the state file untouched lets the next run retry exactly the same candidate set.

Step 5: Update Summary State

Only run this step if Claude exited successfully. On any failure (non-zero exit, timeout, network error), skip it entirely — leaving the state file untouched lets the next run retry the same candidate set.

For each team that had non-empty NEW_IDS in Step 2, pipe that team's ids into scripts/update-state.sh. The script merges them into the team's included_ids, prunes entries whose date prefix is strictly older than yesterday UTC (the candidate window, after ox's auto-expansion, spans at most today + yesterday), and writes the result atomically via a sibling temp file + mv -f. See the script header for full details; the short form:

  • Usage: update-state.sh <state_file> <team_id>
  • Stdin: one entry id per line (regex-filtered on read)
  • Stdout: nothing on success
  • Stderr: one-line warnings (e.g. malformed prior state)
  • Exit: 0 success, 2 usage, 3 internal
printf '%s\
' "$NEW_IDS" \
  | bash scripts/update-state.sh "$STATE_FILE" "$TEAM_ID"

Teams skipped in Step 2 are not invoked here — their prior state passes through unchanged because update-state.sh only rewrites the team_id it was given. Teams with no prior entry AND no new ids are correctly never added to the state file.

Step 6: Return the Summary

Return Claude's stdout to the user directly. It is already formatted for Slack mrkdwn. Do not reformat or annotate — just show it.

Output

The primary output is the Claude-generated summary. Prefix it with a brief one-line header showing:

  • How many teams were summarized
  • Any teams that were skipped (and why — typically "no new entries

since last summary" from Step 2)

Keep any preamble or postamble minimal. The summary itself is the value.

If Step 2 short-circuited because every team had zero new entries, the only output is the single line No new distilled content since last summary. — do not invoke Claude and do not print a header.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

82.23%
按下载量换算1,010

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install sageox-summary 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills