# Troubleshooting Run `precheck --json` to inspect detected agents, selected tools, optional packages, skipped agents, missing required dependencies, and degraded optional capabilities. Use `audit-system --json` to inspect repo-vs-system drift, managed marker counts, unmanaged files, and legacy aliases. Use `plan` to preview every file change. If a plan reports `classification=unmanaged`, the installer found user-owned content in the target path and will skip it unless `--adopt` or `--backup-replace` is used. If a plan reports `classification=legacy`, the installer found a compatibility or alias path and will skip it unless `--migrate` is used. A reviewed `--migrate` plan installs the canonical target and removes the legacy alias directory. Default installs use `--install-mode auto`, resolved per agent. Claude receives symlinked skill files when the filesystem supports them. Codex receives copied regular skill trees by default because symlinked skill loading is not assumed and the installed skills must remain self-contained. DeepSeek and Copilot receive reference adapters. OpenCode and Antigravity receive copied regular files; Antigravity uses documented flat global Markdown skill files under `~/.gemini/antigravity-cli/skills/`. Use `--install-mode symlink` only when you intentionally want to force links for every agent. Use `--install-mode reference` to force adapters for every agent. If an agent requires regular files in its settings directory, use `--install-mode copy`. Useful inspection commands: ```bash make precheck ARGS="--profile full-research --json" make audit-system ARGS="--profile full-research --migration-report --json" make plan ARGS="--profile full-research --migrate" make lifecycle-test ARGS="--matrix full --platform-shape all" make lifecycle-test ARGS="--matrix stress --platform-shape linux" make fake-root-lifecycle ARGS="--profile full-research --platform-shape all" ``` Common cases: | Symptom | Likely meaning | Next step | |---|---|---| | Agent is listed under skipped agents | The agent home was not detected under `--root`. | Install that agent first, change `--root`, or ignore it. | | Agent is skipped for a managed skill directory | That directory is a symlink, is not a directory, or is owned by neither root nor you, so the installer will not write through it. Some agent CLIs migrate their own layout and leave a compatibility symlink behind. | Inspect the path in the reason. Skipping is per target: every other agent is still planned and applied. | | Antigravity skills install to `~/.gemini/config/skills` | That home is migrated. Antigravity replaced `~/.gemini/antigravity-cli/skills` with a compatibility symlink and left a `.migrated` marker; the installer follows the vendor to the real directory instead of writing through the link. | Nothing to do. An unmigrated home still installs to `~/.gemini/antigravity-cli/skills`. A link pointing anywhere else is not followed and the target is skipped instead. | | Antigravity logs `invalid frontmatter format` for a rule file | Antigravity rejects a plugin rule with no YAML frontmatter and loads nothing from it. Rule files this installer wrote before frontmatter was added are still on disk. | Reinstall the `instruction-doc` artifacts. `verify` reports this as `antigravity-rule-frontmatter`. | | Install reports `relocated_records` | An agent moved a managed directory and left a link behind, so records still named the old path. The install repointed them at the artifacts they describe. | Nothing to do. Only the records moved; no file was read, written, or removed, and each record keeps its original uninstall origin. | | Required dependency is missing | A selected installed skill needs software that was not found. | Install the package, use an override, or select fewer skills. | | Dependency is degraded | The tool or install root was found but not fully executable from this substrate. | Re-run precheck from the native substrate, such as Windows or WSL. | | Plan skips unmanaged files | Existing user-owned content would be overwritten by a naive install. | Review the file, then choose `--adopt` or `--backup-replace` if appropriate. | | Plan skips legacy aliases | A skill exists under an old or alternate name. | Review `--migrate` output before applying migration. | | Agent does not load symlinked skills | The filesystem or agent loader does not follow symlinks. Codex is handled with self-contained copy mode by default. | Use the target's default auto mode, or explicitly choose `reference` or `copy` after reviewing the source-checkout dependency. | | Windows cannot start the PowerShell launcher | The host has no usable PowerShell 5.1+ or PowerShell 7+ session. | Install PowerShell, or use the POSIX bootstrap script from a compatible environment. | | Fake-root install has no actions | The fake root does not contain any detected agent homes such as `.codex`, `.claude`, `.deepseek`, `.copilot`, `.config/opencode`, or `.gemini/antigravity-cli`. | Create the agent homes you want to test under the fake root, or use `lifecycle-test` to create managed fake roots automatically. | | Docs freshness check fails in CI | Generated docs are stale. | Edit `installer/ai_agents_skills/docs.py` or manifests, run `make docs`, and commit the resulting `README.md` and `docs/` changes. | | Forced symlink smoke is degraded for Codex or DeepSeek | Current loader evidence does not prove file-symlinked `SKILL.md` loading for those agents. | Use default auto mode unless intentionally testing loader behavior; Codex defaults to copy and DeepSeek defaults to reference. | | Verify returns `no-managed-artifacts` | The selected scope has no state recorded by this installer. | Run install/adopt/migrate first, or verify a different scope. | Related pages: [Installation](installation.md), [Dependencies](dependencies.md), [Audit And Migration](audit-and-migration.md), [Verification](verification.md).