External audit flagged 8 actionable items against current best practices for Agent Skills, Claude Code hooks, Obsidian v1.9-v1.12, and JSON Canvas 1.0. This release addresses all of them and adds multi-agent compatibility files at zero cost to existing users. Tier 1, critical fixes: * wiki/meta/dashboard.base: NEW Obsidian Bases dashboard (native, no plugin needed). Replaces Dataview as the primary dashboard. Six views: Recent Activity, Seed Pages, Entities Missing Sources, Open Questions, Comparisons, Sources. * wiki/meta/dashboard.md: now embeds dashboard.base. Legacy Dataview queries retained as optional fallback for users on Obsidian < 1.9.10. * README.md and skills/wiki/references/plugins.md: Plugins section reorganized to recommend Bases (core, no install) primary, Dataview optional/legacy. * skills/canvas/references/canvas-spec.md: added missing JSON Canvas 1.0 fields. Group nodes now document background and backgroundStyle (cover, ratio, repeat). Edges document fromEnd (default 'none') and toEnd (default 'arrow') asymmetric defaults. Hex ID convention noted alongside descriptive ID alternative. * .gitignore: track wiki/meta/dashboard.base explicitly. Tier 2, important improvements: * hooks/hooks.json: SessionStart now uses both command type ([ -f wiki/hot.md ] && cat ...) and prompt type. Command type is the canonical safety check that works in non-vault sessions without erroring. Matcher: startup|resume. * hooks/hooks.json: NEW PostCompact hook re-injects hot cache after context compaction (hook-injected context does not survive compaction; CLAUDE.md does). * hooks/hooks.json: PostToolUse auto-commit now guarded by [ -d .git ]. * hooks/README.md: NEW documentation including known plugin-hooks STDOUT bug (anthropics/claude-code#10875) and workarounds. * skills/wiki/references/mcp-setup.md: added Option D (Obsidian CLI) for v1.12+. Added warning callout above NODE_TLS_REJECT_UNAUTHORIZED line explaining process-wide TLS bypass and recommending Option D as the secure alternative. * skills/wiki-ingest/SKILL.md: documented [!contradiction] custom callout CSS dependency on vault-colors.css snippet. * skills/wiki/references/css-snippets.md: full documentation of all four custom callouts (contradiction, gap, key-insight, stale) with built-in fallback equivalents. Tier 3, multi-agent compatibility (low complexity, high reach): * AGENTS.md: Codex CLI / OpenCode bootstrap. * GEMINI.md: Gemini CLI / Antigravity bootstrap. * .cursor/rules/claude-obsidian.mdc: Cursor always-on rules. * .windsurf/rules/claude-obsidian.md: Windsurf Cascade rules. * .github/copilot-instructions.md: GitHub Copilot conventions. * bin/setup-multi-agent.sh: idempotent symlink installer for Codex, OpenCode, Gemini, Cursor, Windsurf. Wires up the skills/ directory in each agent's expected location. Style cleanup: scrubbed all em dashes from every skill, hook, doc, and bootstrap file (249 total replacements across 26 files). Skills now use periods, commas, and colons throughout for cleaner natural prose. Version: 1.3.0 to 1.4.0 (aligns plugin.json with GitHub release tag format). Already resolved in v1.1 (no action needed): * defuddle, obsidian-bases, obsidian-markdown skills shipped * URL ingestion, vision ingestion, delta tracking docs * Multi-depth wiki-query (Quick / Standard / Deep) * PostToolUse auto-commit hook * allowed-tools field removed from all SKILL.md files * All templates already use plural tag/alias forms * Custom callouts CSS already in vault-colors.css Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
88 lines
2.9 KiB
Bash
Executable File
88 lines
2.9 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# claude-obsidian: multi-agent skill installer
|
|
# Symlinks the skills/ directory into each AI agent's expected location.
|
|
# Idempotent: safe to run multiple times.
|
|
#
|
|
# Supported agents:
|
|
# - Claude Code : auto-discovered via .claude-plugin/ (no symlink needed)
|
|
# - Codex CLI : symlink to ~/.codex/skills/claude-obsidian
|
|
# - OpenCode : symlink to ~/.opencode/skills/claude-obsidian
|
|
# - Gemini CLI : symlink to ~/.gemini/skills/claude-obsidian
|
|
# - Cursor : symlink to .cursor/skills (in repo)
|
|
# - Windsurf : symlink to .windsurf/skills (in repo)
|
|
#
|
|
# Bootstrap files (AGENTS.md, GEMINI.md, .cursor/rules/, .windsurf/rules/,
|
|
# .github/copilot-instructions.md) are already committed in the repo.
|
|
# This script just wires up the skills directory.
|
|
|
|
set -euo pipefail
|
|
|
|
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
SKILLS_DIR="$REPO_ROOT/skills"
|
|
|
|
if [ ! -d "$SKILLS_DIR" ]; then
|
|
echo "ERROR: $SKILLS_DIR does not exist. Are you running this from the claude-obsidian repo?"
|
|
exit 1
|
|
fi
|
|
|
|
GREEN='\033[0;32m'
|
|
YELLOW='\033[1;33m'
|
|
GRAY='\033[0;37m'
|
|
NC='\033[0m'
|
|
|
|
link_if_missing() {
|
|
local target="$1"
|
|
local dest="$2"
|
|
local agent_name="$3"
|
|
|
|
mkdir -p "$(dirname "$dest")"
|
|
|
|
if [ -L "$dest" ]; then
|
|
local existing="$(readlink "$dest")"
|
|
if [ "$existing" = "$target" ]; then
|
|
echo -e "${GRAY}[$agent_name] already linked: $dest${NC}"
|
|
return
|
|
else
|
|
echo -e "${YELLOW}[$agent_name] symlink exists but points elsewhere: $dest -> $existing (skipping, remove manually if you want to relink)${NC}"
|
|
return
|
|
fi
|
|
fi
|
|
|
|
if [ -e "$dest" ]; then
|
|
echo -e "${YELLOW}[$agent_name] path exists and is not a symlink: $dest (skipping)${NC}"
|
|
return
|
|
fi
|
|
|
|
ln -s "$target" "$dest"
|
|
echo -e "${GREEN}[$agent_name] linked: $dest -> $target${NC}"
|
|
}
|
|
|
|
echo "claude-obsidian: multi-agent skill installer"
|
|
echo "Repo: $REPO_ROOT"
|
|
echo
|
|
|
|
# Codex CLI
|
|
link_if_missing "$SKILLS_DIR" "$HOME/.codex/skills/claude-obsidian" "Codex CLI"
|
|
|
|
# OpenCode
|
|
link_if_missing "$SKILLS_DIR" "$HOME/.opencode/skills/claude-obsidian" "OpenCode"
|
|
|
|
# Gemini CLI
|
|
link_if_missing "$SKILLS_DIR" "$HOME/.gemini/skills/claude-obsidian" "Gemini CLI"
|
|
|
|
# Cursor (workspace-local)
|
|
link_if_missing "$SKILLS_DIR" "$REPO_ROOT/.cursor/skills" "Cursor"
|
|
|
|
# Windsurf (workspace-local)
|
|
link_if_missing "$SKILLS_DIR" "$REPO_ROOT/.windsurf/skills" "Windsurf"
|
|
|
|
echo
|
|
echo -e "${GREEN}Done.${NC} Bootstrap files (AGENTS.md, GEMINI.md, .cursor/rules/, .windsurf/rules/, .github/copilot-instructions.md) are already in this repo."
|
|
echo
|
|
echo "To verify each agent picks up the skills:"
|
|
echo " - Claude Code: open the project, type /wiki"
|
|
echo " - Codex CLI: codex --list-skills | grep claude-obsidian"
|
|
echo " - Cursor: open the project, ask 'what skills do you have?'"
|
|
echo " - Windsurf: open in Cascade, ask the same"
|
|
echo " - Gemini CLI: gemini --list-skills (if supported)"
|