Search and navigate knowledge base using README.md indexes, pattern matching, and directory tree analysis...
Navigate and search the knowledge base efficiently using AkashicRecords directory governance structure.
Parse user request:
Examples:
"Where are my transformer notes?" ā Topic search, keyword: "transformer"
"Find files modified last week" ā Date-based search
"Search for 'attention mechanism' in Research" ā Content search, scoped to Research/
"List all meeting notes from October" ā Category + date search
Select appropriate strategy based on query:
When to use:
Method:
Advantages:
When to use:
Method:
**/*keyword*.mdAdvantages:
When to use:
Method:
grep -r "keyword" .Advantages:
Structured Navigation example:
User: "Find my AI research notes"
1. Start at root, read README.md
2. Identify Research/ directory (purpose: "Technical and academic research")
3. Read Research/README.md
4. Find AI/ or DeepLearning/ subdirectories
5. Read Research/AI/README.md
6. List all files in index
7. Filter by relevance
8. Return matching files
Pattern Search example:
User: "Find files about transformers"
1. Use Glob: `**/*transformer*.md`
2. Results:
- Research/AI/2025-10-28-transformer-architecture.md
- Research/AI/2025-10-20-transformer-applications.md
- Work/Projects/transformer-project.md
3. Rank by modification date (most recent first)
4. Return results
Deep Content Search example:
User: "Search for 'attention mechanism'"
1. Use Grep: grep -r "attention mechanism" . --include="*.md"
2. Results (with context):
- Research/AI/transformer-architecture.md (3 matches)
- Research/AI/neural-networks.md (1 match)
3. Extract surrounding context for each match
4. Rank by relevance (match count, recency)
5. Return results with context snippets
For each result:
Permission check:
RULE.md says: "Restricted access - confidential"
ā Skip this file or warn user about restrictions
Privacy considerations:
Ranking criteria:
Scoring example:
File A: transformer-architecture.md
- Title match: +50
- Recent (3 days): +30
- In expected directory (Research/AI): +20
- Listed in README: +10
- Total: 110
File B: old-notes.md
- Content match only: +30
- Old (3 months): +5
- In Miscellaneous: +10
- Not in README: +0
- Total: 45
Result order: File A, then File B
Clear result format:
š Search results for "[query]"
Found [X] matches:
1. [filename.md](path/to/file.md) ā
ā
ā
ā
ā
Location: [directory path]
Last modified: [date]
Description: [from README.md or first line]
Match: [Context snippet if content search]
2. [another-file.md](path/to/another.md) ā
ā
ā
āā
Location: [directory path]
Last modified: [date]
Description: [description]
Match: [Context snippet]
[More results...]
Didn't find what you need?
- Try broader keywords
- Search in specific directory
- Check Archive/ for old content
Include helpful metadata:
After presenting results:
What would you like to do?
- Read [filename]
- Search within these results
- Refine search with different keywords
- Search in different directory
- Show more results
Interactive refinement:
Step-by-step process:
Example:
Query: "Find meeting notes from October"
1. Read root README.md
2. Find Work/ directory
3. Read Work/README.md
4. Find Meetings/ subdirectory
5. Read Work/Meetings/README.md
6. Filter entries by date (October)
7. Return matching files
Advantages:
Limitations:
Glob patterns:
**/*keyword*.md ā Find files with "keyword" in name
**/*YYYY-MM-DD*.md ā Find files with specific date format
Research/**/*.md ā Find all markdown in Research/
Work/Projects/**/*.md ā Find all markdown in Work/Projects/
Advanced patterns:
**/{transformer,attention,neural}*.md ā Multiple keywords
**/*2025-10*.md ā October 2025 files
**/*.{md,txt} ā Multiple extensions
Date-based search:
# Files modified in last 7 days
find . -name "*.md" -mtime -7
# Files modified in October 2025
find . -name "*2025-10*.md"
Advantages:
Limitations:
Grep search:
# Basic content search
grep -r "keyword" . --include="*.md"
# Case-insensitive
grep -ri "keyword" . --include="*.md"
# Multiple keywords (OR)
grep -rE "keyword1|keyword2" . --include="*.md"
# With context lines
grep -r "keyword" . --include="*.md" -A 2 -B 2
Task subagent for complex searches:
User: "Find all notes about transformers that mention attention mechanism and were created in the last month"
ā Too complex for single grep
ā Invoke Task subagent:
1. Grep for "transformer"
2. Filter results by "attention mechanism"
3. Filter by date (last month)
4. Return consolidated results
Advantages:
Limitations:
Progression:
Example:
Query: "Find transformer notes"
1. Structured: Check Research/AI/README.md ā Found 2 files ā
2. Pattern: Not needed (found with structured)
3. Content: Not needed
vs.
Query: "Find notes about neural attention"
1. Structured: Check Research/AI/README.md ā No exact match
2. Pattern: **/*attention*.md ā Found 1 file
3. Content: grep "neural attention" ā Found 3 more files
4. Combined results, ranked by relevance
README.md advantages:
Always check README.md first before deep searches.
For simple searches:
For complex searches:
Query: "Find transformer notes"
ā No matches in any strategy
ā Response:
"I couldn't find notes about transformers.
Suggestions:
- Try broader keywords (AI, neural networks)
- Search in Archive/ for old content
- Check if files use different terminology
- Create new note if content doesn't exist"
Query: "Find notes"
ā Returns 500+ matches
ā Response:
"Found 500+ files matching 'notes'.
Please narrow your search:
- Add more specific keywords
- Specify directory (Research, Work, Personal)
- Add date filter (from last week, October, etc.)
- Provide more context about what you're looking for"
Query: "Find it"
ā Query too vague
ā Response:
"Could you provide more details?
What are you looking for?
- File name or topic keywords
- Approximate date or time period
- Which directory (Research, Work, etc.)
- Type of content (meeting notes, research, etc.)"
Search encounters restricted directory
RULE.md: "Access restricted"
ā Skip directory in results
ā Note: "Some directories were excluded due to access restrictions"
This Skill respects directory governance:
Before searching:
During search:
In results:
User: "Where are my transformer architecture notes?"
Skill workflow:
User: "Find my meeting notes from last week"
Skill workflow:
User: "Search for 'attention mechanism' in my notes"
Skill workflow:
grep -ri "attention mechanism" . --include="*.md"