Wiki concept sync
一套将 PDF/LaTeX 自动转化为 Obsidian 结构化 Markdown 知识图谱的 AI 智能体技能。
npx -y skills add Misaka16384/Wikify --skill wiki_concept_syncAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Deduplicates concepts, splits overly broad concepts, and synthesizes multi-source concept definitions by dynamically searching and analyzing all papers that reference them.
SKILL.md
4.3 KB, 957 tokens by cl100k_base, as published. Nobody here has run it
LLM Wiki — Concept Synthesizer Skill (wiki_concept_sync)
Resolving script paths (read first): Commands below invoke scripts as
<BIN>/X.py(and a few as<SKILLS>/...). Resolve these to absolute paths once before running anything:
<SKILL_DIR>= the directory thisSKILL.mdlives in.<SKILLS>= theskills/folder containing this skill =<SKILL_DIR>/..<BIN>= thebin/folder beside it =<SKILL_DIR>/../../binDo not hardcode a fixed prefix like
.agents/binor../bin: shell relative paths resolve against the current working directory (usually the topic root), not this skill's location. Once resolved,<BIN>is typically.agents/binwhen invoked from the hub root, or.claude/binfrom inside a topic directory.
This skill maintains the semantic integrity and comprehensive depth of the knowledge graph's "Concept" nodes. It resolves duplicate concepts, expands overly broad concepts, and, most importantly, synthesizes multi-source definitions by reading all papers that reference a concept.
Tooling (framework-agnostic): This skill is written tool-agnostic. Where it says file-read tool, use your agent's equivalent (
Readin Claude Code,view_filein Antigravity). Shell commands run viaBash/PowerShell(Claude Code) or your framework's shell tool.
Execution Modes
The user can ask to refine/sync a single concept (e.g., wiki_concept_sync "Quantum Entanglement") or run a global sync (wiki_concept_sync_all). If not specified, default to asking the user or assuming the concept currently being discussed.
Phase 1: Deduplication Discovery
- Semantic Duplicates Search: Run the semantic linker in deduplication-only mode to find highly identical concepts:
python <SKILLS>/wiki_semantic_link/semantic_linker.py <TOPIC_DIR> --dedup-onlyThe merge threshold is read fromconfig.yaml. Override via--merge-threshold <value>if needed. - Agent Review: Carefully review the
[MERGE_SUGGESTION]output logs from the script. - Resolve & Merge (Principle): If you verify that a pair is genuinely the same or strongly overlapping, choose a canonical name. CRITICAL PRINCIPLE: Always merge sub-concepts into their parent concepts (e.g., merge
gauge_redundancyintogauge_symmetry). The parent concept becomes the Canonical Name. - Refactor Links: Run the deterministic python script to safely update all
[[Old Concept]]links to[[Canonical Name]], handle backups, and delete the old concept automatically:python <BIN>/refactor_concept.py --topic-dir \"<TOPIC_DIR>\" --old \"Old Concept\" --new \"Canonical Name\" [--no-rebuild](This script will also automatically rebuild the SQLite knowledge graph and markdown indexes upon completion, unless--no-rebuildis passed). To speed up bulk refactoring, you can optionally pass the--no-rebuildflag torefactor_concept.pyto skip intermediate index rebuilds.
Phase 2: Multi-Source Synthesis (Post-Merge RAG)
After resolving duplicates, you must synthesize their definitions to ensure no knowledge is lost.
- Extract RAG Context: Run the context extractor script to globally search all references for this Canonical Concept and compile the surrounding paragraphs:
python <BIN>/extract_concept_context.py --name "Canonical Name" --topic-dir "<TOPIC_DIR>"This script will output the path to ascratch/concept_context_<slug>.mdfile. - Single-Pass Reading: Use your file-read tool to read the generated context file.
- Comprehensive Synthesis:
- Backup Before Rewrite: Backup the concept file to
wiki/concepts/.backup/. - Rewrite
wiki/concepts/<Canonical Name>.mdto fuse the definitions, ensuring no loss of detail from the merged duplicate. - Post-Write Validation: Run
python <BIN>/llm-wiki.py lint <TOPIC_DIR>.
- Backup Before Rewrite: Backup the concept file to
- Log: Update
log.mdwith the deduplication and synthesis outcome.