{
  "settings": {
    "previewScrollUp": "shift+up",
    "previewScrollDown": "shift+down",
    "previewScrollLines": 5
  },
  "commands": {
    "file": {
      "list": "fd --type f --max-depth 4",
      "action": "Read and explain {{selected}}",
      "shortcut": "ctrl+shift+f",
      "preview": "bat --style=numbers --color=always {{selected}} 2>/dev/null || cat {{selected}}"
    },
    "file-content": {
      "list": "fd --type f --max-depth 4",
      "action": {
        "type": "bash",
        "template": "cat {{selected}}",
        "output": "editor"
      }
    },
    "skill": {
      "list": "fd -L 'SKILL.md' ~/.pi/agent/skills ~/.pi/agent/git 2>/dev/null | sed -E 's|.*/skills/([^/]+)/SKILL\\.md|\\1|' | grep -v '/' | sort -u",
      "action": { "type": "editor", "template": "/skill:{{selected}}" }
    },
    "branch": {
      "list": "git branch --format='%(refname:short)'",
      "action": { "type": "bash", "template": "git checkout {{selected}}" },
      "preview": "git log --oneline -10 {{selected}}"
    },
    "git-diff": {
      "list": "git diff --name-only",
      "action": {
        "type": "bash",
        "template": "git diff {{selected}}",
        "output": "editor"
      }
    },
    "todo": {
      "list": "rg -l 'TODO|FIXME' || true",
      "action": {
        "type": "editor",
        "template": "Find and fix all TODOs in {{selected}}"
      }
    }
  }
}
