agentleFS
ajipalarajipalar/skillkit/skills/update-from-dot-agents/SKILL.md

update-from-dot-agents

Skill0 starsChanged 6 months agoMITView on GitHub

Sync .agents/ content to .claude/ and .opencode/ by mirroring directory structure and hardlinking files (AGENTS.md → CLAUDE.md for Claude, AGENTS.md → AGENTS.md for OpenCode). .agents/ is the source of truth — files removed from .agents/ are deleted from destination dirs. Run after adding, updating, or removing files in .agents/.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    All files and directories under .agents/ except framework-specific files that each tool manages itself.

    line 16
  2. Very specific:

    No rename: .agents/AGENTS.md → .opencode/AGENTS.md (OpenCode reads AGENTS.md natively)

    line 33
  3. Distinctive:

    Run from the project root:

    line 37

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill 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
SKILL.md

Update from .agents

Syncs .agents/ content into .claude/ and .opencode/ so Claude Code, OpenCode, and other agent frameworks share the same source files without duplication.

.agents/ is the source of truth. Files removed from .agents/ are deleted from destination directories (unless they're in the skip list). Files that only exist in .claude/ or .opencode/ and aren't skip-listed will be pruned.

Uses hardlinks (not symlinks) — hardlinks are regular files sharing the same inode, so each framework reads them natively. Edits to either copy are instantly reflected everywhere.

What gets synced

All files and directories under .agents/ except framework-specific files that each tool manages itself.

.claude/ skip list

  • GEMINI.md — Gemini-specific config
  • settings.json, settings.local.json — Claude Code manages its own settings
  • .claude/ — nested agent config subdirectory inside .agents/
  • worktrees/ — runtime worktree data

Special rename: .agents/AGENTS.md → .claude/CLAUDE.md

.opencode/ skip list

  • GEMINI.md — Gemini-specific config
  • settings.json, settings.local.json — OpenCode manages its own settings
  • .claude/ — Claude-specific nested config
  • worktrees/ — runtime worktree data
  • skills/ — skill format is Claude Code-specific; OpenCode uses a different tool/prompt format

No rename: .agents/AGENTS.md → .opencode/AGENTS.md (OpenCode reads AGENTS.md natively)

Steps

Run from the project root:

bash .claude/skills/update-from-dot-agents/sync.sh

Source: .agents/skills/update-from-dot-agents/sync.sh

After running

Verify hardlinks:

bash .claude/skills/update-from-dot-agents/verify.sh

Source: .agents/skills/update-from-dot-agents/verify.sh

Any SYMLINK entries are stale and should be replaced by re-running the sync script.

OpenCode notes

  • OpenCode reads AGENTS.md natively, so no rename is needed (unlike .claude/CLAUDE.md)
  • OpenCode has its own config.json in .opencode/ — the sync script never touches it since settings.json is in the skip list and config.json doesn't exist in .agents/
  • Skills are excluded from .opencode/ because OpenCode uses a different tool/system-prompt injection format; shared context files (codebase map, combat, cards, etc.) do sync since they're plain markdown

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.