← スキル一覧に戻る

mem-validate
by Z-M-Huang
Claude code knowledge base using obsidian
⭐ 8🍴 2📅 2026年1月24日
SKILL.md
name: mem-validate description: AI-powered validation of knowledge notes against current codebase. Detects stale content by comparing documented knowledge with actual files. version: 1.0.4 allowed-tools:
- mcp__obsidian-mem__mem_validate
- mcp__obsidian-mem__mem_read
- mcp__obsidian-mem__mem_supersede
- Bash
Memory Validate Skill
Validate your knowledge notes against the current state of the codebase to detect stale content.
When to Use
- Periodic knowledge base maintenance
- After major refactoring
- Before relying on old documentation
- To identify notes that need updating
Usage
/mem-validate project:my-project
/mem-validate project:my-project noteType:decision
/mem-validate project:my-project limit:10
How It Works
-
Extract File References
- Scans note content for file path mentions
- Patterns like
src/utils/helper.ts, code block paths, etc.
-
Check File Existence
- If referenced files are deleted: note is definitely stale
- If some files missing: note is likely stale
-
AI Comparison (for existing files)
- Reads current file content (first 2000 chars)
- Uses AI to compare documented knowledge vs actual code
- Returns staleness verdict with confidence score
Workflow
-
Run Validation
- Call
mem_validatefor the project - Default limit: 20 notes (AI validation is slow)
- Call
-
Present Results
- Group by status: stale, current, unable to validate
- Show confidence scores for stale notes
- List files that have changed
-
Offer Actions
- For stale notes: offer to update via
mem_supersede - For notes without file references: note that manual review may be needed
- For stale notes: offer to update via
Output Format
# Content Validation Results
**Checked**: 15 notes
**Stale**: 3
**Current**: 10
**Unable to validate**: 2
## Stale Notes
These notes may need to be updated or superseded:
### `research/2024-01-15_api-design.md`
- **Confidence**: 85%
- **Reason**: The API endpoint handlers have been refactored to use a different pattern
- **Referenced files**: src/api/handlers.ts, src/middleware/auth.ts
### `decisions/authentication-strategy.md`
- **Confidence**: 92%
- **Reason**: All referenced files have been deleted
## Unable to Validate
- `research/general-tips.md`: No file references found in note content
---
Use `mem_supersede` to update stale notes with current information.
Follow-up Actions
For each stale note, offer:
- Update: Read current files and create superseding note with
mem_supersede - Skip: Leave as-is (user decides later)
- Delete: If content is no longer relevant
Notes
- Validation is AI-powered and may take 30-60 seconds per note
- Uses
claude -pwith haiku model for fast validation - Notes without file references cannot be automatically validated
- High confidence (>80%) suggests the note should definitely be reviewed
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です