repo-context-ledger

审查 · 61
已收录

Maintain durable, evidence-based repository context whenever an agent initializes a repository, implements or fixes behavior, refactors code, changes an interface, checkpoints or switches tasks, resumes or hands work to another AI tool, collaborates across parallel task sessions,

Verified installs0
Stars72
版本1.0.0
质量65/100 · 有潜力
信任61/100 · 仅限沙盒
审计76/100 · 高风险

供给资产档案

研究与知识工作

Deep research, source comparison, literature review, RAG, knowledge search, and reports.

浏览赛道

场景

研究 Agent

I need my agent to research a topic, compare sources, and produce a concise report.

适配 Agent

Claude Code + OpenAI Agents + Cursor

适用于 Codex、Claude Code、Cursor、CLI 或自定义 Agent。

安装

就绪

npx skills add gviiisen/repo-context-ledger --skill repo-context-ledger

维护状态

新鲜

距上次推送 2 天

风险

高风险

Permission surface may require sandboxing

GitHub 质量

72

65/100 质量 · 69/100 信任

覆盖标签

研究研究 Agentagent-skill

审查说明

Permission surface may require sandboxing · Potential broker, wallet, exchange, or real-money execution surface; sandbox and explicit approval are required

Agent 采用评分卡

一眼查看信任、审计与安装准备度

这些分数综合公开仓库元数据、OpenAgentSkill 审查信号、维护新鲜度与安装准备度。它用于候选筛选,不替代人工审查。

质量

有潜力
65

有用的候选项,但采用前应与替代方案比较。

信任

仅限沙盒
61

有用但信任信号不足或混杂的候选项。在结果闭环证明任务匹配前,请保持在隔离工作区内使用。

审计

高风险
76

对安装准备度、安全元数据、维护情况与采用风险的机器可读审查。

OpenAgentSkill 信任评分 v5

仅限沙盒

仅在沙盒中运行,并在用于真实工作前比较接近的替代方案。

CodexClaude CodeCursorOpenAgentSkill CLI

Stars

72 个 GitHub Stars

仓库活跃度

72 个 Star,0 个 Fork

维护状态

距上次推送 2 天

许可证

MIT

安装

npx skills add gviiisen/repo-context-ledger --skill repo-context-ledger

安装安全性

标准软件包或运行时安装路径

权限范围

shell or command execution, filesystem or document access

Agent 结果

暂未有 Agent 结果数据

文档

README/SKILL.md 上下文充分

风险摘要

生产前审查

  • The SKILL.md excerpt is truncated, but the provided content is sufficient for evaluation.
  • This skill may touch real-money trading, broker, wallet, or exchange operations; use only in a sandbox with explicit approval.
  • Quality score needs review
  • Permission surface needs review: shell or command execution, filesystem or document access

安装准备度

安装路径可用

  • 安装路径可用
  • 仓库证据可用
  • 已声明许可证
  • 暂无 Agent 验证结果证据

Agent 可读元数据

这个 Skill 的机器可读决策数据。

使用此区块或内嵌 JSON 判断 Agent 是否应安装该 Skill、选择替代方案,或先请求人工审查。

打开 JSON

适用任务

  • 研究 Agent 工作流
  • Claude Code 团队
  • builders willing to evaluate younger projects
  • 检索来源

适用 Agent

CodexClaude CodeCursorOpenAgentSkill CLIOpenAI AgentsCLI

安装决策

命令
npx skills add gviiisen/repo-context-ledger --skill repo-context-ledger
策略
阻止
人工审查

信任与风险

信任
61/100
审计
76/100
风险级别
高风险

结果闭环

端点
/api/agent/outcome
事件 ID
resolve
结果
5

安装命令

npx skills add gviiisen/repo-context-ledger --skill repo-context-ledger

不适用场景

  • 需要厂商支持 SLA 的团队
  • production agents without a repository review
  • The SKILL.md excerpt is truncated, but the provided content is sufficient for evaluation.
  • Audit risk risky exceeds max_risk=medium
  • 高风险权限提示:Shell 或命令执行

Agent 安全 v2

40/100 · 避免自动安装

Blocked for auto-install阻止

This skill should not be selected by an agent without explicit human security review.

Do not auto-install. Inspect the source, dependencies, and permission surface first.

通过 API 解析

Shell 或命令执行

Skill 元数据引用了终端、CLI、Shell、子进程或命令执行工作流。

Browser automation

Skill may drive a browser or interact with web pages.

网络访问

Skill 可能访问远程页面、API、仓库或外部服务。

文件系统访问

Skill 可能读取或写入项目文件、文档、生成产物或本地工作区状态。

  • Audit risk risky exceeds max_risk=medium
  • 高风险权限提示:Shell 或命令执行
  • Permission surface may require sandboxing

安装目标

在你的 Agent 工作流中安装此 Skill

通过公开安装端点获取命令、安全清单、目标提示词和该 Skill 的规范链接。

skill install

OpenAgentSkill CLI

Resolve policy, run the source installer safely, and report a verified install receipt.

$ npx --yes https://github.com/Leon-Drq/openagentskill/releases/download/cli-v0.2.1/openagentskill-0.2.1.tgz install gviiisen-repo-context-ledger

Agent 解析计划

让 Agent 在安装前验证匹配度。

Resolve API 返回首选 Skill、替代方案、安全策略、审计说明、安装目标和可直接执行的提示词,无需抓取此页面。

打开文本计划

Agent 应检查

  • 从 Resolve API 检查任务匹配与替代方案。
  • 检查审计评分、信任评分和安全策略警告。
  • 检查 Codex、Claude Code、Cursor 或 CLI 的安装目标兼容性。

复制提示词

Task: Use repo-context-ledger in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20repo-context-ledger%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/gviiisen-repo-context-ledger/install
Install command: npx skills add gviiisen/repo-context-ledger --skill repo-context-ledger
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.

Agent 交接

把安装路径交给 Agent,而不是再给一个目录页。

通过公开安装端点获取命令、安全清单、目标提示词和该 Skill 的规范链接。

打开安装 API

Agent 提示词

Use repo-context-ledger for this task. Review https://www.openagentskill.com/api/skills/gviiisen-repo-context-ledger/install, then install with: npx skills add gviiisen/repo-context-ledger --skill repo-context-ledger

Registry 元数据

用于自动选择 Skill 的 Agent 可读档案。

本页通过 Registry API 提供相同的决策、信任、审计、场景和安装信号,让 Agent 无需抓取界面即可排序。

打开 Manifest

适配 Agent

67/100

研究 Agent

平台

Claude Code, OpenAI Agents, Cursor

审计报告

高风险 · 76/100

对安装准备度、安全元数据、维护情况与采用风险的机器可读审查。

查看审计报告查看评估报告

Agent 决策面板

Fallback candidate for Research agents

先用此 Skill 做原型验证,并保留备选方案。

67
就绪度
原型验证
阶段

栈中角色

备选候选

主要匹配

研究 Agent

信任标签

先做原型验证

安装路径

命令已就绪

适用场景

  • 研究 Agent 工作流
  • Claude Code 团队
  • builders willing to evaluate younger projects

证据

  • 仓库近期活跃
  • 已提供安装命令或 GitHub 仓库
  • 65/100 质量档案
  • 9 个 OpenAgentSkill 交互事件

先审查

  • The SKILL.md excerpt is truncated, but the provided content is sufficient for evaluation.

实施路径

  1. 1在沙盒 Agent 中安装它,并端到端完成一次研究 Agent任务。
  2. 2Compare output quality, latency, and failure behavior against at least one alternative.
  3. 3Promote it into production only after reviewing repository permissions, license, and maintenance signals.

信任档案

仅限沙盒

有用但信任信号不足或混杂的候选项。在结果闭环证明任务匹配前,请保持在隔离工作区内使用。

61
OpenAgentSkill 信任评分

GitHub 采用度

检查

72 个 GitHub Stars

Star/Fork 活跃度

检查

72 个 Star,0 个 Fork; 当前元数据中没有议题活跃度信息

近期维护

通过

距上次推送 2 天

许可证清晰度

通过

MIT

积极信号

  • AI 审查已通过
  • 安装路径可用
  • 仓库证据可用
  • 近期维护的仓库
  • 安装命令未发现明显高风险模式
  • 结果闭环已就绪,但需要首次真实 Agent 运行

安装前审查

  • The SKILL.md excerpt is truncated, but the provided content is sufficient for evaluation.
  • This skill may touch real-money trading, broker, wallet, or exchange operations; use only in a sandbox with explicit approval.
  • Quality score needs review
  • Permission surface needs review: shell or command execution, filesystem or document access
  • GitHub adoption: 72 GitHub stars
  • Stars/forks activity: 72 stars, 0 forks; issue activity unavailable in current metadata
  • Permission surface: shell or command execution, filesystem or document access
  • 暂未有真实 Agent 结果报告
  • 无人值守安装前需要人工审查

建议操作

仅在沙盒中运行,并在用于真实工作前比较接近的替代方案。

质量档案

有潜力 适用于 Agent 工作流的候选

有用的候选项,但采用前应与替代方案比较。

65
GitHub Stars
72
新鲜度
2 天前
安装就绪
许可证
MIT
安装前审查: The SKILL.md excerpt is truncated, but the provided content is sufficient for evaluation.

工作流匹配

在这些场景使用此 Skill

工作流匹配

加入完整工作流

替代方案短名单

安装前对比

可能适合该任务的相近 Skill。

对比全部

概览

--- name: repo-context-ledger description: Maintain durable, evidence-based repository context whenever an agent initializes a repository, implements or fixes behavior, refactors code, changes an interface, checkpoints or switches tasks, resumes or hands work to another AI tool, collaborates across parallel task sessions, Git branches, or worktrees, prepares a pull request, or completes a coding task. Use this skill to bridge Codex, Claude, Cursor, GitHub Copilot, Grok, and other coding agents through native instruction adapters, private session-isolated handoff drafts, atomic completed-change publication, a shared Context Manifest, language-aware Context Packs, stable feature specifications, verified change history, coverage gates, and managed README summaries without asking the user to run bookkeeping commands. ---

# Repo Context Ledger

Keep repository knowledge current across AI tools and fresh conversation windows. Treat semantic documentation as part of completing code work, while using the bundled deterministic runtime for paths, native adapters, the Context Manifest, indexes, links, README blocks, and validation. Never attempt to read or synchronize private vendor Memory; promote only code-verified facts into Git-tracked context.

## Locate the runtime

Resolve the directory containing this `SKILL.md`. The bundled runtime is `scripts/ledger.py` relative to that directory.

After initialization, prefer the repository-local copy:

```text python .context-ledger/ledger.py <command> ```

Use `python3` instead of `python` when that is the available interpreter.

`--repo` is optional. If omitted, the runtime walks up from the current directory to the nearest `.context-ledger/config.json`, and stops at a nested Git repository boundary.

## Choose the shortest path

Do not run the full lifecycle for every request.

- **Read-only understanding**: `context --query "<task>"`, then `focus --feature "<feature>"`. Do not `start` a session. - **Single-task small fix**: `status` → `start --feature` → implement → `verify -- <command>` → `finish --spec`. `finish` records evidence automatically when this is the only session. If the worktree is large or another session exists, pass `evidence --path`. - **Parallel tasks**: pass `--session <id>` on every lifecycle command. Capture evidence with repeated `--path` values for only this task. - **Medium or large change**: also refresh the related Context Pack, update the stable spec, and write Before/After evidence before `finish`.

`context` returns one primary Context Pack, its linked specs, and why it was chosen. Read that Pack's load order before scanning the rest of the repository.

## Initialize a repository

When the user asks to initialize, adopt, or configure repository context documentation:

1. Run `python <skill-dir>/scripts/ledger.py --repo <repository-root> init --dry-run` and inspect the exact planned files, managed blocks, migrations, and detected modules. The preview must remain read-only. 2. If the plan matches the user's requested repository scope, run the same command without `--dry-run`. Do not hand-recreate or selectively replay the plan. 3. Inspect the generated `.context-ledger/config.json`, detected modules, and existing documentation. 4. Run `python .context-ledger/ledger.py adapters check` and `python .context-ledger/ledger.py manifest check` to confirm native entry files and the shared route index are current. 5. Set `quality.language` (`auto`, `en`, or `zh-CN`) and `quality.detail` (`concise`, `standard`, or `detailed`) only when the repository needs a non-default policy. 6. Preserve existing `AGENTS.md`, `CLAUDE.md`, `.github/copilot-instructions.md`, README content, and documentation. Only managed blocks or the dedicated Cursor adapter may be regenerated. 7. Treat nested Git repositories and worktrees as discovery boundaries. When adopting legacy `docs/changes/YYYY-MM/...` trees, preserve and reuse an existing monthly `index.md`; remove an obsolete index only when the runtime can reproduce the whole file byte-for-byte from current sibling records. 8. Summarize what was added. Do not require the user to learn internal lifecycle commands.

Read [document-model.md](references/document-model.md) when choosing where information belongs or migrating an existing documentation layout.

## Complete behavior-changing work

Apply this workflow autonomously when code behavior changes. Follow [Choose the shortest path](#choose-the-shortest-path). Do not ask the user to run ledger commands.

1. Run `python .context-ledger/ledger.py status`. Reuse only this task's private draft. Never adopt, pause, publish, or rewrite another task's draft. 2. Resolve the record language. Keep code identifiers in source form. 3. If this task will change behavior and has no session, `start --title "<title>" --feature "<feature>"`. Keep the session ID. When more than one task is active, pass `--session <id>`; omission must fail. 4. Route context, then read the primary Pack and its specs:

```text python .context-ledger/ledger.py context --query "<feature, interface, or module>" python .context-ledger/ledger.py focus --feature "<feature>" ```

If no Context Pack exists, create one with `pack --feature`, fill every semantic section, then focus it. 5. Implement the change. Record every claimed check with `verify --session <id> -- <command>`. Failed output is stored as a redacted failure capsule, never as a raw log. Persisted verification evidence replaces repository, Codex, temporary, and user-home roots with stable placeholders, including JSON-escaped Windows paths. If verification is unavailable, use `verify --not-run --reason "<substantive reason>"`. 6. For a small single-session fix, `finish` can collect evidence. If another session exists, or automatic collection finds too many implementation paths, run `evidence --path` for only this task. Read [.context-ledger/writing-quality.md](.context-ledger/writing-quality.md) and remove every `TODO`. Code paths may cite `file.go::Symbol`; the path part is matched against evidence. 7. On medium or large changes, refresh every related Context Pack after tracked production paths change, and update the stable spec when current behavior or contracts changed. 8. Finish with `finish --spec docs/specs/<feature>.md`, or `finish --no-spec --reason "<why>"`. `finish` validates only this session. 9. Run `check --strict --coverage` at integration or pull-request time, not to unblock a parallel session.

## Bridge native Agent entry points

Treat `docs/ai/`, `docs/specs/`, and `docs/changes/` as the vendor-neutral source. `AGENTS.md`, `CLAUDE.md`, `.cursor/rules/repo-context-ledger.mdc`, and `.github/copilot-instructions.md` are thin adapters only.

- Run `python .context-ledger/ledger.py adapters sync` after changing adapter policy or upgrading the runtime. - Run `python .context-ledger/ledger.py adapters check` before completion. - Run `python .context-ledger/ledger.py manifest sync` on the default branch when source documents were repaired manually; normal initialization and derived sync regenerate it automatically. - Prefer code and executed tests over stable specs, stable specs over Context Packs, and all Git-tracked ledger documents over private Agent Memory.

Active lifecycle commands leave formal change history, shared README blocks, and monthly indexes unchanged. `finish` publishes one completed change file; feature branches continue to defer shared derived indexes until merge.

## Collaborate through Git

The runtime supports multiple private task drafts in one worktree. It isolates bookkeeping only: it does not copy source files, create worktrees, claim paths, lock code, or merge code. In a shared worktree, each session records an explicit evidence path set and `finish` ignores unrelated session dirt. Leave source-edit concurrency and conflicts to the host Agent and Git.

Never send messages, delegations, follow-up prompts, or steering instructions to another user-owned task/thread unless the user explicitly requests cross-task coordination. The presence of another session, a foreign stale Pack, a failed global check, or a shared worktree is not permission to contact, pause, redirect, or interrupt it. Report an integration-stage conflict to the user without steering the other task.

Before opening or updating a pull request:

1. Fetch or otherwise update the intended base branch. 2. Run `python .context-ledger/ledger.py team-check --base <base-ref>`. 3. Resolve reported overlaps in code paths or feature handoffs with the other contributor. Rebase or merge the current base as appropriate, then refresh any stale Context Pack. 4. Run `python .context-ledger/ledger.py check --strict`.

After changes are merged, run this once on the configured default branch:

```text python .context-ledger/ledger.py sync --derived ```

This deterministically rebuilds monthly change indexes and managed root/module README summaries from committed source documents. Do not hand-edit generated indexes.

## Switch or resume context

Interpret natural-language requests such as "pause this and fix login," "continue the previous withdrawal task," or "hand this to another AI" as lifecycle instructions. Do not require command syntax from the user.

Before switching away from active work, record an accurate resume summary and concrete next step:

```text python .context-ledger/ledger.py checkpoint --summary "<completed work and current state>" --next "<next concrete action>" python .context-ledger/ledger.py pause --summary "<completed work and current state>" --next "<next concrete action>" ```

Use `checkpoint --session <id>` when another Agent or window will continue the same active task. Use `pause --session <id>` only when suspending that task; never manipulate another task's session.

Focus the target feature's Context Pack, then start its handoff when code behavior will change. Never abandon a different active handoff silently.

Resume the only paused task when it is unambiguous:

```text python .context-ledger/ledger.py resume ```

Resume a selected task when multiple sessions are paused:

```text python .context-ledger/ledger.py resume --session <id> ```

After resuming, read the handoff's resume fields, load its Context Pack, inspect dirty paths, and revalidate warnings about changed commits or stale fingerprints before editing code.

## Handle non-behavior work

For read-only analysis, questions, formatting-only edits, or tasks that do not change repository behavior, do not create a handoff. Read existing context as needed and leave the ledger unchanged.

## Recovery

- Run `python .context-ledger/ledger.py status` to inspect the current state. - Reuse an active draft only when its session ID belongs to the current task. - Start a separate private draft rather than pausing or overwriting another task. - When another session exists, capture evidence with repeated `--path` values for this task only; never adopt the entire shared dirty set. - Use `status` and `--session` lifecycle targeting; do not find or edit the Git-metadata state file manually. - Refresh a stale Context Pack with `pack` after inspecting the changed files. - Repair drifted native entry files with `adapters sync`; never copy private Agent Memory into the ledger as an unverified fact. - Run `python .context-ledger/ledger.py sync` after manually repairing documents or configuration. Add `--derived` on the default branch after merges.

## Writing rules

- Apply [writing-quality.md](references/writing-quality.md) to `evidence-v1` records. Preserve legacy records unless explicitly upgrading them. - Record current truth in `docs/specs/`, chronological evidence in `docs/changes/`, and minimal loading routes in Context Packs. - Keep unfinished drafts private. Publish each completed change into its own file and let the runtime build monthly indexes. - Keep the runtime-generated handoff ID, actor, and branch metadata. Unique filenames are intentional a

技术详情

版本
1.0.0
许可证
MIT
最近更新
2026年8月21日
发布时间
2026年8月21日

决策摘要

备选候选

67
就绪
原型验证
阶段

仓库近期活跃

审计

安装审查

安装与采用审查

76
高风险
安全性
78/100
维护状态
100/100
安装
92/100
打开完整审计查看评估报告

Agent 验证证据

Agent 验证证据

来自解析、审查、安装和一次小范围运行后的结果报告。

0
已验证
Needs first agent run自动安装: 先审查最近: 未知
成功率
近期失败
结果
0
输出质量
失败
0
不相关
0
安装次数
0
风险拦截
0
需要配置
0
生产环境
0

暂时没有 Agent 结果数据。首次 Agent 执行可以通过 /api/agent/outcome 报告成功、需要设置、风险拦截、失败或不相关。

安装

加入 Agent 工作流

免费且开源. 在生产 Agent 中安装前请先审查报告。

增长闭环

分享工具包

X

为 repo-context-ledger 准备的场景化草稿,可手动发布到 X。

策展说明
repo-context-ledger: Maintain durable, evidence-based repository context whenever an agent initializes a repositor...

72 stars

https://www.openagentskill.com/skills/gviiisen-repo-context-ledger?ref=x
打开 X 草稿
可选:带安装命令的回复
Listing + install path for repo-context-ledger:
https://www.openagentskill.com/skills/gviiisen-repo-context-ledger?ref=x

Install: npx skills add gviiisen/repo-context-ledger --skill repo-context-ledger
打开回复草稿

收录来源

Registry 收录

可认领

此列表来自公开来源,维护者认领获批前不会标记为官方。

创作者
gviiisen
收录方
OpenAgentSkill 社区索引

归属链接指向公开仓库或创作者主页。创作者可认领列表以更新所有权信号。

认领此 Skill

所有者认领

认领此 Skill 页面

这条 Registry 收录 列表归属于 gviiisen,但尚未标记为官方。认领后可增加已验证所有者信号,使后续发布、安装和审计更新更值得信赖。

创作者外链工具包

将证据徽章加入你的 README

在开发者评估仓库的位置展示规范页面、当前信任与审计信号,以及真实的 Agent 验证证据。

[![Listed on OpenAgentSkill](https://www.openagentskill.com/api/badge/gviiisen-repo-context-ledger?metric=listed&label=Listed)](https://www.openagentskill.com/skills/gviiisen-repo-context-ledger)
[![OpenAgentSkill Trust](https://www.openagentskill.com/api/badge/gviiisen-repo-context-ledger?metric=trust&label=Trust)](https://www.openagentskill.com/skills/gviiisen-repo-context-ledger)
[![OpenAgentSkill Audit](https://www.openagentskill.com/api/badge/gviiisen-repo-context-ledger?metric=audit&label=Audit)](https://www.openagentskill.com/skills/gviiisen-repo-context-ledger/audit)
[![Agent Proven](https://www.openagentskill.com/api/badge/gviiisen-repo-context-ledger?metric=proven&label=Agent%20Proven)](https://www.openagentskill.com/skills/gviiisen-repo-context-ledger)

作者

G

gviiisen

@gviiisen

健康信号

GitHub Stars
72
质量评分
36/100
最近 GitHub 推送
2026年8月21日
框架提示
未知
OpenAgentSkill 浏览量
9
复制安装命令
0
跳转点击
0

社区信号

告诉我们这个 Skill 是否对你的 Agent 工作流有帮助。汇总反馈会持续改善排序。

信任与安全

仅限沙盒

61
  • GitHub 采用度72 个 GitHub Stars检查
  • Star/Fork 活跃度72 个 Star,0 个 Fork; 当前元数据中没有议题活跃度信息检查
  • 近期维护距上次推送 2 天通过
  • 许可证清晰度MIT通过
  • README/SKILL.md 完整度元数据包含足够的用法与工作流上下文通过
  • 依赖与运行时风险network or browser surface通过