| name | history-indexing |
| description | Use for building and maintaining compact chat/session indexes (`docs/chat-history-index.md`) so long conversations can be queried precisely without re-reading broad transcript history. |
History Indexing
Quick Index (Action-Routed)
Read First (All Actions)
Mission
Trigger Rule
Canonical Artifact
Action Modules (Read As Needed)
- Creating/updating index structure:
Required Structure
Maintenance Workflow
- Performing retrieval:
- Validating index quality:
Output
Output Contract
Mission
Reduce retrieval token waste and stale-context errors by maintaining a structured history index for long-running sessions.
Authority and Artifact Policy
- Activating this skill grants no authority to create or update
docs/chat-history-index.md.
- Maintain the index only when durable history indexing is explicitly requested or already authorized by the repository workflow.
- Read-only retrieval may use an existing index but must not refresh it as a side effect.
Trigger Rule
Use this skill when:
- conversation history is large enough to cause retrieval overhead
- multiple historical decisions must be referenced repeatedly
- user requests context recall, summaries, or prior-decision traceability
Do not use for short sessions where direct retrieval is cheaper.
Anti-Overuse Rules
Use when:
- prior decisions must be retrieved repeatedly
- broad transcript reads would waste context
- the user requests historical traceability
Do not use when:
- the session is short enough to inspect directly
- the task does not depend on prior decisions
- a rolling recent summary is enough
Stop after:
- the index points to the smallest useful retrieval scope
- duplicate or superseded entries are marked
- summaries remain compact enough to scan
Canonical Artifact
docs/chat-history-index.md
Required Structure
- one-line session overview
- index table with:
Entry ID
Topic Tags
Turn/Line Range
Summary
Last Updated UTC
- compact notes on conflicts/overrides
Retrieval Policy
- match new request to topic tags first
- read only referenced ranges
- if no match, avoid broad transcript reads unless necessary
- prefer repository
.md instructions over ambiguous memory
Maintenance Workflow
- append a new index entry for major decision blocks
- update existing entry when decision changes
- annotate superseded decisions explicitly
- keep summaries short and high-signal
Quality Gates
Non-compliant index conditions:
- missing required columns
- stale
Last Updated UTC for recently changed decisions
- duplicate Entry IDs
- summaries too vague to retrieve by topic
Output Contract
When applying this skill, provide:
- entries added/updated
- retrieval scope used
- unresolved ambiguity/conflict notes
Related Skills