by gviiisen
面向 AI 上下文管理的 Agent Skill:为 Codex 上下文管理、Cursor 上下文切换和 Claude 上下文管理提供跨窗口续接,用 Git 保存可验证的功能说明与变更记录。AI coding context management and agent handoffs.
# Add to your Claude Code skills
git clone https://github.com/gviiisen/repo-context-ledgerGuides for using ai agents skills like repo-context-ledger.
Last scanned: 8/21/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-08-21T04:39:10.982Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}See how repo-context-ledger compares with popular alternatives.
repo-context-ledger is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by gviiisen. 面向 AI 上下文管理的 Agent Skill:为 Codex 上下文管理、Cursor 上下文切换和 Claude 上下文管理提供跨窗口续接,用 Git 保存可验证的功能说明与变更记录。AI coding context management and agent handoffs. It has 105 GitHub stars.
Yes. repo-context-ledger passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/gviiisen/repo-context-ledger" and add it to your Claude Code skills directory (see the Installation section above).
repo-context-ledger is primarily written in Python. It is open-source under gviiisen on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh repo-context-ledger against similar tools.
No comments yet. Be the first to share your thoughts!
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
See comparison
Automatically record every behavior-changing feature update, then let Codex, Cursor, or Claude continue from the right code, decisions, and boundaries.
Repo Context Ledger is an open, repository-level feature change ledger for AI coding. After a feature is added, fixed, or behaviorally adjusted, it preserves what changed, why it changed, where the implementation lives, which boundaries must remain stable, and how the result was verified.
Those verified records become durable context for Codex, Claude, Cursor, GitHub Copilot, Grok, and other coding agents. A fresh window or a different tool can follow a focused route into the relevant code and continue without replaying a long chat or rediscovering the feature from scratch.
Use it for AI feature change tracking, software change documentation, AI context management, Codex context management, Cursor context switching, Claude context management, and cross-agent development handoffs. The change ledger is the knowledge source; cross-session and cross-tool continuation are capabilities built on top of it.
Install it with the standard Agent Skills CLI:
npx skills@latest add gviiisen/repo-context-ledger --skill repo-context-ledger
You make ordinary coding requests. The AI owns the documentation lifecycle.
Before any lifecycle command, the Agent can ask the read-only Workflow Plan whether the request is understanding work, a small fix, an ordinary change, or a continuation. The plan reuses the bounded context router, explains its decision, and asks for clarification instead of guessing when intent is ambiguous.
AI-assisted changes are easy to implement but hard to preserve as durable repository knowledge. Without a feature-level record, the reason for a fix, its code path, verification evidence, and important boundaries remain trapped in a chat or must be rediscovered from a large diff and codebase.
The same gap becomes more visible when work moves to a fresh window or another coding agent. The next agent must reconstruct the feature from scratch, and implementation details or important constraints can be lost between sessions.
Repo Context Ledger records each behavior-changing feature addition, repair, and adjustment, then turns that verified history into a small, durable map of the repository:
docs/ai/: concise repository-wide orientation for fresh AI sessions.docs/ai/context-manifest.json: generated feature-to-context routes for machine discovery.docs/ai/context-packs/: minimal feature context, load order, boundaries, tests, and tracked-file fingerprints.docs/specs/: current feature behavior, code maps, contracts, and boundaries.docs/changes/: chronological implementation and repair handoffs, grouped as YYYY/MM/<change>.md with a small monthly index.README.md files: generated navigation blocks without rewriting human prose.AGENTS.md, CLAUDE.md, Cursor rules, and .github/copilot-instructions.md: thin native adapters that route coding agents to the same ledger..context-ledger/writing-quality.md: local evidence, language, and record-form rules available to every AI tool.The core skill follows the open Agent Skills SKILL.md format. It is designed for Codex, Claude Code, Cursor, GitHub Copilot, Grok, and other agents that support Agent Skills or repository instruction files.
Initialized repositories also receive plain instruction files, so tools without native Skill discovery can follow the same workflow. Native discovery and exact installation locations vary by product.
See COMPATIBILITY.md for supported Python/platform and CLI schema guarantees, and MIGRATIONS.md for upgrade rules.
Clone this repository or download a release, then install the directory skills/repo-context-ledger in your AI tool.
Ask Codex:
Use
$skill-installerto install theskills/repo-context-ledgerskill fromhttps://github.com/gviiisen/repo-context-ledger.
For repository-scoped use, copy or link the skill directory to:
.agents/skills/repo-context-ledger/
Copy or link skills/repo-context-ledger to either the personal or project skill directory:
~/.claude/skills/repo-context-ledger/
.claude/skills/repo-context-ledger/
Import this GitHub repository from Cursor's Skills/Rules settings, or copy the skill to:
~/.agents/skills/repo-context-ledger/
.agents/skills/repo-context-ledger/
Install the Skill through a compatible Agent Skills client, or let an initialized repository's .github/copilot-instructions.md route Copilot to the ledger. The runtime preserves existing Copilot prose outside its managed block.
After installation and one-time repository initialization, talk to your coding Agent normally. You do not need to run Ledger lifecycle commands yourself.
| Situation | What you can say | What the Agent does |
|---|---|---|
| Understand an existing feature | Explain how withdrawal review works and where its boundaries are. |
Routes to the most relevant Pack and spec, then inspects the necessary code without creating a task session. |
| Implement or fix behavior | Fix duplicate withdrawal notifications. |
Creates a private task session, loads bounded context, expands through affected code and tests, verifies the result, and publishes one completed Change record. |
| Continue in a fresh window | Continue announcement API rate limiting. |
Finds your matching active or paused session, generates a Resume Capsule, and continues the same Ledger session rather than starting over. |
| Switch AI tools | Open Cursor after Codex and say Continue announcement API rate limiting. |
Uses the same vendor-neutral repository context and your principal-owned private session, while revalidating code and stale warnings. |
| Temporarily switch tasks | Pause this work, fix the login timeout, then let me return later. |
Checkpoints the current task and starts an independent private session, so their handoff drafts do not overwrite each other. |
| Hand work to a teammate | Transfer this paused task to principal p-… or request a read-only/fork grant. |
Creates an explicit expiring grant. Without one, another principal can use committed Packs, specs, and Changes but cannot read or mutate your private draft. |
The routed files are a starting map, not a limit. The Agent must still read additional callers, implementations, configuration, persistence, permissions, concurrency, retries, tests, and external boundaries whenever they can affect the requested behavior.
Open the target project with your AI coding tool and ask:
Use repo-context-ledger to initialize this repository.
The agent first previews the exact operation list with init --dry-run, then applies the same plan with init. It creates the documentation structure, private workspace state, and durable agent instructions without overwriting existing documentation.
For a manual preview, run:
python path/to/ledger.py --repo path/to/repository init --dry-run
The output is a compact plan, not a full diff. It does not create a lock, repository file, or private session-state file.
Make the same request you would make without this skill:
Fix the withdrawal monitoring interface and verify the behavior.
You do not need to run ctx begin, name a handoff, or remember lifecycle commands. The agent should autonomously:
workflow-plan-v1 decision for the request;On a feature branch, shared monthly indexes and README summary blocks are intentionally left unchanged until merge.
Similar follow-ups do not automatically restart the workflow. The Agent first checks what is actually new using context it already has: an ordinary log recheck needs no new Ledger task, and a same-window continuation keeps the active session. New behavior on another path still needs its own explanation and current verification. Reuse background and methods, not stale success claims; completed records remain unchanged.
Ledger records acceptance goals, not every terminal operation. Reads, searches, file generation, and deployment preparation use ordinary tools. Reuse the current task session; run related acceptance checks through one reviewed script/preset instead of wrapping every helper separately. Preserve each step's result and failure exit code, keep required pre/post-deployment checks in their proper phases, and never replay a deployment merely to ad