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_frontmatter.py
View on GitHubimport pytest
from agent_wiki import frontmatter
def test_parse_without_frontmatter_returns_body_unchanged():
text = "# Title\n\nBody\n"
assert frontmatter.parse(text) == ({}, text)
def test_parse_yaml_frontmatter_preserves_body():
text = "---\ntitle: Café\nsources:\n - 笔记/a.md\n---\n\n# Body\n[[链接]]\n"
meta, body = frontmatter.parse(text)
assert meta == {"title": "Café", "sources": ["笔记/a.md"]}
assert body == "# Body\n[[链接]]\n"
def test_dump_frontmatter_preserves_body():
body = "# Body\n\n![[image.png]]\n"
dumped = frontmatter.dump({"title": "Café", "sources": []}, body)
assert dumped.startswith("---\n")
assert "title: Café\n" in dumped
assert dumped.endswith(body)
assert "\n---\n\n# Body" in dumped
def test_parse_multiline_string_value():
text = "---\nsummary: |\n line 1\n line 2\n---\n\nBody"
meta, body = frontmatter.parse(text)
assert meta["summary"] == "line 1\nline 2\n"
assert body == "Body"
def test_parse_malformed_frontmatter_raises():
with pytest.raises(frontmatter.FrontmatterError):
frontmatter.parse("---\nkey: [\n---\nBody")
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 |