Repository navigation
feat: organize-wiki companion skill organizes the paper library with the user - #91
Merged
Merged
Conversation
…the user The agent reads the library and the research memory, agrees on the domain convention with the user in short rounds, and plans folder changes, moves, tag fixes, and structure repairs. scripts/organize.py previews the plan without writing, applies it under the vault lock only with the previewed digest, rewrites path links, normalizes papers/ tags, writes <Vault>/DeepPaperNote/domains.md, logs every step, and undoes the last reorganization when the touched files are unchanged. DeepPaperNote's final report suggests organize-wiki when a save creates a domain, and a cross-skill test keeps the domains file readable by DeepPaperNote's router. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Non-ASCII JSON on stdout raised UnicodeEncodeError under cp1252. The tests now run the scripts with PYTHONIOENCODING=cp1252 to catch this on every OS. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A new companion skill,
organize-wiki(整理知识库), keeps the paper library in domain folders the user agrees with. It writes<Vault>/DeepPaperNote/domains.md, the convention DeepPaperNote's router (#90) reads.What
applydoes.deeppapernote.lock, the same lock DeepPaperNote holds while saving.previewstill matches the library and the plan.[[…]]and](…)links that spell out a moved path, everywhere in the vault.papers/tags: the new domain's tag comes first, the tag of the domain being left is dropped, and any otherpapers/Xbecomes the topic tagX. Notes without frontmatter are moved but never edited.undo --latestcan restore it. Undo first checks every touched file and changes nothing if any of them was edited since.DeepPaperNote side
organize-wikiwhen a save creates a new domain.domain-routing.mdnamesorganize-wikias the owner of the domains file.organize-wikiwrites, in both languages.Evidence
python3 -m pytest -qreports 1746 passed; before this change the count was 1719.skills/organize-wiki/testscover the scan, preview, apply, undo, verify, refusals, the lock, and stale-preview refusal.domains.mdpapers/tagsimages/index.md, report-only by design)verifyreported no issues after apply.domain_overviewread the new convention.undo --latest, all 4,024 paths matched the pre-apply snapshot byte for byte. The only addition is the log folder, which is kept by design.Merge Danger
Door: two-way. The skill only acts when the user invokes it and confirms the preview, and every reorganization can be undone.
Blast Radius: user's vault. A confirmed apply moves folders and edits notes across the vault. The guards are the preview, the digest check, the shared lock, rollback on failure, and logged undo.
🤖 Generated with Claude Code