Search and navigate documentation
Search .self/ documentation with full-text search, view timeline, and find related documents.
$ARGUMENTS
Parse $ARGUMENTS:
1. Command (required):
- "search <query>" → full-text search
- "timeline" → chronological view
- "related <path>" → find similar docs
- "stats" → index statistics
2. Options:
- "--scope <dir>" → limit search to directory
- "--days <N>" → limit timeline to N days
- "--channel <name>" → filter by channel
- "--limit <N>" → max results
Parse examples:
"search channel inheritance" → search for those terms
"search auth --scope domain" → search only domain/
"timeline --days 7" → last week's docs
"timeline --channel main" → main channel timeline
"related domain/patterns.md" → find similar docs
"stats" → show index stats
Full-text search across all documentation.
Use the Bash tool to run:
slf docs search "<query>" [--scope <dir>] [--limit <N>]
**Found 5 matches:**
1. **domain/patterns.md:309**
research-phase2 inherits [research-phase1, main]
2. **config/skills/channel/SKILL.md:16**
Channel inheritance: Channels can inherit from others
[...more results]
**Usage tips:**
- Use `--scope channels` to search only channels
- Use `--scope domain` to search domain knowledge
- Add `--context 2` for surrounding lines
Show chronological view of documentation changes.
Use the Bash tool to run:
slf docs timeline [--days <N>] [--channel <name>] [--limit <N>]
**Documentation Timeline** (last 7 days)
| Date | Channel | Document |
|------------|---------|---------------------------------------|
| 2026-02-05 | main | Reflexive Cache Pattern Complete |
| 2026-02-03 | main | Agent Context Refactor PR Merge |
| 2026-02-02 | feature | Auth Implementation Session |
**Filters applied:**
- Days: 7
- Channel: (all)
Find documents related to a given document using term similarity.
Use the Bash tool to run:
slf docs related "<path-relative-to-.self/>" [--limit <N>]
**Related to channels/main/2026-02-03_pattern.md:**
| Similarity | Document |
|------------|----------------------------|
| 85% | domain/patterns.md |
| 72% | config/skills/channel/... |
| 68% | channels/main/2026-02-02.md|
**How to use:**
These documents share common terms and concepts. Check them for context or related decisions.
Show index statistics and health.
Use the Bash tool to run:
slf docs stats
**Documentation Index Statistics**
- Total documents: 54
- Total lines: 10,981
- Total size: 320.7 KB
- Last indexed: 2026-02-05T12:18:38
**By directory:**
- config: 16 files
- channels: 11 files
- domain: 6 files
- prm: 5 files
- memory: 4 files
**Index is up to date**
The search engine automatically indexes docs on first use. You can also manually reindex:
slf docs index [--force]
Force reindex if you've made many changes.
/docs search to find past decisions before making new ones/docs related after /save to link related sessions/docs timeline --channel <name> to review channel historyUser: "Should we use JWT or sessions for auth?"
Claude: Let me check past decisions.
[Runs /docs search "auth JWT session"]
Claude: "In .self/memory/decisions.md:42, we decided on JWT
with 15-min access tokens. Rationale was stateless auth for
microservices. Should we reuse this approach?"
User: "Review this PR"
Claude: Let me check related documentation.
[Runs /docs search "channel inheritance patterns"]
Claude: "This PR changes channel inheritance. According to
domain/patterns.md:309, we support multi-parent inheritance.
The code looks aligned with our pattern..."
User: "What did we accomplish this week?"
Claude:
[Runs /docs timeline --days 7]
Claude: "This week we:
- Completed auth refactor (2026-02-05)
- Merged API endpoints (2026-02-04)
- Documented pattern system (2026-02-03)
5 sessions, 3 major decisions, 12 new docs."