Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

context-assembly-scorer上下文组装记分器

Agent Skill

context-assembly-scorer 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

306

周安装

13

GitHub Stars

58

下载量

107
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:context-assembly-scorer(上下文组装记分器)
来源仓库:https://github.com/archieindian/openclaw-superpowers
仓库路径:skills/context-assembly-scorer
安装命令:
npx skills add https://github.com/archieindian/openclaw-superpowers --skill context-assembly-scorer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/archieindian/openclaw-superpowers --skill context-assembly-scorer

简介

测量对话历史中被当前上下文覆盖的重要主题比例。

  • 每四小时自动检测一次,评估信息保留完整性。context-assembly-scorer 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 帮助优化长会话中的上下文组装策略,减少信息丢失。
  • 运行时会读取完整对话历史,建议在非敏感环境中测试。
  • 结果可用于判断是否需要重新激活特定子任务或补充检索。

SKILL.md

Context Assembly Scorer

What it does

When an agent compacts context, it loses information. But how much? And which information? Context Assembly Scorer answers these questions by measuring coverage — the ratio of important topics in the full conversation history that are represented in the current assembled context.

Inspired by lossless-claw's context assembly system, which carefully selects which summaries to include in each turn's context to maximize information coverage.

When to invoke

  • Automatically every 4 hours (cron) — silent coverage check
  • Before starting a task that depends on prior context — verify nothing critical is missing
  • After compaction — measure information loss
  • When the agent says "I don't remember" — diagnose why

Coverage dimensions

DimensionWhat it measuresWeight
Topic coverage% of conversation topics present in current context2x
Recency biasWhether recent context is over-represented vs. older important context1.5x
Entity continuityNamed entities (files, people, APIs) mentioned in history that are missing from context2x
Decision retentionArchitectural decisions and user preferences still accessible2x
Task continuityActive/pending tasks that might be lost after compaction1.5x

How to use

python3 score.py --score                      # Score current context assembly
python3 score.py --score --verbose             # Detailed per-dimension breakdown
python3 score.py --blind-spots                 # List topics missing from context
python3 score.py --drift                       # Compare current vs. previous scores
python3 score.py --status                      # Last score summary
python3 score.py --format json                 # Machine-readable output

Procedure

Step 1 — Score context coverage

python3 score.py --score

The scorer reads MEMORY.md (full history) and compares it against what's currently accessible. Outputs a coverage score from 0–100% with a letter grade.

Step 2 — Find blind spots

python3 score.py --blind-spots

Lists specific topics, entities, and decisions that exist in full history but are missing from current context — these are what the agent has effectively "forgotten."

Step 3 — Track drift over time

python3 score.py --drift

Shows how coverage has changed across the last 20 scores. Identify if compaction is progressively losing more information.

Grading

GradeCoverageMeaning
A90–100%Excellent — minimal information loss
B75–89%Good — minor gaps, unlikely to cause issues
C60–74%Fair — some important context missing
D40–59%Poor — significant blind spots
F0–39%Critical — agent is operating with major gaps

State

Coverage scores and blind spot history stored in ~/.openclaw/skill-state/context-assembly-scorer/state.yaml.

Fields: last_score_at, current_score, blind_spots, score_history.

Notes

  • Read-only — does not modify context or memory
  • Topic extraction uses keyword clustering, not LLM calls
  • Entity detection uses regex patterns for file paths, URLs, class names, API endpoints
  • Decision detection looks for markers: "decided", "chose", "prefer", "always", "never"
  • Recency bias is measured as the ratio of recent-vs-old entry representation

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

37.17%
按下载量换算40

Claude

28.75%
按下载量换算31

Cursor

19.94%
按下载量换算21

Gemini CLI

9.6%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills