# Amp Source: https://docs.getgaal.com/agents/amp Sourcegraph's agentic coding tool. [Amp](https://ampcode.com) is Sourcegraph's agentic coding tool. Project skills use the vendor-neutral `.agents/skills` convention; global skills live under `~/.config/agents/skills`. ## Paths | Resource | Path | | ---------------------- | -------------------------------------------------------------------------------------- | | Project skills | `.agents/skills` (generic fallback) | | Global skills | `~/.config/agents/skills` | | MCP config | `~/.config/amp/settings.json` | | Audit search (project) | `.agents/skills`, `.github/skills`, `.claude/skills` | | Audit search (global) | `~/.config/agents/skills`, `~/.agents/skills`, `~/.copilot/skills`, `~/.claude/skills` | ## Skills example ```yaml gaal.yaml theme={"theme":"nord"} skills: - source: anthropics/skills agents: [amp] global: false ``` ## MCP example ```yaml gaal.yaml theme={"theme":"nord"} mcps: - name: filesystem agents: [amp] global: true inline: command: uvx args: [mcp-server-filesystem, ~/projects] ``` ## Related # Antigravity Source: https://docs.getgaal.com/agents/antigravity Google's agentic IDE based on Gemini. [Antigravity](https://antigravity.google) is Google's agentic IDE built on Gemini. It does not currently support MCP servers via gaal, only skills are managed. ## Paths | Resource | Path | | ---------------------- | ---------------------------------------------------------------------- | | Project skills | `.agents/skills` (generic fallback) | | Global skills | `~/.gemini/antigravity/skills` | | MCP config | , (not supported) | | Audit search (project) | `.agents/skills`, `.github/skills`, `.claude/skills` | | Audit search (global) | `~/.gemini/antigravity/skills`, `~/.gemini/skills`, `~/.agents/skills` | ## Skills example ```yaml gaal.yaml theme={"theme":"nord"} skills: - source: anthropics/skills agents: [antigravity] global: true # → ~/.gemini/antigravity/skills ``` ## MCP servers Antigravity does not have a gaal-managed MCP config target. If MCP support lands in a future Antigravity release, gaal will add it to the registry. ## Related # Augment Source: https://docs.getgaal.com/agents/augment Augment Code AI agent. [Augment](https://augmentcode.com) is an AI coding agent. Skills live under `.augment/skills`; MCP config lives under `~/.augment/settings.json`. ## Paths | Resource | Path | | ---------------------- | ----------------------------------------------------------------------- | | Project skills | `.augment/skills` | | Global skills | `~/.augment/skills` | | MCP config | `~/.augment/settings.json` | | Audit search (project) | `.augment/skills`, `.agents/skills`, `.github/skills`, `.claude/skills` | | Audit search (global) | `~/.augment/skills`, `~/.agents/skills`, `~/.copilot/skills` | ## Skills example ```yaml gaal.yaml theme={"theme":"nord"} skills: - source: anthropics/skills agents: [augment] global: false ``` ## MCP example ```yaml gaal.yaml theme={"theme":"nord"} mcps: - name: filesystem agents: [augment] global: true inline: command: uvx args: [mcp-server-filesystem, ~/projects] ``` ## Related # Claude Code Source: https://docs.getgaal.com/agents/claude-code Anthropic's terminal coding agent. [Claude Code](https://docs.claude.com/en/docs/claude-code/overview) is Anthropic's terminal-native coding agent. gaal manages its skills directories and its MCP server config. ## Paths | Resource | Path | | ---------------------- | ----------------------------------------------------------- | | Project skills | `.claude/skills` | | Global skills | `~/.claude/skills` | | MCP config | `~/.claude.json` | | Audit search (project) | `.claude/skills`, `.agents/skills`, `.github/skills` | | Audit search (global) | `~/.claude/skills`, `~/.agents/skills`, `~/.copilot/skills` | | Package-manager search | `~/.claude/plugins/cache` | ## Skills example ```yaml gaal.yaml theme={"theme":"nord"} skills: - source: anthropics/skills agents: [claude-code] select: [frontend-design, skill-creator] global: false ``` After `gaal sync`: ``` .claude/skills/frontend-design/SKILL.md .claude/skills/skill-creator/SKILL.md ``` ## MCP example ```yaml gaal.yaml theme={"theme":"nord"} mcps: - name: filesystem agents: [claude-code] global: true inline: command: uvx args: [mcp-server-filesystem, ~/projects] ``` The entry is upserted under `mcpServers` in `~/.claude.json`. Other keys in the file are preserved. ## Detecting installation ```bash theme={"theme":"nord"} $ gaal agents claude-code claude-code (installed) project skills: .claude/skills global skills: ~/.claude/skills mcp config: ~/.claude.json (exists) pm cache: ~/.claude/plugins/cache ``` ## Related # Cline Source: https://docs.getgaal.com/agents/cline Open-source AI assistant for VS Code. [Cline](https://cline.bot) is an open-source AI assistant for VS Code. Both project and global skills use the vendor-neutral `.agents/skills` and `~/.agents/skills` conventions; MCP config lives in VS Code's `settings.json`. ## Paths | Resource | Path | | ---------------------- | ----------------------------------------------------------- | | Project skills | `.agents/skills` (generic fallback) | | Global skills | `~/.agents/skills` (generic fallback) | | MCP config | `~/.vscode/settings.json` | | Audit search (project) | `.agents/skills`, `.github/skills`, `.claude/skills` | | Audit search (global) | `~/.agents/skills`, `~/.copilot/skills`, `~/.claude/skills` | ## Skills example ```yaml gaal.yaml theme={"theme":"nord"} skills: - source: anthropics/skills agents: [cline] global: false ``` Skills land in `.agents/skills/`, Cline picks them up via the generic convention. ## MCP example ```yaml gaal.yaml theme={"theme":"nord"} mcps: - name: filesystem agents: [cline] global: true inline: command: uvx args: [mcp-server-filesystem, ~/projects] ``` ## Related # Codex Source: https://docs.getgaal.com/agents/codex OpenAI Codex CLI coding agent. [Codex](https://github.com/openai/codex) is OpenAI's terminal coding agent. Project skills use the vendor-neutral `.agents/skills` convention; global skills live under `~/.codex/skills`. ## Paths | Resource | Path | | ---------------------- | ---------------------------------------------------------- | | Project skills | `.agents/skills` (generic fallback) | | Global skills | `~/.codex/skills` | | MCP config | `~/.codex/config.toml` | | Audit search (project) | `.agents/skills`, `.github/skills`, `.claude/skills` | | Audit search (global) | `~/.codex/skills`, `~/.agents/skills`, `~/.copilot/skills` | ## Skills example ```yaml gaal.yaml theme={"theme":"nord"} skills: - source: anthropics/skills agents: [codex] global: true # → ~/.codex/skills ``` ## MCP example ```yaml gaal.yaml theme={"theme":"nord"} mcps: - name: filesystem agents: [codex] global: true inline: command: uvx args: [mcp-server-filesystem, ~/projects] ``` ## Related # Continue Source: https://docs.getgaal.com/agents/continue Open-source coding assistant for VS Code and JetBrains. [Continue](https://continue.dev) is an open-source coding assistant. Skills live under `.continue/skills`; MCP config lives under `~/.continue/config.json`. ## Paths | Resource | Path | | ---------------------- | ------------------------------------------------------------------------ | | Project skills | `.continue/skills` | | Global skills | `~/.continue/skills` | | MCP config | `~/.continue/config.json` | | Audit search (project) | `.continue/skills`, `.agents/skills`, `.github/skills`, `.claude/skills` | | Audit search (global) | `~/.continue/skills`, `~/.agents/skills`, `~/.copilot/skills` | ## Skills example ```yaml gaal.yaml theme={"theme":"nord"} skills: - source: anthropics/skills agents: [continue] global: true ``` ## MCP example ```yaml gaal.yaml theme={"theme":"nord"} mcps: - name: filesystem agents: [continue] global: true inline: command: uvx args: [mcp-server-filesystem, ~/projects] ``` ## Related # Cursor Source: https://docs.getgaal.com/agents/cursor AI-first code editor with native MCP support. [Cursor](https://cursor.com) is an AI-first code editor. Project skills use the vendor-neutral `.agents/skills` convention; global skills live under `~/.cursor/skills`. ## Paths | Resource | Path | | ---------------------- | ------------------------------------------------------------------------------- | | Project skills | `.agents/skills` (generic fallback) | | Global skills | `~/.cursor/skills` | | MCP config | `~/.cursor/mcp.json` | | Audit search (project) | `.agents/skills`, `.github/skills`, `.claude/skills` | | Audit search (global) | `~/.cursor/skills`, `~/.agents/skills`, `~/.copilot/skills`, `~/.claude/skills` | | Package-manager search | `~/.cursor/extensions` | ## Skills example ```yaml gaal.yaml theme={"theme":"nord"} skills: - source: vercel-labs/agent-skills agents: [cursor] global: true # → ~/.cursor/skills ``` ## MCP example ```yaml gaal.yaml theme={"theme":"nord"} mcps: - name: filesystem agents: [cursor] global: true inline: command: uvx args: [mcp-server-filesystem, ~/projects] ``` ## Detecting installation ```bash theme={"theme":"nord"} gaal agents cursor ``` ## Related # Gemini CLI Source: https://docs.getgaal.com/agents/gemini-cli Google's terminal coding agent. [Gemini CLI](https://github.com/google-gemini/gemini-cli) is Google's terminal coding agent. Project skills use the vendor-neutral `.agents/skills` convention; global skills live under `~/.gemini/skills`. ## Paths | Resource | Path | | ---------------------- | ----------------------------------------------------------- | | Project skills | `.agents/skills` (generic fallback) | | Global skills | `~/.gemini/skills` | | MCP config | `~/.gemini/settings.json` | | Audit search (project) | `.agents/skills`, `.github/skills`, `.claude/skills` | | Audit search (global) | `~/.gemini/skills`, `~/.agents/skills`, `~/.copilot/skills` | | Package-manager search | `~/.gemini/extensions` | ## Skills example ```yaml gaal.yaml theme={"theme":"nord"} skills: - source: anthropics/skills agents: [gemini-cli] global: true ``` ## MCP example ```yaml gaal.yaml theme={"theme":"nord"} mcps: - name: filesystem agents: [gemini-cli] global: true inline: command: uvx args: [mcp-server-filesystem, ~/projects] ``` ## Related # Generic Source: https://docs.getgaal.com/agents/generic The vendor-neutral fallback for agents that share .agents/skills. `generic` is a built-in pseudo-agent that owns the vendor-neutral `.agents/skills` (project) and `~/.agents/skills` (global) directories. Several agents, Cursor, Codex, Cline, Warp, Gemini CLI, OpenCode, Amp, Antigravity, install through the generic renderer rather than maintaining their own skills directory. ## When you'd target it directly Most of the time you won't. You'll target the actual agents you use: ```yaml theme={"theme":"nord"} skills: - source: my-skills agents: [cursor, codex, cline] ``` …and gaal will write to the right shared directory because each of those agents declares `supports_generic_project: true`. You target `generic` directly when you want to populate the shared directory **without** depending on a specific agent being installed: ```yaml theme={"theme":"nord"} skills: - source: my-skills agents: [generic] global: false # → .agents/skills ``` This is useful for pre-staging a new machine, or for installing skills that any future generic-fallback agent will pick up. ## Paths | Resource | Path | | ---------------------- | ------------------ | | Project skills | `.agents/skills` | | Global skills | `~/.agents/skills` | | MCP config | , (no MCP target) | | Audit search (project) | `.agents/skills` | | Audit search (global) | `~/.agents/skills` | ## MCP servers `generic` doesn't own an MCP config file. To install MCP servers for generic-fallback agents, target the agent's actual MCP config. See the relevant per-agent page. ## Related # GitHub Copilot Source: https://docs.getgaal.com/agents/github-copilot Copilot in VS Code, with MCP via VS Code settings. [GitHub Copilot](https://docs.github.com/en/copilot) reads agent skills from `.github/skills` and reads MCP server configuration from VS Code's `settings.json`. ## Paths | Resource | Path | | ---------------------- | ----------------------------------------------------------- | | Project skills | `.github/skills` | | Global skills | `~/.copilot/skills` | | MCP config | `~/.vscode/settings.json` | | Audit search (project) | `.github/skills`, `.agents/skills`, `.claude/skills` | | Audit search (global) | `~/.copilot/skills`, `~/.claude/skills`, `~/.agents/skills` | | Package-manager search | `~/.vscode/agent-plugins` | See also: [VS Code Copilot agent skills docs](https://code.visualstudio.com/docs/copilot/customization/agent-skills#_create-a-skill). ## Skills example ```yaml gaal.yaml theme={"theme":"nord"} skills: - source: anthropics/skills agents: [github-copilot] select: [frontend-design] global: false # → .github/skills ``` ## MCP example ```yaml gaal.yaml theme={"theme":"nord"} mcps: - name: github agents: [github-copilot] global: true inline: command: npx args: ["-y", "@modelcontextprotocol/server-github"] env: GITHUB_PERSONAL_ACCESS_TOKEN: ${GITHUB_TOKEN} ``` gaal upserts under the `mcpServers` key while leaving every other VS Code setting in place. ## Related # Goose Source: https://docs.getgaal.com/agents/goose Block's open-source AI coding agent. [Goose](https://block.github.io/goose/) is an open-source AI agent. Skills live under `.goose/skills`; MCP config lives under `~/.config/goose/config.yaml`. ## Paths | Resource | Path | | ---------------------- | ----------------------------------------------------------------- | | Project skills | `.goose/skills` | | Global skills | `~/.config/goose/skills` | | MCP config | `~/.config/goose/config.yaml` | | Audit search (project) | `.goose/skills`, `.agents/skills`, `.github/skills` | | Audit search (global) | `~/.config/goose/skills`, `~/.agents/skills`, `~/.copilot/skills` | ## Skills example ```yaml gaal.yaml theme={"theme":"nord"} skills: - source: anthropics/skills agents: [goose] global: false ``` ## MCP example ```yaml gaal.yaml theme={"theme":"nord"} mcps: - name: filesystem agents: [goose] global: true inline: command: uvx args: [mcp-server-filesystem, ~/projects] ``` ## Related # Kilo Source: https://docs.getgaal.com/agents/kilo Kilo Code AI assistant. [Kilo Code](https://kilocode.ai) is an AI coding assistant. Skills live under `.kilocode/skills`; MCP config lives under `~/.kilocode/mcp.json`. ## Paths | Resource | Path | | ---------------------- | ------------------------------------------------------------------------ | | Project skills | `.kilocode/skills` | | Global skills | `~/.kilocode/skills` | | MCP config | `~/.kilocode/mcp.json` | | Audit search (project) | `.kilocode/skills`, `.agents/skills`, `.github/skills`, `.claude/skills` | | Audit search (global) | `~/.kilocode/skills`, `~/.agents/skills`, `~/.copilot/skills` | ## Skills example ```yaml gaal.yaml theme={"theme":"nord"} skills: - source: anthropics/skills agents: [kilo] global: false ``` ## MCP example ```yaml gaal.yaml theme={"theme":"nord"} mcps: - name: filesystem agents: [kilo] global: true inline: command: uvx args: [mcp-server-filesystem, ~/projects] ``` ## Related # Kiro CLI Source: https://docs.getgaal.com/agents/kiro-cli AWS Kiro terminal coding agent. [Kiro](https://kiro.dev) is AWS's AI IDE; the Kiro CLI is its terminal companion. Skills live under `.kiro/skills`; MCP config lives under `~/.kiro/settings/mcp.json`. ## Paths | Resource | Path | | ---------------------- | --------------------------------------------------------- | | Project skills | `.kiro/skills` | | Global skills | `~/.kiro/skills` | | MCP config | `~/.kiro/settings/mcp.json` | | Audit search (project) | `.kiro/skills`, `.agents/skills`, `.github/skills` | | Audit search (global) | `~/.kiro/skills`, `~/.agents/skills`, `~/.copilot/skills` | | Package-manager search | `~/.kiro/extensions` | ## Skills example ```yaml gaal.yaml theme={"theme":"nord"} skills: - source: anthropics/skills agents: [kiro-cli] global: false ``` ## MCP example ```yaml gaal.yaml theme={"theme":"nord"} mcps: - name: filesystem agents: [kiro-cli] global: true inline: command: uvx args: [mcp-server-filesystem, ~/projects] ``` ## Related # OpenCode Source: https://docs.getgaal.com/agents/opencode Open-source terminal coding agent. [OpenCode](https://opencode.ai) is an open-source terminal coding agent. Project skills use the vendor-neutral `.agents/skills` convention; global skills live under `~/.config/opencode/skills`. ## Paths | Resource | Path | | ---------------------- | -------------------------------------------------------------------- | | Project skills | `.agents/skills` (generic fallback) | | Global skills | `~/.config/opencode/skills` | | MCP config | `~/.config/opencode/config.json` | | Audit search (project) | `.agents/skills`, `.github/skills`, `.claude/skills` | | Audit search (global) | `~/.config/opencode/skills`, `~/.agents/skills`, `~/.copilot/skills` | ## Skills example ```yaml gaal.yaml theme={"theme":"nord"} skills: - source: anthropics/skills agents: [opencode] global: true ``` ## MCP example ```yaml gaal.yaml theme={"theme":"nord"} mcps: - name: filesystem agents: [opencode] global: true inline: command: uvx args: [mcp-server-filesystem, ~/projects] ``` ## Related # OpenHands Source: https://docs.getgaal.com/agents/openhands Open-source autonomous AI software engineer. [OpenHands](https://github.com/All-Hands-AI/OpenHands) is an open-source autonomous coding agent. Skills live under `.openhands/skills`; MCP config lives under `~/.openhands/config.json`. ## Paths | Resource | Path | | ---------------------- | ------------------------------------------------------- | | Project skills | `.openhands/skills` | | Global skills | `~/.openhands/skills` | | MCP config | `~/.openhands/config.json` | | Audit search (project) | `.openhands/skills`, `.agents/skills`, `.github/skills` | | Audit search (global) | `~/.openhands/skills`, `~/.agents/skills` | ## Skills example ```yaml gaal.yaml theme={"theme":"nord"} skills: - source: anthropics/skills agents: [openhands] global: false ``` ## MCP example ```yaml gaal.yaml theme={"theme":"nord"} mcps: - name: filesystem agents: [openhands] global: true inline: command: uvx args: [mcp-server-filesystem, ~/projects] ``` ## Related # Agent integrations Source: https://docs.getgaal.com/agents/overview Every coding agent gaal supports out of the box. gaal ships with a built-in registry of supported coding agents plus a vendor-neutral `generic` fallback. For each one, the registry knows where skills live and where to upsert MCP server entries. That's what makes `agents: ["*"]` in your `gaal.yaml` work. ## Supported agents ## Quick lookup | Agent | Project skills | Global skills | MCP config | | -------------- | -------------------------- | ------------------------------ | ---------------------------------------- | | Claude Code | `.claude/skills` | `~/.claude/skills` | `~/.claude.json` | | Cursor | `.agents/skills` (generic) | `~/.cursor/skills` | `~/.cursor/mcp.json` | | Codex | `.agents/skills` (generic) | `~/.codex/skills` | `~/.codex/config.toml` | | GitHub Copilot | `.github/skills` | `~/.copilot/skills` | `~/.vscode/settings.json` | | Windsurf | `.windsurf/skills` | `~/.codeium/windsurf/skills` | `~/.codeium/windsurf/mcp_settings.json` | | Continue | `.continue/skills` | `~/.continue/skills` | `~/.continue/config.json` | | Gemini CLI | `.agents/skills` (generic) | `~/.gemini/skills` | `~/.gemini/settings.json` | | Goose | `.goose/skills` | `~/.config/goose/skills` | `~/.config/goose/config.yaml` | | Cline | `.agents/skills` (generic) | `~/.agents/skills` (generic) | `~/.vscode/settings.json` | | Roo | `.roo/skills` | `~/.roo/skills` | `~/.vscode/settings.json` | | Augment | `.augment/skills` | `~/.augment/skills` | `~/.augment/settings.json` | | OpenCode | `.agents/skills` (generic) | `~/.config/opencode/skills` | `~/.config/opencode/config.json` | | OpenHands | `.openhands/skills` | `~/.openhands/skills` | `~/.openhands/config.json` | | Trae | `.trae/skills` | `~/.trae/skills` | `~/.trae/mcp.json` | | Kilo | `.kilocode/skills` | `~/.kilocode/skills` | `~/.kilocode/mcp.json` | | Kiro CLI | `.kiro/skills` | `~/.kiro/skills` | `~/.kiro/settings/mcp.json` | | Amp | `.agents/skills` (generic) | `~/.config/agents/skills` | `~/.config/amp/settings.json` | | Zencoder | `.zencoder/skills` | `~/.zencoder/skills` | `~/.zencoder/mcp.json` | | Antigravity | `.agents/skills` (generic) | `~/.gemini/antigravity/skills` | , (no MCP) | | Warp | `.agents/skills` (generic) | `~/.agents/skills` (generic) | `~/.warp/launch_configurations/mcp.json` | | Generic | `.agents/skills` | `~/.agents/skills` | , (no MCP) | `(generic)` means the agent shares the vendor-neutral `.agents/skills` or `~/.agents/skills` directory rather than maintaining its own. See [Concepts → Agents & renderers](/concepts/agents-and-renderers). ## Listing what's installed on this machine ```bash theme={"theme":"nord"} gaal agents # all registered agents gaal agents --installed # only those gaal detects on this machine gaal agents claude-code # detailed view for one agent gaal agents -o json # machine-readable ``` ## Adding a new agent Use [Custom agents](/configure/custom-agents) to teach gaal about an agent it doesn't ship with yet. If the agent is publicly available, please open a PR at [github.com/getgaal/gaal](https://github.com/getgaal/gaal) so everyone gets it. # Roo Source: https://docs.getgaal.com/agents/roo AI coding assistant for VS Code. [Roo Code](https://roocode.com) is an AI assistant for VS Code. Skills live under `.roo/skills`; MCP config lives in VS Code's `settings.json`. ## Paths | Resource | Path | | ---------------------- | ------------------------------------------------------------------- | | Project skills | `.roo/skills` | | Global skills | `~/.roo/skills` | | MCP config | `~/.vscode/settings.json` | | Audit search (project) | `.roo/skills`, `.agents/skills`, `.github/skills`, `.claude/skills` | | Audit search (global) | `~/.roo/skills`, `~/.agents/skills`, `~/.copilot/skills` | ## Skills example ```yaml gaal.yaml theme={"theme":"nord"} skills: - source: anthropics/skills agents: [roo] global: false ``` ## MCP example ```yaml gaal.yaml theme={"theme":"nord"} mcps: - name: filesystem agents: [roo] global: true inline: command: uvx args: [mcp-server-filesystem, ~/projects] ``` ## Related # Trae Source: https://docs.getgaal.com/agents/trae Adaptive AI IDE by ByteDance. [Trae](https://trae.ai) is an adaptive AI IDE. Skills live under `.trae/skills`; MCP config lives under `~/.trae/mcp.json`. ## Paths | Resource | Path | | ---------------------- | -------------------------------------------------------------------- | | Project skills | `.trae/skills` | | Global skills | `~/.trae/skills` | | MCP config | `~/.trae/mcp.json` | | Audit search (project) | `.trae/skills`, `.agents/skills`, `.github/skills`, `.claude/skills` | | Audit search (global) | `~/.trae/skills`, `~/.agents/skills`, `~/.copilot/skills` | | Package-manager search | `~/.trae/extensions` | ## Skills example ```yaml gaal.yaml theme={"theme":"nord"} skills: - source: anthropics/skills agents: [trae] global: false ``` ## MCP example ```yaml gaal.yaml theme={"theme":"nord"} mcps: - name: filesystem agents: [trae] global: true inline: command: uvx args: [mcp-server-filesystem, ~/projects] ``` ## Related # Warp Source: https://docs.getgaal.com/agents/warp AI-first terminal. [Warp](https://warp.dev) is an AI-first terminal. Both project and global skills use the vendor-neutral `.agents/skills` and `~/.agents/skills` conventions; MCP config lives under `~/.warp/launch_configurations/mcp.json`. ## Paths | Resource | Path | | ---------------------- | --------------------------------------------------------- | | Project skills | `.agents/skills` (generic fallback) | | Global skills | `~/.agents/skills` (generic fallback) | | MCP config | `~/.warp/launch_configurations/mcp.json` | | Audit search (project) | `.agents/skills`, `.github/skills`, `.claude/skills` | | Audit search (global) | `~/.agents/skills`, `~/.warp/skills`, `~/.copilot/skills` | ## Skills example ```yaml gaal.yaml theme={"theme":"nord"} skills: - source: anthropics/skills agents: [warp] global: true # → ~/.agents/skills (shared) ``` ## MCP example ```yaml gaal.yaml theme={"theme":"nord"} mcps: - name: filesystem agents: [warp] global: true inline: command: uvx args: [mcp-server-filesystem, ~/projects] ``` ## Related # Windsurf Source: https://docs.getgaal.com/agents/windsurf Codeium's AI-first IDE. [Windsurf](https://windsurf.com) (by Codeium) reads skills from `.windsurf/skills` and MCP config from `~/.codeium/windsurf/mcp_settings.json`. ## Paths | Resource | Path | | ---------------------- | ------------------------------------------------------------------------ | | Project skills | `.windsurf/skills` | | Global skills | `~/.codeium/windsurf/skills` | | MCP config | `~/.codeium/windsurf/mcp_settings.json` | | Audit search (project) | `.windsurf/skills`, `.agents/skills`, `.github/skills`, `.claude/skills` | | Audit search (global) | `~/.codeium/windsurf/skills`, `~/.agents/skills`, `~/.copilot/skills` | | Package-manager search | `~/.windsurf/extensions` | ## Skills example ```yaml gaal.yaml theme={"theme":"nord"} skills: - source: anthropics/skills agents: [windsurf] select: [frontend-design] ``` ## MCP example ```yaml gaal.yaml theme={"theme":"nord"} mcps: - name: filesystem agents: [windsurf] global: true inline: command: uvx args: [mcp-server-filesystem, ~/projects] ``` ## Related # Zencoder Source: https://docs.getgaal.com/agents/zencoder Zencoder AI coding agent. [Zencoder](https://zencoder.ai) is an AI coding agent. Skills live under `.zencoder/skills`; MCP config lives under `~/.zencoder/mcp.json`. ## Paths | Resource | Path | | ---------------------- | ------------------------------------------------------------------------ | | Project skills | `.zencoder/skills` | | Global skills | `~/.zencoder/skills` | | MCP config | `~/.zencoder/mcp.json` | | Audit search (project) | `.zencoder/skills`, `.agents/skills`, `.github/skills`, `.claude/skills` | | Audit search (global) | `~/.zencoder/skills`, `~/.agents/skills`, `~/.copilot/skills` | ## Skills example ```yaml gaal.yaml theme={"theme":"nord"} skills: - source: anthropics/skills agents: [zencoder] global: false ``` ## MCP example ```yaml gaal.yaml theme={"theme":"nord"} mcps: - name: filesystem agents: [zencoder] global: true inline: command: uvx args: [mcp-server-filesystem, ~/projects] ``` ## Related # gaal agents Source: https://docs.getgaal.com/cli/agents List registered coding agents and detection status. ```bash theme={"theme":"nord"} gaal agents [name] [flags] ``` Lists every coding agent in the registry (built-in plus any custom entries). With a name, prints a detailed view for that agent. ## Flags | Flag | Default | Description | | ------------------- | ------- | ------------------------------------------ | | `-i`, `--installed` | off | Show only agents detected on this machine. | Plus all [global flags](/cli/overview#global-flags). ## Sample output ```text theme={"theme":"nord"} $ gaal agents NAME INSTALLED PROJECT_SKILLS GLOBAL_SKILLS MCP_CONFIG claude-code yes .claude/skills ~/.claude/skills ~/.claude.json cursor yes .agents/skills ~/.cursor/skills ~/.cursor/mcp.json codex yes .agents/skills ~/.codex/skills ~/.codex/config.toml github-copilot no .github/skills ~/.copilot/skills ~/.vscode/settings.json windsurf no .windsurf/skills ~/.codeium/windsurf/skills ~/.codeium/windsurf/mcp_settings.json … ``` Installed agents are listed first. ## Detailed view ```text theme={"theme":"nord"} $ gaal agents claude-code claude-code (installed) source: built-in project skills: .claude/skills global skills: ~/.claude/skills mcp config: ~/.claude.json (exists) audit search (project): .claude/skills, .agents/skills, .github/skills audit search (global): ~/.claude/skills, ~/.agents/skills, ~/.copilot/skills package-manager search: ~/.claude/plugins/cache ``` ## JSON output ```bash theme={"theme":"nord"} gaal agents -o json ``` Returns the registry as structured JSON, suitable for scripting or feeding a CI step. ## Related # gaal audit Source: https://docs.getgaal.com/cli/audit Read-only scan of skills and MCP entries already on this machine. ```bash theme={"theme":"nord"} gaal audit [flags] ``` Scans the filesystem for skills and MCP server entries that already exist, without writing anything. The output is the input `gaal init --import-all` uses to build a `gaal.yaml`, so running `audit` first is a great way to preview what an import would capture. ## What it scans For each agent in the registry: * **Project skill directories**, relative paths configured in the registry (e.g. `.claude/skills`, `.agents/skills`, `.github/skills`). * **Global skill directories**, home-relative paths (e.g. `~/.claude/skills`, `~/.cursor/skills`). * **Package-manager paths**, vendor-specific extension directories (e.g. `~/.cursor/extensions`, `~/.claude/plugins/cache`). * **MCP config files**, every target file the agent uses. ## Flags Only the [global flags](/cli/overview#global-flags). `-o json` is useful for scripting. ## Sample output ```text theme={"theme":"nord"} $ gaal audit discovered: skills (project) .claude/skills/code-review (claude-code) .cursor/skills/test-writer (cursor) skills (global) ~/.claude/skills/git-helper (claude-code) ~/.cursor/skills/refactor (cursor) skills (package manager) ~/.claude/plugins/cache/extra-skill (claude-code) mcps ~/.claude.json filesystem, git, github ~/.cursor/mcp.json filesystem ``` ## JSON output ```bash theme={"theme":"nord"} gaal audit -o json ``` Returns the discovered skills and MCP entries as structured JSON. ## What audit does NOT do * It doesn't write to `gaal.yaml`. Use `gaal init --import-all` for that. * It doesn't reach the network. All discovery is filesystem-only. * It doesn't read the contents of `SKILL.md` files, it only confirms the directory exists. ## Related # gaal completion Source: https://docs.getgaal.com/cli/completion Generate shell completion scripts for bash, zsh, fish, and PowerShell. ```bash theme={"theme":"nord"} gaal completion ``` Prints a completion script for the requested shell to stdout. Source it into your current session, or write it to your shell's completion directory for a permanent install. ## Bash **Current session:** ```bash theme={"theme":"nord"} source <(gaal completion bash) ``` **Permanent (add to `~/.bashrc`):** ```bash theme={"theme":"nord"} gaal completion bash > ~/.local/share/bash-completion/completions/gaal ``` ## Zsh **Current session:** ```zsh theme={"theme":"nord"} source <(gaal completion zsh) ``` **Permanent:** ```zsh theme={"theme":"nord"} gaal completion zsh > "${fpath[1]}/_gaal" ``` If your `${fpath[1]}` isn't writable, pick another writable directory on your `fpath` and place the file there. ## Fish **Current session:** ```fish theme={"theme":"nord"} gaal completion fish | source ``` **Permanent:** ```fish theme={"theme":"nord"} gaal completion fish > ~/.config/fish/completions/gaal.fish ``` ## PowerShell ```powershell theme={"theme":"nord"} gaal completion powershell | Out-String | Invoke-Expression ``` To make it permanent, add the line to your PowerShell `$PROFILE`. ## Verifying After installing, open a new shell and start typing `gaal s`, you should see `status sync` come up. If completion doesn't fire, your shell may need a restart, or your completion directory may not be on the lookup path. ## Related # gaal doctor Source: https://docs.getgaal.com/cli/doctor Health check on configuration, sources, targets, and agents. ```bash theme={"theme":"nord"} gaal doctor [flags] ``` Validates `gaal.yaml`, checks that every source is reachable, verifies every MCP target is writable, confirms any declared `tools:` are on `PATH`, and reports agent and telemetry status. Run it any time gaal is misbehaving, and as a CI gate. ## Flags | Flag | Default | Description | | ------------- | ------- | -------------------------------------------------- | | `--offline` | off | Skip network reachability checks. | | `--no-upsell` | off | Suppress the Community Edition graduation message. | Plus all [global flags](/cli/overview#global-flags). ## Exit codes | Code | Meaning | | ---- | ------------------------------------------ | | `0` | All checks passed. | | `1` | Warnings only, gaal will function. | | `2` | Errors, gaal cannot operate as configured. | ```bash theme={"theme":"nord"} gaal doctor && echo "ready to sync" ``` ## Sample output ```text theme={"theme":"nord"} $ gaal doctor config: ✓ ./gaal.yaml parses against schema 1 ✓ no scope-restricted fields in workspace sources: ✓ anthropics/skills reachable ✓ vercel-labs/agent-skills reachable mcps: ✓ ~/.claude.json writable ✓ ~/.cursor/mcp.json writable tools: ✓ gh (on PATH: /opt/homebrew/bin/gh) ! rtk — missing from PATH (required by: workspace; hint: cargo install rtk) agents: installed: claude-code, cursor, codex not installed: github-copilot, windsurf telemetry: ✓ disabled (per ~/.config/gaal/config.yaml) 3 agents installed, 0 misconfigured ``` ## CI usage ```yaml theme={"theme":"nord"} - run: gaal doctor --offline - run: gaal --sandbox "$RUNNER_TEMP/gaal-sb" sync --dry-run - run: gaal --sandbox "$RUNNER_TEMP/gaal-sb" sync ``` `--offline` is essential in air-gapped or rate-limited CI environments. ## Related # gaal info Source: https://docs.getgaal.com/cli/info Detailed view of a single repo, skill, MCP, or agent. ```bash theme={"theme":"nord"} gaal info [name] ``` Prints a full information card for every entry of the given type, combining the configuration spec with the current runtime state. With a name (or substring), filters to matching entries. ## Types | Type | Shows | | ------- | -------------------------------------------------------------------------------------------------------------- | | `repo` | URL, type, configured version vs current HEAD, dirty flag. | | `skill` | Source, target agents, scope, selection filter, per-agent installation tree. | | `mcp` | Server name, target agents and scope, resolved target file(s), inline definition, merge flag, dirty detection. | | `agent` | Supported coding agent, skill directory paths, MCP config path, built-in vs custom. | ## Filter argument The optional second argument is a case-insensitive substring match against the entry name or source. ```bash theme={"theme":"nord"} gaal info skill # every skill entry gaal info skill vercel-labs/agent-skills # skills sourced from this repo gaal info repo workspace/myrepo gaal info mcp claude # MCP entries whose name matches "claude" gaal info agent # all registered agents gaal info agent cursor ``` ## Sample output ```text theme={"theme":"nord"} $ gaal info skill frontend-design skill: frontend-design source: anthropics/skills selection: select [frontend-design, skill-creator] scope: project agents: claude-code, cursor installed at: .claude/skills/frontend-design/ (3 files, fresh) .cursor/skills/frontend-design/ (3 files, fresh) ``` ```text theme={"theme":"nord"} $ gaal info mcp filesystem mcp: filesystem agents: [claude-code, cursor] scope: global resolved targets: claude-code → ~/.claude.json cursor → ~/.cursor/mcp.json inline: command: uvx args: [mcp-server-filesystem, ~/projects] state: upserted, hash matches config (both targets) ``` ## JSON output `gaal info -o json` returns the same data as a structured object, suitable for piping into `jq` or feeding into automation. ## Related # gaal init Source: https://docs.getgaal.com/cli/init Bootstrap a gaal.yaml interactively or from flags. ```bash theme={"theme":"nord"} gaal init [flags] ``` Creates a new `gaal.yaml`. Interactively asks how to populate it (import detected skills/MCPs, or start from a documented empty skeleton) and which scope to write to. ## Flags | Flag | Default | Description | | --------------------------- | -------- | ----------------------------------------------------- | | `-f`, `--force` | off | Overwrite an existing config file. | | `--scope ` | (prompt) | Pre-select the scope without prompting. | | `--import-all` | off | Non-interactive: import every detected skill and MCP. | | `--empty` | off | Non-interactive: write the documented empty skeleton. | `--empty` and `--import-all` are mutually exclusive. When stdin is not a TTY, exactly one of them must be set. ## Behaviour * **With a TTY and no flags**, runs the interactive wizard. * **Without a TTY**, requires either `--empty` or `--import-all`, plus `--scope`. ## Scopes | Scope | Output path | | --------- | --------------------------------------------------------------------- | | `project` | `./gaal.yaml` | | `global` | `~/.config/gaal/config.yaml` (or `$XDG_CONFIG_HOME/gaal/config.yaml`) | ## Examples ```bash theme={"theme":"nord"} # Interactive, the most common case gaal init # Empty annotated skeleton, project scope gaal init --empty --scope project # Import everything detected, global scope gaal init --import-all --scope global # Overwrite existing file with an import gaal init --import-all --scope project --force ``` ## Sample interactive session ```text theme={"theme":"nord"} $ gaal init ? How should we create your gaal.yaml? ▸ Import everything detected on this machine Start from an empty documented skeleton ? Where should this configuration apply? ▸ Project (./gaal.yaml) Global (~/.config/gaal/config.yaml) ? Select skills to import (Space to toggle, Enter to confirm) [x] code-review (claude-code, project) [x] test-writer (cursor, project) [x] git-helper (claude-code, global) ? Select MCP servers to import [x] filesystem → ~/.claude.json [x] git → ~/.claude.json ✓ wrote ./gaal.yaml (12 skills, 2 mcps) ``` ## Related # gaal migrate Source: https://docs.getgaal.com/cli/migrate Validate and prepare configuration for Community Edition. ```bash theme={"theme":"nord"} gaal migrate --to community [flags] ``` Validates the local configuration and confirms it is ready to push to a gaal Community Edition instance. Today, Community Edition is not publicly available, running this command validates your YAML and prints what *would* be migrated. ## Flags | Flag | Description | | --------------- | ------------------------------------------------------------------------ | | `--to ` | Migration target. Currently only `community` is supported. **Required.** | | `--dry-run` | Validate everything but do not perform the migration. | | `--yes` | Skip the interactive confirmation prompt. | Plus all [global flags](/cli/overview#global-flags). ## Examples ```bash theme={"theme":"nord"} gaal migrate --to community https://community.example.com gaal migrate --to community https://community.example.com --dry-run gaal migrate --to community https://community.example.com --yes ``` ## Today's behaviour Running `gaal migrate` against the current release validates your configuration end-to-end and prints a short notice: ```text theme={"theme":"nord"} gaal Community Edition is not yet available. Your configuration is valid and ready to migrate when Community ships. Join the announcement list: https://getgaal.com ``` Use this command now to confirm your config is migration-ready. When Community ships, the same command will perform the actual push. ## What migration covers When Community ships, `gaal migrate` will package and upload: * Every `repositories[]` entry. * Every `skills[]` entry, with its source pin and agent targeting. * Every `mcps[]` entry, with its target and definition. Local-only concerns (telemetry, scope-restricted fields, hand-merged MCP entries you didn't author) are not migrated. ## Related # CLI overview Source: https://docs.getgaal.com/cli/overview Global flags and a one-line summary of every command. Every gaal invocation starts with `gaal`. Global flags can sit before or after the subcommand. ## Global flags These work with every command: | Flag | Default | Description | | ----------------------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `-c`, `--config ` | `gaal.yaml` | Path to the configuration file. | | `-v`, `--verbose` | off | Enable debug logging. | | `--no-banner` | off | Suppress the ASCII-art banner. | | `--sandbox ` | unset | Redirect every write to this directory. See [Sandbox mode](/workflows/sandbox-mode). | | `--log-file ` | unset | Write structured JSON logs to this file (in addition to console). | | `-o`, `--output ` | `text` | Output format: `text`, `table`, or `json`. `text` is the default human- and pipe-friendly layout; `table` renders boxed pterm tables; `json` emits structured data and suppresses the banner automatically. | ## Commands | Command | Purpose | | ------------------------------------ | ---------------------------------------------------------------- | | [`gaal skill`](/cli/skill) | Search registry skills and add them to `gaal.yaml`. | | [`gaal sync`](/cli/sync) | Reconcile every resource in `gaal.yaml` against the filesystem. | | [`gaal status`](/cli/status) | Print the current state of every repo, skill, and MCP entry. | | [`gaal agents`](/cli/agents) | List registered coding agents and detection status. | | [`gaal info`](/cli/info) | Detailed view of a single repo, skill, MCP, or agent. | | [`gaal init`](/cli/init) | Bootstrap a `gaal.yaml` interactively or from flags. | | [`gaal audit`](/cli/audit) | Read-only scan of skills and MCP entries already on the machine. | | [`gaal doctor`](/cli/doctor) | Health check on configuration, sources, targets, and agents. | | [`gaal migrate`](/cli/migrate) | Validate and prepare configuration for Community Edition. | | [`gaal schema`](/cli/schema) | Print or write the JSON Schema for `gaal.yaml`. | | [`gaal version`](/cli/version) | Print version and build time. | | [`gaal completion`](/cli/completion) | Generate shell completion scripts. | ## Exit codes Most commands follow this convention: | Code | Meaning | | ---- | ------------------------------------------------------------------------------------------ | | `0` | Success, nothing to do, or work completed cleanly. | | `1` | Warning, work completed but with non-fatal issues, or `--dry-run` reports pending changes. | | `2` | Error, operation failed. | Per-command exit-code semantics are documented on each command's page. ## Examples ```bash theme={"theme":"nord"} # Use a config in /etc rather than the default gaal --config /etc/gaal/team.yaml sync # Verbose JSON output gaal --verbose -o json status # Search the default skill registry gaal skill search frontend # Sync everything into a sandbox gaal --sandbox /tmp/gaal-test sync # Service mode with logging gaal --log-file /var/log/gaal.json sync --service --interval 5m ``` # gaal schema Source: https://docs.getgaal.com/cli/schema Print or write the JSON Schema for gaal.yaml. ```bash theme={"theme":"nord"} gaal schema [flags] ``` Prints (or writes to a file) the JSON Schema (draft 2020-12) that describes every field of a valid `gaal.yaml`. Use it for IDE auto-completion, inline validation, and for feeding to LLMs that need the structure. ## Flags | Flag | Default | Description | | --------------------- | ------- | --------------------------------------------- | | `-f`, `--file ` | stdout | Write the schema to a file instead of stdout. | Plus all [global flags](/cli/overview#global-flags). ## Examples ```bash theme={"theme":"nord"} # Print to stdout gaal schema # Write to a file gaal schema -f schema.json # Pipe straight into a downstream tool gaal schema | jq '.properties.repositories' ``` ## VS Code integration The gaal repository ships a workspace `settings.json` that maps `schema.json` to every `*.gaal.yaml` file. Run `gaal schema -f schema.json` once and YAML auto-completion + inline validation light up automatically. For a standalone project, add this to `.vscode/settings.json`: ```json theme={"theme":"nord"} { "yaml.schemas": { "schema.json": ["gaal.yaml", "*.gaal.yaml"] } } ``` (Requires the [YAML extension by Red Hat](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml).) ## JetBrains (GoLand / IntelliJ / PyCharm) integration 1. Open Settings → **Languages & Frameworks → Schemas and DTDs → JSON Schema Mappings**. 2. Click **+** and add `schema.json` (or the URL where you host it). 3. Set the file pattern to `gaal.yaml` (and any other patterns you use). ## Programmatic validation The schema is the source of truth for what `gaal sync` accepts. Use it in your own validators, CI checks, or LLM JSON-mode prompts: ```bash theme={"theme":"nord"} gaal schema -f /tmp/gaal.schema.json ajv validate -s /tmp/gaal.schema.json -d gaal.yaml ``` ## Related # gaal skill Source: https://docs.getgaal.com/cli/skill Search registry skills and add them to gaal.yaml. ```bash theme={"theme":"nord"} gaal skill [flags] ``` `gaal skill` is the registry entry point. Use it to find skills in a registry, add selected skills to a `gaal.yaml`, and optionally run the normal sync immediately. The default registry is `skills.sh`. For the `skills.sh` registry, gaal uses the official skills.sh CLI surface through `npx skills find`. Make sure `npx` is available on `PATH`. No `VERCEL_OIDC_TOKEN` or skills.sh API auth is required for gaal's v1 registry workflow. ## Commands | Command | Purpose | | --------------------------- | ------------------------------------------------ | | `gaal skill search ` | Search a registry for matching skills. | | `gaal skill install ` | Add a registry skill to `gaal.yaml` and sync it. | ## Search ```bash theme={"theme":"nord"} gaal skill search [flags] ``` Search does not require a `gaal.yaml`. For the `skills.sh` registry, gaal discovers matches through `npx skills find ` and prints the results in the selected output format. ### Search flags | Flag | Default | Description | | ------------------- | ----------- | --------------------------------------------------------- | | `--registry ` | `skills.sh` | Registry to search. | | `--limit ` | `10` | Maximum number of results. Must be between `1` and `100`. | Plus all [global flags](/cli/overview#global-flags). Use `-o table` or `-o text` for a compact table, or `-o json` for structured fields. ### Search examples ```bash theme={"theme":"nord"} # Search the default registry gaal skill search frontend # Search more results gaal skill search review --limit 25 # Script against structured output gaal skill search frontend -o json ``` ## Install ```bash theme={"theme":"nord"} gaal skill install [flags] ``` Install resolves a registry reference through the same discovery path, writes or updates the selected `gaal.yaml`, and runs `gaal sync` by default. gaal does not delegate the final install side effect to `npx skills add`. The source of truth remains `gaal.yaml`; registry lookup only helps gaal choose the normal `skills:` entry to write. When the config file does not exist, install creates a compact minimal file: ```yaml gaal.yaml theme={"theme":"nord"} schema: 1 repositories: {} skills: - source: anthropics/skills registry: skills.sh select: - frontend-design agents: ["*"] global: true mcps: [] ``` ### Accepted references All of these refer to the same skill: ```text theme={"theme":"nord"} frontend-design skills.sh/frontend-design anthropics/skills:frontend-design skills.sh/anthropics/skills:frontend-design ``` Loose names, such as `frontend-design`, can match more than one registry result. In an interactive terminal, gaal shows a picker. In a non-interactive shell, gaal prints the choices and exits non-zero. `--yes` skips confirmation, but it does not choose among ambiguous results. ### Install flags | Flag | Default | Description | | ------------------- | ----------- | ----------------------------------------------------------------------------------------- | | `--registry ` | `skills.sh` | Registry to resolve refs against. | | `--agents ` | `*` | Agents to target. When omitted, install writes `agents: ["*"]` explicitly. | | `--global` | on | Install globally across projects. Mutually exclusive with `--project`. | | `--project` | off | Write `global: false` for project-local installation. Mutually exclusive with `--global`. | | `--no-sync` | off | Update YAML only. Do not run sync after writing. | | `--yes` | off | Skip the final confirmation. Required before mutation in non-interactive shells. | Plus all [global flags](/cli/overview#global-flags), including `--config`. ### Install behavior * Install defaults to global scope and writes `global: true`. * `--project` writes `global: false`. * `--config` selects which config file to create or update. * The registry is stored as `registry:` on the skill entry for provenance. * `gaal sync` remains source-based. It fetches the `source:` value; `registry:` records where the entry came from. * For the `skills.sh` registry, discovery uses `npx skills find`; final installation still happens through gaal sync. * gaal does not require `VERCEL_OIDC_TOKEN` or skills.sh API auth for this workflow. * Registry-backed entries do not collapse with legacy entries that lack `registry:`. * Omitted `agents` and `agents: ["*"]` are distinct for registry installs. The install command writes `agents: ["*"]` when you use the default. * If an existing matching entry has no `select:`, the requested skill is already covered because empty or omitted `select:` means install every skill in the source. ### Install examples ```bash theme={"theme":"nord"} # Install globally for every detected agent, then sync gaal skill install frontend-design # Install for Claude Code and Codex only gaal skill install frontend-design --agents claude-code,codex # Update the project config without syncing yet gaal skill install anthropics/skills:frontend-design --project --no-sync # Non-interactive install into a specific config gaal --config ~/.config/gaal/config.yaml skill install skills.sh/frontend-design --yes ``` ## Related # gaal status Source: https://docs.getgaal.com/cli/status Print the current state of every repo, skill, and MCP entry. ```bash theme={"theme":"nord"} gaal status [flags] ``` Reports the actual state of every resource managed by `gaal.yaml`, what's on disk, what version, where it lives. `status` writes nothing. ## Flags Only the [global flags](/cli/overview#global-flags). The `-o json` flag is most useful here for scripting. ## Sample output ```text theme={"theme":"nord"} $ gaal status repositories src/gaal git · main · clean src/anthropics-skills git · v1.4.0 · clean skills frontend-design claude-code, cursor (project) skill-creator claude-code (project) git-helper claude-code (global) mcps filesystem ~/.claude.json github ~/.claude.json filesystem ~/.cursor/mcp.json ``` Use `-o table` for a boxed pterm layout with coloured status cells, or `-o json` for structured data. ## Sample output (JSON) ```bash theme={"theme":"nord"} gaal status -o json ``` ```json theme={"theme":"nord"} { "repositories": [ { "path": "src/gaal", "type": "git", "version": "main", "dirty": false } ], "skills": [ { "name": "frontend-design", "agents": ["claude-code", "cursor"], "scope": "project" } ], "mcps": [ { "name": "filesystem", "target": "~/.claude.json" } ] } ``` ## Related # gaal sync Source: https://docs.getgaal.com/cli/sync Reconcile every resource in gaal.yaml against the filesystem. ```bash theme={"theme":"nord"} gaal sync [flags] ``` `sync` is the workhorse. It runs the audit, computes the plan, and applies it: clones or updates repositories, installs or refreshes skills, copies configured content, runs hooks, and upserts MCP entries. ## Flags | Flag | Default | Description | | ----------------------------- | ------- | -------------------------------------------------------------------------------------------------- | | `-s`, `--service` | off | Run as a continuous service (daemon mode). | | `-i`, `--interval ` | `5m` | Polling interval in service mode (e.g. `30s`, `10m`, `2h`). | | `--dry-run` | off | Preview the plan without writing anything. See [Dry-run](/workflows/dry-run). | | `--prune` | off | Remove skills and MCP entries no longer in the config. See [Pruning](/workflows/pruning). | | `--force` | off | Install skills into all registered agents even when not detected. Applies only to `agents: ["*"]`. | Plus all [global flags](/cli/overview#global-flags). ## Incompatible combinations | Combo | Result | | --------------------- | -------------------------------------------------------- | | `--dry-run --service` | Rejected, a dry-run service loop is meaningless. | | `--prune --service` | Rejected, destructive operations don't belong in a loop. | ## Exit codes | Code | Mode | Meaning | | ---- | ----------- | -------------------------------------------------- | | `0` | one-shot | Success, nothing to change or all changes applied. | | `0` | `--dry-run` | No changes pending. | | `1` | `--dry-run` | Changes are pending, run `gaal sync` to apply. | | `2` | any | Error during planning or apply. | ## Examples ```bash theme={"theme":"nord"} # One-shot sync gaal sync # Preview, no writes gaal sync --dry-run # Continuous loop, every 10 minutes gaal sync --service --interval 10m # Clean up orphans gaal sync --prune # Pre-stage a fresh machine, install for every registered agent gaal sync --force # Sandboxed sync (no risk to real files) gaal --sandbox /tmp/sb sync # Sync with structured logs gaal --log-file /var/log/gaal.json sync --service --interval 5m ``` ## Sample output ```text theme={"theme":"nord"} $ gaal sync ✓ src/example cloned ✓ code-review installed in claude-code, cursor ✓ filesystem upserted in ~/.claude.json sync complete in 1.2s ``` ## Missing tool banner If any entry in [`tools:`](/schema/tools) is missing from `PATH`, sync prints a single compact banner to stderr before it starts work, then proceeds: ```text theme={"theme":"nord"} ⚠ Required tools missing from PATH: rtk — cargo install rtk tree-sitter — (required by skill obra/superpowers) Run `gaal doctor` for details. ``` Each line shows the `hint` when one is set; otherwise it shows the source that declared the tool. Missing tools never change sync's exit code — run [`gaal doctor`](/cli/doctor) for the full attribution and a non-zero exit code. ## Related # gaal version Source: https://docs.getgaal.com/cli/version Print the gaal version and build time. ```bash theme={"theme":"nord"} gaal version ``` Prints the gaal binary version and its build timestamp. ## Sample output ```text theme={"theme":"nord"} $ gaal version gaal v0.3.0 built 2026-04-18T09:00:00Z ``` When opening a bug report, paste this output along with `gaal doctor -o json`. ## JSON output ```bash theme={"theme":"nord"} $ gaal version -o json { "version": "v0.3.0", "built": "2026-04-18T09:00:00Z" } ``` ## Related # Agents & renderers Source: https://docs.getgaal.com/concepts/agents-and-renderers How gaal knows where each coding agent's files live. Each supported agent has its own opinion about where skills go and how MCP config is stored. gaal abstracts those differences behind a small **agent registry** and a per-agent **renderer**. ## The registry gaal ships with a built-in registry that records, for every supported agent: * **Project skills directory**, where skills live inside a project (e.g. `.claude/skills`, `.cursor/skills`). * **Global skills directory**, where skills live in the user's home (e.g. `~/.claude/skills`). * **MCP config file**, the JSON, TOML, or YAML file gaal upserts into (e.g. `~/.claude.json`). * **Skills search paths**, additional directories `gaal audit` scans when discovering existing skills. * **Package-manager search paths**, vendor-specific directories (`~/.cursor/extensions`, `~/.claude/plugins/cache`) where extension-installed skills may live. You can list what's in the registry at any time: ```bash theme={"theme":"nord"} $ gaal agents NAME INSTALLED PROJECT_SKILLS GLOBAL_SKILLS MCP_CONFIG claude-code yes .claude/skills ~/.claude/skills ~/.claude.json cursor yes .agents/skills ~/.cursor/skills ~/.cursor/mcp.json codex yes .agents/skills ~/.codex/skills ~/.codex/config.toml github-copilot no .github/skills ~/.copilot/skills ~/.vscode/settings.json … ``` Pass an agent name for a detailed view: `gaal agents cursor`. ## What "installed" means gaal calls an agent **installed** when at least one of these is true on the host: * The agent's MCP config file exists. * The agent's project skills directory exists. * The agent's global skills directory exists. * A package-manager path for the agent exists (e.g. `~/.cursor/extensions`). Agents marked installed are the ones that win when you use the `agents: ["*"]` wildcard in your skills entries. ## Renderers Once gaal knows *what* to install (the plan from `gaal sync`) and *where* (the registry), the per-agent renderer does the actual write: * For skills, the renderer copies the source files into the agent's skills directory and adapts file names if the agent expects a different layout. * For MCP servers, the renderer reads the target JSON, upserts the `mcpServers` entry, and writes the file back atomically. Renderers are responsible for the *guarantees*, they never clobber, they always write atomically, and they fail loudly when the target is malformed. ## The "generic" agent Some agents (Cline, Cursor in default mode, Codex, OpenCode, Warp, …) follow vendor-neutral conventions. Rather than maintaining separate redundant entries, gaal has a built-in `generic` agent that owns: * `./.agents/skills` (project-local) * `~/.agents/skills` (global) Agents flagged `supports_generic_project: true` or `supports_generic_global: true` install through the generic renderer. This means a single `.agents/skills/` directory can serve multiple agents at once. See [Agent integrations](/agents/overview) for which agents use the generic fallback. ## Extending the registry You can teach gaal about an agent it doesn't know yet by writing your own registry file at: | OS | Path | | ------------- | ------------------------------------------------------------------------------ | | Linux / macOS | `$XDG_CONFIG_HOME/gaal/agents.yaml` (defaults to `~/.config/gaal/agents.yaml`) | | Windows | `%AppData%\gaal\agents.yaml` | Custom entries **extend** the built-in list, you can't override a built-in entry. See [Custom agents](/configure/custom-agents) for the schema. ## Related # The gaal.yaml file Source: https://docs.getgaal.com/concepts/gaal-yaml The single declarative file that drives every sync. `gaal.yaml` is the entire user-facing surface of gaal. Everything else, commands, audit, planning, rendering, exists to read this file and reconcile it against your filesystem. ## File location gaal looks for the configuration file in this order: 1. The path passed to `--config`, if any. 2. `gaal.yaml` in the current working directory. 3. `~/.config/gaal/config.yaml` (user scope). 4. `/etc/gaal/config.yaml` (system scope). When multiple are present, the higher-priority file overrides the lower one. See [Scopes](/concepts/scopes) for the merge rules. ## Top-level keys ```yaml gaal.yaml theme={"theme":"nord"} schema: 1 repositories: # local-path: { type, url, version } skills: # - { source, registry, agents, global, target_subdir, select } content: # - { source, agents, global, root, paths } mcps: # - { name, agents, global, source | inline } tools: # - or { name, hint } hooks: # pre-sync: [...] # post-sync: [...] telemetry: false # opt-in, user/system scope only ``` | Key | Type | Required | Purpose | | -------------------------------------- | ------- | ----------- | ------------------------------------------------------------------------------------------ | | [`schema`](/schema/schema-version) | integer | recommended | Config version, always `1` for the current gaal release. Stable forever. | | [`repositories`](/schema/repositories) | map | no | VCS-managed sources cloned into your workspace. | | [`skills`](/schema/skills) | array | no | `SKILL.md` collections to install per agent. | | [`content`](/schema/content) | array | no | Generic file and directory mappings for agent instructions, rules, commands, and settings. | | [`mcps`](/schema/mcps) | array | no | MCP server entries upserted into agent config files. | | [`tools`](/schema/tools) | array | no | CLI tools expected on `PATH`, reported by `gaal doctor`. | | [`hooks`](/schema/hooks) | object | no | Commands that run before and after `gaal sync`. | | [`telemetry`](/schema/telemetry) | bool | no | Opt-in anonymous usage telemetry. Off by default. | Every key is independent. A file with only `skills:` is a valid gaal.yaml and a sync only touches skills. ## A complete example ```yaml gaal.yaml theme={"theme":"nord"} schema: 1 repositories: src/gaal: type: git url: https://github.com/getgaal/gaal.git version: main src/dataset: type: tar url: https://example.com/releases/dataset-2024.tar.gz version: dataset-2024 skills: - source: anthropics/skills registry: skills.sh agents: ["*"] select: [frontend-design, skill-creator] global: true - source: ./company-skills agents: [claude-code, cursor] global: false content: - source: ./agent-files agents: [claude-code] root: workspace paths: AGENTS.md: CLAUDE.md mcps: - name: filesystem agents: [claude-code] global: true inline: command: uvx args: [mcp-server-filesystem, ~/projects] - name: github source: https://example.com/mcp/github.json agents: [claude-code, github-copilot] global: true tools: - gh - name: rtk hint: "cargo install rtk" hooks: post-sync: - command: git args: ["-C", "~/docs", "pull", "--ff-only"] ``` ## Validate before sync Two ways to check a `gaal.yaml` is well-formed: ```bash theme={"theme":"nord"} $ gaal doctor ✓ config: gaal.yaml is valid ``` ```bash theme={"theme":"nord"} $ gaal sync --dry-run plan: ... ``` Both surface schema errors with line numbers. ## IDE auto-completion `gaal schema` writes the JSON Schema for `gaal.yaml`. Drop it into your editor and you get inline validation and completion as you type: ```bash theme={"theme":"nord"} gaal schema -f schema.json ``` See [`gaal schema`](/cli/schema) for VS Code and JetBrains setup. ## Related # MCP servers Source: https://docs.getgaal.com/concepts/mcp-servers Upsert MCP server entries into agent configs without clobbering them. An **MCP server** is a process that speaks the [Model Context Protocol](https://modelcontextprotocol.io). Coding agents that support MCP read a JSON config that lists the servers to launch and how to reach them. gaal manages those entries declaratively: you describe each server once in `gaal.yaml` and gaal upserts it into the right JSON file for every agent that should see it. The destination path is resolved automatically from the [agent registry](/agents/overview) — you no longer have to spell it out. ## The upsert guarantee Every agent's MCP config lives inside a larger config file. Claude Code stores MCP servers in `~/.claude.json`; VS Code-family agents use `~/.vscode/settings.json`; Codex uses `~/.codex/config.toml`. You can't safely overwrite the whole file. gaal reads the target JSON, modifies the `mcpServers` object in place, and writes it back. Other top-level keys are preserved exactly. That's the upsert guarantee: gaal never clobbers a config it didn't author. ## Targeting agents, not paths Each `mcps[]` entry says **which agents** to install the server in, and **which scope** to use. gaal looks up the destination JSON file in the registry. ```yaml theme={"theme":"nord"} mcps: - name: filesystem agents: [claude-code, cursor, codex] # explicit list global: true # write to each agent's user-global MCP config inline: command: uvx args: [mcp-server-filesystem, ~/projects] ``` `["*"]` is a wildcard that resolves at sync time to every registered agent that has a non-empty MCP config for the requested scope. Agents that don't expose an MCP config are skipped silently. ```yaml theme={"theme":"nord"} mcps: - name: git agents: ["*"] global: true inline: command: uvx args: [mcp-server-git, --repository, ~/projects/gaal] ``` ## Scope: `global` vs project | `global` | Where the entry is written | | ----------------- | --------------------------------------------------------------------------------------------------------- | | `true` | The agent's **user-global** MCP config (`global_mcp_config_file` in the registry, e.g. `~/.claude.json`). | | `false` (default) | The agent's **project-scoped** MCP config (`project_mcp_config_file`). | In the current registry every built-in agent stores its MCP entries in a single user-global file. Project-scoped MCP configs are reserved for future agents that adopt them. **Set `global: true` for every entry today** — `global: false` is a no-op for now. ## Two ways to define a server ### Inline The server spec lives directly in `gaal.yaml`. Stdio servers use `command` + `args` + `env`. ```yaml theme={"theme":"nord"} mcps: - name: filesystem agents: [claude-code] global: true inline: command: uvx args: [mcp-server-filesystem, ~/projects] env: FOO: bar ``` ### Remote source For configs maintained elsewhere, point at a URL that returns an `mcpServers` document. gaal downloads the JSON and merges the entry whose key matches `name` into each target. ```yaml theme={"theme":"nord"} mcps: - name: github source: https://raw.githubusercontent.com/github/mcp-servers/main/config.json agents: [claude-code, github-copilot] global: true ``` `source` and `inline` are mutually exclusive. ## HTTP and SSE servers The MCP spec defines two remote transports: Streamable HTTP and the older HTTP+SSE. gaal can write native remote entries for agents that support them. ```yaml theme={"theme":"nord"} mcps: - name: linear agents: [claude-code, cursor] global: true inline: type: http url: https://mcp.linear.app/mcp headers: Authorization: env: LINEAR_API_KEY - name: sentry agents: [claude-code] global: true inline: type: sse url: https://mcp.sentry.dev/sse ``` If an agent does not support native remote MCP entries yet, use a stdio bridge such as [`mcp-remote`](https://www.npmjs.com/package/mcp-remote) under `command` and `args`. ## Behaviour during sync * The target JSON is updated in place; the named entry is added or refreshed under `mcpServers`. * Other top-level keys in the target file are preserved. * Other entries inside `mcpServers` that gaal didn't author are preserved. * Removing an `mcps[]` entry from `gaal.yaml` does **not** remove it from the target file unless you pass `--prune`. * If the target's parent directory is missing, the entry is skipped — gaal never creates an agent's config directory as a side effect. ## Behaviour with `--prune` `gaal sync --prune` removes any `mcpServers` entries from gaal-managed targets that aren't in `gaal.yaml`. It only touches keys gaal could plausibly own; your other settings and other servers stay untouched. See [Pruning](/workflows/pruning) for the exact algorithm. ## Migrating from `target:` Earlier versions required a `target:` path on every entry. The field is **deprecated** but still honoured for backward compatibility — gaal logs a warning when it sees one. Replace it with `agents:` + `global:` so the registry resolves the path. To install in more than one agent, list them all in the same entry instead of duplicating it. ```yaml theme={"theme":"nord"} # Before — explicit path, one entry per agent mcps: - name: filesystem target: ~/.claude.json inline: command: uvx args: [mcp-server-filesystem, ~/projects] # After — one entry, registry-resolved, fan-out via agents: mcps: - name: filesystem agents: [claude-code, cursor] global: true inline: command: uvx args: [mcp-server-filesystem, ~/projects] ``` ## Related # Repositories Source: https://docs.getgaal.com/concepts/repositories Multi-protocol source clones managed by gaal. A **repository** in gaal is any external source, Git remote, Mercurial repo, tarball, zip, that you want present at a known path inside your workspace. gaal owns the contents at that path. ## Why repositories live in gaal.yaml Most coding agents work inside a project, not a single file. Skills and MCP servers often *come from* repositories you'd otherwise clone by hand. By declaring repos in `gaal.yaml` you get: * **Reproducibility**, the same `gaal sync` produces the same checked-out tree on every machine. * **Pinning**, every entry can pin to a tag, branch, or commit. * **Multi-protocol**, Git is the common case, but `tar` and `zip` work for releases that aren't on a forge. ## Supported types | Type | Backend | Pin via `version:` | | ----- | -------------------------------------- | ------------------- | | `git` | pure-Go (no system git required) | branch, tag, commit | | `hg` | system `hg` binary | revision | | `svn` | system `svn` binary | revision number | | `bzr` | system `bzr` binary | revision | | `tar` | downloaded archive, extracted in place | strip-prefix string | | `zip` | downloaded archive, extracted in place | strip-prefix string | ## Shape ```yaml theme={"theme":"nord"} repositories: : type: git | hg | svn | bzr | tar | zip url: version: # optional ``` The map key is the **destination path**, relative to the workspace root (or absolute if you really mean it). ## Examples ```yaml gaal.yaml theme={"theme":"nord"} repositories: src/gaal: # git, branch type: git url: https://github.com/getgaal/gaal.git version: main src/tools/my-python-lib: # git, tag pin type: git url: https://github.com/example/my-python-lib.git version: v2.1.0 src/legacy/old-tool: # svn revision type: svn url: https://svn.example.com/repos/old-tool/trunk version: "1234" src/data/dataset: # release tarball type: tar url: https://example.com/releases/dataset-2024.tar.gz version: dataset-2024 # strip this prefix on extract ``` ## Behaviour during sync * **First sync**, the repo is cloned (or extracted) into the configured path. * **Subsequent syncs**, `git fetch` + checkout for VCS types; re-download + re-extract for archive types when the URL or version changes. * **`--dry-run`** prints `+ clone`, `~ update`, or `= unchanged` for every entry. * **`--prune`** does *not* delete repository directories. Removing a repo from `gaal.yaml` simply leaves it on disk; remove it manually if you don't want it. gaal owns the contents of each repository directory it manages. Local edits inside a managed path are at risk of being overwritten on the next sync. Treat managed paths as read-only checkouts. ## Authentication Authentication is delegated to the underlying VCS: * **HTTPS Git**, credentials come from your `~/.netrc` or your Git credential helper. * **SSH Git**, your SSH agent and `~/.ssh/config` are used as-is. * **Hg/SVN/Bzr**, same as if you ran `hg clone`, `svn checkout`, or `bzr branch` yourself. * **tar/zip**, gaal sends a plain `GET`. Use a pre-signed URL or a `~/.netrc` entry for the host. gaal never stores credentials. ## Related # Scopes Source: https://docs.getgaal.com/concepts/scopes Global, user, and workspace configuration, and how they merge. gaal reads configuration from up to three files. They merge in a strict order so a workspace `gaal.yaml` checked into source control can never escalate machine-wide settings. ## The three scopes | Priority | Scope | File | | ----------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------- | | 1 (lowest) | System | `/etc/gaal/config.yaml` | | 2 | User | `$XDG_CONFIG_HOME/gaal/config.yaml` (defaults to `~/.config/gaal/config.yaml` on Linux/macOS, `%AppData%\gaal\config.yaml` on Windows) | | 3 (highest) | Workspace | `gaal.yaml` in the current working directory, or whatever `--config` points at | Higher-priority files override lower ones field by field. ## What overrides what Most fields are merged with workspace winning over user winning over system: * `repositories`, workspace entries replace user entries with the same map key. * `skills`, the workspace list replaces the user list (no per-entry merging, pick one scope or the other). * `mcps`, same as skills: workspace list replaces user list. The exception is `telemetry`, which is **scope-restricted**. ## Scope-restricted fields `telemetry` can be set in the user or system file but **not** in a workspace file. If a workspace `gaal.yaml` sets `telemetry:`, gaal ignores the value and prints a warning. This rule exists so that committing a `gaal.yaml` to a public repo can never opt anyone in to telemetry. Telemetry is a per-user choice, made explicitly on first run. ## Where you'd put what | Setting | Best scope | Why | | ------------------------------------------------------------- | ---------- | ---------------------------------------------------------- | | Personal helper skills installed everywhere | User | Survives across projects without committing a global file. | | Project-specific skills (codebase reviewer, custom MCP) | Workspace | Lives with the repo so contributors get the same tools. | | MCP servers shared across all your projects (filesystem, git) | User | Defined once, not per-project. | | Telemetry opt-in | User | The only place the value is honoured. | ## Inspecting the merged config `gaal status` reports the resolved configuration as gaal sees it after merging. `gaal doctor` reports the source file for each entry. ```bash theme={"theme":"nord"} $ gaal doctor config sources: workspace ./gaal.yaml user /home/you/.config/gaal/config.yaml system (none) ``` ## Overriding the lookup Force a specific file with `--config`: ```bash theme={"theme":"nord"} gaal --config /path/to/custom.yaml sync ``` When `--config` is set, the user and system files are still merged underneath unless the file you passed sets the same fields. ## Related # Skills Source: https://docs.getgaal.com/concepts/skills SKILL.md collections, distributed by gaal to every agent that wants them. A **skill** is a reusable capability defined in a `SKILL.md` file (and any supporting files in the same directory). Coding agents pick up skills from a known directory on disk, `.claude/skills`, `.cursor/skills`, `.github/skills`, and so on. gaal's job is to take a single skill source and install it into the right directory for every agent you target. ## Why skills are interesting Each agent has its own skill convention, but the *content* is portable. A `code-review` skill written for Claude Code works in Cursor, Codex, and Copilot with no changes. Without gaal you copy the directory three times. With gaal you write one entry and let the renderers fan it out. ## Sources A skill source can be any of: | Source format | Example | | ---------------- | -------------------------------------- | | GitHub shorthand | `anthropics/skills` | | Full HTTPS URL | `https://github.com/anthropics/skills` | | Git SSH URL | `git@github.com:anthropics/skills.git` | | Local path | `./company-skills` or `~/my-skills` | A source can contain one or many skills. Each top-level directory inside the source that contains a `SKILL.md` is one skill. ## Registry search and install You can write `skills:` entries by hand, or use the registry commands to discover and add them: ```bash theme={"theme":"nord"} gaal skill search frontend gaal skill install frontend-design ``` The default registry is `skills.sh`. Search is config-optional, so you can run it before creating a `gaal.yaml`. For the `skills.sh` registry, gaal discovers matches through the official CLI surface, `npx skills find `. Make sure `npx` is available on `PATH`. No `VERCEL_OIDC_TOKEN` or skills.sh API auth is required for gaal's v1 registry workflow. Install resolves a registry reference, writes or updates the selected config file, and runs `gaal sync` by default. It defaults to global installation and writes `agents: ["*"]` explicitly: ```yaml theme={"theme":"nord"} skills: - source: anthropics/skills registry: skills.sh select: - frontend-design agents: ["*"] global: true ``` `registry:` records where the entry came from. Sync still uses `source:` to fetch the skills. gaal does not run `npx skills add`; it uses registry discovery to write normal `skills:` config, then syncs that config. ## Targeting agents Every skill entry says which agents to install it for: ```yaml theme={"theme":"nord"} skills: - source: anthropics/skills agents: ["*"] # every detected agent - source: vercel-labs/agent-skills agents: [claude-code, cursor] # explicit list ``` `["*"]` is a wildcard that resolves at sync time to **the agents currently installed on this machine**. Agents that aren't installed are skipped. Use `gaal sync --force` to install into every registered agent regardless of whether the agent is detected. ## Project vs global Each entry chooses one of two install layouts: ```yaml theme={"theme":"nord"} skills: - source: anthropics/skills agents: ["*"] global: false # default, installs into .//skills - source: my-utils agents: [claude-code] global: true # installs into ~/./skills ``` | `global` | Where skills are installed | | ----------------- | ---------------------------------------------------------------------- | | `false` (default) | Per-project: `./.claude/skills/`, `./.cursor/skills/`, … | | `true` | Per-user: `~/.claude/skills/`, `~/.cursor/skills/`, … | Use **project** for skills tied to one repo (CI helpers, codebase-specific reviewers). Use **global** for skills you want available everywhere (your personal git-helper, formatting preferences). Manual `skills:` entries default to `global: false` when the field is omitted. `gaal skill install` defaults to global installation and writes `global: true`. ## Selecting a subset By default every skill in the source is installed. Use `select:` to install only specific ones: ```yaml theme={"theme":"nord"} skills: - source: anthropics/skills agents: [claude-code, github-copilot] select: - frontend-design - skill-creator ``` The names must match the skill's directory name in the source. ## What gets written where For every (source × agent) pair, gaal writes the selected skills under the agent's skills directory using the agent's native layout. For example, with this entry: ```yaml theme={"theme":"nord"} - source: anthropics/skills agents: [claude-code, cursor] select: [frontend-design] global: false ``` gaal writes: ``` ./.claude/skills/frontend-design/SKILL.md ./.claude/skills/frontend-design/... ./.cursor/skills/frontend-design/SKILL.md ./.cursor/skills/frontend-design/... ``` See [Agent integrations](/agents/overview) for the exact path used by each agent. ## Behaviour during sync * Skills already at the right version are reported `= unchanged`. * New skills are added. * Skills that are *no longer in the config* are left alone unless you pass `--prune`. * Sources are fetched once per sync and reused across all agents that target them. ## Related # Telemetry Source: https://docs.getgaal.com/concepts/telemetry Anonymous usage telemetry, opt-in, off by default. gaal collects **no telemetry by default**. On first run it asks once whether you want to send anonymous usage events. Your answer is written to your user-scope config file and respected on every subsequent invocation. ## What's collected when telemetry is on When telemetry is enabled, gaal sends a small event for each command invocation containing: * The command name (`sync`, `status`, `doctor`, …). * The exit code class (`ok`, `warning`, `error`). * The gaal version. * The OS family (`linux`, `darwin`, `windows`). * A randomly-generated, locally-stored install ID. That's it. No file paths, no skill names, no MCP targets, no URLs from your `gaal.yaml`, no environment variables, no command-line flags. When telemetry is off (the default), gaal makes zero outbound network calls except those required to fetch sources you explicitly listed in `gaal.yaml`. ## Opting in or out Set the value in your user config file: ```yaml theme={"theme":"nord"} # ~/.config/gaal/config.yaml telemetry: true ``` ```yaml theme={"theme":"nord"} # ~/.config/gaal/config.yaml telemetry: false ``` Or answer the prompt on first run. ## Where the setting may live `telemetry` is **scope-restricted**: only the user (`~/.config/gaal/config.yaml`) and system (`/etc/gaal/config.yaml`) files may set it. A workspace `gaal.yaml` that sets `telemetry:` is ignored with a warning. This restriction exists so a `gaal.yaml` committed to a public repo can never enrol contributors in telemetry without their consent. ## Verifying the current state ```bash theme={"theme":"nord"} $ gaal doctor … ✓ telemetry: disabled ``` `gaal doctor` always prints the resolved telemetry setting and the source file it came from. ## Privacy policy Full details, including the receiving endpoint, retention policy, and how to request deletion of your install ID's events, are in [PRIVACY\_POLICY.md](https://github.com/getgaal/gaal/blob/main/PRIVACY_POLICY.md). ## Related # Configure content Source: https://docs.getgaal.com/configure/content Cookbook for the content: block of gaal.yaml. `content:` copies ordinary files and directories from a source into agent or workspace locations. Use it for files that agents read directly, such as `AGENTS.md`, `CLAUDE.md`, command directories, rules, hooks, and settings. ## Copy one instruction file ```yaml theme={"theme":"nord"} content: - source: my-org/agent-guidance agents: [claude-code] root: workspace paths: AGENTS.md: CLAUDE.md ``` This copies `AGENTS.md` from the source into `CLAUDE.md` in the current workspace. ## Fan out to multiple agents ```yaml theme={"theme":"nord"} content: - source: my-org/agent-guidance targets: - agents: [claude-code] scope: project root: workspace paths: AGENTS.md: CLAUDE.md - agents: [codex] scope: project root: workspace paths: AGENTS.md: AGENTS.md ``` Use `targets:` when each agent needs a different destination path. ## Copy global agent content ```yaml theme={"theme":"nord"} content: - source: ./dotclaude agents: [claude-code] global: true root: agent paths: commands/: commands/ settings.json: settings.json ``` With `root: agent`, destinations resolve relative to the agent's config root. For Claude Code global content, that means paths under `~/.claude/`. ## Use a local source ```yaml theme={"theme":"nord"} content: - source: ./agent-files agents: ["*"] root: workspace paths: rules/: .agents/rules/ ``` Relative sources resolve from the directory containing the active config file. ## Safety rules * Source and destination paths must be relative. * Paths containing `..` are rejected. * Symlinks are skipped. * VCS metadata directories are skipped. * Directory writes are staged before replacing the destination. ## Related # Custom agents Source: https://docs.getgaal.com/configure/custom-agents Teach gaal about an agent it doesn't ship with yet. If you use a coding agent that isn't in the [built-in registry](/agents/overview), you can extend the registry with a custom entry. gaal will then treat it like any first-class agent, `agents: ["*"]` will install into it, `gaal agents` will list it, `gaal audit` will scan its skill directories. ## Where to put the file | OS | Path | | ------- | ------------------------------------------------------------------------------ | | Linux | `$XDG_CONFIG_HOME/gaal/agents.yaml` (defaults to `~/.config/gaal/agents.yaml`) | | macOS | `$XDG_CONFIG_HOME/gaal/agents.yaml` (defaults to `~/.config/gaal/agents.yaml`) | | Windows | `%AppData%\gaal\agents.yaml` | Custom entries **extend** the built-in list. They cannot override built-in entries, if you and gaal both define `cursor`, the built-in wins. ## Minimal entry ```yaml theme={"theme":"nord"} agents: my-agent: project_skills_dir: .my-agent/skills global_skills_dir: ~/.my-agent/skills project_mcp_config_file: ~/.my-agent/mcp.json ``` That's enough to make `agents: [my-agent]` work in `gaal.yaml`. ## Full entry ```yaml theme={"theme":"nord"} agents: my-agent: project_skills_dir: .my-agent/skills # relative path, no ".." global_skills_dir: ~/.my-agent/skills # must start with ~/ project_mcp_config_file: ~/.my-agent/mcp.json # empty string if unsupported # Audit-only fields. gaal audit scans these for existing skills. project_skills_search: - .my-agent/skills - .agents/skills global_skills_search: - ~/.my-agent/skills - ~/.agents/skills pm_skills_search: - ~/.my-agent/extensions ``` ## Field reference | Field | Required | Description | | -------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------- | | `project_skills_dir` | yes | Skills directory relative to the project root. Must be relative; no `..`. Empty string when the agent uses generic conventions. | | `global_skills_dir` | yes | Skills directory under the user's home. Must start with `~/`. Empty string when the agent uses generic conventions. | | `project_mcp_config_file` | yes | Path to the agent's MCP server config file. Use `~/`-prefix. Empty string if the agent doesn't support MCP. | | `project_skills_search` | no | Project-relative directories `gaal audit` scans (one level deep). Defaults to `[project_skills_dir]`. | | `global_skills_search` | no | Home-relative directories `gaal audit` scans (one level deep). Defaults to `[global_skills_dir]`. | | `pm_skills_search` | no | Home-relative directories belonging to the agent's package manager. Scanned recursively. | | `supports_generic_project` | no | When `true`, the agent installs project skills via the shared `.agents/skills` directory. | | `supports_generic_global` | no | When `true`, the agent installs global skills via the shared `~/.agents/skills` directory. | ## Verifying the entry After saving the file, list agents: ```bash theme={"theme":"nord"} $ gaal agents NAME INSTALLED PROJECT_SKILLS GLOBAL_SKILLS MCP_CONFIG … my-agent no .my-agent/skills ~/.my-agent/skills ~/.my-agent/mcp.json ``` `gaal agents my-agent` shows the detailed view. `gaal audit` will pick up any existing skill directories matching the entry. ## Asking for built-in support If the agent is publicly available and you'd like it added to the built-in registry, open an issue or PR at [github.com/getgaal/gaal](https://github.com/getgaal/gaal), the registry file lives at `internal/core/agent/agents.yaml`. ## Related # Environment & secrets Source: https://docs.getgaal.com/configure/environment-and-secrets How to handle tokens, paths, and per-machine values without checking them in. `gaal.yaml` is meant to live in source control. Anything sensitive needs to stay out of it. This page covers the patterns that work cleanly with gaal's design. ## gaal does not expand variables This is the most important rule. gaal writes `gaal.yaml` values into target files **literally**, no `${VAR}` substitution, no `$HOME` expansion (other than the special `~/` prefix on file paths). If you write: ```yaml theme={"theme":"nord"} mcps: - name: github agents: [claude-code] global: true inline: command: npx args: ["-y", "@modelcontextprotocol/server-github"] env: GITHUB_PERSONAL_ACCESS_TOKEN: ${GITHUB_TOKEN} ``` …then the literal string `${GITHUB_TOKEN}` lands in the agent's MCP config. The **agent process** that launches the MCP server is responsible for resolving `${GITHUB_TOKEN}` from the environment. For Claude Desktop, Cursor, Codex, and most agents, this means the variable is read from the environment of the agent process when it spawns the server. Set the variable in the way that environment expects, your shell profile, a `launchctl` plist, a systemd unit file, etc. ## Where to put the secret The right place is **outside `gaal.yaml`** in a file that already isn't in source control. ### Shell profile ```bash theme={"theme":"nord"} # ~/.config/fish/conf.d/secrets.fish set -gx GITHUB_TOKEN ghp_xxx... ``` ```bash theme={"theme":"nord"} # ~/.zshrc export GITHUB_TOKEN=ghp_xxx... ``` The agent inherits these when it launches the MCP server. ### A secret manager If you use 1Password, Bitwarden, `pass`, or similar, source the value into your shell profile from there. gaal doesn't need to know. ### Per-host overrides via the user-scope config For host-specific *non-secret* values (paths, project roots), use the user-scope file: ```yaml theme={"theme":"nord"} # ~/.config/gaal/config.yaml mcps: - name: filesystem agents: [claude-code] global: true inline: command: uvx args: [mcp-server-filesystem, /Users/me/work] ``` The workspace `gaal.yaml` can then declare cross-machine defaults; the user file overrides on this specific host. See [Scopes](/concepts/scopes) for merge rules. ## Path expansion gaal **does** expand the `~/` prefix on the registry-resolved MCP target paths to the user's home directory. Everywhere else in the file (including inside `args:`), paths are written through verbatim. If your MCP server expects `$HOME` expansion in its arguments, that's the agent's job, not gaal's. ## What never to put in gaal.yaml * API tokens, passwords, OAuth client secrets. * Private SSH keys. * AWS / GCP / Azure credentials. * Any value that would compromise something if a teammate read it. ## Related # Configure MCP servers Source: https://docs.getgaal.com/configure/mcp-servers Cookbook for the mcps: block of gaal.yaml. This page is a working reference for the `mcps:` block. For the conceptual model, see [Concepts → MCP servers](/concepts/mcp-servers). Every recipe below uses the registry-resolved form: list the target agents and the scope, and let gaal find the right JSON file. The legacy `target:` field is deprecated — see the [migration recipe](#migrating-from-target) at the bottom. ## Filesystem server (inline stdio) ```yaml theme={"theme":"nord"} mcps: - name: filesystem agents: [claude-code] global: true inline: command: uvx args: - mcp-server-filesystem - ~/projects ``` Becomes (in `~/.claude.json`): ```json theme={"theme":"nord"} { "mcpServers": { "filesystem": { "command": "uvx", "args": ["mcp-server-filesystem", "~/projects"] } } } ``` ## Server with environment variables ```yaml theme={"theme":"nord"} mcps: - name: github agents: [claude-code] global: true inline: command: npx args: ["-y", "@modelcontextprotocol/server-github"] env: GITHUB_PERSONAL_ACCESS_TOKEN: ${GITHUB_TOKEN} ``` `${GITHUB_TOKEN}` is **not** expanded by gaal — the literal string `${GITHUB_TOKEN}` is written into the JSON. The agent process resolves environment variables when it launches the server. See [Environment & secrets](/configure/environment-and-secrets). ## Install one server in many agents List the agents in a single entry. gaal fans the entry out to each one's MCP config file. ```yaml theme={"theme":"nord"} mcps: - name: filesystem agents: [claude-code, cursor, codex, windsurf] global: true inline: command: uvx args: [mcp-server-filesystem, ~/projects] ``` Or use the wildcard to install in every agent registered on this machine that exposes a global MCP config: ```yaml theme={"theme":"nord"} mcps: - name: git agents: ["*"] global: true inline: command: uvx args: [mcp-server-git, --repository, ~/projects/gaal] ``` ## Native HTTP server For agents that accept remote MCP entries, write the endpoint directly: ```yaml theme={"theme":"nord"} mcps: - name: linear agents: [claude-code, cursor] global: true inline: type: http url: https://mcp.linear.app/mcp ``` ## HTTP server with headers ```yaml theme={"theme":"nord"} mcps: - name: memory agents: [claude-code, codex] global: true inline: type: http url: https://memory.example.com/mcp headers: X-Team: platform Authorization: env: MEMORY_TOKEN ``` Scalar headers are written as static values. Use `env:` for secrets; gaal writes the environment variable name for target formats that support env-backed headers. ## SSE (HTTP+SSE) server For servers still on the older HTTP+SSE transport: ```yaml theme={"theme":"nord"} mcps: - name: sentry agents: [claude-code] global: true inline: type: sse url: https://mcp.sentry.dev/sse ``` If your target agent does not support native remote MCP servers yet, keep using a stdio bridge such as `mcp-remote` under `command` and `args`. ## Pull config from a remote URL When the upstream maintainer publishes the canonical JSON, point at it instead of duplicating the spec. ```yaml theme={"theme":"nord"} mcps: - name: github source: https://raw.githubusercontent.com/github/mcp-servers/main/config.json agents: [claude-code, github-copilot] global: true ``` The remote file must contain an `mcpServers` object. gaal downloads it and merges the matching entry into each target. `source:` and `inline:` are mutually exclusive. ## VS Code (Copilot, Cline, Roo) VS Code-family agents share `~/.vscode/settings.json` as their MCP config. Just list them like any other agent — gaal resolves all three to the same file and writes once. ```yaml theme={"theme":"nord"} mcps: - name: sequential-thinking agents: [github-copilot] global: true inline: command: npx args: - -y - "@modelcontextprotocol/server-sequential-thinking" ``` gaal upserts under the `mcpServers` key while leaving every other VS Code setting in place. ## Common targets The destination file is resolved from the agent registry. For reference: | Agent | Resolved target (`global: true`) | | ----------------------------- | ----------------------------------------------------------------- | | Claude Code | `~/.claude.json` | | Claude Desktop | `~/Library/Application Support/Claude/claude_desktop_config.json` | | Cursor | `~/.cursor/mcp.json` | | Codex | `~/.codex/config.toml` | | Windsurf | `~/.codeium/windsurf/mcp_settings.json` | | Continue | `~/.continue/config.json` | | VS Code (Copilot, Cline, Roo) | `~/.vscode/settings.json` | | Goose | `~/.config/goose/config.yaml` | | Gemini CLI | `~/.gemini/settings.json` | | Warp | `~/.warp/launch_configurations/mcp.json` | See [Agent integrations](/agents/overview) for the full list. ## Removing an entry Removing an `mcps[]` entry from `gaal.yaml` does **not** remove it from the target file unless you pass `--prune`. Without `--prune`, gaal stops managing it but leaves the JSON intact. ## Migrating from `target:` Earlier versions required an explicit `target:` path on every entry. That field still works but logs a deprecation warning. Replace each entry with `agents:` + `global:`: ```yaml theme={"theme":"nord"} # Before mcps: - name: filesystem target: ~/.claude.json inline: command: uvx args: [mcp-server-filesystem, ~/projects] # After mcps: - name: filesystem agents: [claude-code] global: true inline: command: uvx args: [mcp-server-filesystem, ~/projects] ``` ## Related # Configure repositories Source: https://docs.getgaal.com/configure/repositories Cookbook for the repositories: block of gaal.yaml. This page is a working reference: every common shape you'd actually write under `repositories:`. For the conceptual model, see [Concepts → Repositories](/concepts/repositories). ## Minimal git clone ```yaml theme={"theme":"nord"} repositories: src/gaal: type: git url: https://github.com/getgaal/gaal.git version: main ``` ## Pin to a tag ```yaml theme={"theme":"nord"} repositories: src/tools/my-lib: type: git url: https://github.com/example/my-lib.git version: v2.1.0 ``` ## Pin to a commit ```yaml theme={"theme":"nord"} repositories: src/research/llm-paper: type: git url: https://github.com/example/llm-paper.git version: a1b2c3d4e5f6789 ``` ## SSH origin ```yaml theme={"theme":"nord"} repositories: src/private/work: type: git url: git@github.com:acme/private-work.git version: main ``` Authentication uses your local SSH agent. ## Mercurial / Subversion / Bazaar ```yaml theme={"theme":"nord"} repositories: src/legacy/svn-tool: type: svn url: https://svn.example.com/repos/legacy/trunk version: "1234" # SVN revision src/old/hg-tool: type: hg url: https://hg.example.com/old-tool version: default src/old/bzr-tool: type: bzr url: lp:my-project version: "42" ``` These types require the matching system binary (`svn`, `hg`, `bzr`) on `$PATH`. Git uses a pure-Go backend with no system dependency. ## Tarball release ```yaml theme={"theme":"nord"} repositories: src/data/dataset: type: tar url: https://example.com/releases/dataset-2024.tar.gz version: dataset-2024 # strip-prefix during extraction ``` `version:` for `tar` and `zip` is a **strip-prefix** string, gaal removes that leading directory during extraction so the contents land cleanly under `src/data/dataset/`. ## Zip archive ```yaml theme={"theme":"nord"} repositories: vendor/sdk: type: zip url: https://example.com/sdk-v3.zip version: sdk-v3 ``` ## Multiple repos at once ```yaml theme={"theme":"nord"} repositories: src/gaal: type: git url: https://github.com/getgaal/gaal.git version: main src/anthropics-skills: type: git url: https://github.com/anthropics/skills.git version: main vendor/mcp-servers: type: git url: https://github.com/modelcontextprotocol/servers.git version: main ``` ## Behaviour at sync time * A first sync clones (or extracts) each entry into its destination path. * A subsequent sync fast-forwards or re-extracts based on `version:` and the remote state. * If the destination already exists and is not empty, gaal refuses to clone into it. * For existing Git checkouts, the working copy's `origin` is authoritative. If `gaal.yaml` and `origin` disagree, sync stops with a remote URL mismatch error. * `--dry-run` reports `+ clone`, `~ update`, or `= unchanged` per entry. * Removing a repository entry from `gaal.yaml` does **not** delete its directory, `--prune` ignores repositories. gaal owns the contents of each repository directory. Don't make local edits inside a managed path, they'll be lost on the next update. Use a separate working clone for development. ## Related # Configure skills Source: https://docs.getgaal.com/configure/skills Cookbook for the skills: block of gaal.yaml. This page is a working reference for the `skills:` block. For the conceptual model, see [Concepts → Skills](/concepts/skills). ## Add a skill from the registry Use `gaal skill search` to discover registry skills, then `gaal skill install` to add one to your config: ```bash theme={"theme":"nord"} gaal skill search frontend gaal skill install frontend-design ``` By default, install uses the `skills.sh` registry, writes to the selected config file, installs globally, targets every detected agent with `agents: ["*"]`, and runs `gaal sync`. For the `skills.sh` registry, gaal uses the official CLI surface through `npx skills find` for discovery and lookup. Make sure `npx` is available on `PATH`. No `VERCEL_OIDC_TOKEN` or skills.sh API auth is required. ```yaml theme={"theme":"nord"} schema: 1 repositories: {} skills: - source: anthropics/skills registry: skills.sh select: - frontend-design agents: ["*"] global: true mcps: [] ``` Use `--project` for a project-local entry, `--agents claude-code,codex` to target specific agents, or `--no-sync` to update YAML without syncing. gaal does not run `npx skills add` for the final installation. It writes normal `skills:` config and then syncs it, so `gaal.yaml` remains the source of truth. Accepted refs include: ```text theme={"theme":"nord"} frontend-design skills.sh/frontend-design anthropics/skills:frontend-design skills.sh/anthropics/skills:frontend-design ``` In non-interactive shells, pass `--yes` before install mutates the config. If a loose ref is ambiguous, gaal prints the choices and exits non-zero; `--yes` does not auto-pick. ## Install everything from a GitHub repo to every detected agent ```yaml theme={"theme":"nord"} skills: - source: vercel-labs/agent-skills agents: ["*"] ``` Defaults: `global: false` (project-local), every skill in the source. ## Install specific skills, in specific agents ```yaml theme={"theme":"nord"} skills: - source: anthropics/skills agents: - claude-code - github-copilot select: - frontend-design - skill-creator ``` `select:` matches the skill directory name in the source repo. ## Install globally (across every project on this machine) ```yaml theme={"theme":"nord"} skills: - source: my-utils agents: [claude-code] global: true ``` Files land under `~/.claude/skills/` and are visible to Claude Code in every project. ## Mix project and global ```yaml theme={"theme":"nord"} skills: # global utilities, available in every project - source: my-utils agents: [claude-code, cursor] global: true # codebase-specific reviewer, only for this project - source: ./skills/reviewer agents: ["*"] global: false ``` ## Source from a local directory ```yaml theme={"theme":"nord"} skills: - source: ./company-skills agents: [claude-code, cursor] global: false ``` Relative paths resolve against the directory of the `gaal.yaml` file. `~/`-prefixed paths resolve against the user's home directory. ## Source from a full URL ```yaml theme={"theme":"nord"} skills: - source: https://github.com/microsoft/github-copilot-for-azure agents: [github-copilot] global: true ``` ## Source from SSH ```yaml theme={"theme":"nord"} skills: - source: git@github.com:acme/private-skills.git agents: ["*"] ``` Authentication uses your local SSH agent. ## Install into a subdirectory Use `target_subdir:` when you want selected skills placed under a folder inside the resolved agent skills directory. ```yaml theme={"theme":"nord"} skills: - source: ./company-skills agents: [codex] target_subdir: team ``` The subdirectory must be relative and cannot contain `..`. ## Force install into every registered agent By default, the `["*"]` wildcard expands only to agents detected on this machine. If you want gaal to populate skill directories for agents that aren't installed yet (for example, to pre-stage a fresh machine), use `--force`: ```bash theme={"theme":"nord"} gaal sync --force ``` This applies only to entries with `agents: ["*"]`. Explicit agent lists are honoured as-is. ## Behaviour at sync time * Skills already at the right version are reported `= unchanged`. * New skills are added. * Skills no longer in the config are left in place unless you pass `--prune`. * Each skill source is fetched once per sync and reused across all agents that target it. * For registry-installed entries, `registry:` is provenance only. Sync continues to fetch the `source:`. ## Related # How gaal works Source: https://docs.getgaal.com/how-gaal-works The mental model: one YAML, many renderers, native agent files on disk. gaal is a small, opinionated state engine. Once you understand the four moving parts you understand the whole product. ## The four moving parts Every gaal command runs the same four-stage pipeline. 1. **gaal.yaml, the source of truth.** You write it (or generate it with `gaal init`) and commit it to your dotfiles. Everything downstream reads from this file. 2. **Audit, read the filesystem.** gaal scans the local filesystem to discover what's already there: every installed agent, every skill on disk, every MCP entry in every agent's JSON config. Audit writes nothing. 3. **Plan, diff desired vs actual.** gaal compares the desired state from `gaal.yaml` against the actual state from the audit and computes the work to do. `gaal sync --dry-run` stops at this stage and prints the plan. 4. **Sync, apply through renderers.** The plan executes through per-agent **renderers**, small adapters that know each agent's native file layout and config format. They write to `.claude/skills/*`, `.cursor/mcp.json`, `~/.codex/skills/*`, and so on. ## The agent registry gaal ships with a built-in registry of every supported agent: where its skills live, where its MCP config file is, and how its package manager stores extensions. The registry is what makes `agents: ["*"]` work, when you say "install this skill in every detected agent," gaal walks the registry, checks which agents are actually installed, and installs only into those. You can extend the registry with your own entries. See [Custom agents](/configure/custom-agents). ## Resource types and guarantees Every entry in `gaal.yaml` falls into a small set of resource types, and each type has a clear boundary: | Resource | Guarantee | | ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | | **Repositories** | gaal owns the entire directory at the configured path. Sync clones or updates it; nothing else is written there. | | **Skills** | gaal owns the named skill directories it installs. Skills it didn't install are left alone unless you pass `--prune`. | | **Content** | gaal copies only the configured path mappings. Unsafe relative paths, symlinks, and VCS metadata are skipped. | | **MCP servers** | gaal **upserts** entries inside the target JSON file. Other keys in that file (your editor settings, other servers you added by hand) are never touched. | | **Hooks** | gaal runs only the commands you declare, in order, around a one-shot or service sync. | The MCP guarantee is the one that matters most: gaal will not clobber your agent config. It reads, modifies the MCP section in place, and writes back. ## Scopes Every config file lives at one of three scopes, and they merge in a strict order: | Priority | File | | ----------- | ---------------------------------------------------------------------- | | 1 (lowest) | `/etc/gaal/config.yaml` (system-wide) | | 2 | `~/.config/gaal/config.yaml` (user) | | 3 (highest) | `gaal.yaml` in the current directory, or whatever `--config` points at | A workspace `gaal.yaml` overrides the user file overrides the system file. Some keys (like `telemetry`) are restricted to the user/system scope so a checked-in workspace file can't change them. See [Scopes](/concepts/scopes) for the full rules. ## What gaal *doesn't* do * It doesn't run your agents. gaal just makes sure each agent has the right files in the right place. * It doesn't proxy or intercept LLM calls. The runtime path is between your agent and its model provider. * It doesn't push state anywhere. gaal today is local-only, your `gaal.yaml` and the files it touches stay on your machine. (If you want shared state across a team, that's what Community Edition will be for.) ## Next Top-level keys, in detail. The registry, search paths, and how rendering is dispatched. Global, user, and workspace files, and how they merge. Apply the model in a 5-minute walkthrough. # Install Source: https://docs.getgaal.com/install Install gaal on macOS, Linux, or Windows. gaal ships as a single static binary. Pick the install method that matches your environment. ## Quick install (macOS / Linux) ```bash theme={"theme":"nord"} curl -fsSL https://raw.githubusercontent.com/getgaal/gaal/main/scripts/install.sh | sh ``` Installs the latest release to `~/.local/bin/gaal`. Make sure `~/.local/bin` is on your `$PATH`. ### Pin a version ```bash theme={"theme":"nord"} curl -fsSL https://raw.githubusercontent.com/getgaal/gaal/main/scripts/install.sh | VERSION=v0.3.0 sh ``` ### Install elsewhere ```bash theme={"theme":"nord"} curl -fsSL https://raw.githubusercontent.com/getgaal/gaal/main/scripts/install.sh | INSTALL_DIR=/usr/local/bin sh ``` ### Verbose output ```bash theme={"theme":"nord"} GAAL_INSTALL_DEBUG=1 curl -fsSL https://raw.githubusercontent.com/getgaal/gaal/main/scripts/install.sh | sh ``` ### Help ```bash theme={"theme":"nord"} curl -fsSL https://raw.githubusercontent.com/getgaal/gaal/main/scripts/install.sh | sh -s -- --help ``` ## With Go If you have a Go 1.26+ toolchain installed: ```bash theme={"theme":"nord"} go install github.com/getgaal/gaal@latest ``` The binary lands in `$GOBIN` (or `$GOPATH/bin` if `GOBIN` is unset). ## From source Requires Go 1.26+ and `make`. ```bash theme={"theme":"nord"} git clone https://github.com/getgaal/gaal.git cd gaal make build ``` The binary is written to `dist/gaal`. Move it to your `$PATH`: ```bash theme={"theme":"nord"} sudo cp dist/gaal /usr/local/bin/gaal # or, user-local: cp dist/gaal ~/.local/bin/gaal ``` ## Verify the install ```bash theme={"theme":"nord"} $ gaal version gaal v0.3.0 built 2026-04-18T09:00:00Z ``` If the command isn't found, `~/.local/bin` is probably not on your `$PATH`. Add this to your shell profile: ```bash bash / zsh theme={"theme":"nord"} export PATH="$HOME/.local/bin:$PATH" ``` ```fish fish theme={"theme":"nord"} fish_add_path ~/.local/bin ``` ## Shell completion gaal ships completion scripts for bash, zsh, fish, and PowerShell. See the [`gaal completion`](/cli/completion) reference. ## Next Run your first sync in five minutes. Understand the model before you write YAML. # Introduction Source: https://docs.getgaal.com/introduction One YAML file. Every coding agent on your machine in sync. **gaal** is a single CLI that keeps your local repositories, AI agent skills, and MCP server configurations in sync from one declarative `gaal.yaml` file. If you use Claude Code at work, Cursor at home, and try Codex on the side, your skills and MCP servers usually live in three places, `.claude/`, `.cursor/`, `~/.codex/`, drifting out of sync the moment you set up a new machine. gaal fixes that. You write one file, run `gaal sync`, and every installed agent gets the same tools. ## What gaal manages | Resource | What it does | | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------ | | **Repositories** | Clones or updates Git, Mercurial, Subversion, Bazaar, tar, and zip sources into your workspace. | | **Skills** | Installs `SKILL.md` collections into each agent's native skills directory (`.claude/skills`, `.cursor/skills`, `.github/skills`, …). | | **MCP servers** | Upserts MCP server entries into each agent's JSON config file without touching your other settings. | ## What it looks like ```yaml gaal.yaml theme={"theme":"nord"} schema: 1 repositories: src/gaal: type: git url: https://github.com/getgaal/gaal.git version: main skills: - source: anthropics/skills agents: ["*"] # install in every detected agent select: - frontend-design - skill-creator mcps: - name: filesystem agents: ["*"] # every detected agent global: true inline: command: uvx args: [mcp-server-filesystem, ~/projects] ``` ```bash theme={"theme":"nord"} $ gaal sync ✓ src/gaal up-to-date ✓ skills/frontend-design installed in claude-code, cursor ✓ mcp/filesystem upserted in ~/.claude.json ``` ## Who it's for * **Solo developers** running multiple coding agents who want their setup reproducible across machines via dotfiles. * **Power users** maintaining curated skill sets across projects and teams. * **Anyone** tired of copy-pasting MCP JSON snippets between agents. ## What's next Five ways to get the binary on your machine. Audit, init, and sync in five minutes. The mental model: YAML → renderers → agent files. Top-level keys and how they fit together. ## What's next for gaal gaal today is the free, single-user CLI documented on this site. A team-focused **Community Edition** with shared registries, drift detection, and approval workflows is in development. See [`gaal migrate`](/cli/migrate) for the graduation path. # Quickstart Source: https://docs.getgaal.com/quickstart From zero to a synced machine in five minutes. By the end of this page you'll have a working `gaal.yaml`, every detected agent skill imported into it, and a clean `gaal sync` that completes without errors. ## 1. Confirm the install ```bash theme={"theme":"nord"} $ gaal version gaal v0.3.0 built 2026-04-18T09:00:00Z ``` If this fails, head back to [Install](/install). ## 2. See what's on your machine `gaal audit` scans your project, your home directory, and each agent's package-manager paths for skills and MCP servers, without writing anything. ```bash theme={"theme":"nord"} $ gaal audit discovered: skills (project) .claude/skills/code-review (claude-code) .cursor/skills/test-writer (cursor) skills (global) ~/.claude/skills/git-helper (claude-code) mcps ~/.claude.json filesystem, git ``` This is read-only, nothing is changed yet. ## 3. Initialise gaal.yaml The interactive wizard turns the audit into a real config file: ```bash theme={"theme":"nord"} $ gaal init ? How should we create your gaal.yaml? ▸ Import everything detected on this machine Start from an empty documented skeleton ? Where should this configuration apply? ▸ Project (./gaal.yaml) Global (~/.config/gaal/config.yaml) ``` After confirming, `init` writes a fully-populated `gaal.yaml` to the chosen path. **No TTY?** Use the non-interactive form: ```bash theme={"theme":"nord"} gaal init --import-all --scope project ``` `--empty` and `--import-all` are mutually exclusive; one is required when stdin isn't a TTY. ## 4. Preview the sync Always preview before the first real sync. `--dry-run` runs the full planner without touching disk. ```bash theme={"theme":"nord"} $ gaal sync --dry-run plan: repositories + clone src/example (git, main) skills + install code-review → claude-code, cursor = unchanged git-helper → claude-code mcps + upsert filesystem → ~/.claude.json ``` Exit codes: **0** = nothing to do, **1** = changes pending, **2** = error. ## 5. Optional: add a registry skill You can search the default registry without changing your config: ```bash theme={"theme":"nord"} gaal skill search frontend ``` For the default `skills.sh` registry, this uses `npx skills find` behind the scenes. Make sure `npx` is available on `PATH`. You do not need `VERCEL_OIDC_TOKEN` or skills.sh API auth. Install adds the selected skill to `gaal.yaml` and runs sync by default: ```bash theme={"theme":"nord"} gaal skill install frontend-design ``` Use `--project` if the skill should live only in this repo, or `--no-sync` if you want to review the YAML before syncing. ## 6. Sync for real ```bash theme={"theme":"nord"} $ gaal sync ✓ src/example cloned ✓ code-review installed in claude-code, cursor ✓ filesystem upserted in ~/.claude.json sync complete in 1.2s ``` ## 7. Check your work ```bash theme={"theme":"nord"} $ gaal status repositories src/example git · main · clean skills code-review claude-code, cursor git-helper claude-code mcps filesystem ~/.claude.json ``` ```bash theme={"theme":"nord"} $ gaal doctor ✓ config: gaal.yaml is valid ✓ skills: all sources reachable ✓ mcps: all target files writable ✓ agents: 3 installed, 0 misconfigured ``` ## You're done Commit `gaal.yaml` to your dotfiles repo and `gaal sync` will reproduce this exact setup on every other machine you own. The mental model behind sync, audit, and renderers. Search and install registry skills. The dotfiles pattern in detail. Inline definitions and remote sources. Run gaal as a daemon that re-syncs on a schedule. # content Source: https://docs.getgaal.com/schema/content Generic file and directory sync for agent instructions, rules, commands, and settings. ```yaml theme={"theme":"nord"} content: - source: agents: <[string] | ["*"]> # shorthand form global: # shorthand form, default false root: # shorthand form, default workspace paths: : targets: # explicit form - agents: <[string] | ["*"]> scope: root: paths: : ``` ## Type `array[ContentEntry]` ## Required No. Omit `content:` if you only manage repositories, skills, and MCP servers. ## What it is for Use `content:` for files an agent reads directly but that are not `SKILL.md` packages: instruction files, command directories, rules, hooks, templates, and settings. `skills:` remains the right place for native skill collections. `content:` is the escape hatch for everything else. ## Entry fields ### `source` | Field | Type | Required | | -------- | ------ | -------- | | `source` | string | yes | Accepts GitHub shorthand, HTTPS URLs, SSH Git URLs, and local paths. Remote sources are cached under gaal's cache directory before paths are copied out. ### `targets` | Field | Type | Required | | --------- | ----------------------- | -------- | | `targets` | array of target objects | no | Use `targets:` when one source needs to fan out to multiple agents, scopes, roots, or path maps. ### Shorthand fields When `targets:` is omitted, the top-level `agents`, `global`, `root`, and `paths` fields define one target. | Field | Type | Required | Default | | -------- | ---------------------- | -------- | ----------- | | `agents` | array of strings | yes | none | | `global` | bool | no | `false` | | `root` | `agent` or `workspace` | no | `workspace` | | `paths` | map\[string]string | yes | none | ### Target fields | Field | Type | Required | Default | | -------- | ---------------------- | -------- | ----------- | | `agents` | array of strings | yes | none | | `scope` | `project` or `global` | no | `project` | | `root` | `agent` or `workspace` | no | `workspace` | | `paths` | map\[string]string | yes | none | `root: workspace` writes relative to the current project. `root: agent` writes relative to the agent config root inferred from the registry. ## Example ```yaml theme={"theme":"nord"} content: - source: my-org/agent-guidance targets: - agents: [claude-code] scope: project root: workspace paths: AGENTS.md: CLAUDE.md - agents: [codex] scope: project root: workspace paths: AGENTS.md: AGENTS.md - source: ./dotclaude agents: [claude-code] global: true root: agent paths: commands/: commands/ settings.json: settings.json ``` ## Safety * Source and destination paths must be relative. * `..` path segments are rejected. * Symlinks and non-regular files are skipped. * VCS metadata directories are skipped. * Directory copies stage into a temporary sibling and then replace the destination. ## Related # hooks Source: https://docs.getgaal.com/schema/hooks Commands that run before and after gaal sync. ```yaml theme={"theme":"nord"} hooks: pre-sync: - name: # optional command: args: <[string]> # optional cwd: # optional os: <[linux|darwin|windows]> timeout: # optional, default 5m continue_on_error: # optional, default false env: # optional post-sync: - command: args: <[string]> ``` ## Type `object` ## Required No. Omit `hooks:` unless you need local commands around sync. ## Phases | Phase | Runs | | ----------- | ---------------------------------------------------------- | | `pre-sync` | After planning and before gaal writes any resource. | | `post-sync` | After sync and optional prune have completed successfully. | A failing `pre-sync` hook aborts the sync unless `continue_on_error: true` is set. A failing `post-sync` hook makes the command fail after all sync work has already completed. ## Hook fields | Field | Type | Required | Notes | | ------------------- | ------------------ | -------- | --------------------------------------------- | | `name` | string | no | Label shown in plans and logs. | | `command` | string | yes | Executable to run. No shell is involved. | | `args` | array of strings | no | Passed verbatim after expansion. | | `cwd` | string | no | Defaults to gaal's working directory. | | `os` | array | no | Restrict to `linux`, `darwin`, or `windows`. | | `timeout` | duration string | no | Go duration such as `30s`, `2m`, or `1h`. | | `continue_on_error` | bool | no | Keep running the phase after a non-zero exit. | | `env` | map\[string]string | no | Added on top of the inherited environment. | Tokens beginning with `~/`, `$VAR`, or `${VAR}` are expanded in `args`, `cwd`, and `env` values. ## Example ```yaml theme={"theme":"nord"} hooks: pre-sync: - name: snapshot dotfiles command: ./scripts/snapshot.sh os: [linux, darwin] timeout: 1m continue_on_error: true post-sync: - name: refresh local docs command: git args: ["-C", "~/docs", "pull", "--ff-only"] ``` ## Environment Hooks inherit the process environment plus: | Variable | Value | | --------------------------------------------- | -------------------------------------- | | `GAAL_HOOK_PHASE` | `pre-sync` or `post-sync` | | `GAAL_PLANNED_REPOS` / `GAAL_CHANGED_REPOS` | Newline-separated repository paths. | | `GAAL_PLANNED_SKILLS` / `GAAL_CHANGED_SKILLS` | Newline-separated `agent:source` rows. | | `GAAL_PLANNED_MCPS` / `GAAL_CHANGED_MCPS` | Newline-separated MCP names. | | `GAAL_HAS_CHANGES` | `1` when the plan has work to do. | | `GAAL_HAS_ERRORS` | `1` when planning found errors. | ## Related # mcps Source: https://docs.getgaal.com/schema/mcps MCP server entries upserted into agent config files. ```yaml theme={"theme":"nord"} mcps: - name: agents: <[string] | ["*"]> global: # optional, default false (set true for current agents) source: # mutually exclusive with inline inline: # mutually exclusive with source type: # optional command: args: <[string]> env: url: headers: merge: # optional, default true target: # deprecated — use agents instead ``` ## Type `array[McpEntry]` ## Required No. Omit `mcps:` if you don't manage any. ## Entry fields ### `name` | Field | Type | Required | | ------ | ------ | -------- | | `name` | string | yes | The identifier the entry is upserted under inside the target's `mcpServers` object. ### `agents` | Field | Type | Required | | -------- | ---------------- | ------------------------------ | | `agents` | array of strings | yes (when `target` is not set) | Either a list of registry names (`[claude-code, cursor, codex]`) or the wildcard `["*"]`. `["*"]` resolves at sync time to every registered agent that has a non-empty MCP config for the requested scope. Agents whose registry entry has no MCP config for that scope are skipped silently. The destination JSON file is then looked up in the [agent registry](/agents/overview) — `global_mcp_config_file` for `global: true`, `project_mcp_config_file` for `global: false`. ### `global` | Field | Type | Required | Default | | -------- | ---- | -------- | ------- | | `global` | bool | no | `false` | | Value | Resolved path | | ------- | -------------------------------------------------------------------------------------------------------- | | `true` | `global_mcp_config_file` from the registry — the agent's user-global MCP config (e.g. `~/.claude.json`). | | `false` | `project_mcp_config_file` from the registry — the agent's workspace-scoped MCP config. | In the current registry every built-in agent only ships a `global_mcp_config_file`. Set `global: true` on every entry until per-project MCP configs land. With `global: false` (the YAML default) gaal silently skips the entry for every agent that has no project-scoped MCP path. ### `source` | Field | Type | Required | | -------- | ---- | ------------- | | `source` | URL | conditionally | A URL returning a JSON document with an `mcpServers` object. gaal downloads the file and merges the entry whose key matches `name` into each resolved target. Mutually exclusive with `inline`. ### `inline` | Field | Type | Required | | -------- | ------ | ------------- | | `inline` | object | conditionally | The MCP server spec, written directly in `gaal.yaml`. Inline entries can describe stdio servers or native HTTP/SSE endpoints, depending on what the target agent supports. | Subfield | Type | Required | | --------- | ------------------------- | ------------- | | `type` | string | no | | `command` | string | conditionally | | `args` | array of strings | no | | `env` | map\[string]string | no | | `url` | string | conditionally | | `headers` | map\[string, HeaderValue] | no | Use `command` for stdio servers. Use `url` for HTTP or SSE servers. `type` defaults to stdio when `command` is set, and HTTP when `url` is set. Header values may be plain scalars or objects: ```yaml theme={"theme":"nord"} headers: X-Team: platform Authorization: env: LINEAR_API_KEY ``` Prefer `env:` for secrets. gaal writes the environment variable name into formats that support env-backed headers. Mutually exclusive with `source`. Exactly one of `source` or `inline` must be set per entry. ### `merge` | Field | Type | Required | Default | | ------- | ---- | -------- | ------- | | `merge` | bool | no | `true` | Whether to merge the entry into the existing `mcpServers` object (preserving siblings) or overwrite it. The default keeps every server gaal didn't author. ### `target` (deprecated) | Field | Type | Required | | -------- | ------ | -------- | | `target` | string | no | Explicit path to the JSON file. Deprecated — set `agents:` and `global:` instead so the path comes from the registry. When both `target` and `agents` are set, `target` wins and gaal logs a deprecation warning. ## Example ```yaml theme={"theme":"nord"} mcps: # Inline stdio server, fanned out to two agents. - name: filesystem agents: [claude-code, cursor] global: true inline: command: uvx args: [mcp-server-filesystem, ~/projects] # Native HTTP server with an env-backed header. - name: linear agents: [claude-code] global: true inline: type: http url: https://mcp.linear.app/mcp headers: Authorization: env: LINEAR_API_KEY # SSE server. - name: sentry agents: [claude-code] global: true inline: type: sse url: https://mcp.sentry.dev/sse # Remote source, every detected agent. - name: github source: https://raw.githubusercontent.com/github/mcp-servers/main/config.json agents: ["*"] global: true ``` ## Behaviour * gaal upserts under the `mcpServers` object of every resolved target file. * Other top-level keys in the target are preserved. * Other entries inside `mcpServers` that gaal didn't author are preserved. * Removing an entry from `gaal.yaml` does **not** remove it from the target unless you pass `--prune`. * gaal does **not** expand `${VAR}` references in `args:` or `env:`. The agent process resolves them when launching the server. * Header `env:` values name environment variables; they do not contain the secret itself. * When the resolved target's parent directory is missing, gaal silently skips the entry — it never creates an agent's config directory as a side effect. ## Related # Schema overview Source: https://docs.getgaal.com/schema/overview The shape of gaal.yaml, key by key. This tab is the formal reference for `gaal.yaml`. For prose explanations and design rationale, see [Concepts → The gaal.yaml file](/concepts/gaal-yaml). For working examples, see the [Configure](/configure/repositories) section. ## Top-level keys | Key | Type | Required | Page | | -------------- | ------- | ----------- | ---------------------------------------- | | `schema` | integer | recommended | [Schema version](/schema/schema-version) | | `repositories` | map | no | [Repositories](/schema/repositories) | | `skills` | array | no | [Skills](/schema/skills) | | `content` | array | no | [Content](/schema/content) | | `mcps` | array | no | [MCPs](/schema/mcps) | | `tools` | array | no | [Tools](/schema/tools) | | `hooks` | object | no | [Hooks](/schema/hooks) | | `telemetry` | bool | no | [Telemetry](/schema/telemetry) | ## Generating the JSON Schema `gaal schema` writes the canonical JSON Schema (draft 2020-12) for `gaal.yaml`: ```bash theme={"theme":"nord"} gaal schema -f schema.json ``` Drop the file into your editor's JSON-Schema mappings to get inline validation and auto-completion as you type. See [`gaal schema`](/cli/schema) for IDE setup. ## Validation Two ways to validate a `gaal.yaml`: ```bash theme={"theme":"nord"} # In gaal itself gaal doctor ``` ```bash theme={"theme":"nord"} # Against the schema with any JSON-Schema validator gaal schema -f schema.json ajv validate -s schema.json -d gaal.yaml ``` ## Stability The `schema` field is stable forever. gaal reads `schema: 1` files now and will continue to read them. When breaking changes happen they will use `schema: 2` with a documented migration path, older files will keep working. ## Related # repositories Source: https://docs.getgaal.com/schema/repositories VCS-managed sources cloned into your workspace. ```yaml theme={"theme":"nord"} repositories: : type: url: version: # optional ``` ## Type `map[string, RepositoryEntry]` The map key is the destination path, relative to the workspace (or absolute). ## Required No. Omit `repositories:` entirely if you don't need any. ## Entry fields ### `type` | Field | Type | Required | Allowed values | | ------ | ------ | -------- | --------------------------------------- | | `type` | string | yes | `git`, `hg`, `svn`, `bzr`, `tar`, `zip` | | Type | Backend | | ----- | ---------------------------------------- | | `git` | Pure-Go (no system git binary required). | | `hg` | System `hg` binary. | | `svn` | System `svn` binary. | | `bzr` | System `bzr` binary. | | `tar` | HTTPS download + in-place extraction. | | `zip` | HTTPS download + in-place extraction. | ### `url` | Field | Type | Required | | ----- | ------ | -------- | | `url` | string | yes | The remote URL or local path. Format depends on the type: * `git`: `https://...`, `git@host:owner/repo.git`, `file://...`, or a local path. * `hg`, `svn`, `bzr`: any URL the matching binary accepts. * `tar`, `zip`: any HTTPS URL returning the archive. ### `version` | Field | Type | Required | | --------- | ------ | -------- | | `version` | string | no | Type-specific: | Type | `version` is | | ------------ | --------------------------------------------------------------------- | | `git` | branch, tag, or commit SHA. Defaults to the remote's default branch. | | `hg` | revision identifier (changeset, tag, branch). | | `svn` | revision number, as a quoted string (`"1234"`). | | `bzr` | revision identifier. | | `tar`, `zip` | strip-prefix string, the leading directory removed during extraction. | ## Example ```yaml theme={"theme":"nord"} repositories: src/gaal: type: git url: https://github.com/getgaal/gaal.git version: main src/legacy: type: svn url: https://svn.example.com/repos/legacy/trunk version: "1234" vendor/sdk: type: tar url: https://example.com/sdk-v3.tar.gz version: sdk-v3 ``` ## Behaviour * A first sync clones (or extracts) into the destination path. * Subsequent syncs fast-forward or re-extract if the URL or version changed. * Existing non-empty destinations are refused before clone. * Existing Git checkouts keep using their configured `origin`; a mismatch with `url:` is reported instead of silently retargeting the checkout. * Removing an entry from `gaal.yaml` does **not** delete the directory. `--prune` ignores repositories. ## Related # schema Source: https://docs.getgaal.com/schema/schema-version The configuration version. Always 1 in the current gaal release. ```yaml theme={"theme":"nord"} schema: 1 ``` ## Type `integer` ## Required Recommended. If omitted, gaal assumes `schema: 1` and prints a deprecation warning. A future release may require it. ## Allowed values | Value | Status | | ----- | ---------------------------------------------------------------------------------------------------------- | | `1` | The current and stable schema. All gaal features documented on this site read and write `schema: 1` files. | ## Stability guarantee `schema: 1` is stable forever. Future gaal releases will continue to read it. When a breaking change is necessary, gaal will introduce `schema: 2` with a documented migration path. Existing `schema: 1` files will not be silently broken. ## Why it's at the top Putting `schema:` at the top makes the file self-describing. A tool reading `gaal.yaml` (your editor, a linter, a CI check) can branch on the value before parsing the rest. ## Related # skills Source: https://docs.getgaal.com/schema/skills SKILL.md collections to install per agent. ```yaml theme={"theme":"nord"} skills: - source: registry: # optional agents: <[string] | ["*"]> global: # optional, default false target_subdir: # optional select: <[string]> # optional tools: <[ToolEntry]> # optional ``` ## Type `array[SkillEntry]` ## Required No. Omit `skills:` if you have nothing to install. ## Entry fields ### `source` | Field | Type | Required | | -------- | ------ | -------- | | `source` | string | yes | Where the skills come from. Accepts: | Format | Example | | ---------------- | -------------------------------------- | | GitHub shorthand | `anthropics/skills` | | Full HTTPS URL | `https://github.com/anthropics/skills` | | Git SSH URL | `git@github.com:anthropics/skills.git` | | Local path | `./company-skills` or `~/my-skills` | The source can contain one or many skills. Each top-level subdirectory containing a `SKILL.md` is one skill. ### `registry` | Field | Type | Required | | ---------- | ------ | -------- | | `registry` | string | no | Registry provenance for entries created by `gaal skill install`, usually `skills.sh`. `registry` does not change how `gaal sync` fetches skills. Sync remains source-based and uses `source:`. Registry-backed entries are still distinct from legacy entries that have the same source but no `registry:`. ### `agents` | Field | Type | Required | | -------- | ---------------- | -------- | | `agents` | array of strings | yes | Either a list of registry names (`[claude-code, cursor, codex]`) or the wildcard `["*"]`. `["*"]` resolves at sync time to **agents currently detected on this machine**. Use `gaal sync --force` to expand it to every registered agent regardless of detection. For registry installs, omitted `agents` and `agents: ["*"]` are not treated as equivalent. `gaal skill install` writes `agents: ["*"]` explicitly when you accept the default. ### `global` | Field | Type | Required | Default | | -------- | ---- | -------- | ------- | | `global` | bool | no | `false` | | Value | Install layout | | ------- | ---------------------------------------- | | `false` | `././skills/` (per-project) | | `true` | `~/./skills/` (per-user) | ### `target_subdir` | Field | Type | Required | | --------------- | ------ | -------- | | `target_subdir` | string | no | Optional subdirectory under the resolved agent skills directory. Use it when an agent supports grouping skills, or when you want two entries from the same source to land in different folders. The value must be relative and cannot contain `..`. ### `select` | Field | Type | Required | | -------- | ---------------- | -------- | | `select` | array of strings | no | Names (matching subdirectory names in the source) of specific skills to install. Empty or omitted = install everything in the source. ### `tools` | Field | Type | Required | | ------- | ----------------------------------- | -------- | | `tools` | array of [ToolEntry](/schema/tools) | no | CLI tools this skill collection depends on. Checked for presence by `gaal doctor` and surfaced in the `gaal sync` missing-tool banner. Accepts the same shorthand and full forms as the top-level `tools:` block — see [Tools](/schema/tools). ## Example ```yaml theme={"theme":"nord"} skills: - source: anthropics/skills registry: skills.sh select: [frontend-design] agents: ["*"] global: true - source: anthropics/skills agents: ["*"] global: false - source: vercel-labs/agent-skills agents: [claude-code, cursor] select: [test-writer, code-reviewer] global: true - source: ./company-skills agents: [claude-code, cursor] global: false - source: ./company-skills agents: [codex] target_subdir: team - source: obra/superpowers agents: ["*"] tools: - name: tree-sitter hint: "brew install tree-sitter" ``` ## Behaviour * Sources are fetched once per sync and reused across all targeted agents. * Skills already at the right version are reported `= unchanged`. * Skills no longer in the config are left alone unless you pass `--prune`. * If `select:` is empty or omitted, the entry covers every skill in the source. * Install identity is based on `source`, `registry`, normalized `agents`, `global`, and `target_subdir`. ## Related # telemetry Source: https://docs.getgaal.com/schema/telemetry Opt-in anonymous usage telemetry. Off by default. ```yaml theme={"theme":"nord"} telemetry: ``` ## Type `bool` ## Required No. Defaults to `false`. gaal collects nothing unless this is explicitly set to `true`. ## Scope restriction This field is **only** honoured in: * The user-scope file: `~/.config/gaal/config.yaml` (or `$XDG_CONFIG_HOME/gaal/config.yaml` / `%AppData%\gaal\config.yaml`). * The system-scope file: `/etc/gaal/config.yaml`. A workspace `gaal.yaml` that sets `telemetry:` is **ignored** with a warning. This rule prevents a checked-in repo file from opting contributors into telemetry. See [Scopes](/concepts/scopes) for the full restriction policy. ## What's collected when enabled Per command invocation: * Command name (`sync`, `doctor`, …). * Exit code class (`ok`, `warning`, `error`). * gaal version. * OS family (`linux`, `darwin`, `windows`). * A randomly generated, locally stored install ID. No file paths, no skill names, no MCP target paths, no URLs from your config. See [Concepts → Telemetry](/concepts/telemetry) and the [Privacy Policy](https://github.com/getgaal/gaal/blob/main/PRIVACY_POLICY.md) for the complete description. ## Examples ```yaml theme={"theme":"nord"} # ~/.config/gaal/config.yaml telemetry: true ``` ```yaml theme={"theme":"nord"} # ~/.config/gaal/config.yaml telemetry: false ``` ## Verifying ```bash theme={"theme":"nord"} $ gaal doctor … ✓ telemetry: disabled (per ~/.config/gaal/config.yaml) ``` ## Related # tools Source: https://docs.getgaal.com/schema/tools CLI tools expected to be on PATH, checked by doctor and sync. ```yaml theme={"theme":"nord"} tools: - # bare-string shorthand - name: hint: # optional ``` ## Type `array[ToolEntry]` ## Required No. Omit `tools:` if you don't depend on any external CLIs. When absent everywhere, `gaal doctor` renders no Tools section and `gaal sync` prints no banner. ## Where it can appear `tools:` is valid in two places: | Location | Meaning | | ------------------------- | ----------------------------------------------------- | | Top level of `gaal.yaml` | Tools required by the workspace as a whole. | | Inside a `skills[]` entry | Tools required specifically by that skill collection. | Both forms accept the same schema. At check time, gaal unions the two lists and deduplicates by `name`; a top-level entry wins over a per-skill entry with the same name. See [Behaviour](#behaviour) below. ## Entry fields ### `name` | Field | Type | Required | | ------ | ------ | -------- | | `name` | string | yes | The executable name to look up on `PATH`. Uses Go's `exec.LookPath`, so Windows `.exe` resolution is handled automatically. ### `hint` | Field | Type | Required | | ------ | ------ | -------- | | `hint` | string | no | Free-form install instruction shown when the tool is missing. Typically a one-liner like `brew install tree-sitter` or a URL. gaal does not parse or execute the hint; it's displayed as-is. ## Bare-string shorthand A plain string is equivalent to an object with only `name` set: ```yaml theme={"theme":"nord"} tools: - gh # same as { name: gh } - rtk # same as { name: rtk } ``` Mix shorthand and full form freely: ```yaml theme={"theme":"nord"} tools: - gh - rtk - name: tree-sitter hint: "brew install tree-sitter" ``` ## Example ```yaml gaal.yaml theme={"theme":"nord"} schema: 1 tools: - gh - name: rtk hint: "cargo install rtk" skills: - source: obra/superpowers agents: ["*"] tools: - name: tree-sitter hint: "brew install tree-sitter" ``` ## Behaviour * **Presence only.** gaal runs `exec.LookPath(name)` for each entry. No version parsing, no execution of the tool. * **Dedup by name.** Top-level and per-skill `tools:` are unioned; the first occurrence wins. Top-level is collected before per-skill, so a workspace-level entry with a hint overrides a bare per-skill mention of the same name. * **Merge across scopes.** `tools:` follows the standard config merge chain (system → user → workspace). A higher-priority scope replaces lower-priority entries with the same `name`. * **`gaal doctor`.** Adds a `tools:` section to the output. Found tools render `✓ (on PATH: )`. Missing tools render `! — missing from PATH (required by: ; hint: )` and bump the exit code to `1` (warning). * **`gaal sync`.** Prints a compact one-time banner to stderr at the start of sync listing any missing tools, then proceeds normally. Exit code is unaffected; sync never blocks on missing tools. ## Out of scope The following are intentionally **not** supported today: * **Version checks.** `--version` parsing varies too much across tools. * **Installation.** gaal does not install tools. `hint` is display-only. * **Skill-repo-declared tools.** Tools must be declared in your own `gaal.yaml`; gaal does not read tool requirements from inside skill source repos. ## Related # Common errors Source: https://docs.getgaal.com/troubleshooting/common-errors What specific error messages mean and how to fix them. If `gaal sync` or `gaal doctor` is reporting an error, find it on this page. Each entry covers what triggered it, what gaal is actually checking, and the fix. ## "config not found" ```text theme={"theme":"nord"} ✗ no configuration found searched: --config flag (not provided) ./gaal.yaml ~/.config/gaal/config.yaml /etc/gaal/config.yaml ``` gaal couldn't find any of the four config sources. Either: * **You meant to be in a project directory**, `cd` to it. * **You haven't initialised yet**, run `gaal init`. * **You're scripting gaal in a non-standard location**, pass `--config /path/to/file.yaml`. ## "schema validation failed" ```text theme={"theme":"nord"} ✗ ./gaal.yaml: schema validation failed skills[2].agents: expected array of strings, got string ``` The YAML parsed but the structure is wrong for the schema. The error message includes a JSON-pointer path (`skills[2].agents`), go to that location and compare against [the schema reference](/schema/overview). Tip: install the JSON Schema (`gaal schema -f schema.json`) and your editor will catch this before you save. ## "scope-restricted field in workspace" ```text theme={"theme":"nord"} ! ./gaal.yaml: telemetry cannot be set in a workspace config (ignored) ``` The `telemetry` key is restricted to the user (`~/.config/gaal/config.yaml`) and system (`/etc/gaal/config.yaml`) scopes. The workspace value is ignored. Move it to the user scope. ## "source not reachable" ```text theme={"theme":"nord"} ✗ skills[0].source: anthropics/skills (HTTP 404) ``` The `source:` URL doesn't resolve. Either: * The repo was renamed or deleted, update the URL. * It's a private repo and your local credentials don't grant access, check your SSH key / `~/.netrc`. * You're offline, pass `--offline` to `doctor` or wait until you're online. ## "destination is not empty" ```text theme={"theme":"nord"} destination src/example is not empty (contains: README.md); gaal refuses to clone into a directory with existing content ``` gaal will not clone a managed repository into a directory that already contains files. Move the existing directory, delete it yourself, or point `repositories:` at a different path. ## "remote URL mismatch" ```text theme={"theme":"nord"} repositories[src/example]: remote URL mismatch: origin is git@github.com:acme/example.git, config wants https://github.com/acme/example.git ``` For an existing Git checkout, gaal uses the checkout's `origin`. It does not silently retarget the working copy. Either update `url:` in `gaal.yaml` to match the checkout, or run `git remote set-url origin ` in the working copy. ## "MCP target file not writable" ```text theme={"theme":"nord"} ✗ mcp "filesystem": ~/.claude.json (permission denied) ``` gaal can't write to the MCP target file resolved from the agent registry. Either: * The file's permissions are wrong, `chmod 644` it. * The parent directory exists but isn't user-writable, fix the permissions. * The path crosses a read-only mount. If the parent directory is **missing**, gaal silently skips the entry rather than creating an agent-owned directory; install the agent first (or pre-create the directory yourself). ## "MCP target file is not valid JSON" ```text theme={"theme":"nord"} ✗ mcp "filesystem": parsing existing config ~/.claude.json invalid character '}' looking for beginning of object key string ``` Someone (you, an installer, an editor crash) wrote invalid JSON into the target file. gaal won't try to fix it because it can't safely tell what was intended. Open the file, fix the syntax, run sync again. ## "target field is deprecated" ```text theme={"theme":"nord"} ! mcp: 'target' field is deprecated; use 'agents' and 'global' instead (name=filesystem) ``` The legacy `target:` field on `mcps[]` still works but logs a warning on every sync. Replace it with `agents:` + `global:` so gaal resolves the path from the registry. See [Configure MCP servers → Migrating from `target:`](/configure/mcp-servers#migrating-from-target). ## "custom agent overrides built-in" ```text theme={"theme":"nord"} ! ~/.config/gaal/agents.yaml: 'cursor' is a built-in agent (custom entry ignored) ``` You can extend the built-in registry with new agents but you can't override existing ones. Rename your custom entry (e.g. `my-cursor`) or remove it. ## "agent skills directory not detected" ```text theme={"theme":"nord"} ! agents: github-copilot is not installed; skills[0] (agents: ["*"]) skipped ``` You used `agents: ["*"]` and one of the registry agents wasn't detected. By default gaal only installs into agents it detects. If you want to install regardless, for example, to pre-stage a fresh machine, pass `--force`: ```bash theme={"theme":"nord"} gaal sync --force ``` ## "service mode rejected" ```text theme={"theme":"nord"} error: --dry-run and --service are incompatible ``` ```text theme={"theme":"nord"} error: --prune and --service are incompatible ``` These are intentional. `--service` is a continuous loop; `--dry-run` would do nothing forever, and `--prune` is a destructive operation that doesn't belong in an unattended loop. Run those one-shot. ## "VCS binary not found" ```text theme={"theme":"nord"} ✗ repositories[src/legacy/old-tool]: type 'svn' requires the svn binary on $PATH ``` Hg, Subversion, and Bazaar use the system binary. Install it (`brew install subversion`, `apt install subversion`, …) or convert the repository to a Git mirror. ## Still stuck? Open an issue at [github.com/getgaal/gaal](https://github.com/getgaal/gaal/issues) with: * The exact command you ran. * The output of `gaal doctor -o json`. * The version from `gaal version`. ## Related # Using gaal doctor Source: https://docs.getgaal.com/troubleshooting/doctor The first command to run when something looks off. `gaal doctor` is the diagnostic command. Run it any time gaal isn't behaving the way you expect, it's faster than reading the source. ## What doctor checks ```bash theme={"theme":"nord"} $ gaal doctor config: ✓ ./gaal.yaml parses against schema 1 ✓ no scope-restricted fields in workspace sources: ✓ anthropics/skills reachable ✓ vercel-labs/agent-skills reachable mcps: ✓ ~/.claude.json writable ✓ ~/.cursor/mcp.json writable tools: ✓ gh (on PATH: /opt/homebrew/bin/gh) ! rtk — missing from PATH (required by: workspace; hint: cargo install rtk) agents: installed: claude-code, cursor, codex not installed: github-copilot, windsurf telemetry: ✓ disabled (per ~/.config/gaal/config.yaml) 3 agents installed, 0 misconfigured ``` In order, doctor checks: 1. **Config validity**, does `gaal.yaml` parse? Does it conform to the schema? Are scope-restricted fields used in the wrong scope? 2. **Source reachability**, every `skills[*].source` and every `mcps[*].source` URL is contacted (HEAD only, no download). 3. **MCP target writability**, every `mcps[*].target` file is checked for read/write permission. Missing files are OK; the target will be created on sync. 4. **Tool presence**, every entry under top-level `tools:` and per-skill `tools:` is looked up on `PATH` with `exec.LookPath`. Missing tools warn (exit code 1) and show the `hint` when one is declared. See [`schema/tools`](/schema/tools). 5. **Agent installation**, for each agent in the registry, doctor reports whether gaal detects it on this machine. 6. **Telemetry status**, opt-in / opt-out, plus the source file the value came from. ## Exit codes | Code | Meaning | | ---- | ----------------------------------------------------------------------------------------------------- | | `0` | Everything passed. | | `1` | Warnings only, gaal will function, but something is suboptimal (e.g. an unreachable optional source). | | `2` | Errors, gaal cannot operate as configured. | ```bash theme={"theme":"nord"} gaal doctor && echo "ready to sync" ``` ## Useful flags ```bash theme={"theme":"nord"} gaal doctor --offline # skip network reachability checks gaal doctor --no-upsell # suppress the Community Edition graduation message gaal doctor -o json # machine-readable output ``` `--offline` is what you want in CI environments without internet access, or when running over a metered connection. ## Reading doctor output The output is grouped by check category. Within each category, lines are prefixed with: | Prefix | Severity | | ------ | ------------------------------------------- | | `✓` | Passed. | | `!` | Warning, not blocking, but worth attention. | | `✗` | Error, blocks sync. | Errors always come with a hint about how to fix them. ## Common things doctor catches * A workspace `gaal.yaml` trying to set `telemetry:`. * An `mcps[].target` whose parent directory doesn't exist *and* isn't writable by the current user. * A `skills[].source` URL that 404s or requires authentication you haven't set up. * An MCP target file that's not valid JSON (someone hand-edited it incorrectly). * A custom agents file at `~/.config/gaal/agents.yaml` that overrides a built-in entry. For step-by-step fixes to specific errors, see [Common errors](/troubleshooting/common-errors). ## Related # FAQ Source: https://docs.getgaal.com/troubleshooting/faq Short answers to questions that come up a lot. ## Does gaal upload my configuration anywhere? No. gaal is local-only today. The only outbound network calls are to the URLs you list in `gaal.yaml` (`skills[].source`, `mcps[].source`) and, if you opted in, anonymous telemetry events. See [Telemetry](/concepts/telemetry). ## Is gaal a daemon? It can be. `gaal sync` is one-shot by default; `gaal sync --service --interval 5m` keeps it running in a loop. See [Sync vs. service mode](/workflows/sync-vs-service). ## Can I use gaal without git? Yes. The `git` repository type uses a pure-Go backend, so you don't need a system `git` binary. `hg`, `svn`, and `bzr` *do* require their respective system binaries. `tar` and `zip` only need an HTTPS connection. ## Can I run gaal in CI? Yes. The recommended pattern is `gaal --sandbox $RUNNER_TEMP/gaal-sb sync --dry-run` to validate your config without touching the runner. See [Sandbox mode](/workflows/sandbox-mode). ## Will gaal overwrite my hand-edited Claude / Cursor / VS Code config? No. gaal only touches the `mcpServers` keys it manages inside each target file. Other top-level keys, and any MCP entries not in `gaal.yaml`, are preserved. See [The upsert guarantee](/concepts/mcp-servers#the-upsert-guarantee). ## Will gaal delete a skill if I remove it from gaal.yaml? Not by default. Skills you remove from the config are left in place. To clean them up, run `gaal sync --prune`. See [Pruning](/workflows/pruning). ## Why isn't my gaal.yaml being picked up? gaal searches in this order: `--config` → `./gaal.yaml` → `~/.config/gaal/config.yaml` → `/etc/gaal/config.yaml`. Run `gaal doctor`, the output names the source file for every setting. If it's not finding your file, you're probably in the wrong directory or your file is named something other than `gaal.yaml`. ## Can I use gaal across multiple machines? Yes, that's the main use case. Commit your `gaal.yaml` (and your user-scope config, if you keep one) to a dotfiles repo, clone it on every machine, run `gaal sync`. See [Sharing across machines](/workflows/sharing-across-machines). ## Can gaal manage agents I haven't installed yet? Yes, pass `--force` to `gaal sync` and skill directories will be created for every registered agent regardless of installation. Useful for pre-staging fresh machines. ## How do I add an agent gaal doesn't support? Write a custom registry file at `~/.config/gaal/agents.yaml`. See [Custom agents](/configure/custom-agents). ## How do I keep secrets out of gaal.yaml? Reference environment variables in `args:` and `env:` blocks. gaal writes them through verbatim; the agent process resolves them when launching the MCP server. See [Environment & secrets](/configure/environment-and-secrets). ## What's the difference between gaal and Community Edition? gaal today is the single-user CLI documented on this site. Community Edition (in development) adds a shared registry, drift detection, and approval workflows for teams. The `gaal migrate` command is the graduation path. See [`gaal migrate`](/cli/migrate). ## Is gaal open source? Yes. gaal is licensed under [AGPL-3.0](https://github.com/getgaal/gaal/blob/main/LICENSE). ## Where can I report a bug? [github.com/getgaal/gaal/issues](https://github.com/getgaal/gaal/issues). Include the output of `gaal version` and `gaal doctor -o json`. ## Related # Previewing changes (--dry-run) Source: https://docs.getgaal.com/workflows/dry-run See what sync would do before letting it touch your disk. `gaal sync --dry-run` runs the full audit and planning pipeline but writes nothing. It's the safety net you reach for whenever you're not sure what's in the pipeline. ## The basics ```bash theme={"theme":"nord"} $ gaal sync --dry-run plan: repositories + clone src/example (git, main) ~ update src/gaal (git, main → main, 2 commits ahead) = unchanged src/dataset skills + install code-review → claude-code, cursor ~ update git-helper → claude-code (v1.2 → v1.3) = unchanged refactor → claude-code content + copy AGENTS.md → CLAUDE.md mcps + upsert filesystem → ~/.claude.json = unchanged github → ~/.claude.json pre-sync hooks > run snapshot dotfiles ``` The legend: | Symbol | Meaning | | ------ | --------------------------------------- | | `+` | Will be created. | | `~` | Will be updated in place. | | `=` | Already in the desired state. | | `-` | Would be removed (only with `--prune`). | ## Exit codes `--dry-run` uses the exit code as a status signal so you can drive it from scripts: | Code | Meaning | | ---- | -------------------------------------------------------------- | | `0` | Nothing to change. State is fully reconciled. | | `1` | Changes are pending. Run `gaal sync` to apply them. | | `2` | Error during planning (config invalid, source unreachable, …). | ```bash theme={"theme":"nord"} gaal sync --dry-run && echo "in sync" ``` ## Machine-readable output ```bash theme={"theme":"nord"} gaal sync --dry-run -o json ``` Returns a structured plan suitable for piping into `jq` or feeding a CI step. The ASCII banner is suppressed automatically when `-o json` is set. ## Combining with other flags | Combo | Behaviour | | ----------------------------- | ---------------------------------------------------------------------- | | `--dry-run --prune` | Reports what would be removed, removes nothing. | | `--dry-run --force` | Reports installs that would happen into agents not currently detected. | | `--dry-run --sandbox /tmp/sb` | Plans against the sandboxed filesystem, not your real one. | | `--dry-run --service` | **Rejected.** A dry-run service loop is meaningless. | ## CI pattern: fail the build on drift Run dry-run with `set -e` in CI to fail when checked-in skills/MCP entries don't match the committed config: ```bash theme={"theme":"nord"} gaal sync --dry-run -o json | tee plan.json test "$(jq -r '.changes | length' plan.json)" -eq 0 ``` ## Related # First-time setup from an existing machine Source: https://docs.getgaal.com/workflows/first-time-setup Turn the skills and MCP servers already on your machine into a gaal.yaml. If you've been using coding agents for a while, your machine probably already has skills scattered across `.claude/skills`, `.cursor/skills`, `.github/skills`, plus MCP servers in two or three JSON files. The fastest path to a useful `gaal.yaml` is to ask gaal to inventory what's there and import it. ## 1. Audit what's on disk ```bash theme={"theme":"nord"} $ gaal audit discovered: skills (project) .claude/skills/code-review (claude-code) .cursor/skills/test-writer (cursor) skills (global) ~/.claude/skills/git-helper (claude-code) ~/.cursor/skills/refactor (cursor) mcps ~/.claude.json filesystem, git, github ~/.cursor/mcp.json filesystem ``` `gaal audit` writes nothing. It scans: * Project-relative skill directories (`.claude/skills`, `.cursor/skills`, `.github/skills`, `.agents/skills`, …). * Global skill directories (`~/.claude/skills`, `~/.cursor/skills`, `~/.agents/skills`, …). * Per-agent package-manager paths (`~/.cursor/extensions`, `~/.claude/plugins/cache`, …). * Every agent's MCP config file. ## 2. Choose a scope Decide whether the imported config should live with this project or follow you across projects: * **Project (`./gaal.yaml`)**, gets committed into the repo. Best for codebase-specific skills and project-tied MCP servers. * **Global (`~/.config/gaal/config.yaml`)**, applies in every workspace. Best for personal helper skills and shared MCP servers like `filesystem`. You can mix: keep your personal stuff in the user file and per-project stuff in the workspace file. They merge cleanly. See [Scopes](/concepts/scopes). ## 3. Run the wizard ```bash theme={"theme":"nord"} $ gaal init ? How should we create your gaal.yaml? ▸ Import everything detected on this machine Start from an empty documented skeleton ? Where should this configuration apply? ▸ Project (./gaal.yaml) Global (~/.config/gaal/config.yaml) ? Select skills to import (Space to toggle, Enter to confirm) [x] code-review (claude-code, project) [x] test-writer (cursor, project) [x] git-helper (claude-code, global) [ ] refactor (cursor, global) ? Select MCP servers to import [x] filesystem → ~/.claude.json [x] git → ~/.claude.json [ ] github → ~/.claude.json [x] filesystem → cursor/mcp.json ✓ wrote gaal.yaml (12 skills, 3 mcps) ``` Everything is preselected. Press Enter to accept, or Space to toggle individual entries. ## 4. Skip the wizard (CI / scripts) ```bash theme={"theme":"nord"} # Import everything detected, project scope gaal init --import-all --scope project # Empty annotated skeleton, global scope gaal init --empty --scope global # Overwrite an existing file gaal init --import-all --scope project --force ``` `--empty` and `--import-all` are mutually exclusive. One is required when stdin is not a TTY. ## 5. Preview before syncing Always run a dry-run first: ```bash theme={"theme":"nord"} gaal sync --dry-run ``` Exit codes: **0** = no changes pending, **1** = changes pending, **2** = error. ## 6. Sync for real ```bash theme={"theme":"nord"} gaal sync ``` ## 7. Commit and ship ```bash theme={"theme":"nord"} git add gaal.yaml git commit -m "gaal: import current setup" ``` On every other machine you own, clone the repo, `cd` in, and run `gaal sync`. You're set up. ## Related # Sync hooks Source: https://docs.getgaal.com/workflows/hooks Run local commands before and after gaal sync. Hooks let a config wrap sync with local commands. Common uses are snapshotting dotfiles before a sync, refreshing a checked-out docs repo afterwards, or rebuilding files generated from synced content. ## Basic shape ```yaml theme={"theme":"nord"} hooks: pre-sync: - name: snapshot dotfiles command: ./scripts/snapshot.sh timeout: 1m continue_on_error: true post-sync: - name: refresh docs command: git args: ["-C", "~/docs", "pull", "--ff-only"] ``` Hooks use exec form: `command` plus `args`. There is no shell, so pipes, redirects, and globs are not interpreted. Put shell logic in a script and call that script. ## Order 1. gaal builds the sync plan. 2. `pre-sync` hooks run in order. 3. Sync applies repositories, skills, content, and MCPs. 4. `--prune` runs, when requested. 5. gaal prints the sync summary. 6. `post-sync` hooks run in order. `post-sync` only runs after a successful sync. It is skipped when planning, sync, or prune fails. ## Platform filters ```yaml theme={"theme":"nord"} hooks: pre-sync: - command: ./scripts/macos-only.sh os: [darwin] ``` Use `os:` to restrict a hook to `linux`, `darwin`, or `windows`. ## Environment Every hook sees `GAAL_HOOK_PHASE`, `GAAL_HAS_CHANGES`, `GAAL_HAS_ERRORS`, and newline-separated lists of planned or changed resources. See [Schema: hooks](/schema/hooks#environment) for the full list. ## Dry-run `gaal sync --dry-run` shows hooks in the plan but never executes them. ```text theme={"theme":"nord"} pre-sync hooks > run snapshot dotfiles post-sync hooks > run refresh docs ``` ## Service mode In service mode, hooks run on every iteration. A failing `pre-sync` hook skips that iteration. A failing `post-sync` hook is logged and the loop continues. ## Related # Pinning versions Source: https://docs.getgaal.com/workflows/pinning Lock skills, repositories, and MCP servers to specific revisions. Reproducibility is one of the main reasons to use gaal in the first place. Pinning every external source to a specific revision turns "it worked on my machine" into "it worked on every machine." ## Pinning repositories The `version:` field accepts the right pin format for each VCS type: ```yaml theme={"theme":"nord"} repositories: src/branch-pin: type: git url: https://github.com/example/proj.git version: main # branch, moves with the remote src/tag-pin: type: git url: https://github.com/example/proj.git version: v2.1.0 # tag, immutable src/commit-pin: type: git url: https://github.com/example/proj.git version: a1b2c3d4e5f6789 # commit, immutable, fully reproducible src/svn-pin: type: svn url: https://svn.example.com/repos/proj/trunk version: "1234" # SVN revision src/tar-pin: type: tar url: https://example.com/proj-2024.tar.gz version: proj-2024 # strip-prefix; effectively pins to the URL ``` For maximum reproducibility, prefer tags or commits over branch names. ## Pinning skill sources Skill sources don't have a `version:` field, they always track the source's default branch. Two ways to pin: ### 1. Mirror the source as a repository, then point at it locally ```yaml theme={"theme":"nord"} repositories: vendor/anthropics-skills: type: git url: https://github.com/anthropics/skills.git version: v1.4.0 # tag pin skills: - source: ./vendor/anthropics-skills agents: ["*"] select: [frontend-design, skill-creator] ``` The skills now come from a pinned local directory, and the repository pin governs the version. ### 2. Use a tag-pinned tarball ```yaml theme={"theme":"nord"} repositories: vendor/skills-v140: type: tar url: https://github.com/anthropics/skills/archive/refs/tags/v1.4.0.tar.gz version: skills-1.4.0 skills: - source: ./vendor/skills-v140 agents: ["*"] ``` ## Pinning MCP servers MCP entries written `inline:` are pinned by definition, the command and arguments you wrote are exactly what runs: ```yaml theme={"theme":"nord"} mcps: - name: filesystem agents: [claude-code] global: true inline: command: npx args: ["-y", "@modelcontextprotocol/server-filesystem@1.4.0", "~/projects"] ``` For `npx`-launched servers, pin the package version in the args (`@1.4.0`). For `uvx`, use `uvx package==1.4.0`. For binaries, point at a specific path. When using `source:` to pull a remote MCP config, host the JSON yourself or pin to a tagged URL, never trust an HTTPS URL whose contents can change. ## Reading current pins ```bash theme={"theme":"nord"} $ gaal status repositories src/gaal git · main · clean src/anthropics-skills git · v1.4.0 · clean skills frontend-design from src/anthropics-skills mcps filesystem ~/.claude.json ``` `gaal status` reports the actual revision present on disk. ## Related # Pruning orphaned resources Source: https://docs.getgaal.com/workflows/pruning Remove skills and MCP entries gaal used to manage but no longer does. Removing an entry from `gaal.yaml` doesn't, by default, delete what gaal previously installed. The leftover files are called **orphans**. `gaal sync --prune` cleans them up. Pruning is opt-in because the safe default is "leave alone what I didn't author this run." If you removed a skill from `gaal.yaml` by accident, you don't want gaal to delete it before you notice. ## What gets pruned | Resource | Pruned? | Notes | | --------------------------------------- | ------- | ----------------------------------------------------------------------------------------------------------- | | **Skills** | Yes | Skill directories gaal previously installed and that no longer have a matching `skills[]` entry. | | **MCP server entries** | Yes | Inside each managed target file, `mcpServers` keys gaal previously upserted that are no longer in `mcps[]`. | | **Repositories** | No | gaal never deletes repository directories. Remove them by hand if you want them gone. | | **Other JSON keys in MCP target files** | No | `--prune` only touches keys gaal could have authored. | ## Always preview a prune ```bash theme={"theme":"nord"} gaal sync --prune --dry-run ``` The plan marks pruned items with `-`: ```text theme={"theme":"nord"} plan: skills - remove old-reviewer ← claude-code (was managed by gaal) mcps - remove legacy-server ← ~/.claude.json ``` ## Apply the prune ```bash theme={"theme":"nord"} gaal sync --prune ``` ## Incompatible with `--service` ```bash theme={"theme":"nord"} $ gaal sync --service --prune error: --prune and --service are incompatible: use one-shot mode for destructive operations ``` Destructive operations don't belong in an unattended loop. Run prune as a one-shot after editing `gaal.yaml`. ## How gaal knows what it managed gaal records what it installed each cycle. A skill or MCP entry is considered gaal-managed if a previous sync wrote it. When you remove it from `gaal.yaml` and run `--prune`, that record is what authorises the deletion. If you delete the gaal state file by hand, gaal forgets what it managed and `--prune` becomes a no-op until you sync again. ## Related # Sandbox mode Source: https://docs.getgaal.com/workflows/sandbox-mode Redirect every write to a throwaway directory, perfect for CI and testing. `--sandbox` redirects every filesystem write gaal would normally do to a directory of your choice. Use it whenever you want to run a real sync, including `--prune`, without touching your actual home directory or workspace. ## The basics ```bash theme={"theme":"nord"} gaal --sandbox /tmp/gaal-test sync ``` After this command: * Repositories are cloned into `/tmp/gaal-test/`. * Skill directories that would have been written to `~/.claude/skills/...` land in `/tmp/gaal-test/.claude/skills/...`. * MCP target files are created (or upserted) under `/tmp/gaal-test/...`. Nothing outside `/tmp/gaal-test` is touched. ## What it's good for * **CI**, verify a `gaal.yaml` change applies cleanly without affecting the runner. * **Testing a new MCP server**. See what the JSON would look like before letting gaal write it. * **Auditing an unfamiliar config**, run `--sandbox` against a stranger's `gaal.yaml` and inspect the result. * **Reproducing a bug**, give support team a minimal test case that runs in a known-clean directory. ## Combining with other flags ```bash theme={"theme":"nord"} # Plan only, nothing written even inside the sandbox gaal --sandbox /tmp/sb sync --dry-run # Real sync into the sandbox gaal --sandbox /tmp/sb sync # Prune inside the sandbox gaal --sandbox /tmp/sb sync --prune # Status / doctor reading from the sandboxed state gaal --sandbox /tmp/sb status gaal --sandbox /tmp/sb doctor ``` ## CI example ```yaml theme={"theme":"nord"} # .github/workflows/gaal-check.yml name: gaal config on: [push, pull_request] jobs: validate: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - run: curl -fsSL https://raw.githubusercontent.com/getgaal/gaal/main/scripts/install.sh | sh - run: gaal doctor - run: gaal --sandbox "$RUNNER_TEMP/gaal-sb" sync --dry-run - run: gaal --sandbox "$RUNNER_TEMP/gaal-sb" sync - run: gaal --sandbox "$RUNNER_TEMP/gaal-sb" status ``` `gaal doctor` validates the YAML, `--sandbox sync --dry-run` proves the plan computes, and `--sandbox sync` proves it applies. None of it touches the runner's real home. ## Related # Sharing gaal.yaml across machines Source: https://docs.getgaal.com/workflows/sharing-across-machines The dotfiles pattern: one repo, every machine in sync. gaal is local-only today. There is no server, no central registry, no push-from-the-cloud. Cross-machine consistency is your responsibility, and the cleanest way to deliver it is the same way you sync your shell config: a dotfiles repo. ## The pattern 1. Create (or use your existing) **dotfiles repository**. 2. Put your **user-scope** `config.yaml` in there. 3. Optionally put per-project `gaal.yaml` files in the repos they describe. 4. On every machine, after cloning, symlink the user file and run `gaal sync`. That's it. ## Repo layout ``` dotfiles/ ├── gaal/ │ └── config.yaml ← lives at ~/.config/gaal/config.yaml ├── git/ │ └── config ├── fish/ │ └── config.fish └── install.sh ``` ## Bootstrap script ```bash theme={"theme":"nord"} #!/bin/bash # install.sh, run once per new machine set -euo pipefail # Symlink gaal user config mkdir -p ~/.config/gaal ln -sf "$PWD/gaal/config.yaml" ~/.config/gaal/config.yaml # Install gaal if missing command -v gaal >/dev/null || \ curl -fsSL https://raw.githubusercontent.com/getgaal/gaal/main/scripts/install.sh | sh # Apply gaal sync gaal doctor ``` ## Per-project workspace files A workspace `gaal.yaml` overrides the user file for the things it specifies. Use this for codebase-specific setup that should live with the repo: ```yaml theme={"theme":"nord"} # my-project/gaal.yaml schema: 1 repositories: vendor/our-mcp-servers: type: git url: git@github.com:acme/mcp-servers.git version: main skills: - source: ./skills/reviewer agents: ["*"] global: false mcps: - name: project-db agents: [claude-code] global: true inline: command: uvx args: [mcp-server-postgres, "${DATABASE_URL}"] ``` Anyone who clones this repo and runs `gaal sync` gets the project-specific MCP server and skills, on top of whatever's in their personal user-scope config. ## Pulling latest The dotfiles approach degrades gracefully: * Pull your dotfiles repo (`git pull` from the workflow you already have). * Run `gaal sync`. Or automate the cycle with [continuous service mode](/workflows/sync-vs-service) and a cron `git pull`. ## What not to put in a shared `gaal.yaml` * Anything secret. See [Environment & secrets](/configure/environment-and-secrets). * Per-machine absolute paths (e.g. `args: [mcp-server-filesystem, /Users/me/...]`). Use `~/...` so it works for anyone. * `telemetry:`, workspace files can't set it anyway. See [Scopes](/concepts/scopes). ## Related # Sync once vs. continuous service Source: https://docs.getgaal.com/workflows/sync-vs-service Pick the right mode for laptops, dev workstations, and CI. `gaal sync` runs the full reconciliation pipeline once and exits. `gaal sync --service` keeps the same pipeline running in a loop. Both produce identical state on disk, pick the one that matches how you use the machine. ## One-shot sync (the default) ```bash theme={"theme":"nord"} gaal sync ``` Runs the full pipeline: audit, plan, apply. Exits when finished. Use this when: * You want explicit control over when reconciliation happens. * You're scripting in a Makefile, post-merge hook, or CI job. * You're on a laptop where a background process would just waste battery. ## Continuous service ```bash theme={"theme":"nord"} gaal sync --service --interval 10m ``` Runs sync, sleeps, runs sync, sleeps. Forever. Catches `SIGTERM` and `Ctrl-C` cleanly. `--interval` accepts any Go duration string: `30s`, `5m`, `2h`. Default is `5m`. Use this when: * You're on a long-lived dev workstation and want skills/MCP entries to stay in sync as you edit `gaal.yaml`. * You want a system service that keeps a fleet of machines aligned with a config file pulled from a shared dotfiles repo (paired with a `git pull` cron). ### Incompatible with `--service` | Flag | Why | | ----------- | ------------------------------------------------------------ | | `--dry-run` | A dry-run service loop is meaningless. | | `--prune` | Destructive operations should never be in a continuous loop. | ## Running sync as a system service ### systemd (Linux) ```ini theme={"theme":"nord"} # ~/.config/systemd/user/gaal-sync.service [Unit] Description=gaal sync loop [Service] ExecStart=%h/.local/bin/gaal sync --service --interval 5m Restart=always [Install] WantedBy=default.target ``` ```bash theme={"theme":"nord"} systemctl --user daemon-reload systemctl --user enable --now gaal-sync.service ``` ### launchd (macOS) ```xml theme={"theme":"nord"} Labelcom.gaal.sync ProgramArguments /Users/you/.local/bin/gaal sync --service --interval 5m KeepAlive RunAtLoad ``` ```bash theme={"theme":"nord"} launchctl load ~/Library/LaunchAgents/com.gaal.sync.plist ``` ### Periodic via cron If a long-lived process feels like overkill, fire one-shot syncs from cron: ```cron theme={"theme":"nord"} */15 * * * * /home/you/.local/bin/gaal sync >> /tmp/gaal.log 2>&1 ``` ## Logging Pair service mode with a JSON log file for observability: ```bash theme={"theme":"nord"} gaal sync --service --interval 5m --log-file /var/log/gaal.json ``` Each cycle writes structured events you can ship into the log pipeline of your choice. ## Related