MCPInstall

the-ledger

Use when reading or writing institutional memory — insights from successful solutions, fails from historical mistakes, and the Project Constitution that accumulates commandments and negative constraints across heists

Installs
43
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/kucherenko/gangsta --skill the-ledger
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads the-ledger automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

The Ledger: Institutional Memory of the Gangsta Agents Family

Overview

The Ledger is the Gangsta Agents Family's persistent memory. It stores successful reasoning pathways (Insights), documented failures (Fails), and accumulated governance rules (the Project Constitution). Every Heist reads from and writes to the Ledger.

Directory Structure

The Ledger lives in the target project, NOT in the gangsta package:

docs/gangsta/
├── constitution.md             # Project Constitution (living document)
├── insights/                   # Repository of Insights (Good Catches)
│   └── YYYY-MM-DD-<topic>.md
└── fails/                      # Repository of Fails (Concrete Shoes)
    └── YYYY-MM-DD-<topic>.md

Initializing the Ledger

If docs/gangsta/ does not exist in the target project, create it:

mkdir -p docs/gangsta/insights docs/gangsta/fails

Create an initial docs/gangsta/constitution.md:

# Project Constitution

## Commandments (from Insights)
_No commandments yet. They will be added as Heists produce insights._

## Negative Constraints (from Fails)
_No constraints yet. They will be added as Heists document failures._

## Architectural Decisions
_No decisions recorded yet._

Writing an Insight

Criteria: Record when a solution bypasses a complex constraint, discovers a non-obvious approach, or establishes a new Project Commandment.

File: docs/gangsta/insights/YYYY-MM-DD-<topic-slug>.md

---
date: YYYY-MM-DD
heist: <heist-name>
phase: <phase-where-discovered>
tags: [tag1, tag2, tag3]
---

# <Title: Short description of the insight>

## Discovery
<How the insight was found — which phase, what triggered it>

## Solution
<The successful reasoning pathway or creative solution>

## Project Commandment
<If applicable: a new rule to add to the Constitution>
<If not applicable: omit this section>

After writing, update docs/gangsta/constitution.md:

  • Add the commandment (if any) to the "Commandments" section
  • Include source reference: — Source: insights/YYYY-MM-DD-<topic>.md

Writing a Fail

Criteria: Record when an approach caused regressions, security gaps, wasted time, or led to incorrect implementation.

File: docs/gangsta/fails/YYYY-MM-DD-<topic-slug>.md

---
date: YYYY-MM-DD
heist: <heist-name>
phase: <phase-where-occurred>
tags: [tag1, tag2, tag3]
severity: critical | high | medium | low
---

# <Title: Short description of the failure>

## What Happened
<Description of the failure and its observable impact>

## Cognitive Diagnosis
<Causal mechanism explaining WHY the failure occurred — not just what went wrong, but the reasoning error that led to it>

## Negative Constraint
<The explicit prohibition: "NEVER [prohibited pattern] because [reason]">

After writing, update docs/gangsta/constitution.md:

  • Add the negative constraint to the "Negative Constraints" section
  • Include source reference: — Source: fails/YYYY-MM-DD-<topic>.md

Reading the Ledger

During Reconnaissance

Search insights/ and fails/ for entries with tags matching the current Heist topic. Present relevant entries in the Reconnaissance Dossier.

During The Grilling

The Devils-Advocate MUST check all Negative Constraints before accepting any proposal. If a proposal violates a Negative Constraint, it is automatically rejected.

During The Sit-Down

The Underboss references Commandments when drafting the Contract. Every relevant Commandment must be cited in the Contract.

During The Hit

Workers check Negative Constraints before implementation. If a Work Package would violate a constraint, the Worker escalates to the Crew Lead.

During Laundering

New insights and fails from the Heist are written. The Constitution is updated.

Omerta Compliance

  • Rule of Truth: All Ledger entries cite specific phases, heists, and observable evidence
  • Rule of Availability: Ledger files are committed to git after every update
  • Spec is Law: Negative Constraints in the Constitution are binding on all future Heists

FAQ

What does the the-ledger skill do?

Use when reading or writing institutional memory — insights from successful solutions, fails from historical mistakes, and the Project Constitution that accumulates commandments and negative constraints across heists

How do I install the-ledger?

Run npx skills add https://github.com/kucherenko/gangsta --skill the-ledger in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/the-ledger/ (personal) or .claude/skills/the-ledger/ (project).

Which AI agents can use the-ledger?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is the-ledger safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains the-ledger?

It is published by kucherenko in kucherenko/gangsta. It has 43 recorded installs.

More from kucherenko/gangsta

View all →

audit-review

kucherenko/gangsta

Open the skill to read its SKILL.md instructions.

the-grilling

kucherenko/gangsta

Open the skill to read its SKILL.md instructions.

50 installs

reconnaissance

kucherenko/gangsta

Use when beginning a new heist — deploys associates to survey the target codebase, existing tests, dependencies, documentation, and the ledger to produce a reconnaissance dossier for the don's review

laundering

kucherenko/gangsta

Open the skill to read its SKILL.md instructions.

47 installs

using-gangsta

kucherenko/gangsta

Use when starting any conversation — establishes how to find and use Gangsta skills, enforces the 1% invocation rule, maps platform tools, and routes the Don's intent through the Gangsta Agents Family hierarchy

46 installs

the-sit-down

kucherenko/gangsta

Open the skill to read its SKILL.md instructions.

44 installs

Popular docs & writing skills

View category →

grill-with-docs

mattpocock/skills

A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.

Docs & Writing1.2M installs

lark-markdown

open.feishu.cn

飞书 Markdown:查看、创建、上传、编辑和比较飞书中的原生 Markdown 文件。当用户要操作飞书 Markdown 文件,或比较其远端版本及本地草稿时使用。纯本地 Markdown 文件操作不触发本 skill。不负责将 Markdown 导入为飞书在线文档,也不负责文件搜索、权限、评论、移动、删除等云空间管理操作。

Docs & Writing778.7K installs

writing-beats

mattpocock/skills

Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.

Docs & Writing490.7K installs

writing-shape

mattpocock/skills

Writing, exploit: shape raw material into an article, paragraph by paragraph.

Docs & Writing490.2K installs

writing-fragments

mattpocock/skills

Writing, explore: mine raw fragments, no structure yet.

Docs & Writing489.6K installs

writing-for-agents

mattpocock/skills

Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

Docs & Writing479.3K installs