Dianel555/DSkills / skills/agent-wiki
agent-wiki
UnverifiedIncremental LLM-friendly wiki generator for Obsidian note vaults. Use when: (1) Building wiki from notes, (2) Ingesting notes to wiki, (3) Obsidian LLM wiki, (4) Incremental knowledge base management. Triggers: 'build wiki from notes', 'ingest notes to wiki', 'Obsidian LLM wiki', 'incremental knowledge base'.
tests/test_cleanup.py
View on GitHubfrom datetime import date
from agent_wiki import cleanup, config, frontmatter
def write_topic(vault, name, sources, body="# Topic\n"):
topic = config.topics_dir(vault) / name
topic.parent.mkdir(parents=True, exist_ok=True)
topic.write_text(frontmatter.dump({"title": name, "sources": sources}, body), encoding="utf-8")
return topic
def test_remove_source_from_topic_keeps_remaining_sources(tmp_path):
topic = write_topic(tmp_path, "T.md", ["a.md", "b.md"])
has_sources = cleanup.remove_source_from_topic(topic, "a.md")
meta, body = frontmatter.parse(topic.read_text(encoding="utf-8"))
assert has_sources is True
assert meta["sources"] == ["b.md"]
assert body == "# Topic\n"
def test_remove_source_from_topic_returns_false_when_orphaned(tmp_path):
topic = write_topic(tmp_path, "T.md", ["a.md"])
assert cleanup.remove_source_from_topic(topic, "a.md") is False
def test_archive_topic_moves_to_date_directory(tmp_path):
topic = write_topic(tmp_path, "T.md", [])
archived = cleanup.archive_topic(topic, config.archive_dir(tmp_path), date(2026, 6, 4))
assert archived == config.archive_dir(tmp_path) / "2026-06-04" / "T.md"
assert archived.exists()
assert not topic.exists()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |