@dujavi/ai-md 0.5.0 → 0.6.0

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.
@@ -0,0 +1,3 @@
1
+ # Your private AI config
2
+
3
+ Edit `shared/` and `agents/<id>/` only. Run `ai-md build` after changes.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,23 @@
1
+ ---
2
+ description: Edit ~/.ai-md shared/ and agents/ only — never live harness dirs or dist/
3
+ alwaysApply: true
4
+ ---
5
+
6
+ # Edit source, not dist or live harness paths
7
+
8
+ `~/.ai-md` is the source of truth. Live tool dirs (`~/.cursor`, `~/.claude`, `~/.agents`, …) and `~/.ai-md/dist/` are **build outputs**.
9
+
10
+ ## Do
11
+
12
+ - Edit `~/.ai-md/shared/` for rules/skills that apply to all harnesses.
13
+ - Edit `~/.ai-md/agents/<harness>/` for harness-specific rules/skills.
14
+ - After edits: `ai-md build` (or `ai-md pull` / `install`, which rebuild).
15
+
16
+ ## Do not
17
+
18
+ - Edit `~/.cursor/{rules,skills}`, `~/.claude/…`, `~/.agents/…`, or any other live harness path.
19
+ - Edit `~/.ai-md/dist/` directly.
20
+
21
+ ## If you already edited a live path
22
+
23
+ Stop. Run `ai-md rescue --agents <harness>` to promote dirty files into `agents/<harness>/`, then review and `ai-md build`. Do not keep iterating under dist or live dirs.
@@ -0,0 +1,49 @@
1
+ ---
2
+ description: Sync global personal skills and rules via ~/.ai-md and the ai-md CLI (build → dist → link)
3
+ alwaysApply: true
4
+ ---
5
+
6
+ # Personal skills and rules — ai-md
7
+
8
+ **`~/.ai-md`** is the private source of truth. Use **`ai-md`** (`@dujavi/ai-md`) — not Cursor Sync / Gist.
9
+
10
+ ## Layout
11
+
12
+ | Path | Role |
13
+ |------|------|
14
+ | `shared/rules`, `shared/skills` | System base for all harnesses |
15
+ | `agents/<id>/` | Harness-specific overlays |
16
+ | `dist/<id>/` | Build output (gitignored) — do not edit |
17
+ | `templates/<type>/` | Project-type starters |
18
+ | `projects/<name>/` | Per-app overlays |
19
+ | `scripts/` | Private machine scripts |
20
+
21
+ See also `edit-source-not-dist.mdc` and skill `ai-md-config`.
22
+
23
+ ## Sync
24
+
25
+ ```bash
26
+ ai-md pull
27
+ # edit shared/ or agents/<id>/
28
+ ai-md build
29
+ ai-md push -m "why"
30
+ ```
31
+
32
+ `install` / `pull` / `doctor --fix` rebuild and link **only for installed AIs** (detect `~/.cursor`, `claude` on PATH, etc.). Use `--force-link` to override.
33
+
34
+ ## Where to edit
35
+
36
+ | What | Edit here |
37
+ |------|-----------|
38
+ | Cross-harness rules/skills | `~/.ai-md/shared/` |
39
+ | Cursor-only (e.g. Grok CLI policy) | `~/.ai-md/agents/cursor/` |
40
+ | Project starters | `~/.ai-md/templates/<type>/` |
41
+ | App overlays | `~/.ai-md/projects/<repo>/` |
42
+
43
+ Never edit `~/.cursor/skills-cursor/`, live harness dirs, or `dist/`.
44
+
45
+ ## Agent behavior
46
+
47
+ - Global changes → `shared/` or `agents/<id>/`; remind `ai-md build` then `push`.
48
+ - Symlink / dist issues → `ai-md doctor --fix` or `ai-md rescue`.
49
+ - New harness → `ai-md harness set …` then content under `agents/<id>/`.
@@ -0,0 +1,51 @@
1
+ ---
2
+ name: ai-md-config
3
+ description: >-
4
+ Manage personal AI config in ~/.ai-md: shared vs agents layers, build/dist,
5
+ harness registration, rescue dirty dist. Use when adding rules/skills, fixing
6
+ links, or supporting a new AI tool.
7
+ ---
8
+
9
+ # ai-md config playbook
10
+
11
+ ## Layout
12
+
13
+ | Path | Role |
14
+ |------|------|
15
+ | `shared/rules`, `shared/skills` | All harnesses |
16
+ | `agents/<id>/rules`, `agents/<id>/skills` | One harness (overlay wins on name conflict) |
17
+ | `dist/<id>/` | Generated — never edit |
18
+ | `projects/<name>/` | Per-repo overlays (`.cursor` → here) |
19
+
20
+ ## Commands
21
+
22
+ ```bash
23
+ ai-md pull / push -m "why"
24
+ ai-md build [--agents cursor,claude] [--force]
25
+ ai-md rescue --agents cursor
26
+ ai-md harness list | show <id>
27
+ ai-md harness set <id> --skills ~/path [--rules ~/path] [--format mdc|md|skills-only]
28
+ ai-md harness enable|disable <id>
29
+ ai-md init | seed-skeleton
30
+ ai-md doctor --fix
31
+ ```
32
+
33
+ ## Add a rule or skill
34
+
35
+ 1. Choose layer: `shared/` (all tools) vs `agents/<id>/` (one tool).
36
+ 2. Write the file under that path (never under `dist/` or `~/.cursor/…`).
37
+ 3. `ai-md build`
38
+ 4. `ai-md push -m "…"` when ready.
39
+
40
+ ## New harness
41
+
42
+ ```bash
43
+ ai-md harness set my-tool --skills ~/.my-tool/skills --rules ~/.my-tool/rules --format md
44
+ # put tool-specific content in agents/my-tool/
45
+ ai-md build --agents my-tool
46
+ ```
47
+
48
+ ## Unique vs shared `.agents`
49
+
50
+ - Unique live roots: `cursor`, `claude`, `gemini`, `opencode`, `copilot`
51
+ - Shared `~/.agents/skills`: `agents` (canonical writer); `codex` is an alias (no second emit)
File without changes
@@ -0,0 +1,8 @@
1
+ ---
2
+ description: Project-specific context — customize after init-project
3
+ alwaysApply: true
4
+ ---
5
+
6
+ # Project context
7
+
8
+ Replace this stub with stack, phase gates, and doc index for this app.
File without changes