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_scanner_strict.py
View on GitHubimport os
import subprocess
import sys
from pathlib import Path
import pytest
from agent_wiki import cache, scanner
ROOT = Path(__file__).resolve().parents[1]
CLI = ROOT / "scripts" / "agent_wiki_cli.py"
def run_cli(*args):
return subprocess.run([sys.executable, str(CLI), *args], text=True, encoding="utf-8", capture_output=True)
def write(path, text):
path.parent.mkdir(parents=True, exist_ok=True)
path.write_text(text, encoding="utf-8")
@pytest.mark.skipif(not hasattr(os, "symlink"), reason="symlink unsupported")
def test_scan_reports_symlinked_markdown_as_skipped(tmp_path):
target = tmp_path / "real.md"
target.write_text("real", encoding="utf-8")
link = tmp_path / "link.md"
try:
os.symlink(target, link)
except (OSError, NotImplementedError):
pytest.skip("symlink creation unavailable")
result = scanner.classify(tmp_path, cache.empty_schema())
report = scanner.format_report(result, tmp_path)
assert [item["path"] for item in report["new"]] == ["real.md"]
assert report["stats"]["skipped_symlinks"] == 1
assert report["errors"] == [{"path": "link.md", "error": "skipped_symlink"}]
def test_scan_reports_normalized_path_collision_without_classifying(tmp_path):
first = tmp_path / "café.md"
second = tmp_path / "café.md"
first.write_text("a", encoding="utf-8")
second.write_text("b", encoding="utf-8")
def fake_collect(root):
return [first, second], []
result = scanner.classify(tmp_path, cache.empty_schema(), collect=fake_collect)
assert result["fatal"] == {"error": "normalized_path_collision", "path": "café.md"}
assert result["new"] == []
def test_cli_scan_exits_nonzero_on_normalized_path_collision(tmp_path):
first = tmp_path / "café.md"
second = tmp_path / "café.md"
first.write_text("a", encoding="utf-8")
second.write_text("b", encoding="utf-8")
def fake_collect(root):
return [first, second], []
result = scanner.classify(tmp_path, cache.empty_schema(), collect=fake_collect)
report = scanner.format_report(result, tmp_path)
assert report["error"] == "normalized_path_collision"
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 |