Skip to content

chore: expose agent rules and skills to agy via AGENTS.md - #12187

Merged
MarkusNeusinger merged 2 commits into
mainfrom
chore/agents-md-bridge
Oct 15, 2026
Merged

MarkusNeusinger merged 2 commits into
mainfrom
chore/agents-md-bridge

Conversation

@MarkusNeusinger

Copy link
Copy Markdown
Owner

Summary

  • AGENTS.md -> CLAUDE.md and .agents/skills -> ../.claude/skills (both relative symlinks, mirroring the existing .claude/commands -> ../agentic/commands). The Antigravity CLI (agy), Codex, and the Copilot coding agent read AGENTS.md; agy reads skills from .agents/skills/. One source, no third file to sync.
  • New parametrized test in tests/unit/test_agent_instructions.py pins both links: still a symlink, relative target text, resolves to the Claude source.
  • Docs: a bullet in CLAUDE.md "Claude Code Configuration" (edit the sources, never the link paths; Claude-specific tool wording such as Edit/Write and model: opus applies to other agents by analogy), the agent instruction files in agentic/docs/project-guide.md, a pointer in .github/copilot-instructions.md, and a changelog fragment.

The two symlinks were created with ln -s, the one exception to the Edit/Write-only rule, because neither tool can create a symlink. Everything else was edited with Edit/Write.

Side effects checked

  • .dockerignore is an allowlist (* plus !api, !core, ...), so neither path enters an image; the only .gcloudignore lives under automation/gcp/budget-guard/.
  • No CI step, ruff config or docs index check walks AGENTS.md or .agents/ (ruff only reads *.py; the docs index drift check covers docs/ only).
  • Windows checkouts without core.symlinks get a one-line text file, the same as the existing .claude/commands link.

Plan

N/A

Test plan

  • agy --mode plan -p ... in the worktree reports AGENTS.md as the loaded workspace rule file (first heading # CLAUDE.md) and lists all ten project skills from .agents/skills/.
  • uv run pytest tests/unit/test_agent_instructions.py (32 passed)
  • uv run ruff check . and uv run ruff format --check .
  • uv run python -m tools.changelog check --base origin/main

…/skills

AGENTS.md is a relative symlink to CLAUDE.md and .agents/skills a relative
symlink to ../.claude/skills, mirroring the existing .claude/commands link.
The Antigravity CLI (agy 1.3.5) loads AGENTS.md as its workspace rule file
and lists all ten project skills from .agents/skills (verified locally);
Codex and the Copilot coding agent read AGENTS.md too. One source, no third
file to keep in sync.

A unit test pins both links (symlink, relative target, resolves to the
Claude source). CLAUDE.md and the project guide document the bridge and say
that Claude-specific tool wording applies to other agents by analogy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GdMSqLR5ww4ji74EUSmk9M
Copilot AI balanced review requested due to automatic review settings October 15, 2026 07:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The relative symlinks, regression tests, and documentation are consistent, with no unresolved findings.

0 open findings

What changed in this PR

Exposes existing agent rules and skills to additional coding agents without duplicating their sources.

Changes:

  • Adds relative symlink bridges for agent instructions and skills.
  • Adds regression tests for link types, targets, and resolution.
  • Documents the shared-source setup and records the change.
File Description
tests/​unit/​test_agent_instructions.py Tests both agent bridge symlinks.
CLAUDE.md Explains shared sources and editing guidance.
changelog.d/​agents-md-bridge.md Records support for additional agents.
agentic/​docs/​project-guide.md Documents instruction and skill discovery paths.
.github/​copilot-instructions.md Adds the shared instruction-file pointer.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@MarkusNeusinger
MarkusNeusinger merged commit e2ac825 into main Oct 15, 2026
14 checks passed
@MarkusNeusinger
MarkusNeusinger deleted the chore/agents-md-bridge branch October 15, 2026 07:46
@codecov

codecov Bot commented Oct 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants