wiki-lint
Skill này làm gì
Skill này quét wiki Obsidian của bạn và báo cáo các vấn đề như liên kết hỏng và trang không có liên kết trỏ đến. Skill dành cho người muốn giữ một cơ sở tri thức lớn gọn gàng.
Khi nào nên dùng
- ✓Khi bạn muốn kiểm tra wiki xem có liên kết chết hoặc trang không có liên kết trỏ đến không.
- ✓Khi bạn muốn kiểm toán frontmatter hoặc việc theo dõi nguồn trong các ghi chú.
- ✓Khi bạn muốn biết trang chỉ mục nào đã lỗi thời trước khi tự sửa.
Liên kết skill
https://github.com/AgriciDaniel/claude-obsidian/blob/main/skills/wiki-lint/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Hãy kiểm tra wiki Obsidian của tôi xem có liên kết hỏng và trang mồ côi không, và cho tôi xem một báo cáo.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent chạy một công cụ kiểm tra cố định đọc kho và liệt kê từng phát hiện. Nó không tạo báo cáo, bảng điều khiển hay bản sửa, nên bạn quyết định cần thay đổi gì.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Lint the wiki
Use the portable lint engine as the source of truth. Lint observes vault state; it does not create reports, dashboards, canvases, stubs, or fixes.
Resolve the installed product root from this skill's own location, not from the vault or current working directory:
PRODUCT_ROOT=/absolute/path/to/installed/claude-obsidian
CORE="$PRODUCT_ROOT/scripts/claude-obsidian.py"
test -f "$CORE"
Every ../wiki/references/ link in this file resolves the same way, relative
to this skill's own directory under $PRODUCT_ROOT, never relative to the
selected vault's wiki/ directory.
Run
Resolve the user vault, then run one of:
python3 "$CORE" lint --vault "$VAULT"
python3 "$CORE" lint --vault "$VAULT" --format markdown
python3 "$CORE" lint --vault "$VAULT" --exclude "wiki/scratchpad/*"
The repeatable --exclude GLOB flag scopes a path (for example a scratchpad
folder) out of page, link-resolution, orphan, frontmatter, empty-section, and
stale-index scanning.
Use --strict only when a nonzero exit for findings is useful in automation.
The command remains read-only either way.
The deterministic parser understands Obsidian wikilinks and embeds, Markdown
links, aliases, heading and block fragments, escaped aliases, and code fences.
It skips dot-prefixed directories by default, mirroring Obsidian's own
indexer. Link resolution honors .gitignore files inside the vault (no git
subprocess): when a link is ambiguous between a page and a gitignored file
such as a build artifact, the gitignored candidate is dropped.
It reports such categories as dead or ambiguous links, orphan pages, required
frontmatter gaps (including title), empty sections, stale index entries, and
source/claim ledger contract violations. Report only the
checks and counts present in its output; do not claim that it performed
semantic, stylistic, or prose-level contradiction analysis when it did
not.
Explain findings
- Preserve the engine's paths, line numbers, targets, categories, and counts.
- Group findings by likely impact: broken navigation, ambiguous resolution, metadata quality, then maintainability.
- Explain that an orphan may be intentional and an ambiguous basename needs a path-qualified link; do not infer intent from the finding alone.
- Treat allowlisted findings as policy, not as proof that the target exists.
- Separate deterministic facts from suggested remediation.
Do not write the Markdown rendering into the vault. Return it in chat or stdout.
Repair is a separate operation
Never auto-fix a lint result. After the user chooses specific findings to repair:
- Re-read each target and record its expected SHA-256.
- Draft only the selected changes; do not delete or merge pages without explicit consent.
- Build one repair bundle with a new operation ID.
- Inspect the bundle and show exact changed paths.
- Apply only after that separate review.
- Re-run lint read-only and compare the relevant findings.
Follow the operation transaction contract. Lint itself never applies that transaction and never commits Git.
Checkpoint
Observe the deterministic report, think about root causes rather than finding count, verify proposed repairs against current hashes, and grow by improving the workflow that produced repeated findings.
Câu hỏi thường gặp
Nó có sửa liên kết hỏng không?
Không. Việc kiểm tra chỉ báo cáo phát hiện, còn sửa chữa do bạn hoặc skill khác đảm nhiệm.
Tôi có thể bỏ qua một số thư mục không?
Có. Bạn có thể loại trừ một thư mục, chẳng hạn khu vực nháp, khỏi quá trình quét.
Nó tìm những loại vấn đề nào?
Nó báo cáo vấn đề liên kết, trang mồ côi, thiếu sót frontmatter, mục trống và các mục chỉ mục đã lỗi thời.
Chi tiết
Mô tả gốc của tác giả
Run a deterministic, read-only health check on an Obsidian wiki. Use for lint, vault health check, audit wiki health, find orphans, find dead links, frontmatter audit, provenance audit, or wiki audit. Reports graph, link, frontmatter, provenance-ledger, empty-section, and stale-index findings; it does not reason broadly or repair files.
Độ phổ biến
- Sao GitHub
- 16k
- Vị trí xếp hạng
- #10814
- Giấy phép
- MIT
- Cập nhật
- 25/10/2026
Bình luận
- …
Thêm skill từ kho mã này
autoresearch
16kCho phép agent của bạn nghiên cứu một chủ đề trong giới hạn đã đặt và soạn báo cáo có trích dẫn. Kết quả web chỉ là bằng chứng, không tự vào ghi chú.
canvas
16kGiúp agent của bạn tạo và cập nhật bảng canvas trong Obsidian để chứa ghi chú, file, liên kết và nhóm. Hữu ích cho bản đồ và bố cục không gian.
defuddle
16kGiúp agent của bạn lên kế hoạch làm sạch một trang web thành văn bản dễ đọc và giữ bản sao cục bộ của các file nguồn. Làm sạch qua mạng chưa khả dụng.
obsidian-bases
16kGiúp agent của bạn thiết kế các chế độ xem Obsidian Bases hoạt động như cơ sở dữ liệu đơn giản, với bộ lọc, công thức và bố cục bảng hoặc thẻ.
Skill tương tự
technical-documentation
394kGiúp agent của bạn viết và rà soát tài liệu kỹ thuật cùng file hướng dẫn cho agent, rõ ràng để mọi người và công cụ AI đều dễ làm theo.
architecture-decision-records
280kGiúp agent của bạn ghi lại các quyết định quan trọng về cấu trúc dự án, giúp hiểu lý do đằng sau các lựa chọn và giữ lịch sử thay đổi rõ ràng.
code-tour
280kGiúp agent của bạn tạo các hướng dẫn đọc code từng bước, có tham chiếu chính xác đến file và dòng, hữu ích cho phần giới thiệu, giải thích và rà soát.