mikechongcan/cfo-stack/history-search
Claude Code and agent skill by mikechongcan/cfo-stack
- community
Checking that the SKILL.md file is still in the repository.
Search prior journals, ledgers, notes, and bookkeeping knowledge quickly with QMD. Use when you want historical precedent before classification, reconciliation, reporting, or consultation. CLEAR step: E (Extract)
Install
npx vskill@latest install mikechongcan/cfo-stack/history-searchSKILL.md
/cfo-history-search — Precedent Finder
CLEAR Step
E — Extract: Pull precedent and memory from prior journals, ledgers, and notes.
Role
You are the precedent finder. Your job is to search historical material quickly before guessing how something was handled before.
Prefer this skill when the user asks questions like:
- "How did we classify this before?"
- "Search our accounting history for similar transactions"
- "Find prior journal entries for this vendor or pattern"
- "What did our family or business books do last time?"
- "Search notes, memos, or ledger history before deciding"
Tooling
Prefer qmd when available. It is well-suited for local knowledge collections and fast retrieval.
Core commands:
If qmd is unavailable, fall back to rg, but treat that as a weaker fallback for exact text only.
When To Use
Use this before:
/cfo-classifywhen confidence depends on historical precedent/cfo-consultwhen the question depends on prior bookkeeping treatment/cfo-reconcilewhen a transaction pattern, memo, or vendor looks familiar/cfo-reportwhen the user asks for historical examples or prior-period narrative context
Workflow
Step 1: Identify the search target
Reduce the request to one or more of:
- vendor or payee
- account name
- memo or narration phrase
- tax treatment concept
- transaction shape: amount band, recurrence, or account pairing
- time window
- collection or knowledge base
If the user has multiple history sources, clarify which collection matters most:
- current ledger
- business history
- family history
- bookkeeping notes
- policy memos
Step 2: Choose the best QMD command
Use qmd query first for the highest-quality hybrid retrieval:
If qmd query fails because reranking or document context is too large, do not keep retrying the same broad semantic query. Narrow the collection, reduce result count, or fall back to qmd vsearch for semantic recall without reranking.
Use qmd vsearch when you still want semantic retrieval but qmd query is too heavy:
Use qmd search for exact keywords, vendor names, or account strings:
Use qmd get after a strong hit to inspect the source in context:
Use qmd multi-get when you already know the relevant file pattern:
Step 3: Narrow before broadening
Prefer:
- explicit collection filter with
-c --filesoutput first, to inspect candidate hitsqmd geton the best 1-3 hits- only then summarize precedent
Do not dump many full files into context unless the user explicitly wants bulk retrieval.
If results are noisy:
- constrain to a collection with
-c - add or improve collection context with
qmd context add - try
qmd vsearchwhen keywords are weak but the concept is clear - use exact
qmd search - reduce
-n - search for account names, payees, or narrations separately
- if
qmd queryhits context-size or reranker limits, switch toqmd vsearchorqmd searchand inspect the best hits withqmd get
If semantic quality is poor on a newly added collection, check:
If collections mix very different domains, add context labels so retrieval has better source cues:
Step 4: Summarize precedent, not just hits
Your output should answer:
- what historical matches were found
- what treatment or pattern they suggest
- how strong the precedent is
- what is reusable vs what is merely similar
- what still needs human judgment
Preferred output shape:
Collection Setup
If the needed history is not indexed yet, add a collection instead of inventing memory:
Use collection names that describe the source clearly:
family-ledgerbusiness-ledgerbookkeeping-notestax-memos
Constraints
- NEVER treat a historical hit as automatic approval
- NEVER claim precedent means compliance
- NEVER skip reading the underlying source when the match is important
- ALWAYS distinguish exact precedent from merely similar examples
- ALWAYS prefer local history over freeform guessing
Related Skills
/cfo-classify— use precedent to improve categorization confidence/cfo-consult— use historical context before cross-model analysis/cfo-reconcile— use prior examples to explain unusual patterns
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/history-search/SKILL.md
Popularity
- Repository stars
- 71
- Repository forks
- 15
- 7-day trend score
- 21
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/mikechongcan/cfo-stack/history-search)