repo-nexus 0.7.2 → 0.7.4
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/CHANGELOG.md +9 -1
- package/README.md +2 -4
- package/docs/CLI.md +10 -4
- package/docs/ai-instructions.sample.md +1 -1
- package/docs/cli/index.md +10 -10
- package/docs/cli/workspace.md +6 -7
- package/docs/examples/ai-workflows.md +16 -15
- package/docs/plugins/authoring.md +4 -4
- package/docs/plugins/claude.md +21 -24
- package/docs/plugins/cursor.md +24 -27
- package/docs/plugins/gemini.md +22 -23
- package/docs/plugins/index.md +8 -10
- package/docs/plugins/karpathy-llm.md +16 -21
- package/docs/plugins/windsurf.md +20 -21
- package/docs/rnex.example.yaml +13 -23
- package/lib/ai.sh +167 -375
- package/lib/commands/init.sh +19 -11
- package/lib/commands/plugin.sh +11 -9
- package/lib/commands/repo.sh +6 -0
- package/lib/commands/status.sh +10 -22
- package/lib/commands/sync.sh +3 -4
- package/lib/commands/system.sh +3 -3
- package/lib/hooks.sh +117 -9
- package/lib/plugins.sh +2 -1
- package/lib/workspace.sh +0 -14
- package/lib/yaml.sh +5 -21
- package/package.json +1 -1
- package/templates/ai-instructions.sample.md +1 -1
- package/templates/rnex.example.yaml +13 -23
- package/toolkit/plugins/karpathy-llm/hooks/after_init.sh +10 -2
- package/toolkit/plugins/karpathy-llm/hooks/after_sync.sh +195 -1
- package/toolkit/plugins/karpathy-llm/hooks/before_plugin_disable.sh +21 -0
- package/toolkit/plugins/karpathy-llm/instructions.md +3 -3
- package/toolkit/plugins/karpathy-llm/plugin.yaml +3 -5
- package/toolkit/plugins/karpathy-llm/skills/wiki-ingest.md +59 -0
- package/toolkit/plugins/karpathy-llm/skills/wiki-lint.md +43 -0
- package/toolkit/plugins/karpathy-llm/templates/index.md +3 -0
- package/toolkit/skills/batch-exec.md +40 -0
- package/toolkit/skills/clone-sync.md +31 -0
- package/toolkit/skills/workspace-status.md +35 -0
- package/docs/plugins/copilot.md +0 -107
- package/toolkit/plugins/copilot/README.md +0 -32
- package/toolkit/plugins/copilot/instructions/rnex-copilot-integration.md +0 -25
- package/toolkit/plugins/copilot/plugin.yaml +0 -7
- package/toolkit/plugins/karpathy-llm/skills/rnex-wiki-ingest/SKILL.md +0 -15
- package/toolkit/plugins/karpathy-llm/skills/rnex-wiki-lint/SKILL.md +0 -15
- package/toolkit/plugins/karpathy-llm/workflows/rnex-wiki-ingest.md +0 -66
- package/toolkit/plugins/karpathy-llm/workflows/rnex-wiki-lint.md +0 -50
- package/toolkit/prompts/.gitkeep +0 -0
- package/toolkit/prompts/index.md +0 -23
- package/toolkit/prompts/rnex-cross-repo-feature.md +0 -16
- package/toolkit/prompts/rnex-wiki-ingest.md +0 -18
- package/toolkit/prompts/rnex-wiki-lint.md +0 -17
- package/toolkit/prompts/rnex-workspace-audit.md +0 -16
- package/toolkit/skills/rnex-cross-repo-feature/SKILL.md +0 -14
- package/toolkit/skills/rnex-workspace-audit/SKILL.md +0 -13
- package/toolkit/workflows/rnex-cross-repo-feature.md +0 -35
- package/toolkit/workflows/rnex-workspace-audit.md +0 -34
- /package/toolkit/plugins/karpathy-llm/rules/{rnex-behavioral.md → behavioral.md} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -7,7 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
### Added
|
|
11
|
+
- **Two-Tier Skills Architecture**: Clean separation between core `rnex` skills (`toolkit/skills/*.md` -> `.rnex/skills/*.md`) and plugin-owned skills (`toolkit/plugins/<plugin>/skills/*.md` -> `.rnex/plugins/<plugin>/skills/*.md`).
|
|
12
|
+
- **On-the-Fly User Skill Generator**: Generated in active AI provider directories (`.cursor/rules/`, `.claude/skills/`, `.gemini/skills/`, `.windsurf/rules/`) with mandatory `rnex-` prefix (`rnex-<name>.md`). User skills contain zero inline heuristics, linking solely to the target agentic skill protocol in `.rnex/`.
|
|
13
|
+
- **Plugin Contract Helper API**: Added `rnex_register_user_skill` and `rnex_unregister_user_skill` helper functions exposed in hook subshell environments for plugin lifecycle management.
|
|
14
|
+
- **Plugin Lifecycle Hooks**: Added `before_plugin_disable` hook dispatched by `rnex plugin disable <name>` and plugin pruning in `rnex sync` to unregister plugin-owned User Skills.
|
|
15
|
+
|
|
16
|
+
### Removed
|
|
17
|
+
- **Legacy Prompts & Workflows**: Completely removed `toolkit/prompts/`, `toolkit/workflows/`, and `.rnex/workflows/`.
|
|
18
|
+
- **Copilot Local Prompt Harness**: Removed `toolkit/plugins/copilot/`, `--copilot` CLI flag, and prompt-mirroring harness logic in favor of native universal `AGENTS.md` reading.
|
|
11
19
|
|
|
12
20
|
### Removed
|
|
13
21
|
- **`rnex fix` and `rnex status --fix`**: Removed in favor of `rnex sync` as the sole reconciliation command.
|
package/README.md
CHANGED
|
@@ -157,11 +157,9 @@ repo-nexus/
|
|
|
157
157
|
│ ├── test_cli.sh # Main test runner
|
|
158
158
|
│ ├── test_helper.sh # Shared test harness and utilities
|
|
159
159
|
│ └── suites/ # Modular test suites
|
|
160
|
-
├── toolkit/ # Built-in plugins
|
|
160
|
+
├── toolkit/ # Built-in plugins and core agentic skills
|
|
161
161
|
│ ├── plugins/ # Scoped workspace plugins
|
|
162
|
-
│
|
|
163
|
-
│ ├── skills/ # Workspace skills
|
|
164
|
-
│ └── workflows/ # Workspace workflows
|
|
162
|
+
│ └── skills/ # Core workspace agentic skills
|
|
165
163
|
└── README.md
|
|
166
164
|
```
|
|
167
165
|
|
package/docs/CLI.md
CHANGED
|
@@ -35,9 +35,9 @@ rnex sync [-y|--yes] [-q|--quiet]
|
|
|
35
35
|
### Reconciliation Actions
|
|
36
36
|
1. **Config Version Upgrade**: Detects schema drift and non-destructively upgrades `rnex.yaml` if older than the installed CLI version.
|
|
37
37
|
2. **Git Ignore & Search Indexing**: Reconciles `.gitignore` (ignoring `repos/*` and `.local.rnex.yaml`) and `.ignore` (un-ignoring `repos/*` for search tools).
|
|
38
|
-
3. **Plugin Sync**: Prunes disabled plugins and deterministically copies enabled plugin assets, rules,
|
|
38
|
+
3. **Plugin Sync**: Prunes disabled plugins and deterministically copies enabled plugin assets, rules, skills, templates, and executable lifecycle hooks into `.rnex/plugins/<plugin-name>/`.
|
|
39
39
|
4. **Compiled AI Instructions**: Compiles `.rnex/ai-instructions.md` by combining the base template with active configuration and all enabled plugin `instructions.md` fragments. Top-level provider files (`AGENTS.md`, `CLAUDE.md`, etc.) receive only a single strict directive pointing to `.rnex/ai-instructions.md`.
|
|
40
|
-
5. **
|
|
40
|
+
5. **Skill Reconciliation & User Skill Generation**: Copies core agentic skills from `toolkit/skills/` to `.rnex/skills/`, and generates lightweight, zero-logic User Skills (prefixed with `rnex-`) in configured AI assistant directories (`.cursor/rules/`, `.claude/skills/`, `.gemini/skills/`, `.windsurf/rules/`) pointing directly to `.rnex/skills/` or plugin skill directories.
|
|
41
41
|
6. **Harness Sync**: Reconciles root `.rnex/` and member repository harnesses (`repos/<name>/.rnex/`) for all enabled member repositories where `rnex_dir: true`.
|
|
42
42
|
7. **Git Hooks**: Installs or reconciles workspace Git hooks in `.rnex/hooks` when `git_hooks: true`.
|
|
43
43
|
8. **Multi-Root Workspace**: Synchronizes `.code-workspace` folder mappings when `code_workspace: true`.
|
|
@@ -66,13 +66,14 @@ toolkit/plugins/<plugin-name>/
|
|
|
66
66
|
├── hooks/ # POSIX /bin/sh hook scripts (chmod +x)
|
|
67
67
|
│ ├── after_sync.sh # Executes after workspace reconciliation
|
|
68
68
|
│ ├── after_init.sh # Executes after workspace initialization
|
|
69
|
+
│ ├── before_plugin_disable.sh # Executes before plugin disable/removal
|
|
69
70
|
│ └── before_remove.sh # Executes before member repo removal
|
|
70
71
|
├── rules/ # AI assistant behavioral rules
|
|
71
|
-
├──
|
|
72
|
+
├── skills/ # Plugin-owned agentic skills (e.g. wiki-ingest.md)
|
|
72
73
|
└── templates/ # Default files and scaffold templates
|
|
73
74
|
```
|
|
74
75
|
|
|
75
|
-
### Environment Context
|
|
76
|
+
### Environment Context & Helper Functions
|
|
76
77
|
Every lifecycle hook receives the following environment variables:
|
|
77
78
|
|
|
78
79
|
| Variable | Description |
|
|
@@ -80,10 +81,15 @@ Every lifecycle hook receives the following environment variables:
|
|
|
80
81
|
| `RNEX_ROOT` | Absolute path to the Repo Nexus workspace root directory. |
|
|
81
82
|
| `RNEX_CONFIG_MERGED` | Path to the active workspace configuration (`rnex.yaml`). |
|
|
82
83
|
| `RNEX_PLUGIN_DIR` | Path to the scoped plugin directory (`.rnex/plugins/<plugin-name>`). |
|
|
84
|
+
| `RNEX_PROVIDER_SKILL_DIRS` | Space-separated list of active provider skill directories. |
|
|
83
85
|
| `RNEX_CMD` | The command being executed (e.g., `sync`, `init`, `add`). |
|
|
84
86
|
| `RNEX_ARGS` | Arguments passed to the command. |
|
|
85
87
|
| `RNEX_QUIET` | Set to `1` when `--quiet` was passed, `0` otherwise. |
|
|
86
88
|
|
|
89
|
+
Hooks have access to POSIX helper functions for managing User Skill pointers:
|
|
90
|
+
- `rnex_register_user_skill <skill_name> <target_path_in_rnex>`: Generates a zero-logic user skill pointer (`rnex-<skill_name>.md`) in active provider directories linking to the target skill protocol.
|
|
91
|
+
- `rnex_unregister_user_skill <skill_name>`: Removes the `rnex-<skill_name>.md` user skill pointer from all active provider directories.
|
|
92
|
+
|
|
87
93
|
### Karpathy LLM Wiki Plugin
|
|
88
94
|
The `karpathy-llm` plugin uses lifecycle hooks to manage its domain directories:
|
|
89
95
|
- **Default curated knowledge base (`wiki_dir`)**: `.rnex/wiki`
|
|
@@ -7,7 +7,7 @@ This workspace operates as a **Repo Nexus Virtual Meta-Repo** uniting independen
|
|
|
7
7
|
### Mandatory Session Startup
|
|
8
8
|
Execute in sequence before task execution:
|
|
9
9
|
1. **Read Configuration First (Highest Priority)**: Read `.local.rnex.yaml` (if present) and `rnex.yaml` to identify active member repositories (`repos/`) and enabled plugins.
|
|
10
|
-
2. **Plugin & Skill Routing**: Inspect active plugin instructions under `.rnex/plugins/<plugin-name>/`, and
|
|
10
|
+
2. **Plugin & Skill Routing**: Inspect active plugin instructions under `.rnex/plugins/<plugin-name>/`, and core agentic skills under `.rnex/skills/` when relevant.
|
|
11
11
|
3. **Targeted Member Repository Access Only**: Navigate directly to specific files in `repos/<name>/` relevant to the user request. Avoid blind repository-wide scans or unbounded searches across `repos/`.
|
|
12
12
|
|
|
13
13
|
## Subagents
|
package/docs/cli/index.md
CHANGED
|
@@ -47,19 +47,19 @@ rnex [global-options] <command> [command-options] [arguments]
|
|
|
47
47
|
|
|
48
48
|
---
|
|
49
49
|
|
|
50
|
-
##
|
|
50
|
+
## Agentic Skills Catalog
|
|
51
51
|
|
|
52
|
-
Repo Nexus provides a standardized suite of
|
|
52
|
+
Repo Nexus provides a standardized suite of agentic skills in `toolkit/skills/` (core) and `toolkit/plugins/<plugin>/skills/` (plugins).
|
|
53
53
|
|
|
54
|
-
AI assistants navigate
|
|
54
|
+
AI assistants navigate skills via `AGENTS.md` and direct skill protocol paths:
|
|
55
55
|
|
|
56
|
-
|
|
|
57
|
-
|
|
58
|
-
| `
|
|
59
|
-
| `
|
|
60
|
-
| `
|
|
61
|
-
| `
|
|
62
|
-
| `
|
|
56
|
+
| Skill | Category | Purpose | Protocol Path |
|
|
57
|
+
|:---|:---|:---|:---|
|
|
58
|
+
| `clone-sync` | Core | Automated clone, setup, and synchronization of member repositories. | `.rnex/skills/clone-sync.md` |
|
|
59
|
+
| `batch-exec` | Core | Cross-repository batch commands, parallel execution, and verification. | `.rnex/skills/batch-exec.md` |
|
|
60
|
+
| `workspace-status` | Core | Workspace health check, git dirty status, branch tracking, and configuration audit. | `.rnex/skills/workspace-status.md` |
|
|
61
|
+
| `wiki-ingest` | Plugin (`karpathy-llm`) | Autonomous ingestion of source docs into atomic Karpathy LLM Wiki pages. | `.rnex/plugins/karpathy-llm/skills/wiki-ingest.md` |
|
|
62
|
+
| `wiki-lint` | Plugin (`karpathy-llm`) | Link validation, backlink recalculation, and index rebuilding. | `.rnex/plugins/karpathy-llm/skills/wiki-lint.md` |
|
|
63
63
|
|
|
64
64
|
---
|
|
65
65
|
|
package/docs/cli/workspace.md
CHANGED
|
@@ -26,11 +26,10 @@ rnex init [options] [directory]
|
|
|
26
26
|
| `--code-workspace` | | boolean \| string | `false` | Enable VS Code multi-root workspace file. Pass string for custom name. |
|
|
27
27
|
| `--hooks` | | boolean | `true` (if git) | Force-enable automated Git hooks setup during initialization. |
|
|
28
28
|
| `--no-hooks` | | boolean | `false` | Skip Git hooks configuration during initialization. |
|
|
29
|
-
| `--claude` | | boolean | `false` | Enable Claude Code plugin (
|
|
30
|
-
| `--
|
|
31
|
-
| `--
|
|
32
|
-
| `--
|
|
33
|
-
| `--windsurf` | | boolean | `false` | Enable Windsurf plugin (mirrors prompts to `.windsurf/prompts/`). |
|
|
29
|
+
| `--claude` | | boolean | `false` | Enable Claude Code plugin (maintains `CLAUDE.md`, generates skills in `.claude/skills/`). |
|
|
30
|
+
| `--cursor` | | boolean | `false` | Enable Cursor plugin (maintains `.cursorrules`, generates skills in `.cursor/rules/`). |
|
|
31
|
+
| `--gemini` | | boolean | `false` | Enable Google Gemini plugin (maintains `GEMINI.md`, generates skills in `.gemini/skills/`). |
|
|
32
|
+
| `--windsurf` | | boolean | `false` | Enable Windsurf plugin (maintains `.windsurfrules`, generates skills in `.windsurf/rules/`). |
|
|
34
33
|
|
|
35
34
|
### Examples
|
|
36
35
|
```bash
|
|
@@ -49,7 +48,7 @@ Performs comprehensive diagnostic and health checks across the workspace.
|
|
|
49
48
|
|
|
50
49
|
## `rnex sync`
|
|
51
50
|
|
|
52
|
-
Reconciles workspace configuration,
|
|
51
|
+
Reconciles workspace configuration, skills, plugins, `.rnex/` harness directories, and compiles `.rnex/ai-instructions.md`. `rnex sync` is the sole reconciliation command in Repo Nexus (`rnex fix` and `rnex status --fix` are removed).
|
|
53
52
|
|
|
54
53
|
### Syntax
|
|
55
54
|
```sh
|
|
@@ -66,7 +65,7 @@ rnex sync [options]
|
|
|
66
65
|
1. Upgrades configuration schema non-destructively if an older version is detected.
|
|
67
66
|
2. Re-verifies `.gitignore` rules for `repos/` and local configs, and ensures `.ignore` contains `!repos/*`.
|
|
68
67
|
3. Compiles `.rnex/ai-instructions.md` by combining the base template with active configuration and all enabled plugin `instructions.md` fragments. Writes single strict directive to top-level provider files (`AGENTS.md`, `CLAUDE.md`, etc.).
|
|
69
|
-
4. Syncs
|
|
68
|
+
4. Syncs core agentic skills from `toolkit/skills/` to `.rnex/skills/` and generates zero-logic User Skills (`rnex-*.md`) in active AI provider directories.
|
|
70
69
|
5. Re-syncs enabled plugin assets into `.rnex/plugins/` and member `repos/<name>/.rnex/`.
|
|
71
70
|
6. Dispatches plugin lifecycle hooks (`before_sync`, `after_sync`).
|
|
72
71
|
7. Reconciles automated Git hooks in `.rnex/hooks/` against `git_hooks` config.
|
|
@@ -7,34 +7,35 @@ description: Practical walkthrough of executing cross-cutting features, workspac
|
|
|
7
7
|
|
|
8
8
|
One of the greatest challenges with AI coding assistants in multi-repo setups is context isolation: agents operating inside one repository cannot easily coordinate changes across upstream or downstream services.
|
|
9
9
|
|
|
10
|
-
Repo Nexus equips AI assistants with standardized cross-repo skills
|
|
10
|
+
Repo Nexus equips AI assistants with standardized cross-repo agentic skills located in `.rnex/skills/` and active plugin directories (`.rnex/plugins/<plugin>/skills/`), routed directly through universal `AGENTS.md`.
|
|
11
11
|
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
-
##
|
|
14
|
+
## Two-Tier Skills Architecture
|
|
15
15
|
|
|
16
|
-
When a workspace is initialized, Repo Nexus
|
|
16
|
+
When a workspace is initialized, Repo Nexus maintains core agentic skills in `.rnex/skills/` alongside plugin-owned skills in `.rnex/plugins/<plugin>/skills/`:
|
|
17
17
|
|
|
18
|
-
|
|
|
19
|
-
|
|
20
|
-
| `
|
|
21
|
-
| `
|
|
22
|
-
| `
|
|
23
|
-
| `
|
|
18
|
+
| Skill | Category | Target Agent Goal | Protocol Path |
|
|
19
|
+
|:---|:---|:---|:---|
|
|
20
|
+
| `clone-sync` | Core | Automated clone, setup, and synchronization of member repositories. | `.rnex/skills/clone-sync.md` |
|
|
21
|
+
| `batch-exec` | Core | Cross-repository batch commands, parallel execution, and verification. | `.rnex/skills/batch-exec.md` |
|
|
22
|
+
| `workspace-status` | Core | Workspace health check, git dirty status, branch tracking, and configuration audit. | `.rnex/skills/workspace-status.md` |
|
|
23
|
+
| `wiki-ingest` | Plugin (`karpathy-llm`) | Ingest raw intake documents into atomic Karpathy LLM Wiki pages. | `.rnex/plugins/karpathy-llm/skills/wiki-ingest.md` |
|
|
24
|
+
| `wiki-lint` | Plugin (`karpathy-llm`) | Validate markdown links, compute backlinks, and update the master index. | `.rnex/plugins/karpathy-llm/skills/wiki-lint.md` |
|
|
24
25
|
|
|
25
|
-
When provider plugins (such as `
|
|
26
|
+
When provider plugins (such as `claude`, `gemini`, `cursor`, or `windsurf`) are enabled with `skills: true`, zero-logic User Skill pointers (`rnex-<skill-name>.md`) are generated directly into the respective native provider directories (`.cursor/rules/`, `.claude/skills/`, `.gemini/skills/`, `.windsurf/rules/`).
|
|
26
27
|
|
|
27
28
|
---
|
|
28
29
|
|
|
29
|
-
## Executing a Cross-Repo Feature
|
|
30
|
+
## Executing a Cross-Repo Batch Feature
|
|
30
31
|
|
|
31
|
-
### 1. Invoke the
|
|
32
|
-
In your AI assistant (
|
|
32
|
+
### 1. Invoke the Skill in Your AI Assistant
|
|
33
|
+
In your AI assistant (Claude Code, Gemini/Antigravity, Cursor, Windsurf), run or type:
|
|
33
34
|
|
|
34
35
|
```text
|
|
35
|
-
Follow the
|
|
36
|
+
Follow the skill protocol in .rnex/skills/batch-exec.md to run tests across backend and web-client.
|
|
36
37
|
```
|
|
37
|
-
*(Or
|
|
38
|
+
*(Or invoke `rnex-batch-exec` directly from your IDE's skill/rules list.)*
|
|
38
39
|
|
|
39
40
|
### 2. Autonomous Execution Sequence
|
|
40
41
|
The agent follows a 4-stage protocol:
|
|
@@ -41,15 +41,15 @@ A plugin can contain any of the following standard directories:
|
|
|
41
41
|
|
|
42
42
|
| Subdirectory | Purpose | Behavior |
|
|
43
43
|
|:---|:---|:---|
|
|
44
|
-
| `
|
|
45
|
-
| `
|
|
44
|
+
| `skills/` | Plugin-owned agentic skills (`<skill-name>.md`). | Scoped to `.rnex/plugins/<plugin>/skills/`. Registered as User Skills via `rnex_register_user_skill`. |
|
|
45
|
+
| `rules/` | Coding rules and architectural constraints. | Scoped to `.rnex/plugins/<plugin>/rules/`. |
|
|
46
46
|
| `agents/` | Autonomous subagent declarations (`*.agent.md`). | Scoped to `.rnex/plugins/<plugin>/agents/`. Ingested by agents via `AGENTS.md` subagent routing. |
|
|
47
47
|
| `instructions/` | Markdown guidelines and domain principles. | Scoped to `.rnex/plugins/<plugin>/instructions/`. |
|
|
48
|
-
| `
|
|
48
|
+
| `hooks/` | Lifecycle hook scripts (`after_sync.sh`, `before_plugin_disable.sh`). | Executed during workspace events. Register/unregister User Skills. |
|
|
49
49
|
| `templates/` | Starter configuration files copied during `rnex sync`. | Copied to mapped paths specified in `templates:`. |
|
|
50
50
|
|
|
51
51
|
> [!NOTE]
|
|
52
|
-
> All AI assistants share `AGENTS.md` at workspace root.
|
|
52
|
+
> All AI assistants share `AGENTS.md` at workspace root. Agentic skills, rules, and subagents stay inside `.rnex/` and are not mirrored externally. Active provider plugins expose zero-logic User Skill pointers (`rnex-<name>.md`) in active provider directories (`.cursor/rules/`, `.claude/skills/`, etc.) linking directly to the agentic skill protocols inside `.rnex/`.
|
|
53
53
|
|
|
54
54
|
---
|
|
55
55
|
|
package/docs/plugins/claude.md
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Anthropic Claude Plugin
|
|
3
|
-
description: Integrate Anthropic Claude Code with Repo Nexus,
|
|
3
|
+
description: Integrate Anthropic Claude Code with Repo Nexus, generating zero-logic user skill pointers in .claude/skills/.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Anthropic Claude Plugin
|
|
7
7
|
|
|
8
8
|
The **`claude`** plugin integrates Anthropic Claude Code CLI (`claude`) and Claude Desktop into a Repo Nexus Virtual Meta-Repo.
|
|
9
9
|
|
|
10
|
-
All AI assistants in Repo Nexus share [`AGENTS.md`](file:///Users/admin/Projects/ai/repo-nexus/AGENTS.md) at the workspace root as the single universal source of truth for routing.
|
|
10
|
+
All AI assistants in Repo Nexus share [`AGENTS.md`](file:///Users/admin/Projects/ai/repo-nexus/AGENTS.md) at the workspace root as the single universal source of truth for routing. When enabled, the `claude` plugin generates zero-logic User Skill pointers into `.claude/skills/` (e.g. `rnex-clone-sync.md`, `rnex-batch-exec.md`, `rnex-wiki-ingest.md`).
|
|
11
11
|
|
|
12
|
-
Operational skills,
|
|
12
|
+
Operational skills, rules, and subagents remain cleanly encapsulated within `.rnex/skills/` and active plugin directories (`.rnex/plugins/<plugin-name>/`).
|
|
13
13
|
|
|
14
14
|
---
|
|
15
15
|
|
|
16
16
|
## Capabilities
|
|
17
17
|
|
|
18
|
-
1. **
|
|
19
|
-
-
|
|
20
|
-
-
|
|
18
|
+
1. **Zero-Logic User Skills (`.claude/skills/rnex-*.md`)**:
|
|
19
|
+
- Generates lightweight user skill pointers prefixed with `rnex-` in `.claude/skills/`.
|
|
20
|
+
- Contains zero inline heuristics—redirects Claude directly to the underlying agentic skill protocols inside `.rnex/`.
|
|
21
21
|
|
|
22
22
|
2. **Native Instruction Support via `CLAUDE.md` & `AGENTS.md`**:
|
|
23
23
|
- Claude Code natively reads `CLAUDE.md` as its primary instructions file; it only falls back to `AGENTS.md` when no `CLAUDE.md` exists in the project.
|
|
@@ -25,8 +25,8 @@ Operational skills, workflows, rules, and subagents remain cleanly self-containe
|
|
|
25
25
|
- If `CLAUDE.md` is absent and `instructions: false`, Claude Code falls back to reading `AGENTS.md` directly.
|
|
26
26
|
|
|
27
27
|
3. **Subagent & Skill Execution**:
|
|
28
|
-
-
|
|
29
|
-
-
|
|
28
|
+
- Core skills reside under `.rnex/skills/`.
|
|
29
|
+
- Plugin skills reside under `.rnex/plugins/<plugin>/skills/`.
|
|
30
30
|
- Subagents reside under `.rnex/agents/` and `.rnex/plugins/<plugin>/agents/` and are invoked as subagents without external mirroring.
|
|
31
31
|
|
|
32
32
|
---
|
|
@@ -59,16 +59,14 @@ Configure options under `plugins.claude` in `rnex.yaml` or `.local.rnex.yaml`:
|
|
|
59
59
|
plugins:
|
|
60
60
|
claude:
|
|
61
61
|
instructions: true # Sync routing instructions to CLAUDE.md (default: true)
|
|
62
|
-
|
|
63
|
-
workflows: true # Mirror active plugin workflows (default: true)
|
|
62
|
+
skills: true # Generate user skills in .claude/skills/ (default: true)
|
|
64
63
|
enabled: true # Set to false to disable
|
|
65
64
|
```
|
|
66
65
|
|
|
67
66
|
| Option | Type | Default | Description |
|
|
68
67
|
|:---|:---|:---|:---|
|
|
69
68
|
| `instructions` | boolean | `true` | Merge routing instructions into `CLAUDE.md`. |
|
|
70
|
-
| `
|
|
71
|
-
| `workflows` | boolean | `true` | Mirror plugin workflows as Claude slash commands. |
|
|
69
|
+
| `skills` | boolean | `true` | Generate user skill pointers in `.claude/skills/rnex-*.md`. |
|
|
72
70
|
| `enabled` | boolean | `true` | Enable or disable the plugin. Overridable in `.local.rnex.yaml`. |
|
|
73
71
|
|
|
74
72
|
---
|
|
@@ -82,17 +80,16 @@ my-workspace/
|
|
|
82
80
|
├── AGENTS.md # Universal workspace instructions & routing
|
|
83
81
|
├── CLAUDE.md # Claude-specific instructions (if instructions: true)
|
|
84
82
|
├── .claude/
|
|
85
|
-
│
|
|
86
|
-
│
|
|
87
|
-
│
|
|
88
|
-
│
|
|
89
|
-
│
|
|
90
|
-
│
|
|
83
|
+
│ └── skills/ # Zero-logic User Skill pointers
|
|
84
|
+
│ ├── rnex-clone-sync.md
|
|
85
|
+
│ ├── rnex-batch-exec.md
|
|
86
|
+
│ ├── rnex-workspace-status.md
|
|
87
|
+
│ ├── rnex-wiki-ingest.md
|
|
88
|
+
│ └── rnex-wiki-lint.md
|
|
91
89
|
├── .rnex/
|
|
92
|
-
│ ├── skills/ #
|
|
93
|
-
│ ├── workflows/ # Workspace workflows
|
|
90
|
+
│ ├── skills/ # Core workspace agentic skills
|
|
94
91
|
│ └── plugins/
|
|
95
|
-
│ └── karpathy-llm/ # Scoped plugin skills
|
|
92
|
+
│ └── karpathy-llm/ # Scoped plugin skills and rules
|
|
96
93
|
└── rnex.yaml
|
|
97
94
|
```
|
|
98
95
|
|
|
@@ -107,6 +104,6 @@ rnex plugin disable claude
|
|
|
107
104
|
```
|
|
108
105
|
|
|
109
106
|
Repo Nexus automatically performs surgical cleanup:
|
|
110
|
-
- Removes auto-generated
|
|
111
|
-
- Cleans up
|
|
112
|
-
- Developer-created custom
|
|
107
|
+
- Removes auto-generated user skills under `.claude/skills/rnex-*.md`.
|
|
108
|
+
- Cleans up managed routing instructions in `CLAUDE.md`.
|
|
109
|
+
- Developer-created custom skills under `.claude/` are preserved.
|
package/docs/plugins/cursor.md
CHANGED
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Cursor IDE Plugin
|
|
3
|
-
description: Integrate Cursor IDE with Repo Nexus,
|
|
3
|
+
description: Integrate Cursor IDE with Repo Nexus, generating zero-logic user skill pointers in .cursor/rules/.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Cursor IDE Plugin
|
|
7
7
|
|
|
8
8
|
The **`cursor`** plugin integrates Cursor IDE and Cursor Agent Mode into a Repo Nexus Virtual Meta-Repo.
|
|
9
9
|
|
|
10
|
-
All AI assistants in Repo Nexus share [`AGENTS.md`](file:///Users/admin/Projects/ai/repo-nexus/AGENTS.md) at the workspace root as the single universal source of truth for routing.
|
|
10
|
+
All AI assistants in Repo Nexus share [`AGENTS.md`](file:///Users/admin/Projects/ai/repo-nexus/AGENTS.md) at the workspace root as the single universal source of truth for routing. When enabled, the `cursor` plugin generates zero-logic User Skill pointers into `.cursor/rules/` (e.g. `rnex-clone-sync.md`, `rnex-batch-exec.md`, `rnex-wiki-ingest.md`).
|
|
11
11
|
|
|
12
|
-
Operational skills,
|
|
12
|
+
Operational skills, rules, and subagents remain cleanly encapsulated within `.rnex/skills/` and active plugin directories (`.rnex/plugins/<plugin-name>/`).
|
|
13
13
|
|
|
14
14
|
---
|
|
15
15
|
|
|
16
16
|
## Capabilities
|
|
17
17
|
|
|
18
|
-
1. **
|
|
19
|
-
-
|
|
20
|
-
-
|
|
18
|
+
1. **Zero-Logic User Skills (`.cursor/rules/rnex-*.md`)**:
|
|
19
|
+
- Generates lightweight user skill pointers prefixed with `rnex-` in `.cursor/rules/`.
|
|
20
|
+
- Contains zero inline heuristics—redirects Cursor directly to the underlying agentic skill protocols inside `.rnex/`.
|
|
21
21
|
|
|
22
|
-
2. **
|
|
23
|
-
-
|
|
22
|
+
2. **Native Instructions & Rules Support**:
|
|
23
|
+
- Synchronizes Repo Nexus routing instructions to `.cursorrules` when `instructions: true` (default).
|
|
24
|
+
- Preserves user custom rules and custom sections in `.cursorrules`.
|
|
24
25
|
|
|
25
26
|
3. **Subagent & Skill Execution**:
|
|
26
|
-
-
|
|
27
|
-
-
|
|
27
|
+
- Core skills reside under `.rnex/skills/`.
|
|
28
|
+
- Plugin skills reside under `.rnex/plugins/<plugin>/skills/`.
|
|
28
29
|
- Subagents reside under `.rnex/agents/` and `.rnex/plugins/<plugin>/agents/` and are invoked as subagents without external mirroring.
|
|
29
30
|
|
|
30
31
|
---
|
|
@@ -56,17 +57,15 @@ Configure options under `plugins.cursor` in `rnex.yaml` or `.local.rnex.yaml`:
|
|
|
56
57
|
```yaml
|
|
57
58
|
plugins:
|
|
58
59
|
cursor:
|
|
59
|
-
instructions: true # Sync routing instructions to .cursorrules
|
|
60
|
-
|
|
61
|
-
workflows: true # Mirror active plugin workflows as prompts (default: true)
|
|
60
|
+
instructions: true # Sync routing instructions to .cursorrules (default: true)
|
|
61
|
+
skills: true # Generate user skills in .cursor/rules/ (default: true)
|
|
62
62
|
enabled: true # Set to false to disable
|
|
63
63
|
```
|
|
64
64
|
|
|
65
65
|
| Option | Type | Default | Description |
|
|
66
66
|
|:---|:---|:---|:---|
|
|
67
|
-
| `instructions` | boolean | `true` | Merge routing instructions into `.cursorrules
|
|
68
|
-
| `
|
|
69
|
-
| `workflows` | boolean | `true` | Mirror plugin workflows into `.cursor/prompts/*.md`. |
|
|
67
|
+
| `instructions` | boolean | `true` | Merge routing instructions into `.cursorrules`. |
|
|
68
|
+
| `skills` | boolean | `true` | Generate user skill pointers in `.cursor/rules/rnex-*.md`. |
|
|
70
69
|
| `enabled` | boolean | `true` | Enable or disable the plugin. Overridable in `.local.rnex.yaml`. |
|
|
71
70
|
|
|
72
71
|
---
|
|
@@ -80,18 +79,16 @@ my-workspace/
|
|
|
80
79
|
├── AGENTS.md # Universal workspace instructions & routing
|
|
81
80
|
├── .cursorrules # Cursor root instructions (if instructions: true)
|
|
82
81
|
├── .cursor/
|
|
83
|
-
│
|
|
84
|
-
│
|
|
85
|
-
│
|
|
86
|
-
│ ├── rnex-
|
|
87
|
-
│ ├── rnex-workspace-audit.md
|
|
82
|
+
│ └── rules/ # Zero-logic User Skill pointers
|
|
83
|
+
│ ├── rnex-clone-sync.md
|
|
84
|
+
│ ├── rnex-batch-exec.md
|
|
85
|
+
│ ├── rnex-workspace-status.md
|
|
88
86
|
│ ├── rnex-wiki-ingest.md
|
|
89
87
|
│ └── rnex-wiki-lint.md
|
|
90
88
|
├── .rnex/
|
|
91
|
-
│ ├── skills/ #
|
|
92
|
-
│ ├── workflows/ # Workspace workflows
|
|
89
|
+
│ ├── skills/ # Core workspace agentic skills
|
|
93
90
|
│ └── plugins/
|
|
94
|
-
│ └── karpathy-llm/ # Scoped plugin skills
|
|
91
|
+
│ └── karpathy-llm/ # Scoped plugin skills and rules
|
|
95
92
|
└── rnex.yaml
|
|
96
93
|
```
|
|
97
94
|
|
|
@@ -106,6 +103,6 @@ rnex plugin disable cursor
|
|
|
106
103
|
```
|
|
107
104
|
|
|
108
105
|
Repo Nexus automatically performs surgical cleanup:
|
|
109
|
-
- Removes auto-generated
|
|
110
|
-
- Cleans up
|
|
111
|
-
- Developer-created custom rules
|
|
106
|
+
- Removes auto-generated user skills under `.cursor/rules/rnex-*.md`.
|
|
107
|
+
- Cleans up managed routing instructions in `.cursorrules`.
|
|
108
|
+
- Developer-created custom rules under `.cursor/` are preserved.
|
package/docs/plugins/gemini.md
CHANGED
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Google Gemini & Antigravity Plugin
|
|
3
|
-
description: Integrate Google Gemini and Antigravity IDE with Repo Nexus,
|
|
3
|
+
description: Integrate Google Gemini and Antigravity IDE with Repo Nexus, generating zero-logic user skill pointers in .gemini/skills/.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Google Gemini & Antigravity Plugin
|
|
7
7
|
|
|
8
8
|
The **`gemini`** plugin integrates Google Gemini CLI and Google Antigravity IDE into a Repo Nexus Virtual Meta-Repo.
|
|
9
9
|
|
|
10
|
-
All AI assistants in Repo Nexus share [`AGENTS.md`](file:///Users/admin/Projects/ai/repo-nexus/AGENTS.md) at the workspace root as the single universal source of truth for routing.
|
|
10
|
+
All AI assistants in Repo Nexus share [`AGENTS.md`](file:///Users/admin/Projects/ai/repo-nexus/AGENTS.md) at the workspace root as the single universal source of truth for routing. When enabled, the `gemini` plugin generates zero-logic User Skill pointers into `.gemini/skills/` (e.g. `rnex-clone-sync.md`, `rnex-batch-exec.md`, `rnex-wiki-ingest.md`).
|
|
11
11
|
|
|
12
|
-
Operational skills,
|
|
12
|
+
Operational skills, rules, and subagents remain cleanly encapsulated within `.rnex/skills/` and active plugin directories (`.rnex/plugins/<plugin-name>/`).
|
|
13
13
|
|
|
14
14
|
---
|
|
15
15
|
|
|
16
16
|
## Capabilities
|
|
17
17
|
|
|
18
|
-
1. **
|
|
18
|
+
1. **Zero-Logic User Skills (`.gemini/skills/rnex-*.md`)**:
|
|
19
|
+
- Generates lightweight user skill pointers prefixed with `rnex-` in `.gemini/skills/`.
|
|
20
|
+
- Contains zero inline heuristics—redirects Gemini/Antigravity directly to the underlying agentic skill protocols inside `.rnex/`.
|
|
21
|
+
|
|
22
|
+
2. **Native Instructions Support via `GEMINI.md`**:
|
|
19
23
|
- Synchronizes Repo Nexus routing instructions to `GEMINI.md` (when `instructions: true`, default) for native support by the Google Gemini CLI.
|
|
20
24
|
- Preserves user-defined custom sections in `GEMINI.md` across updates.
|
|
21
25
|
|
|
22
|
-
2. **Prompts Mirroring (`.gemini/prompts/*.prompt.md`)**:
|
|
23
|
-
- Converts standard Repo Nexus operational prompts (`rnex-cross-repo-feature`, `rnex-workspace-audit`) and active plugins' workflows into Gemini prompt files with YAML frontmatter.
|
|
24
|
-
|
|
25
26
|
3. **Subagent & Skill Execution**:
|
|
26
|
-
-
|
|
27
|
-
-
|
|
27
|
+
- Core skills reside under `.rnex/skills/`.
|
|
28
|
+
- Plugin skills reside under `.rnex/plugins/<plugin>/skills/`.
|
|
28
29
|
- Subagents reside under `.rnex/agents/` and `.rnex/plugins/<plugin>/agents/` and are invoked as subagents without external mirroring.
|
|
29
30
|
|
|
30
31
|
---
|
|
@@ -57,16 +58,14 @@ Configure options under `plugins.gemini` in `rnex.yaml` or `.local.rnex.yaml`:
|
|
|
57
58
|
plugins:
|
|
58
59
|
gemini:
|
|
59
60
|
instructions: true # Sync routing instructions to GEMINI.md (default: true)
|
|
60
|
-
|
|
61
|
-
workflows: true # Mirror active plugin workflows as prompts (default: true)
|
|
61
|
+
skills: true # Generate user skills in .gemini/skills/ (default: true)
|
|
62
62
|
enabled: true # Set to false to disable
|
|
63
63
|
```
|
|
64
64
|
|
|
65
65
|
| Option | Type | Default | Description |
|
|
66
66
|
|:---|:---|:---|:---|
|
|
67
67
|
| `instructions` | boolean | `true` | Merge routing instructions into `GEMINI.md`. |
|
|
68
|
-
| `
|
|
69
|
-
| `workflows` | boolean | `true` | Mirror active plugin workflows into `.gemini/prompts/*.prompt.md`. |
|
|
68
|
+
| `skills` | boolean | `true` | Generate user skill pointers in `.gemini/skills/rnex-*.md`. |
|
|
70
69
|
| `enabled` | boolean | `true` | Enable or disable the plugin. Overridable in `.local.rnex.yaml`. |
|
|
71
70
|
|
|
72
71
|
---
|
|
@@ -80,16 +79,16 @@ my-workspace/
|
|
|
80
79
|
├── AGENTS.md # Universal workspace instructions & routing
|
|
81
80
|
├── GEMINI.md # Gemini-specific instructions (if instructions: true)
|
|
82
81
|
├── .gemini/
|
|
83
|
-
│ └──
|
|
84
|
-
│ ├── rnex-
|
|
85
|
-
│ ├── rnex-
|
|
86
|
-
│ ├── rnex-
|
|
87
|
-
│
|
|
82
|
+
│ └── skills/ # Zero-logic User Skill pointers
|
|
83
|
+
│ ├── rnex-clone-sync.md
|
|
84
|
+
│ ├── rnex-batch-exec.md
|
|
85
|
+
│ ├── rnex-workspace-status.md
|
|
86
|
+
│ ├── rnex-wiki-ingest.md
|
|
87
|
+
│ └── rnex-wiki-lint.md
|
|
88
88
|
├── .rnex/
|
|
89
|
-
│ ├── skills/ #
|
|
90
|
-
│ ├── workflows/ # Workspace workflows
|
|
89
|
+
│ ├── skills/ # Core workspace agentic skills
|
|
91
90
|
│ └── plugins/
|
|
92
|
-
│ └── karpathy-llm/ # Scoped plugin skills
|
|
91
|
+
│ └── karpathy-llm/ # Scoped plugin skills and rules
|
|
93
92
|
└── rnex.yaml
|
|
94
93
|
```
|
|
95
94
|
|
|
@@ -104,6 +103,6 @@ rnex plugin disable gemini
|
|
|
104
103
|
```
|
|
105
104
|
|
|
106
105
|
Repo Nexus automatically performs surgical cleanup:
|
|
107
|
-
- Removes auto-generated
|
|
108
|
-
- Cleans up
|
|
106
|
+
- Removes auto-generated user skills under `.gemini/skills/rnex-*.md`.
|
|
107
|
+
- Cleans up managed routing instructions in `GEMINI.md`.
|
|
109
108
|
- Developer-created files under `.gemini/` that do not originate from Repo Nexus are preserved.
|
package/docs/plugins/index.md
CHANGED
|
@@ -19,12 +19,11 @@ When a plugin is enabled, its rules, instructions, workflows, prompts, and skill
|
|
|
19
19
|
### 2. Member Repository Isolation
|
|
20
20
|
Active plugins are mirrored into each active member repository under `repos/<name>/.rnex/plugins/<plugin-name>/`. When an AI assistant operates inside a specific member repository, it has full local access to the workspace's shared instructions and rules without breaking repository autonomy.
|
|
21
21
|
|
|
22
|
-
### 3. Decoupled
|
|
22
|
+
### 3. Decoupled Two-Tier Skills Architecture
|
|
23
23
|
Repo Nexus decouples functional plugins from AI provider plugins:
|
|
24
|
-
- **
|
|
25
|
-
- **
|
|
26
|
-
|
|
27
|
-
Adding a new workflow or prompt to any functional plugin automatically makes it available across all enabled AI provider tools without manual duplication.
|
|
24
|
+
- **Core Skills (`toolkit/skills/` $\rightarrow$ `.rnex/skills/`)**: Workspace-level capabilities owned by Repo Nexus core.
|
|
25
|
+
- **Plugin Skills (`toolkit/plugins/<plugin>/skills/` $\rightarrow$ `.rnex/plugins/<plugin>/skills/`)**: Scoped domain skills owned exclusively by individual plugins.
|
|
26
|
+
- **User Skills (`rnex-<name>.md`)**: Provider plugins (`claude`, `gemini`, `cursor`, and `windsurf`) generate zero-logic user skill pointers in active provider directories (`.cursor/rules/`, `.claude/skills/`, `.gemini/skills/`, `.windsurf/rules/`) that redirect AI assistants directly to the underlying agentic skills in `.rnex/`.
|
|
28
27
|
|
|
29
28
|
### 4. Non-Destructive Delimited Merging
|
|
30
29
|
When plugins update root instruction files (`AGENTS.md`, `CLAUDE.md`, `GEMINI.md`, `.cursorrules`, `.windsurfrules`), Repo Nexus isolates auto-managed routing between explicit delimiters:
|
|
@@ -47,11 +46,10 @@ Developer-authored instructions outside of these delimiters are strictly preserv
|
|
|
47
46
|
|
|
48
47
|
| Plugin | Category | Description | Documentation |
|
|
49
48
|
|:---|:---|:---|:---|
|
|
50
|
-
| [`claude`](claude.md) | AI Provider | Anthropic Claude Code & Desktop integration: maintains `CLAUDE.md` and
|
|
51
|
-
| [`cursor`](cursor.md) | AI Provider | Cursor IDE integration: maintains `.cursorrules`, `.
|
|
52
|
-
| [`
|
|
53
|
-
| [`
|
|
54
|
-
| [`windsurf`](windsurf.md) | AI Provider | Windsurf IDE integration: maintains `.windsurfrules` and mirrors prompts to `.windsurf/`. | [Read Guide](windsurf.md) |
|
|
49
|
+
| [`claude`](claude.md) | AI Provider | Anthropic Claude Code & Desktop integration: maintains `CLAUDE.md` and generates user skills in `.claude/skills/`. | [Read Guide](claude.md) |
|
|
50
|
+
| [`cursor`](cursor.md) | AI Provider | Cursor IDE integration: maintains `.cursorrules`, `.cursorignore`, and generates user skills in `.cursor/rules/`. | [Read Guide](cursor.md) |
|
|
51
|
+
| [`gemini`](gemini.md) | AI Provider | Google Gemini CLI & Antigravity IDE integration: maintains `GEMINI.md`, `.geminiignore`, and generates user skills in `.gemini/skills/`. | [Read Guide](gemini.md) |
|
|
52
|
+
| [`windsurf`](windsurf.md) | AI Provider | Windsurf IDE integration: maintains `.windsurfrules` and generates user skills in `.windsurf/rules/`. | [Read Guide](windsurf.md) |
|
|
55
53
|
| [`karpathy-llm`](karpathy-llm.md) | Knowledge & Rules | Andrej Karpathy's 4 cardinal principles for coding agents, multi-repo context engineering standards, and autonomous zero-dependency LLM Wiki architecture (`./docs`, `.rnex/wiki`). | [Read Guide](karpathy-llm.md) |
|
|
56
54
|
|
|
57
55
|
---
|