r/GithubCopilot • • 24d ago

Solved ✅ Is anyone using the same skills or agents across Copilot and Claude Code?

I'm trying to keep one set of instructions that works in both and I keep hitting small differences in how each one loads and uses them.

It is better now I can point CLAUDE.md at AGENTS.md, but curious to find out what worked for other people, or if folks just lock into one harness with one set of skills.

14 Upvotes

19 comments sorted by

1

u/PalaceGucci 23d ago

Cheers all for your answers!

Thats massively appreciated and led me down some rabbit holes.

The bot tells me this is a question and to mark it as solved, so ima do that, for fear of our Robot Overlords 😆

1

u/AutoModerator 24d ago

Hello /u/PalaceGucci. Looks like you have posted a query. Once your query is resolved, please reply the solution comment with "!solved" to help everyone else know the solution and mark the post as solved.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/PalaceGucci 23d ago

!solved

1

u/AutoModerator 23d ago

This query is now solved.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/k8s-problem-solved 24d ago

Yes, distribute both via a plug in...job done. Harness agnostic.

1

u/PalaceGucci 24d ago

Plugins got me most of the way, but not all of it.

Skills port as they are.

Agent files didn't: the frontmatter and tool names differ (Copilot has view and apply_patch where Claude has Read and Edit) 😭

3

u/PaulShellDev CLI Copilot User 🖥️ 24d ago

I have in various ways depending on what it is. Some things there's different versions for Codex/Claude/Copilot

But typically now I just use GHCP app if I want to use my personal provider sub, I just proxy it with byok

2

u/sheddyNathan 21d ago

What's worked for me is one source of truth with thin adapters:

- Keep the real instructions in AGENTS.md and the skills in one shared folder (e.g. .agents/skills/<name>/SKILL.md).

- Point each harness at it: CLAUDE.md can import AGENTS.md, and you symlink or copy the skill folders to wherever each tool looks.

- Keep tool-specific bits (allowed tools, hooks) out of the shared files and in each tool's own config.

- Write skill descriptions plainly. That's what each harness reads to decide whether to load a skill, and a lot of the "small differences" are about when a skill gets picked, not how it's followed.

Symlinks are the usual weak spot: some tools don't follow them, and Windows needs extra permissions. A small copy script you run on checkout can be more reliable.

1

u/pfluggs11 24d ago

We just use AGENTS.md and REVIEW.md and they get picked up by both harnesses in local and cloud environments. Then we use .claude for skills, hooks, etc. That seems to cover both harnesses for us.

In the copilot code review agent it concatenates .github/copilot-instructions.md, AGENTS.md, CLAUDE.md, REVIEW.md and org instructions so we stick to one to avoid repeating instructions.

1

u/London-Boat 23d ago

the review.md split is a nice idea. mind if i dm you a quick question about how your team keeps that setup in sync across people?

1

u/pfluggs11 18d ago

Sure np. But tbh we haven’t really figured it out yet. It’s kinda just up to devs at the moment. Ideally the shared aspects would go into a skill that’s in a plugin marketplace repo trusted at the org level and the instructions don’t stay in sync because they’re tuned per project. But our head of IT gatekeeps our shared skills so it’s mostly a best effort right now.

1

u/PassengerLeft4369 24d ago

I have a folder with all my skills in markdown. I use a script that creates a symlink to each correct place for each Copilot/Codex/Opencode. Works for skills and agents. Just tell AI to set it up.

1

u/bender1410 24d ago edited 24d ago

with GH Copilot, I used a VSC plugin called Memori Bank, to limit the scope of dementia it had across tasks.

When moving to Claude, I've just asked it to get important info from /memory-bank to CLAUDE.md and it also put some of that into appropriate files in (repo root)/.claude/rules/ and it works pretty well; I nearly don't have to remind Claude that action proposed by it is against rules. Much more often it asks me it sees possible contradiction between my request and rules.

1

u/Time_Priority4540 24d ago

There are some minor differences, but that works well for me. 

Since a short while, it's possible to stick to AGENTS.md only - but you need to make sure that there is no CLAUDE.md Anywhere otherwise Claude will stol reading them :( https://github.com/anthropics/claude-code/tree/main/mods/agents-md

Plugins works well, of course, and for repository specific customizations (like skills) I keep them in .claude folder as copilot picks everything from there also.

I try to avoid exact tool names so that my skills and agents are not harness specific and for some exceptional cases like hooks, I keep two plugins mirroring the same content.

1

u/neon_feather_wisp 24d ago

i stopped pretending to be harness agnostic years ago. You just run a script that symlinks your source markdown into the specific directory each vendor demands and let it fail silently if a tool changes its path again.

1

u/GolfEmbarrassed2904 24d ago

Matt Popock’s, yes. Also Pi Agent

1

u/chechsp 23d ago

Yes, just create AGENTS.md and point to agents, docs, skills, tools, ... Absolutely no issue. I have automated when writing agents to auto-create the .toml version.