Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component...
npx skills add iannuttall/dotagents
Or install specific skill: npx add-skill https://github.com/iannuttall/dotagents
# Description
One location for all of your hooks, commands, skills, and AGENT/CLAUDE.md files.
# README.md
One canonical .agents folder that powers all your AI tools.
Simple setup β’ One source of truth β’ Safe to re-run anytime
Quick Start
Requirements: Bun 1.3+.
Run the guided CLI:
npx @iannuttall/dotagents
Or with Bun:
bunx @iannuttall/dotagents
Choose a workspace (Global home or Project folder), select the clients you want to manage, and follow the prompts. You can run it again anytime to repair links or undo changes.
Global home affects all projects. Project folder only affects the current directory you run dotagents from.
What it does
- Keeps
.agentsas the source of truth. - Creates symlinks for Claude, Codex, Factory, Cursor, OpenCode, and Gemini (based on your selection).
- Always creates a backup before any overwrite so changes are reversible.
Where it links (global scope)
.agents/CLAUDE.md β ~/.claude/CLAUDE.md (if present)
.agents/AGENTS.md β ~/.claude/CLAUDE.md (fallback when no CLAUDE.md)
.agents/GEMINI.md β ~/.gemini/GEMINI.md (if present)
.agents/AGENTS.md β ~/.gemini/GEMINI.md (fallback when no GEMINI.md)
.agents/commands β ~/.claude/commands
.agents/commands β ~/.factory/commands
.agents/commands β ~/.codex/prompts
.agents/commands β ~/.cursor/commands
.agents/commands β ~/.config/opencode/commands
.agents/commands β ~/.gemini/commands
.agents/hooks β ~/.claude/hooks
.agents/hooks β ~/.factory/hooks
.agents/AGENTS.md β ~/.factory/AGENTS.md
.agents/AGENTS.md β ~/.codex/AGENTS.md
.agents/AGENTS.md β ~/.config/opencode/AGENTS.md
.agents/skills β ~/.claude/skills
.agents/skills β ~/.factory/skills
.agents/skills β ~/.codex/skills
.agents/skills β ~/.cursor/skills
.agents/skills β ~/.config/opencode/skills
.agents/skills β ~/.gemini/skills
Project scope links only commands/hooks/skills into the projectβs client folders (no AGENTS/CLAUDE/GEMINI rules).
Development
Run the CLI in dev mode:
bun run dev
Type-check:
bun run type-check
Run tests:
bun test
Build the CLI:
bun run build
Notes
- Cursor supports
.claude/commandsand.claude/skills(global or project). dotagents also links.agents/commandsβ.cursor/commandsand.agents/skillsβ.cursor/skills. - OpenCode uses
~/.config/opencode/AGENTS.mdand prefers AGENTS.md over CLAUDE.md when both exist. - Codex prompts always symlink to
.agents/commands(canonical source). - Skills require a valid
SKILL.mdwithname+descriptionfrontmatter. - Claude prompt precedence: if
.agents/CLAUDE.mdexists, it links to.claude/CLAUDE.md. Otherwise.agents/AGENTS.mdis used. After adding or removing.agents/CLAUDE.md, re-run dotagents and apply/repair links to update the symlink. Factory/Codex always link to.agents/AGENTS.md. - Gemini context file precedence: if
.agents/GEMINI.mdexists, it links to.gemini/GEMINI.md. Otherwise.agents/AGENTS.mdis used. After adding or removing.agents/GEMINI.md, re-run dotagents and apply/repair links to update the symlink. - Project scope creates
.agentsplus client folders for commands/hooks/skills only. Rule files (AGENTS.md/CLAUDE.md/GEMINI.md) are left to the repo root so you can manage them explicitly. - Backups are stored under
.agents/backup/<timestamp>and can be restored via βUndo last change.β
License
MIT
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.