SKILL.md
Chain Load - Load Work Context
Load chain links to restore context. Can be used anytime, not just at session start.
Usage
/chain-load [chain-name]
/chain-load [search-query]
Proactive Behavior
When working on a task, proactively check for relevant context:
- Use
tinymemchainsearchto find chains matching current work topic - Use
tinymem_searchto find individual memory segments - Suggest loading relevant chains or segments to the user
Segments vs Chains:
- Segments (memories): Individual insights via
tinymemsearch+tinymemget - Chains: Full workflow context via
tinymemchainload
Instructions
- Find Chain:
- If exact chain-name provided → use tinymemchainload - If query provided → use tinymemchainsearch for fuzzy matching - If nothing provided → use tinymemchainlist to show all
- Load Chain Links - Call
tinymemchainload:
- chain_name: the chain to load - limit: 5 (default, most recent links)
- Parse and Present Context - Extract from XML:
- Previous summaries - Decisions with rationale - Code changes history - Outstanding issues - Next steps
Output Format
## Chain: [name] ([count] links)
### Latest: [slug] - [date]
<summary and next-steps from most recent link>
### Context
<key decisions and history from older links>
### Suggested Action
[Next step based on chain state]
Examples
User: /chain-load auth-feature → Loads auth-feature chain
User: /chain-load auth → Searches chains matching "auth"
User working on auth code (proactive): → Agent: "Found chain 'auth-feature' with 3 links. Load context?"