attckdigital/smith/smith-ledger
Claude Code and agent skill by attckdigital/smith
- community
Checking that the SKILL.md file is still in the repository.
Browse, search, and manage the Smith Ledger — the accumulated patterns, antipatterns, tool preferences, and edge cases learned from past workflows. Use to review what Smith has learned, search for relevant patterns, prune outdated entries, or inspect the Ledger's evolution over time.
Install
npx vskill@latest install attckdigital/smith/smith-ledgerSKILL.md
Smith Ledger — Knowledge Base Management
Browse, search, and manage the Smith Ledger. The Ledger is the persistent knowledge base that captures patterns, antipatterns, tool preferences, edge cases, and project quirks learned from past Smith workflows. It lives at .smith/vault/ledger/.
Arguments: $ARGUMENTS
Vault Logging
Throughout this action, log significant events to the vault session log. Read the session log path from .smith/vault/.current-session. If the file is missing or the vault is not initialized, skip all logging silently.
Timestamps are UTC. HH:MM:SS comes from date -u +%H:%M:%S — never a local clock, never a time from memory. The append already runs through a shell, so read the clock in that same command (TS=$(date -u +%H:%M:%S)) and spend no extra tool call. Substitute the resulting value: an unexpanded $(...) reaching the log is a known regression and will not parse. Every hook-written stamp in this log is date -u, so a local-clock entry lands hours away from its neighbours and skews the workflow window hooks/workflow_summary_lib.py derives from them.
Append entries using this format:
Log at these points:
- On invocation — which subcommand was used and with what arguments
- After any mutation — prune, promote, demote, or reset operations that modify Ledger files
Ledger Directory Structure
The Ledger lives at .smith/vault/ledger/ with the following files:
Ledger Entry Format
Each Ledger file (patterns.md, antipatterns.md, etc.) contains entries in this format:
meta.yaml Format
Subcommands
/smith-ledger (no args) — Dashboard
Display a summary dashboard:
- Check if `.smith/vault/ledger/` exists. If not, display the following and stop:
`` No Ledger found. Run /smith-reflect after a workflow to start building the Ledger, or run /smith to initialize the vault structure. ``
- Read `meta.yaml` for overview stats (last reflection date, total reflections, total entries, config).
- Read each Ledger file and count entries by confidence level. An entry boundary is a line starting with
##(heading level 2). Extract the**Confidence:**value from each entry.
- Display the dashboard:
If there are no high-confidence entries, show "No high-confidence entries yet." instead of the Top Patterns section.
Show up to 5 high-confidence entries, sorted by observation count descending. Draw from all Ledger files, not just patterns.md.
/smith-ledger list — List Entries
List all entries, optionally filtered by category, confidence, or file.
Flags:
--category <cat>— Filter by category. Valid values:implementation,testing,debugging,specification,audit--confidence <level>— Filter by confidence. Valid values:low,medium,high--file <filename>— Show only entries from a specific file. Valid values:patterns,antipatterns,tools(alias fortool-preferences),edge-cases,quirks(alias forproject-quirks)
Flags can be combined. When multiple flags are provided, apply all filters (AND logic).
No flags: List all entries across all files, grouped by file.
Display format per entry:
Group entries under their file heading:
If no entries match the filters, display: "No entries match the given filters."
/smith-ledger show <title> — Show Full Entry
Search across all Ledger files for an entry whose ## <Title> heading matches the given title. Matching is case-insensitive and supports partial matches (the query is a substring of the title).
Single match: Display the full entry including all fields (title, date, category, confidence, observations, source reflections, context, pattern, evidence, related). Also display the source file name.
Multiple matches: List them with index numbers and ask which one to display:
No matches: Display: No entries found matching "<title>".
/smith-ledger search <query> — Search
Search across all Ledger files for the query string using case-insensitive matching.
For each match:
- Identify which entry the match belongs to (find the nearest preceding
##heading) - Display the entry title, file, and confidence
- Show the matching line with surrounding context (2 lines before and after)
Display format:
If no matches found, display: No results for "<query>".
/smith-ledger prune — Interactive Pruning
Scan all Ledger files for prune candidates based on age and confidence:
- Identify candidates:
- Remove candidates: Low-confidence entries where the
**Date:**is older thanconfig.low_confidence_prune_daysdays (default: 30) - Demote candidates: Medium-confidence entries where the
**Date:**is older thanconfig.medium_confidence_demote_daysdays (default: 90). These will be demoted to low confidence, not removed.
- Read config values from
meta.yamlunderconfig:. Ifmeta.yamlis missing or config values are absent, use defaults (30 days for low, 90 days for medium).
- Display candidates grouped by action:
- Prompt for confirmation:
Remove 2 entries and demote 1 entry? (yes/no)
- If confirmed:
- Remove the identified entries from their respective files (delete the entire entry block from
##to the next---separator or end of file) - Demote identified entries by changing their
**Confidence:**value frommediumtolow - Update
meta.yamlcounts accordingly - Report:
Pruned: 2 removed, 1 demoted. Total entries: N
- If declined: Display:
Prune cancelled. No changes made.
If no candidates are found, display: No prune candidates found. Ledger is clean.
/smith-ledger prune --auto — Automatic Pruning
Same logic as interactive prune but without confirmation. Execute immediately and report results.
Display:
/smith-ledger promote <title> — Promote Confidence
- Find the entry by title using the same case-insensitive partial match logic as
show. - If multiple matches, list them and ask which one to promote.
- Raise confidence one level:
low->mediummedium->highhigh-> Display:"<Title>" is already at high confidence. No change.
- Update the entry in place in its Ledger file — change the
**Confidence:**line. - Report:
Promoted "<Title>" from <old> to <new> confidence.
/smith-ledger demote <title> — Demote Confidence
- Find the entry by title using the same case-insensitive partial match logic as
show. - If multiple matches, list them and ask which one to demote.
- Lower confidence one level:
high->mediummedium->lowlow-> Display:"<Title>" is already at low confidence. No change.
- Update the entry in place in its Ledger file — change the
**Confidence:**line. - Report:
Demoted "<Title>" from <old> to <new> confidence.
/smith-ledger export — Export Full Ledger
Concatenate all Ledger files into a single markdown document and output it to chat.
Format:
- Start with the contents of
meta.yamlwrapped in a YAML code block - For each Ledger file (in order: patterns, antipatterns, tool-preferences, edge-cases, project-quirks):
- Add a level-1 heading:
# <filename> - Include the full file contents
Output the entire document to chat. Do not write it to a file unless the user explicitly asks.
/smith-ledger reset — Reset Ledger
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/smith-ledger/SKILL.md
Popularity
- Repository stars
- 41
- Repository forks
- 6
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/attckdigital/smith/smith-ledger)