Skip to content

chore: consolidate agent config under .agents/, symlink tool-specific paths#31341

Open
mvvmm wants to merge 3 commits into
productionfrom
chore/agents-symlink-restructure
Open

chore: consolidate agent config under .agents/, symlink tool-specific paths#31341
mvvmm wants to merge 3 commits into
productionfrom
chore/agents-symlink-restructure

Conversation

@mvvmm

@mvvmm mvvmm commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Consolidates all repo-specific agent configuration under .agents/ as the single source of truth, with symlinks from tool-specific paths pointing into it. Removes the rulesync dependency, which was generating output that nothing consumed.

Structure:

.agents/
  agents/       ← moved from .opencode/agent/ (agent personas)
  commands/     ← moved from .opencode/command/ (slash commands)
  skills/       ← unchanged (agent skills)
  references/   ← unchanged (shared reference docs)

Symlinks into .agents/:

Path → Target Used by
.opencode/agents ../.agents/agents opencode (also fixes singular→plural)
.opencode/commands ../.agents/commands opencode (also fixes singular→plural)
.claude/CLAUDE.md ../AGENTS.md Claude Code, VS Code Copilot
.claude/agents ../.agents/agents Claude Code, VS Code Copilot
.claude/skills ../.agents/skills Claude Code
.claude/commands ../.agents/commands Claude Code
.windsurf/workflows ../.agents/commands Windsurf/Devin Desktop
GEMINI.md AGENTS.md Gemini CLI

Note: Windsurf and Gemini CLI both read .agents/skills/ natively — no symlink needed for skills.

Also:

  • rulesync devDependency and ai-setup:* scripts removed — the generated output (.claude/, .cursor/, .github/prompts/) was gitignored and unused
  • .gitignore updated: removed rulesync-generated entries, added explicit includes for .agents/commands/ and .agents/agents/
  • .prettierignore updated: added symlink paths that prettier errors on
  • AGENTS.md updated to document the new structure

Documentation checklist

@github-actions github-actions Bot added the size/s label Jun 9, 2026
@mvvmm mvvmm force-pushed the chore/agents-symlink-restructure branch 3 times, most recently from 5bdea32 to 1c407a3 Compare June 9, 2026 15:44
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
* @cloudflare/product-owners
/.github/ @cloudflare/content-engineering, @kodster28, @mvvmm, @colbywhite, @ahaywood, @MohamedH1998
package.json @cloudflare/content-engineering
/src/content/docs/style-guide/ @dcpena, @caley-b, @cloudflare/product-owners

@mvvmm mvvmm force-pushed the chore/agents-symlink-restructure branch 6 times, most recently from 73e902a to d95a9a9 Compare June 9, 2026 16:22
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

… paths

- Move .opencode/command/ -> .agents/commands/ and .opencode/agent/ -> .agents/agents/
- Symlink .opencode/commands and .opencode/agents back to .agents/ (fixes singular/plural too)
- Add CLAUDE.md -> AGENTS.md symlink for Claude Code and VS Code Copilot
- Remove rulesync dependency and ai-setup:* scripts (nothing consumed generated output)
- Update .gitignore: remove rulesync-generated entries, add explicit includes for new dirs
- Update AGENTS.md with commands/agents tables and symlink documentation
@mvvmm mvvmm force-pushed the chore/agents-symlink-restructure branch from d95a9a9 to ec5f971 Compare June 9, 2026 17:26
@mvvmm mvvmm marked this pull request as ready for review June 9, 2026 18:05
@cloudflare-docs-bot

cloudflare-docs-bot Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Review

✅ No style-guide issues found in commit 5287b70.

Commands

Only codeowners can run commands. Post a comment with the command to trigger it.

Command Description
/review Runs a review now. Incremental if a prior review exists, full if not.
/full-review Re-reviews the entire PR diff from scratch, ignoring incremental history. Useful after a rebase, when you want a fresh review, or if the bot gets out of sync and reports issues that no longer exist.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants