Wiki lint

From onur-gokyildiz-bhi/codescope · View interactive version

Wiki lint is an AI agent skill from the GitHub repository onur-gokyildiz-bhi/codescope. Health check the knowledge graph. Finds orphan nodes, missing cross-references, stale claims, unresolved contradictions, and knowledge gaps. Triggers on: "lint the wiki", "knowledge health", "check knowledge base", "wiki lint", "find orphans".

How to use this skill

Skill file

wiki-lint: Knowledge Graph Health Check

Audit the knowledge graph and report issues. Fix what you can automatically, flag what needs human attention.

Checks

1. Orphan nodes

Knowledge entities with no incoming or outgoing edges:

knowledge_lint(check: "orphans")

Auto-fix: search for related entities and suggest links.

2. Unresolved contradictions

Claims flagged as contradictions that haven't been resolved:

knowledge_search(query: "contradiction")

Report: list each with both sides and ask human to resolve.

3. Low-confidence clusters

Groups of claims all at "low" confidence:

knowledge_lint(check: "low_confidence")

Suggest: "/autoresearch [topic]" to find corroborating sources.

4. Code-knowledge gaps

Code entities (functions, classes) with no knowledge context:

knowledge_lint(check: "unlinked_code")

Report: "These 5 most-called functions have no knowledge context. Consider ingesting their design docs."

5. Stale sources

Sources older than 6 months with no recent corroboration:

knowledge_lint(check: "stale")

Report: "These claims may be outdated — consider re-researching."

Output

## Knowledge Graph Health Report

**Total nodes:** 142 (67 entities, 35 concepts, 25 sources, 15 claims)
**Total edges:** 384

### Issues Found

| Check | Count | Severity |
|-------|-------|----------|
| Orphan nodes | 3 | low |
| Unresolved contradictions | 1 | high |
| Low-confidence clusters | 2 | medium |
| Code-knowledge gaps | 8 | medium |
| Stale sources | 0 | — |

### Actions Needed
1. **[high]** Resolve contradiction: "token expiry" — Source A vs Source B
2. **[medium]** Run `/autoresearch OAuth2` to corroborate 4 low-confidence claims
3. **[medium]** Ingest design docs for: handle_auth, parse_config, db_connect...
4. **[low]** 3 orphan knowledge nodes — suggest links below

**Health score: 7/10**
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.