@iannuttall/dotagents 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -8
- package/dist/cli.js +2119 -1517
- package/package.json +5 -9
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
Requirements: Bun 1.3+.
|
|
15
15
|
|
|
16
|
-
Run the guided
|
|
16
|
+
Run the guided CLI:
|
|
17
17
|
```bash
|
|
18
18
|
npx @iannuttall/dotagents
|
|
19
19
|
```
|
|
@@ -23,20 +23,21 @@ Or with Bun:
|
|
|
23
23
|
bunx @iannuttall/dotagents
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
Choose a workspace (Global home or Project folder) and follow the prompts. You can run it again anytime to
|
|
26
|
+
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.
|
|
27
27
|
|
|
28
28
|
Global home affects all projects. Project folder only affects the current directory you run dotagents from.
|
|
29
29
|
|
|
30
30
|
## What it does
|
|
31
31
|
|
|
32
32
|
- Keeps `.agents` as the source of truth.
|
|
33
|
-
- Creates symlinks for Claude, Codex, and
|
|
34
|
-
-
|
|
35
|
-
- Installs plugins from marketplaces.
|
|
33
|
+
- Creates symlinks for Claude, Codex, Factory, Cursor, and OpenCode (based on your selection).
|
|
34
|
+
- Always creates a backup before any overwrite so changes are reversible.
|
|
36
35
|
|
|
37
|
-
## Where it links
|
|
36
|
+
## Where it links (global scope)
|
|
38
37
|
|
|
39
|
-
`.agents/
|
|
38
|
+
`.agents/CLAUDE.md` → `~/.claude/CLAUDE.md` (if present)
|
|
39
|
+
|
|
40
|
+
`.agents/AGENTS.md` → `~/.claude/CLAUDE.md` (fallback when no CLAUDE.md)
|
|
40
41
|
|
|
41
42
|
`.agents/commands` → `~/.claude/commands`
|
|
42
43
|
|
|
@@ -44,17 +45,35 @@ Global home affects all projects. Project folder only affects the current direct
|
|
|
44
45
|
|
|
45
46
|
`.agents/commands` → `~/.codex/prompts`
|
|
46
47
|
|
|
48
|
+
`.agents/commands` → `~/.cursor/commands`
|
|
49
|
+
|
|
47
50
|
`.agents/hooks` → `~/.claude/hooks`
|
|
48
51
|
|
|
49
52
|
`.agents/hooks` → `~/.factory/hooks`
|
|
50
53
|
|
|
54
|
+
`.agents/AGENTS.md` → `~/.factory/AGENTS.md`
|
|
55
|
+
|
|
56
|
+
`.agents/AGENTS.md` → `~/.codex/AGENTS.md`
|
|
57
|
+
|
|
58
|
+
`.agents/AGENTS.md` → `~/.config/opencode/AGENTS.md`
|
|
59
|
+
|
|
60
|
+
`.agents/commands` → `~/.opencode/commands`
|
|
61
|
+
|
|
51
62
|
`.agents/skills` → `~/.claude/skills`
|
|
52
63
|
|
|
53
64
|
`.agents/skills` → `~/.factory/skills`
|
|
54
65
|
|
|
66
|
+
`.agents/skills` → `~/.codex/skills`
|
|
67
|
+
|
|
68
|
+
`.agents/skills` → `~/.cursor/skills`
|
|
69
|
+
|
|
70
|
+
`.agents/skills` → `~/.opencode/skills`
|
|
71
|
+
|
|
72
|
+
Project scope links only commands/hooks/skills into the project’s client folders (no AGENTS/CLAUDE rules).
|
|
73
|
+
|
|
55
74
|
## Development
|
|
56
75
|
|
|
57
|
-
Run the
|
|
76
|
+
Run the CLI in dev mode:
|
|
58
77
|
```bash
|
|
59
78
|
bun run dev
|
|
60
79
|
```
|
|
@@ -76,8 +95,13 @@ bun run build
|
|
|
76
95
|
|
|
77
96
|
## Notes
|
|
78
97
|
|
|
98
|
+
- Cursor supports `.claude/commands` and `.claude/skills` (global or project). dotagents also links `.agents/commands` → `.cursor/commands` and `.agents/skills` → `.cursor/skills`.
|
|
99
|
+
- OpenCode uses `~/.config/opencode/AGENTS.md` and prefers AGENTS.md over CLAUDE.md when both exist.
|
|
79
100
|
- Codex prompts always symlink to `.agents/commands` (canonical source).
|
|
80
101
|
- Skills require a valid `SKILL.md` with `name` + `description` frontmatter.
|
|
102
|
+
- Claude prompt precedence: if `.agents/CLAUDE.md` exists, it links to `.claude/CLAUDE.md`. Otherwise `.agents/AGENTS.md` is 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`.
|
|
103
|
+
- Project scope creates `.agents` plus client folders for commands/hooks/skills only. Rule files (`AGENTS.md`/`CLAUDE.md`) are left to the repo root so you can manage them explicitly.
|
|
104
|
+
- Backups are stored under `.agents/backup/<timestamp>` and can be restored via “Undo last change.”
|
|
81
105
|
|
|
82
106
|
## License
|
|
83
107
|
|