/agnostic-ai:importfrom agnostic-ai
Imports existing AI config files (CLAUDE.md, AGENTS.md, .cursor/rules, etc.) into agnostic-ai specs and syncs them across tools. Use when a project already has config for one AI CLI.
Ships in agnostic-ai. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Captures what one tool already knows and makes it drive all of them, without retyping the conventions.
Confirm the CLI is present: agnostic-ai --version. If missing, run the install skill first.
Inventory what exists. Check for CLAUDE.md, AGENTS.md, GEMINI.md, CONVENTIONS.md, .cursor/rules/, .clinerules/, .devin/rules/, .continue/rules/, .github/copilot-instructions.md, and any .claude/{agents,skills,settings.json}.
Scaffold the config if absent: agnostic-ai init.
Import each source you found, one command per tool:
agnostic-ai import claude # CLAUDE.md + .claude/{agents,skills,settings.json}
agnostic-ai import codex # AGENTS.md, root and nested
agnostic-ai import cursor # .cursor/rules/*.mdc
agnostic-ai import cline # .clinerules/, .cline/agents/
agnostic-ai import windsurf # .devin/rules/
agnostic-ai import continue # .continue/rules/
import writes spec files only. It never edits targets: or the rest of the config.
Commit the import before syncing, then sync as its own commit:
git add .agnostic-ai/ agnostic-ai.yaml
git commit -m "chore(agnostic-ai): import existing config"
agnostic-ai sync
git add -A
git commit -m "chore(agnostic-ai): regenerate per-target configs"
Splitting them keeps the review honest: the first commit carries the real content, the second is mechanical (headers, key order) and can be skimmed.
Read the imported specs with the user. An imported rule often mixes several concerns because it came from one long file; split it into one file per rule so scoping and per-target emission work properly.
import and its commit before the final sync.import strips the generated markers it wrote, so a later sync produces the same bytes.import does not capture: helper scripts referenced from settings.json, statusline.sh, and ad-hoc config files. Keep those in git next to .agnostic-ai/. Files bundled inside a skill directory do round-trip.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub chemaclass/agnostic-ai --plugin agnostic-ai4 skills in this plugin
/initSet up agnostic-ai in a project by scaffolding the spec directories, picking target AI CLIs, and producing the first generated config. Use when a project has no .agnostic-ai/ directory yet./installInstall or upgrade the agnostic-ai CLI on this machine, picking the route that fits the OS and what is already installed. Use when agnostic-ai is missing, when `agnostic-ai --version` fails, or before any other agnostic-ai skill runs./syncRegenerate every AI tool's config from the agnostic-ai specs, or check for drift without writing. Use after editing anything under .agnostic-ai/, when a generated file looks stale, or when CI reports a drift failure.Other plugins' skills for the same job