Knowledge Gravity Lab
Use this skill to turn a messy folder of notes into a practical knowledge map:
- center notes and themes,
- possible contamination/noise,
- overgrown topic clusters,
- orphan notes,
- cleanup actions,
- research or invention follow-up candidates.
This is a practical public knowledge-hygiene workflow, not a patent filing package and not a legal freedom-to-operate opinion. Keep the implementation framed as heuristic note analysis and avoid claiming that it implements or bypasses any protected system.
Quick Start
Run the bundled analyzer on a folder of Markdown/text files:
python scripts/analyze_corpus.py --input "C:\path\to\vault" --output "D:\knowledge-gravity-output"
Optional: skip folders that should not affect the map.
python scripts/analyze_corpus.py --input "C:\path\to\vault" --output "D:\knowledge-gravity-output" --skip-dir "archive" --skip-dir "templates"
The script creates:
knowledge_gravity_nodes.csv
knowledge_gravity_edges.csv
knowledge_gravity_report.md
knowledge_gravity_action_sheet.md
knowledge_gravity_data.json
Then summarize the report and action sheet for the user, focusing on 3-5 concrete cleanup or research actions.
Output Quality Checks
After running the analyzer, check whether the output is useful:
- If one topic group contains most notes, tell the user the corpus needs stronger subtopic links/tags.
- If the review queue is mostly templates or daily notes, suggest adding
--skip-dir or excluding low-value folders.
- If the center notes are all index files, explain that the map is showing navigation hubs rather than content hubs.
- If there are fewer than 20 notes, frame the result as a smoke test.
Workflow
- Identify the corpus folder.
- Run
scripts/analyze_corpus.py.
- Read
knowledge_gravity_report.md.
- Read
knowledge_gravity_action_sheet.md when cleanup actions are requested.
- Explain:
- what the knowledge center is,
- what looks noisy or low-signal,
- what clusters are too large,
- what should be split, merged, archived, or reviewed.
- If the user wants publication, read
references/public-boundary.md and avoid legal or protected-system claims.
- If the user asks whether this collides with existing rights, read
references/existing-rights-check.md and frame the answer as a risk checklist, not legal advice.
Interpretation Rules
Treat the analyzer output as decision support, not ground truth.
- High center score means a note is central in the local corpus.
- Review score means a note needs human attention, not that it is false.
- The action sheet is a temporary cleanup workspace. It should make cleanup choices easy, not replace human judgment.
- The 80-point feedback loop is an organization heuristic based on links, tags, headings, size, and repository share. Scores are capped to a practical 15-100 range; 80 is a cleanup target, not a natural breakpoint.
- Noise/contamination candidates are items with weak text signal, suspicious names, excessive boilerplate, poor linkage, or signs that they should not be trusted as a core source yet.
- Overgrown clusters are candidates for splitting into subtopics.
- Orphans are candidates for linking, archiving, or merging.
Public-Safe Language
Prefer:
- "knowledge hygiene"
- "center topic"
- "topic gravity"
- "attention-weighted note map"
- "possible noise"
- "possible contamination"
- "review queue"
Avoid:
- legal conclusions about existing rights,
- statements that the skill implements a protected internal system,
- "protected mechanism proves...",
- "guaranteed detection",
- "hallucination-proof".
When Results Are Weak
Say so directly. A useful result may be:
- "The corpus is too small."
- "The clusters are too clean to stress the method."
- "This proves only smoke-test scalability."
- "This needs baseline comparison."
Then propose the next experiment or corpus improvement.
1---2name: knowledge-gravity-lab3description: Analyze folders of Markdown/text research notes, Obsidian vaults, paper cards, invention notes, or memory exports as a practical knowledge map. Use when asked to find center topics, noisy or low-signal notes, possible contamination, overgrown topic groups, orphan notes, cleanup actions, or a useful public knowledge-hygiene workflow.4---56# Knowledge Gravity Lab78Use this skill to turn a messy folder of notes into a practical knowledge map:910- center notes and themes,11- possible contamination/noise,12- overgrown topic clusters,13- orphan notes,14- cleanup actions,15- research or invention follow-up candidates.1617This is a practical public knowledge-hygiene workflow, not a patent filing package and not a legal freedom-to-operate opinion. Keep the implementation framed as heuristic note analysis and avoid claiming that it implements or bypasses any protected system.1819## Quick Start2021Run the bundled analyzer on a folder of Markdown/text files:2223```powershell24python scripts/analyze_corpus.py --input "C:\path\to\vault" --output "D:\knowledge-gravity-output"25```2627Optional: skip folders that should not affect the map.2829```powershell30python scripts/analyze_corpus.py --input "C:\path\to\vault" --output "D:\knowledge-gravity-output" --skip-dir "archive" --skip-dir "templates"31```3233The script creates:3435- `knowledge_gravity_nodes.csv`36- `knowledge_gravity_edges.csv`37- `knowledge_gravity_report.md`38- `knowledge_gravity_action_sheet.md`39- `knowledge_gravity_data.json`4041Then summarize the report and action sheet for the user, focusing on 3-5 concrete cleanup or research actions.4243## Output Quality Checks4445After running the analyzer, check whether the output is useful:4647- If one topic group contains most notes, tell the user the corpus needs stronger subtopic links/tags.48- If the review queue is mostly templates or daily notes, suggest adding `--skip-dir` or excluding low-value folders.49- If the center notes are all index files, explain that the map is showing navigation hubs rather than content hubs.50- If there are fewer than 20 notes, frame the result as a smoke test.5152## Workflow53541. Identify the corpus folder.552. Run `scripts/analyze_corpus.py`.563. Read `knowledge_gravity_report.md`.574. Read `knowledge_gravity_action_sheet.md` when cleanup actions are requested.585. Explain:59 - what the knowledge center is,60 - what looks noisy or low-signal,61 - what clusters are too large,62 - what should be split, merged, archived, or reviewed.636. If the user wants publication, read `references/public-boundary.md` and avoid legal or protected-system claims.647. If the user asks whether this collides with existing rights, read `references/existing-rights-check.md` and frame the answer as a risk checklist, not legal advice.6566## Interpretation Rules6768Treat the analyzer output as decision support, not ground truth.6970- High center score means a note is central in the local corpus.71- Review score means a note needs human attention, not that it is false.72- The action sheet is a temporary cleanup workspace. It should make cleanup choices easy, not replace human judgment.73- The 80-point feedback loop is an organization heuristic based on links, tags, headings, size, and repository share. Scores are capped to a practical 15-100 range; 80 is a cleanup target, not a natural breakpoint.74- Noise/contamination candidates are items with weak text signal, suspicious names, excessive boilerplate, poor linkage, or signs that they should not be trusted as a core source yet.75- Overgrown clusters are candidates for splitting into subtopics.76- Orphans are candidates for linking, archiving, or merging.7778## Public-Safe Language7980Prefer:8182- "knowledge hygiene"83- "center topic"84- "topic gravity"85- "attention-weighted note map"86- "possible noise"87- "possible contamination"88- "review queue"8990Avoid:9192- legal conclusions about existing rights,93- statements that the skill implements a protected internal system,94- "protected mechanism proves...",95- "guaranteed detection",96- "hallucination-proof".9798## When Results Are Weak99100Say so directly. A useful result may be:101102- "The corpus is too small."103- "The clusters are too clean to stress the method."104- "This proves only smoke-test scalability."105- "This needs baseline comparison."106107Then propose the next experiment or corpus improvement.