Add /adopt skill for BYOV (Bring Your Own Vault) support

Adds a 6-phase skill that scaffolds the PKM system onto existing Obsidian
vaults: scan structure, map folders, personalize, generate config, scaffold
missing pieces, and verify. Replaces hardcoded folder paths in hooks with
env var lookups (${VAR:-Default}) so adopted vaults with custom folder names
work correctly while template-based vaults remain unaffected.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Bill Allred
2026-02-17 17:54:13 -08:00
parent b2151c075a
commit 5f0444fe5f
6 changed files with 357 additions and 13 deletions

View File

@@ -9,8 +9,8 @@ TOTAL_NOTES=$(find "$VAULT_PATH" -name "*.md" -type f -not -path "*/\.*" 2>/dev/
# Count inbox items
INBOX_COUNT=0
if [ -d "$VAULT_PATH/Inbox" ]; then
INBOX_COUNT=$(find "$VAULT_PATH/Inbox" -name "*.md" -type f 2>/dev/null | wc -l | tr -d ' ')
if [ -d "$VAULT_PATH/${INBOX_DIR:-Inbox}" ]; then
INBOX_COUNT=$(find "$VAULT_PATH/${INBOX_DIR:-Inbox}" -name "*.md" -type f 2>/dev/null | wc -l | tr -d ' ')
fi
# Add notes tagged with #inbox (if grep available)
@@ -28,7 +28,7 @@ fi
# Check if today's note exists
TODAY=$(date +%Y-%m-%d)
if [ -f "$VAULT_PATH/Daily Notes/$TODAY.md" ]; then
if [ -f "$VAULT_PATH/${DAILY_NOTES_DIR:-Daily Notes}/$TODAY.md" ]; then
TODAY_STATUS="Yes"
else
TODAY_STATUS="No"