ledger-init

ledger-init is a command for Claude Code from synaptiai/synapti-marketplace. It costs 15 tokens per session (1,169 once invoked), scanned A, original, Apache-2.0.

A setup command for a Context Ledger workspace: a structured project folder that records research, decisions, risks, requirements, and technical design. It reads a project brief and creates the related files and folders.

In plain words
What is it for?
Use it to start an evidence-based product project from a brief, identify users and goals, record constraints, and create the initial ledger structure.
Why use it?
It gives a new project a consistent place to store evidence and planning information. It also identifies missing or unclear details before the work proceeds.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is **Path:** ./ledger/.

Part of the context-ledger plugin — 5 skills, 8 commands, 5 agents shipped together

Good fit Use it to start an evidence-based product project from a brief, identify users and goals, record constraints, and create the initial ledger structure.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/synaptiai/synapti-marketplace
agentmods
npx agentmods add commands/synaptiai/synapti-marketplace/ledger-init

Made for: Claude Code.

Or install context-ledger, the plugin that ships this one along with the rest of its 5 skills, 8 commands, 5 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ledger-init

README.md
[![agentmods](https://agentmods.dev/badge/commands/synaptiai/synapti-marketplace/ledger-init/github.svg)](https://agentmods.dev/commands/synaptiai/synapti-marketplace/ledger-init)
Your own site
<a href="https://agentmods.dev/commands/synaptiai/synapti-marketplace/ledger-init"><img src="https://agentmods.dev/badge/commands/synaptiai/synapti-marketplace/ledger-init/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ledger-init

Your own site · 80×15
<a href="https://agentmods.dev/commands/synaptiai/synapti-marketplace/ledger-init"><img src="https://agentmods.dev/badge/commands/synaptiai/synapti-marketplace/ledger-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,169 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00015 $0.01169
Opus 5 $0.00008 $0.00584
Sonnet 5 $0.00003 $0.00234
Haiku 4.5 $0.00002 $0.00117

Measured 9d ago against content hash 5708507b15c1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

ledger-init scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/context-ledger/commands/ledger-init.md · 178 lines

How it starts

The opening of the file, as written. The whole thing — 178 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Initialize Context Ledger

Create a new Context Ledger workspace for evidence-based product development.

Context Isolation: This command invokes the initializing-ledger skill which runs in a forked context. The initialization work is performed in isolation, keeping the main conversation clean.

Arguments

$ARGUMENTS: The project brief - a text description of what you're building.

Optional flags:

  • --path <path> - Custom workspace location (default: ./ledger/)

Workflow

  1. Parse Brief

    • Extract core description (max 5 sentences)
    • Identify target users
    • Extract goals (must be specific/measurable)
    • Extract constraints
    • Identify out-of-scope items
  2. Validate Completeness

    • Check for required components
    • Prompt for missing critical information
    • Confirm interpretation with user if ambiguous
  3. Create Directory Structure

    ledger/
    ├── 00-brief/
    ├── 01-pillars/
    ├── 02-evidence/{market,users,tech,competitors,design,legal,ops,economics}/
    ├── 03-synthesis/
    ├── 04-decisions/
    ├── 05-risks/
    ├── 06-prd/
    ├── 07-architecture/
    ├── 08-plan/
    ├── 09-brand/
    └── 10-gtm-ops/
    
  4. Generate Initial Files

    • 00-brief/BRIEF.md - Structured brief document
    • 01-pillars/PILLARS.md - Pillar configuration with priorities
  5. Report Summary

    • Workspace path
    • Brief summary
    • Pillar priorities
    • Next steps

Example Usage

Basic initialization

/ledger-init Build a task management app for remote software teams that integrates with Slack and GitHub

With custom path

/ledger-init --path ~/projects/taskapp/ledger "Build a task management app for remote teams"

Detailed brief

/ledger-init We're building a documentation tool for developers. Target: small dev teams (5-50 people). Must ship MVP in 6 weeks. Web-only for now, no mobile. Key goal is reducing documentation time by 30%.

Output

## Ledger Initialized

**Path:** ./ledger/
**Created:** 2026-01-21

### Brief Summary
Building a task management app for remote software teams with Slack and GitHub integration.

### Pillar Priorities

**High Priority:**
- Users (remote team workflows critical)
- Competitors (crowded market)
- Tech (integration requirements)

**Medium Priority:**
- Market, Design, Economics

**Lower Priority:**
- Legal, Ops (MVP phase)

### Next Step
Run `/ledger-research` to begin parallel evidence collection across all pillars.

Read the full file on GitHub · 178 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 178 lines · 15 tokens per session scan A 5708507b15c1

Subscribe to this mod's changes

ledger-init is a command published in the GitHub repository synaptiai/synapti-marketplace (6 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 15 tokens to every session and 1,169 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other commands, from other repositories

create-worktree

Follow these steps to create a git worktree.

CaptainMe-AI/lead-dev-os · 0 tokens

paper-trail-review

Review and arbitrate problematic references (cascade-exhausted, unresolved UID, awaiting OCR). Generates an up-to-date report, walks through cases by category, and applies arbitration decisions to the registry.

roomi-fields/paper-trail · 39 tokens

paper-trail-new-paper

Start writing an academic paper (IMRaD structure) on a topic, with anti-hallucination citation verification at every step. Builds on existing audited SOTAs.

roomi-fields/paper-trail · 35 tokens

paper-trail-registry-cleanup

Nettoyage historique du registre des fiches bibliographiques (les 900 fiches existantes). Cible les vieilles fiches mal nommées (0000, untitled) ET les duplicates avec suffixes numériques (foo2020bar2, 234) qui sont des artefacts de runs INGEST passés. Délègue les décisions au sub-agent textbook-resolver. Les merge…

roomi-fields/paper-trail · 109 tokens

paper-trail-cascade

Acquire PDFs via the 8-source cascade (11 with opt-in extended sources) for a single ref by slug, or a batch filtered by state. Validates page 1 anti-homonymy on each download.

roomi-fields/paper-trail · 44 tokens

paper-trail-linkify

Dernière passe du pipeline cible refondu. Insère les wikilinks finaux dans le SOTA (vers PDF si validé, sinon vers ancre dans une section ## Statut des sources régénérée idempotemment en bas du fichier). Présuppose que les passes identify/purge/acquire ont été lancées.

roomi-fields/paper-trail · 70 tokens