Skip to content

Project adoption

Use frigg adopt to keep project agent instructions and MCP configuration aligned with the installed Frigg workflow. Run it from the project repository or pass --workspace-root.

Select targets explicitly for a predictable first setup:

Terminal window
frigg adopt --target agents-md --target mcp-project --dry-run
frigg adopt --target agents-md --target mcp-project

The managed MCP entry uses loopback HTTP and expects frigg serve at the selected host and port.

If you omit targets, Frigg detects existing client markers. When none exist, it defaults to agents-md and claude-md.

Target Managed path
agents-md AGENTS.md
claude-md CLAUDE.md
copilot .github/copilot-instructions.md
cursor .cursor/rules/frigg.mdc
mcp-project .mcp.json
mcp-cursor .cursor/mcp.json
hook .claude/settings.json

--all selects every non-hook target. Add --target hook explicitly when you also want the soft Claude PreToolUse hook.

The default lightweight policy installs short Frigg-first rules plus a pointer to the production frigg-first-code-search skill:

Terminal window
frigg adopt --target agents-md --policy lightweight

Use expanded when the repository should carry a compact routing policy without depending on the skill being loaded:

Terminal window
frigg adopt --target agents-md --policy expanded

--skill-provider is repeatable and additive: Frigg still processes the selected adoption targets, then plans a skill copy for each provider.

Terminal window
frigg adopt \
--target agents-md \
--skill-provider claude \
--skill-provider codex \
--dry-run
Provider First existing skills directory used
claude ~/.claude/skills, then project .claude/skills
codex ~/.codex/skills
cursor Project .cursor/skills, then ~/.cursor/skills
copilot Project .github/skills, then ~/.copilot/skills

Frigg never creates a missing parent skills directory. The source must contain SKILL.md and resolves from skills/frigg-first-code-search under the adopted workspace unless FRIGG_SKILL_SOURCE points to another skill directory or its SKILL.md.

Run skill installation from the Frigg checkout, use a repository that contains the skill tree, or set the override:

Terminal window
FRIGG_SKILL_SOURCE=/absolute/path/to/frigg-first-code-search \
frigg adopt --target agents-md --skill-provider codex

--check performs no writes and exits unsuccessfully when a selected target or skill would change:

Terminal window
frigg adopt --target agents-md --target mcp-project --check

Re-run adoption after upgrading Frigg or its bundled skill. Reload the client and confirm its live MCP tool list before relying on newly added tools.

Frigg preserves unrelated file content. A diverged Frigg MCP entry is skipped unless you pass --force:

Terminal window
frigg adopt --target mcp-project --force

Remove managed documentation and MCP entries with matching targets:

Terminal window
frigg adopt --target agents-md --target mcp-project --uninstall

Skill removal is also provider-specific. Include the same provider used for installation:

Terminal window
frigg adopt --target agents-md --skill-provider codex --uninstall

Preview destructive changes with --dry-run first.

  • ../frigg/README.md
  • ../frigg/crates/cli/src/cli_args.rs
  • ../frigg/crates/cli/src/agent_directive.rs
  • ../frigg/crates/cli/src/cli_runtime/commands/adopt/mod.rs
  • ../frigg/crates/cli/src/cli_runtime/commands/adopt/targets.rs
  • ../frigg/crates/cli/src/cli_runtime/commands/adopt/json_merge.rs
  • ../frigg/crates/cli/src/cli_runtime/commands/adopt/skill_install.rs