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'.
scripts/agent_wiki/plugins.py
View on GitHub"""Detect Obsidian community plugins relevant to homepage rendering.
Read-only inspection of the Obsidian config directory (the ``.obsidian`` folder
found by walking up from the vault). gen-home uses this to decide whether it can
emit a live Dataview card block or must fall back to a static list. Any missing
file or parse error is treated as "not available" — detection never raises.
"""
from __future__ import annotations
import json
from pathlib import Path
from typing import Any
from . import boundary
def obsidian_config_dir(vault: str | Path) -> Path | None:
"""The ``.obsidian`` directory at or above ``vault``; None when none exists."""
boundary.bind(vault)
current = Path(vault).expanduser().resolve()
while True:
candidate = current / ".obsidian"
if candidate.is_dir():
return candidate
if current.parent == current:
return None
current = current.parent
def _read_json(path: Path) -> Any:
try:
return json.loads(path.read_text(encoding="utf-8"))
except (OSError, UnicodeDecodeError, ValueError):
return None
def dataview_installed(vault: str | Path) -> bool:
"""True when ``dataview`` appears in ``.obsidian/community-plugins.json``."""
boundary.bind(vault)
cfg = obsidian_config_dir(vault)
if cfg is None:
return False
data = _read_json(cfg / "community-plugins.json")
return isinstance(data, list) and "dataview" in data
def dataviewjs_enabled(vault: str | Path) -> bool:
"""True when Dataview's ``enableDataviewJs`` setting is on (required for the
``dataviewjs`` card block to execute)."""
boundary.bind(vault)
cfg = obsidian_config_dir(vault)
if cfg is None:
return False
data = _read_json(cfg / "plugins" / "dataview" / "data.json")
return isinstance(data, dict) and data.get("enableDataviewJs") is True
def cards_available(vault: str | Path) -> bool:
"""True only when Dataview is installed *and* its JavaScript queries are on —
both are needed to render the dynamic card grid."""
boundary.bind(vault)
return dataview_installed(vault) and dataviewjs_enabled(vault)
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: 471k | 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 |