agentleFS
maxgfrmaxgfr/conforme/AGENTS.md

conforme

AGENTS.md5 starsChanged 17 days agoMITView on GitHub

conforme is a Rust CLI that synchronizes AI coding agent configurations across 14 tools, and switches a project from one tool to another (migrate). It reads config from a source tool (Claude Code, Cursor, etc.) or AGENTS.md, and propagates to all other tool-specific config files. src/main.rs dispatches the subcommands of src/cli.rs to src/sync.rs, the core engine; each tool is an adapter in src/adapters/, with skills and agents generated in src/skills.rs and MCP formats in src/mcp.rs. Read docs/architecture.md, the module-by-module map,…

  • Reads credentials

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

17 rules. About 0 are common, 4 are distinctive, and 13 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 13

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    IMPORTANT: When adding/removing adapters, commands, or changing behavior, update ALL of:

    line 25
  2. Very specific:

    If no activation comment: defaults to always.

    line 51
  3. Very specific:

    Every JSON file conforme merges into (.mcp.json, .cursor/mcp.json, .kiro/settings/mcp.json, .devin/mcp_config.json, opencode.json, …

    line 234
  4. Very specific:

    Every adapter change MUST be reflected in its docs/providers/<tool>.md

    line 320
  5. Very specific:

    Every MCP format change MUST update the tool's ServerShape (or the Codex / Vibe TOML merge) AND its unit test

    line 321
  6. Very specific:

    When adding a new adapter, update ALL of: README.md tables, src/help_ai.rs, src/cli.rs tool count, docs/architecture.md

    line 323
  7. Very specific:

    Test round-trips: read() output fed into generate() should produce identical files

    line 325
  8. Very specific:

    Never add a user-authored directory (e.g.

    line 328
  9. Distinctive:

    When an upstream tool is retired (as Amazon Q was), delete its adapter outright rather than keeping it behind a deprecation flag.

    line 332
  10. Very specific:

    Run cargo clippy --all-targets -- -D warnings before considering any change complete

    line 350
  11. Very specific:

    Run cargo test after modifying adapter logic, MCP generation, or skills generation

    line 351
  12. Very specific:

    Use anyhow::Result for fallible functions, anyhow::Context for error messages

    line 352
  13. Very specific:

    Use BTreeMap (not HashMap) for deterministic output ordering in generated files

    line 353
  14. Very specific:

    When parsing tool-separated lists (e.g.

    line 355
  15. Very specific:

    Keep adapter read() and generate() symmetric: if generate() writes a field, read() must parse it back correctly (round-trip guarantee)

    line 356
  16. Distinctive:

    Always assert on file paths AND content (not just existence)

    line 365
  17. Distinctive:

    When changing an output path (e.g.

    line 366

≈ “Common” is an estimate: at least 1 in 5 of the 43,423 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md
<!-- Generated by conforme from claude. Edit that tool's config, not this file: every sync rewrites it. -->

CLAUDE.md

Project overview

conforme is a Rust CLI that synchronizes AI coding agent configurations across 14 tools, and switches a project from one tool to another (migrate). It reads config from a source tool (Claude Code, Cursor, etc.) or AGENTS.md, and propagates to all other tool-specific config files.

Build & test

cargo build --release
cargo test
cargo clippy --all-targets -- -D warnings    # lint — MUST pass before pushing
cargo fmt -- --check           # format check
conforme check                 # verify AI configs are in sync (dogfooding)

Architecture

src/main.rs dispatches the subcommands of src/cli.rs to src/sync.rs, the core engine; each tool is an adapter in src/adapters/, with skills and agents generated in src/skills.rs and MCP formats in src/mcp.rs. Read docs/architecture.md, the module-by-module map, before changing an adapter or one of those files. It lives outside this file because this file is copied into AGENTS.md, of which Codex reads only the first 32 KiB.

Keeping docs in sync

IMPORTANT: When adding/removing adapters, commands, or changing behavior, update ALL of:

  1. README.md — supported tools table, CLI commands, activation mapping table
  2. src/help_ai.rs — the conforme help-ai output must list all tools with correct formats
  3. src/cli.rs — the after_help examples and long_about tool count
  4. src/project_config.rs — if adding new config options
  5. src/validate.rs — if adding new validation rules
  6. src/watch.rs — if changing watched file patterns
  7. docs/providers/<tool>.md — provider-specific documentation
  8. docs/architecture.md — module map; this CLAUDE.md — key concepts and MCP table (keep AGENTS.md under 32 KiB)

Key concepts

AGENTS.md convention

conforme uses ## Rule: <name> headings and HTML comments for activation metadata:

# Instructions
General instructions.

## Rule: TypeScript
<!-- activation: glob **/*.ts,**/*.tsx -->
Content.

Activation modes: always, glob <patterns>, agent-decision, manual. If no activation comment: defaults to always.

Also supports ## Skill:, ## Agent:, and ## MCP: sections:

## Skill: deploy
<!-- description: Deploy the app -->
<!-- invocation: manual -->
<!-- tools: Bash -->
Run npm run deploy.

## Agent: reviewer
<!-- description: Code review -->
<!-- model: gpt-4o -->
<!-- tools: codebase -->
<!-- color: cyan -->
<!-- permission-mode: plan -->
Review for bugs.

## MCP: filesystem
<!-- command: npx -->
<!-- args: -y, @mcp/server-filesystem -->
<!-- env: ROOT=${HOME} -->

## MCP: github
<!-- url: https://api.githubcopilot.com/mcp/ -->
<!-- headers: Authorization=Bearer ${GITHUB_TOKEN} -->

## Plugin: <name> declares a plugin (manifest metadata comments, its body the plugin's instructions); <!-- plugin: <name> --> places a Rule, Skill, Agent or MCP section in it. Claude Code, Vibe, Antigravity and Codex (through its repository marketplace .agents/plugins/marketplace.json, merged and shared) hold plugins as bundles (AiToolAdapter::plugin_shape, a plugins::PluginShape; bundle dirs are ManagedKind::Bundles, owned through the .conforme-plugin marker); the trait's generate / warnings flatten what a tool cannot hold (plugins::flatten_for) before its generate_flat / tool_warnings. A ## Plugin: with <!-- marketplace: m --> is a plugin enabled from a marketplace (## Marketplace: m declares it), synced between Claude Code and Copilot enabledPlugins / extraKnownMarketplaces and Codex [plugins] (src/marketplaces.rs). A bundle's hooks are translated between Claude Code, Vibe and Antigravity (src/hooks.rs); the project's own hooks (## Hook:, .claude/settings.json hooks, …) only with hooks = true, into Claude Code, Copilot, Codex, Antigravity and Vibe (AiToolAdapter::holds_hooks); see docs/plugins.md.

Adapter categories

Per-rule adapters (have frontmatter or per-file rules):

  • Claude, Cursor, Devin, Copilot, Kiro, Zoo Code, Antigravity

Single-file adapters (merge all content into one file):

  • Codex, OpenCode, Gemini, Zed, DeepSeek Harness, Mistral Vibe, Kilo Code

Adapter mapping

ActivationClaudeCursorDevinCopilotKiro
Alwaysin CLAUDE.mdalwaysApply: truetrigger: always_onin main fileinclusion: always
GlobMatchpaths: [globs]globs:trigger: globapplyTo:inclusion: fileMatch
AgentDecisionno frontmatterdescription:trigger: model_decisionin main fileinclusion: auto
Manualno frontmatteralwaysApply: falsetrigger: manualin main fileinclusion: manual

MCP key mapping per tool

ToolJSON keyNotes
Claude, KiromcpServers (.mcp.json, .kiro/settings/mcp.json)type: stdio/http/sse (Kiro: SSE has no type); merged (keeps oauth, Kiro autoApprove/disabledTools, Claude type: "sdk" entries)
CursormcpServers (.cursor/mcp.json)type: stdio locally, no type on remote entries (SSE: type: "sse"); ${env:VAR}; merged
Zoo CodemcpServers (inside .roo/mcp.json)HTTP uses type: streamable-http (not http), SSE type: "sse", no env on remote servers; merged (keeps Zoo's alwaysAllow/disabledTools)
Copilotservers (inside .vscode/mcp.json) + mcpServers (inside .github/mcp.json)VS Code reads the first (env on stdio, headers on HTTP; keeps inputs/sandbox), Copilot CLI only the second (Claude Code shape); both merged, SSE as type: "sse" in both. The cloud agent reads no file: its servers are in the repository settings
DevinmcpServers (inside .devin/mcp_config.json)No type field; remote url + transport: http (SSE: transport: "sse"); ${env:VAR}; merged
OpenCodemcp.servers (inside .opencode/opencode.jsonc if it exists, else .opencode/opencode.json; never the root one)OpenCode 2's native shape: type: local/remote (SSE is remote with a warning, read as HTTP); disabled toggle; command is a single array; env key is environment (local only); {env:VAR}, editor variables such as ${workspaceFolder} kept verbatim; merged (preserves user keys and every other member of mcp: mcp.timeout, OpenCode 1 mcp.<name> entries); OpenCode 1 entries (mcp.<name>, agent) are neither read nor touched, in any config file
Zedcontext_servers (inside .zed/settings.json)No type field; SSE becomes streamable HTTP (warned); merged into existing settings (preserves theme/keybindings/etc. and extension servers configured only via settings)
GeminimcpServers (inside .gemini/settings.json)httpUrl for HTTP, url + type: "sse" for SSE; merged into existing settings
Kilo Codemcp (inside .kilo/kilo.jsonc or the existing kilo.json(c))OpenCode 1 shape (SSE is remote); no variable reference (Kilo refuses {env:VAR} in a project config): NAME=${NAME} dropped, other ${VAR} written as is with a warning; merged
Mistral Vibe[[mcp_servers]] (inside .vibe/config.toml)TOML; transport stdio / streamable-http (SSE becomes streamable-http, warned); Bearer ${VAR} → static auth.api_key_env; other ${VAR} written as is with a warning; atomic merge keeps settings and OAuth auth; a server that left the source is dropped, a disabled one kept
DeepSeek Harness(none)MCP is a user-level cordis.patch.yml plugin entry under $DSH_HOME; nothing project-scoped is generated
Codex[mcp_servers.<name>] (inside .codex/config.toml)TOML; SSE becomes streamable HTTP (warned); no ${VAR} expansion (mapping under mcp.rs above); atomic merge preserves unrelated settings, comments and Codex-specific options; a server that left the source is dropped, an enabled = false one kept
Antigravity CLImcpServers (.agents/mcp_config.json)No type; remote serverUrl + headers (SSE uses the same key, read back as HTTP); ${VAR} written as is (expansion unconfirmed, warned); merged

Rules-directory discovery

Claude Code, Cursor and Zoo Code all scan their rules directory recursively (.claude/rules/frontend/react.md, .cursor/rules/backend/rpc.mdc, …). adapters::collect_rule_files implements that scan for all three, sorting by base name (case-insensitive, so Zoo's 00-/01- prefixes keep their meaning) then by full path. Nested rules are written back flat, one file per rule name. clean_orphans stays non-recursive, so hand-authored files in subdirectories are never deleted.

Orphan cleanup and shared files

managed_directories() returns ManagedDirs: each names the file suffix conforme writes there (.md, .mdc, .instructions.md, .agent.md), and orphan cleanup only deletes top-level files with that suffix. Skills directories are ManagedDir::subdirs (conforme only writes <name>/SKILL.md folders), so no top-level file there is ever swept. Files a tool accepts but conforme never writes (Kiro .json agents, dsh flat <name>.md skills, plain .md Copilot agents) therefore survive a sync.

ManagedDir::files_except keeps files a tool does not load as agents (a Claude README or an agent without description, a Gemini _draft.md or remote agent). ManagedDir::legacy_files / legacy_skills (Devin's .windsurf/) remove only conforme's old copies: a legacy file or skill whose name is generated in the current location (a skill folder that bundles other files is kept).

Directories two tools share (.agents/skills/ for Codex, Zed and Antigravity CLI): sync::target_config leaves the source's skills root (or a link to it) to the source, a file another selected target generates there is never an orphan (sync::shared_files: Zed gets a plugin's skills there, Codex and Antigravity hold them in bundles), and remove never deletes a file the source or another kept tool also generates. migrate generates the output through target_config too, never deletes a file another detected tool generates nor anything in a directory a staying tool (the output or another detected tool) manages, and in the source's own directories deletes only files with conforme's suffix not protected by keep (Kiro .json agents, Zoo .txt rules survive), nested files only in a directory the tool reads recursively (ManagedDir::recursive: Claude, Cursor, Devin and Zoo rules, Copilot instructions and agents, Claude/Codex/OpenCode/Kilo agents, Codex/Cursor/Kilo/OpenCode skills) and, in a skills directory, only files of a skill folder (a direct child holding a SKILL.md, the first one met at any depth where the tool scans recursively; not a skill nested in it), never top-level files. It also keeps a skill folder that bundles other files (only SKILL.md reaches the output) and the skills or agents the output cannot hold. It validates the config and refuses an empty source, like sync; when the output keeps its instructions in AGENTS.md (Codex, OpenCode, DeepSeek, Vibe, Kilo, Gemini CLI loading only AGENTS.md) it writes AGENTS.md, and refuses before changing anything when a different AGENTS.md exists that the source does not read. --dry-run reports identical files as "unchanged".

AiToolAdapter::source_files(project_root) lists what read() loads outside the tool's managed directories, only paths that exist and are used: Claude Code CLAUDE.md (or AGENTS.md + .claude/AGENTS.md in the fallback), Codex AGENTS.md, OpenCode AGENTS.md, Kilo the first of AGENTS.md / CLAUDE.md / CONTEXT.md plus its rule directories, Vibe AGENTS.md plus .agents/skills when .vibe/skills has none, DeepSeek the first of AGENTS.md / CLAUDE.md plus .agents/skills when .dsh/skills has none, Gemini CLI its existing context files, Devin global_rules.md and .windsurfrules, Cursor .cursorrules, Antigravity CLI the first of AGENTS.md / GEMINI.md, Zoo Code .roorules. With that tool as the source no target writes them (sync::target_files / write_target), remove/migrate never delete them, gitignore install never ignores them, and target_config treats a fallback skills root like a shared one.

Symbolic links: a file may be reached under two names (CLAUDE.md -> AGENTS.md, .cursor/skills -> ../.claude/skills, a single skill folder or settings file linked likewise), so paths are compared where they really are (sync::is_source_file, is_one_of, LinkWalk, is_beneath against source_read_paths; source_files_for names the source's linked files where they are; sync::TargetGuard holds the checks for one target). sync never writes, nor cleans as an orphan, a target file that really is one the source reads, in either direction of the link, nor generates an AGENTS.md over it; a target leaves a file it reaches through a link to the other target that writes that very file (GEMINI.md -> CLAUDE.md, .kiro/steering -> ../.claude/rules), and never cleans as an orphan a file another target reaches through its own link; without any link in the project (project_has_links, looked up once per command) none of this costs anything; nothing reached through a link out of the project is ever deleted. remove keeps such a file, and one a staying tool reaches through its own link; gitignore install keeps such links tracked (! lines, a directory pattern turned into one on its entries); migrate replaces the output link that leads into the source with a file or directory of its own (--dry-run says so), keeps a source file that really is a staying tool's (a source file that is itself a link goes, its target staying), and removes a link at the project root it left pointing at nothing.

reads_agents_md(project_root) is true for Codex, OpenCode, DeepSeek, Vibe, Kilo and Antigravity CLI; for Claude Code when the project has no CLAUDE.md nor .claude/CLAUDE.md but has AGENTS.md / .claude/AGENTS.md (a personal CLAUDE.local.md deliberately does not change that); for Gemini CLI when .gemini/settings.json context.fileName names AGENTS.md. Such a tool reads it with the AGENTS.md convention, and when it is the source AGENTS.md is never regenerated nor gitignored, and conforme add refuses to append to an AGENTS.md a tool source regenerates. Renamed tool ids (windsurf → devin) are an error wherever an id is accepted.

In a tool that has its own off switch (disabled: true for Kiro, Zoo, Devin, Antigravity and OpenCode mcp.servers; enabled: false for Zed and Kilo; Codex enabled = false; Vibe disabled = true), a disabled server is not read from a source and the tool's own disabled server is kept; Claude Code, Cursor, Copilot and Gemini keep their toggles outside the file. Every other server the source does not define is dropped from every target, Codex and Vibe included. conforme targets OpenCode 2 only: it reads and writes the native mcp.servers and agents; OpenCode 1's mcp.<name> and agent entries are the user's, never read nor touched.

Every JSON file conforme merges into (.mcp.json, .cursor/mcp.json, .kiro/settings/mcp.json, .devin/mcp_config.json, opencode.json, .zed/settings.json, .gemini/settings.json, kilo.json(c), .vscode/mcp.json, .github/mcp.json, .roo/mcp.json, .agents/mcp_config.json) goes through json_settings, and together with .codex/config.toml and .vibe/config.toml is declared by is_shared_file() so remove/migrate never delete it wholesale and gitignore install never ignores it.

AiToolAdapter::warnings(project_root, config) names what the tool will not load as written (Kilo: ${VAR} it cannot resolve, a root opencode.json it refuses; OpenCode: SSE servers; Vibe: built-in and reserved agent names, ${VAR}; Codex, Zed, Zoo: references kept literal); sync and migrate print them for every target.

Sync algorithm

  1. Parse AGENTS.md (or the source tool) → NormalizedConfig; an empty config stops with "nothing to sync"
  2. For each selected target (selected_targets: detected, filtered by only/exclude): generate expected files minus the source's source_files(), write if changed
  3. Change detection uses SHA-256 content hashing

Source-based flow

conforme can read config from any tool, not just AGENTS.md:

  1. --from CLI flag (highest priority)
  2. source in .conformerc.toml
  3. AGENTS.md fallback (backward compatible)

Configure via .conformerc.toml:

source = "claude"
only = ["cursor", "copilot"]
exclude = ["zed"]
generate_agents_md = true
clean = true
hooks = false   # true: sync the project's own hooks

Pre-commit hook

conforme hook install installs a git pre-commit hook that runs conforme check. Works alongside existing hooks (appends/removes its own block).

CLI commands

conforme --help lists them (src/cli.rs: subcommands and after_help examples), as does the README's Quick start: init, sync, check, status, diff, remove, add, watch, migrate, hook, gitignore, help-ai.

Skills

This project uses Claude Code skills in .claude/skills/:

  • verify-providers — Verify all 14 provider adapters online, with a proof URL for every fact, the tools' own CLIs and every command; it fixes drift with regression tests, restamps every provider doc (scripts/provider_versions.py finds what shipped upstream) and merges the result on its own (see its SKILL.md)

And one plugin, the example of plugin sync: conforme-dev (.claude/skills/conforme-dev/, loaded as conforme-dev@skills-dir) holds the pre-push skill (the checks CI runs) and the docs-sync-reviewer subagent (the "Keeping docs in sync" list applied to a change). conforme sync writes it as a bundle for Vibe and Codex (.agents/plugins/marketplace.json, [plugins."conforme-dev@conforme"]) and as plain skills and agents elsewhere.

Upstream documentation

The project configures no MCP server. Upstream formats are checked online against the vendors' own pages, changelogs and source with the verify-providers skill; each docs/providers/<tool>.md says when and against which version (Last verified online). An MCP server added to .mcp.json is synced into tracked files of every tool: reference secrets as ${VAR}, never as values.

Dogfooding

This project uses conforme on itself (source = "claude" in .conformerc.toml). CI runs conforme check to ensure all tool configs stay in sync. The pre-commit hook enforces sync locally.

Versioning

Managed by semantic-release. The .version-hook.sh script updates Cargo.toml during release.

CI/CD

  • ci.yml: build, unit tests, integration tests, clippy, fmt, audit, macOS smoke test, conforme check
  • release.yml: matrix build (linux-x64, linux-arm64, macos-x64, macos-arm64, windows-x64, windows-arm64), semantic-release, upload binaries
  • Homebrew formula in maxgfr/homebrew-tap

Rule: adapter-consistency

<!-- activation: glob src/adapters/**,src/mcp.rs,src/skills.rs,docs/providers/** -->
  • Every adapter change MUST be reflected in its docs/providers/<tool>.md
  • Every MCP format change MUST update the tool's ServerShape (or the Codex / Vibe TOML merge) AND its unit test
  • MCP keys and shapes per tool are the "MCP key mapping per tool" table in CLAUDE.md: update it with any MCP change
  • When adding a new adapter, update ALL of: README.md tables, src/help_ai.rs, src/cli.rs tool count, docs/architecture.md
  • Provider docs must list all official documentation URLs for the tool, back each fact with the vendor page, changelog or source it comes from, and carry a Last verified online line (date, upstream version) that verify-providers updates
  • Test round-trips: read() output fed into generate() should produce identical files
  • A JSON MCP entry shape is a ServerShape in src/mcp.rs (type values, URL key, env on remote, env-var syntax, layout, on/off toggle) with its build, owned_keys and read; add or change a tool there rather than writing another builder, owned-key list or reader
  • Devin (formerly Windsurf): write .devin/ only; .windsurf/ is read as a legacy location (Devin loads both) and conforme's old copies there are cleaned. Project MCP is .devin/mcp_config.json; never generate .windsurf/mcp.json
  • Never add a user-authored directory (e.g. .github/prompts/) to managed_directories(): orphan cleanup deletes every file there that carries the directory's suffix and that conforme did not generate
  • Give each ManagedDir the exact suffix conforme writes there (ManagedDir::files(dir, ".agent.md")), and use ManagedDir::subdirs for skills directories, so files the tool accepts but conforme never writes (Kiro .json agents, dsh flat skills) survive a sync
  • A tool that loads plugin bundles committed in the project returns a plugins::PluginShape from plugin_shape(), writes them with plugins::generate_plugins, reads them with plugins::read_plugins, warns with plugins::bundle_warnings, and declares its bundle directory ManagedDir::bundles (Claude Code's are inside its skills directory); adapters implement generate_flat / tool_warnings, never generate / warnings, which flatten the plugins the tool cannot hold first. Only a bundle holding the .conforme-plugin marker is ever conforme's
  • An adapter must generate no files for an empty config and never a blank file (guarded by test_no_adapter_writes_blank_files)
  • When an upstream tool is retired (as Amazon Q was), delete its adapter outright rather than keeping it behind a deprecation flag; the removal checklist is the mirror of the "adding a new adapter" one above
  • Every MCP file is merged, never owned: any adapter that merges into a user-owned settings file (.mcp.json, .cursor/mcp.json, .kiro/settings/mcp.json, .devin/mcp_config.json, opencode.json, .zed/settings.json, .gemini/settings.json, kilo.jsonc, .vscode/mcp.json, .github/mcp.json, .roo/mcp.json, .codex/config.toml, .vibe/config.toml, .agents/mcp_config.json) MUST implement is_shared_file() so remove and migrate never delete it wholesale, and its gitignore patterns must not match it
  • Merge JSON settings through json_settings::server_settings_file (or load/merge_server_entries/render), never serde_json::from_str(..).unwrap_or_default(): those files are JSONC, a parse failure must refuse the write instead of replacing the user's file, and a source with no server leaves the file untouched
  • A setting a tool will not load as written (a ${VAR} it cannot resolve, a reserved name, a file it refuses) is reported by AiToolAdapter::warnings, which sync and migrate print
  • Cursor subagents: .md extension (not .mdc); no tools frontmatter field — tool access is inherited from the parent agent
  • Copilot skills: .github/skills/<name>/SKILL.md (NOT .github/prompts/*.prompt.md — prompt files are a separate VS Code feature)
  • Any adapter whose generate() writes skills, agents, or MCP MUST read them back in read(), or --from <tool> silently drops them
  • Skills and agents always carry a description (description_or_name): Codex, Copilot, Gemini, OpenCode and Zoo Code skip one without it
  • A skill is its whole folder: every reader fills NormalizedSkill::files (read_bundled_files) and skills::generate_skills writes them beside SKILL.md (bundled_outputs), each tool's layout being a SkillShape; each generated skill folder holds the .conforme marker (SKILL_MARKER), and a folder that already held a hand-written SKILL.md without it is never adopted; its skills directory is a ManagedDir::subdirs, so the copies are kept in step (stale_bundled_files, and a marked folder whose skill left the source is deleted by stale_skill_folder_files, never in a directory the source reads) and verify-providers' skills_conformity.py passes
  • Tools with their own tool vocabulary (Claude Code, Gemini CLI, Kiro, Mistral Vibe) get translated tools lists (TOOL_EQUIVALENTS, MCP names respelled), never names copied verbatim from another host; a model another tool cannot use is left out (claude_model, gemini_model, opencode_model, kiro_model, copilot_model, cursor_model)
  • Skill and agent names go through sanitize_name (kebab-case ASCII, at most 64 characters), rule file names through rule_file_name, and MCP strings through EnvRefStyle so ${VAR} becomes each tool's own reference syntax
  • A tool that reads AGENTS.md itself in a project returns true from reads_agents_md(project_root) (always for Codex, OpenCode, DeepSeek, Mistral Vibe, Kilo Code; Claude Code without CLAUDE.md; Gemini CLI when context.fileName names it) and reads it with markdown::read_native_agents_md; renaming a tool id adds it to project_config::RENAMED_IDS
  • A file or directory read() loads outside the tool's managed directories (a native or fallback AGENTS.md / CLAUDE.md, Gemini's context files, Devin's global_rules.md / .windsurfrules, Zoo's .roorules, DeepSeek's and Vibe's .agents/skills fallback, Kilo's rule directories) MUST be returned by source_files(project_root) when it exists and is used, so that with the tool as source no target writes it, remove/migrate never delete it and gitignore install never ignores it; a new read location also goes into watch::source_locations
  • A server entry conforme cannot express (no command — a string, OpenCode's array or Zed's legacy {path, args, env} — no URL, or Claude type: "sdk") is skipped on read and kept on write (json_settings::is_expressible_server); a disabled one only in a tool whose own toggle it is (ServerShape.toggle)

Rule: rust-conventions

<!-- activation: glob **/*.rs -->
  • Run cargo clippy --all-targets -- -D warnings before considering any change complete
  • Run cargo test after modifying adapter logic, MCP generation, or skills generation
  • Use anyhow::Result for fallible functions, anyhow::Context for error messages
  • Use BTreeMap (not HashMap) for deterministic output ordering in generated files
  • Parse frontmatter fields defensively: use .and_then(|v| v.as_str()) chains, never .unwrap() on user input
  • When parsing tool-separated lists (e.g. allowed-tools, tools), use skills::parse_frontmatter_tool_list: it handles space- and comma-separated strings and YAML lists, and keeps Bash(git add:*) whole
  • Keep adapter read() and generate() symmetric: if generate() writes a field, read() must parse it back correctly (round-trip guarantee)

Rule: testing

<!-- activation: glob tests/** -->
  • Integration tests use assert_cmd + tempfile crates
  • Each adapter must have round-trip tests in tests/roundtrip.rs
  • MCP format tests belong in src/mcp.rs unit tests
  • Error case tests go in tests/error_cases.rs
  • Always assert on file paths AND content (not just existence)
  • When changing an output path (e.g. MCP location), update ALL tests that reference it

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.