repo-nexus 0.7.8 → 0.7.10
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/docs/ai-instructions.sample.md +3 -0
- package/docs/plugins/claude.md +3 -3
- package/docs/plugins/cursor.md +2 -2
- package/docs/plugins/gemini.md +3 -3
- package/docs/plugins/karpathy-llm.md +1 -1
- package/docs/plugins/windsurf.md +3 -3
- package/docs/rnex.example.yaml +2 -0
- package/lib/ai.sh +88 -26
- package/lib/commands/init.sh +1 -1
- package/lib/commands/plugin.sh +2 -0
- package/lib/hooks.sh +74 -24
- package/lib/yaml.sh +2 -2
- package/package.json +1 -1
- package/templates/ai-instructions.sample.md +3 -0
- package/templates/rnex.example.yaml +2 -0
- package/toolkit/plugins/karpathy-llm/README.md +8 -8
- package/toolkit/plugins/karpathy-llm/hooks/after_sync.sh +53 -28
- package/toolkit/plugins/karpathy-llm/hooks/before_plugin_disable.sh +8 -0
- package/toolkit/plugins/karpathy-llm/instructions/rnex-wiki-architecture.md +4 -3
- package/toolkit/plugins/karpathy-llm/instructions.md +3 -2
- package/toolkit/plugins/karpathy-llm/plugin.yaml +2 -0
- package/toolkit/plugins/karpathy-llm/rules/behavioral.md +4 -0
- package/toolkit/plugins/karpathy-llm/skills/wiki-ingest.md +10 -6
- package/toolkit/plugins/karpathy-llm/skills/wiki-lint.md +5 -1
- package/toolkit/plugins/karpathy-llm/templates/hot.md +1 -1
|
@@ -23,3 +23,6 @@ When workspace configuration, routing blocks, plugin assets, or member repositor
|
|
|
23
23
|
|
|
24
24
|
## Git Operations
|
|
25
25
|
Commit and push changes directly within the respective member repository root (`repos/<name>/`).
|
|
26
|
+
|
|
27
|
+
## Wiki Operations
|
|
28
|
+
`raw_dir` (`./docs`) and `./repos/` are strictly read-only inputs during wiki operations. Never create, copy, or modify files inside `./docs`; write generated output exclusively inside `wiki_dir` (`.rnex/wiki/`).
|
package/docs/plugins/claude.md
CHANGED
|
@@ -7,7 +7,7 @@ description: Integrate Anthropic Claude Code with Repo Nexus, generating zero-lo
|
|
|
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. 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
|
|
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-karpathy-llm-wiki-ingest`).
|
|
11
11
|
|
|
12
12
|
Operational skills, rules, and subagents remain cleanly encapsulated within `.rnex/skills/` and active plugin directories (`.rnex/plugins/<plugin-name>/`).
|
|
13
13
|
|
|
@@ -84,8 +84,8 @@ my-workspace/
|
|
|
84
84
|
│ ├── rnex-clone-sync.md
|
|
85
85
|
│ ├── rnex-batch-exec.md
|
|
86
86
|
│ ├── rnex-workspace-status.md
|
|
87
|
-
│ ├── rnex-wiki-ingest
|
|
88
|
-
│ └── rnex-wiki-lint
|
|
87
|
+
│ ├── rnex-karpathy-llm-wiki-ingest/
|
|
88
|
+
│ └── rnex-karpathy-llm-wiki-lint/
|
|
89
89
|
├── .rnex/
|
|
90
90
|
│ ├── skills/ # Core workspace agentic skills
|
|
91
91
|
│ └── plugins/
|
package/docs/plugins/cursor.md
CHANGED
|
@@ -83,8 +83,8 @@ my-workspace/
|
|
|
83
83
|
│ ├── rnex-clone-sync.md
|
|
84
84
|
│ ├── rnex-batch-exec.md
|
|
85
85
|
│ ├── rnex-workspace-status.md
|
|
86
|
-
│ ├── rnex-wiki-ingest.md
|
|
87
|
-
│ └── rnex-wiki-lint.md
|
|
86
|
+
│ ├── rnex-karpathy-llm-wiki-ingest.md
|
|
87
|
+
│ └── rnex-karpathy-llm-wiki-lint.md
|
|
88
88
|
├── .rnex/
|
|
89
89
|
│ ├── skills/ # Core workspace agentic skills
|
|
90
90
|
│ └── plugins/
|
package/docs/plugins/gemini.md
CHANGED
|
@@ -7,7 +7,7 @@ description: Integrate Google Gemini and Antigravity IDE with Repo Nexus, genera
|
|
|
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. 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
|
|
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-karpathy-llm-wiki-ingest`).
|
|
11
11
|
|
|
12
12
|
Operational skills, rules, and subagents remain cleanly encapsulated within `.rnex/skills/` and active plugin directories (`.rnex/plugins/<plugin-name>/`).
|
|
13
13
|
|
|
@@ -83,8 +83,8 @@ my-workspace/
|
|
|
83
83
|
│ ├── rnex-clone-sync.md
|
|
84
84
|
│ ├── rnex-batch-exec.md
|
|
85
85
|
│ ├── rnex-workspace-status.md
|
|
86
|
-
│ ├── rnex-wiki-ingest
|
|
87
|
-
│ └── rnex-wiki-lint
|
|
86
|
+
│ ├── rnex-karpathy-llm-wiki-ingest/
|
|
87
|
+
│ └── rnex-karpathy-llm-wiki-lint/
|
|
88
88
|
├── .rnex/
|
|
89
89
|
│ ├── skills/ # Core workspace agentic skills
|
|
90
90
|
│ └── plugins/
|
|
@@ -169,7 +169,7 @@ The `karpathy-llm` plugin encapsulates its agentic skills in `.rnex/plugins/karp
|
|
|
169
169
|
- `wiki-ingest.md`
|
|
170
170
|
- `wiki-lint.md`
|
|
171
171
|
|
|
172
|
-
During `rnex sync`, its `after_sync.sh` lifecycle hook automatically registers zero-logic User Skill pointers (`rnex-wiki-ingest
|
|
172
|
+
During `rnex sync`, its `after_sync.sh` lifecycle hook automatically registers zero-logic User Skill pointers (`rnex-karpathy-llm-wiki-ingest` and `rnex-karpathy-llm-wiki-lint`) across all enabled AI provider directories (`.cursor/rules/`, `.claude/skills/`, `.gemini/skills/`, `.windsurf/rules/`).
|
|
173
173
|
|
|
174
174
|
When running `rnex plugin disable karpathy-llm`, its `before_plugin_disable.sh` lifecycle hook automatically unregisters the User Skills from all provider directories, while keeping core workspace skills intact.
|
|
175
175
|
|
package/docs/plugins/windsurf.md
CHANGED
|
@@ -7,7 +7,7 @@ description: Integrate Windsurf IDE and Cascade with Repo Nexus, generating zero
|
|
|
7
7
|
|
|
8
8
|
The **`windsurf`** plugin integrates Codeium's Windsurf IDE and Cascade 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. When enabled, the `windsurf` plugin generates zero-logic User Skill pointers into `.windsurf/rules/` (e.g. `rnex-clone-sync.md`, `rnex-batch-exec.md`, `rnex-wiki-ingest.md`).
|
|
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 `windsurf` plugin generates zero-logic User Skill pointers into `.windsurf/rules/` (e.g. `rnex-clone-sync.md`, `rnex-batch-exec.md`, `rnex-karpathy-llm-wiki-ingest.md`).
|
|
11
11
|
|
|
12
12
|
Operational skills, rules, and subagents remain cleanly encapsulated within `.rnex/skills/` and active plugin directories (`.rnex/plugins/<plugin-name>/`).
|
|
13
13
|
|
|
@@ -83,8 +83,8 @@ my-workspace/
|
|
|
83
83
|
│ ├── rnex-clone-sync.md
|
|
84
84
|
│ ├── rnex-batch-exec.md
|
|
85
85
|
│ ├── rnex-workspace-status.md
|
|
86
|
-
│ ├── rnex-wiki-ingest.md
|
|
87
|
-
│ └── rnex-wiki-lint.md
|
|
86
|
+
│ ├── rnex-karpathy-llm-wiki-ingest.md
|
|
87
|
+
│ └── rnex-karpathy-llm-wiki-lint.md
|
|
88
88
|
├── .rnex/
|
|
89
89
|
│ ├── skills/ # Core workspace agentic skills
|
|
90
90
|
│ └── plugins/
|
package/docs/rnex.example.yaml
CHANGED
|
@@ -107,6 +107,8 @@ plugins:
|
|
|
107
107
|
# wiki_dir: ".rnex/wiki" # Directory for curated atomic markdown pages (default: .rnex/wiki)
|
|
108
108
|
# lint_trigger: "manual" # Runs manually via 'rnex sync' or validation checklists (git-post-merge, git-post-commit, git-pre-commit, git-pre-push, manual)
|
|
109
109
|
# notify_on_changes: true # Show notification when changes are committed to ./docs or .rnex/wiki
|
|
110
|
+
# ingest_member_readmes: true # Automatically ingest member repository READMEs into atomic wiki pages (default: true)
|
|
111
|
+
|
|
110
112
|
|
|
111
113
|
# ------------------------------------------------------------------------------
|
|
112
114
|
# repos — Member repositories managed by Repo Nexus
|
package/lib/ai.sh
CHANGED
|
@@ -124,6 +124,9 @@ When workspace configuration, routing blocks, plugin assets, or member repositor
|
|
|
124
124
|
|
|
125
125
|
## Git Operations
|
|
126
126
|
Commit and push changes directly within the respective member repository root (`repos/<name>/`).
|
|
127
|
+
|
|
128
|
+
## Wiki Operations
|
|
129
|
+
`raw_dir` (`./docs`) and `./repos/` are strictly read-only inputs during wiki operations. Never create, copy, or modify files inside `./docs`; write generated output exclusively inside `wiki_dir` (`.rnex/wiki/`).
|
|
127
130
|
BASE_AI_EOF
|
|
128
131
|
fi
|
|
129
132
|
|
|
@@ -367,9 +370,16 @@ if [ -z "$RNEX_PROVIDER_SKILL_DIRS" ]; then
|
|
|
367
370
|
export RNEX_PROVIDER_SKILL_DIRS="$_dirs"
|
|
368
371
|
fi
|
|
369
372
|
|
|
370
|
-
|
|
373
|
+
rnex_generate_user_skill() {
|
|
371
374
|
skill_name="$1"
|
|
372
375
|
target_path="$2"
|
|
376
|
+
plugin_name="${3:-}"
|
|
377
|
+
|
|
378
|
+
if [ -n "$plugin_name" ]; then
|
|
379
|
+
full_name="rnex-${plugin_name}-${skill_name}"
|
|
380
|
+
else
|
|
381
|
+
full_name="rnex-${skill_name}"
|
|
382
|
+
fi
|
|
373
383
|
_dirs="${RNEX_PROVIDER_SKILL_DIRS:-}"
|
|
374
384
|
_r="${RNEX_ROOT:-.}"
|
|
375
385
|
|
|
@@ -385,7 +395,7 @@ rnex_register_user_skill() {
|
|
|
385
395
|
_skill_desc="$(awk 'NF && !/^#/ { print; exit }' "$_target_file" 2>/dev/null)"
|
|
386
396
|
fi
|
|
387
397
|
if [ -z "$_skill_desc" ]; then
|
|
388
|
-
_skill_desc="Repo Nexus agentic skill protocol for ${
|
|
398
|
+
_skill_desc="Repo Nexus agentic skill protocol for ${full_name}."
|
|
389
399
|
fi
|
|
390
400
|
_skill_desc="$(printf '%s' "$_skill_desc" | tr '\n\r' ' ' | sed 's/^[[:space:]]*//;s/[[:space:]]*$//;s/"/\\"/g')"
|
|
391
401
|
|
|
@@ -393,24 +403,24 @@ rnex_register_user_skill() {
|
|
|
393
403
|
case "$provider_dir" in
|
|
394
404
|
*rules*)
|
|
395
405
|
mkdir -p "$_r/$provider_dir"
|
|
396
|
-
rm -rf "$_r/$provider_dir
|
|
397
|
-
cat << EOF > "$_r/$provider_dir
|
|
398
|
-
# User Skill:
|
|
406
|
+
rm -rf "${_r:?}/${provider_dir:?}/${full_name:?}" 2>/dev/null || true
|
|
407
|
+
cat << EOF > "$_r/$provider_dir/${full_name}.md"
|
|
408
|
+
# User Skill: ${full_name}
|
|
399
409
|
|
|
400
410
|
CRITICAL: Do not execute inline heuristics. Read and strictly follow the agentic skill protocol at:
|
|
401
411
|
\`${target_path}\`
|
|
402
412
|
EOF
|
|
403
413
|
;;
|
|
404
414
|
*)
|
|
405
|
-
mkdir -p "$_r/$provider_dir
|
|
406
|
-
rm -f "$_r/$provider_dir
|
|
407
|
-
cat << EOF > "$_r/$provider_dir
|
|
415
|
+
mkdir -p "$_r/$provider_dir/${full_name}"
|
|
416
|
+
rm -f "$_r/$provider_dir/${full_name}.md" 2>/dev/null || true
|
|
417
|
+
cat << EOF > "$_r/$provider_dir/${full_name}/SKILL.md"
|
|
408
418
|
---
|
|
409
|
-
name:
|
|
419
|
+
name: ${full_name}
|
|
410
420
|
description: "${_skill_desc}"
|
|
411
421
|
---
|
|
412
422
|
|
|
413
|
-
# User Skill:
|
|
423
|
+
# User Skill: ${full_name}
|
|
414
424
|
|
|
415
425
|
CRITICAL: Do not execute inline heuristics. Read and strictly follow the agentic skill protocol at:
|
|
416
426
|
\`${target_path}\`
|
|
@@ -420,13 +430,30 @@ EOF
|
|
|
420
430
|
done
|
|
421
431
|
}
|
|
422
432
|
|
|
433
|
+
rnex_register_user_skill() {
|
|
434
|
+
rnex_generate_user_skill "$@"
|
|
435
|
+
}
|
|
436
|
+
|
|
423
437
|
rnex_unregister_user_skill() {
|
|
424
438
|
skill_name="$1"
|
|
439
|
+
plugin_name="${2:-}"
|
|
440
|
+
if [ -n "$plugin_name" ]; then
|
|
441
|
+
full_name="rnex-${plugin_name}-${skill_name}"
|
|
442
|
+
else
|
|
443
|
+
case "$skill_name" in
|
|
444
|
+
rnex-*) full_name="$skill_name" ;;
|
|
445
|
+
*) full_name="rnex-${skill_name}" ;;
|
|
446
|
+
esac
|
|
447
|
+
fi
|
|
425
448
|
_dirs="${RNEX_PROVIDER_SKILL_DIRS:-}"
|
|
426
449
|
_r="${RNEX_ROOT:-.}"
|
|
427
450
|
for provider_dir in $_dirs; do
|
|
428
|
-
rm -f "$_r/$provider_dir
|
|
429
|
-
rm -rf "$_r/$provider_dir
|
|
451
|
+
rm -f "$_r/$provider_dir/${full_name}.md"
|
|
452
|
+
rm -rf "${_r:?}/${provider_dir:?}/${full_name:?}"
|
|
453
|
+
if [ -n "$plugin_name" ]; then
|
|
454
|
+
rm -f "$_r/$provider_dir/rnex-${skill_name}.md"
|
|
455
|
+
rm -rf "${_r:?}/${provider_dir:?}/rnex-${skill_name:?}"
|
|
456
|
+
fi
|
|
430
457
|
done
|
|
431
458
|
}
|
|
432
459
|
ENV_EOF
|
|
@@ -453,10 +480,18 @@ get_active_provider_skill_dirs() {
|
|
|
453
480
|
printf '%s' "$_dirs"
|
|
454
481
|
}
|
|
455
482
|
|
|
456
|
-
# Usage:
|
|
457
|
-
|
|
483
|
+
# Usage: rnex_generate_user_skill <skill_name> <target_path_in_rnex> [plugin_name]
|
|
484
|
+
rnex_generate_user_skill() {
|
|
458
485
|
skill_name="$1"
|
|
459
486
|
target_path="$2"
|
|
487
|
+
plugin_name="${3:-}"
|
|
488
|
+
|
|
489
|
+
if [ -n "$plugin_name" ]; then
|
|
490
|
+
full_name="rnex-${plugin_name}-${skill_name}"
|
|
491
|
+
else
|
|
492
|
+
full_name="rnex-${skill_name}"
|
|
493
|
+
fi
|
|
494
|
+
|
|
460
495
|
_dirs="${RNEX_PROVIDER_SKILL_DIRS:-$(get_active_provider_skill_dirs)}"
|
|
461
496
|
_r="${NEXUS_DIR:-${RNEX_ROOT:-.}}"
|
|
462
497
|
|
|
@@ -472,7 +507,7 @@ rnex_register_user_skill() {
|
|
|
472
507
|
_skill_desc="$(awk 'NF && !/^#/ { print; exit }' "$_target_file" 2>/dev/null)"
|
|
473
508
|
fi
|
|
474
509
|
if [ -z "$_skill_desc" ]; then
|
|
475
|
-
_skill_desc="Repo Nexus agentic skill protocol for ${
|
|
510
|
+
_skill_desc="Repo Nexus agentic skill protocol for ${full_name}."
|
|
476
511
|
fi
|
|
477
512
|
_skill_desc="$(printf '%s' "$_skill_desc" | tr '\n\r' ' ' | sed 's/^[[:space:]]*//;s/[[:space:]]*$//;s/"/\\"/g')"
|
|
478
513
|
|
|
@@ -480,24 +515,24 @@ rnex_register_user_skill() {
|
|
|
480
515
|
case "$provider_dir" in
|
|
481
516
|
*rules*)
|
|
482
517
|
mkdir -p "$_r/$provider_dir"
|
|
483
|
-
rm -rf "$_r/$provider_dir
|
|
484
|
-
cat << EOF > "$_r/$provider_dir
|
|
485
|
-
# User Skill:
|
|
518
|
+
rm -rf "${_r:?}/${provider_dir:?}/${full_name:?}" 2>/dev/null || true
|
|
519
|
+
cat << EOF > "$_r/$provider_dir/${full_name}.md"
|
|
520
|
+
# User Skill: ${full_name}
|
|
486
521
|
|
|
487
522
|
CRITICAL: Do not execute inline heuristics. Read and strictly follow the agentic skill protocol at:
|
|
488
523
|
\`${target_path}\`
|
|
489
524
|
EOF
|
|
490
525
|
;;
|
|
491
526
|
*)
|
|
492
|
-
mkdir -p "$_r/$provider_dir
|
|
493
|
-
rm -f "$_r/$provider_dir
|
|
494
|
-
cat << EOF > "$_r/$provider_dir
|
|
527
|
+
mkdir -p "$_r/$provider_dir/${full_name}"
|
|
528
|
+
rm -f "$_r/$provider_dir/${full_name}.md" 2>/dev/null || true
|
|
529
|
+
cat << EOF > "$_r/$provider_dir/${full_name}/SKILL.md"
|
|
495
530
|
---
|
|
496
|
-
name:
|
|
531
|
+
name: ${full_name}
|
|
497
532
|
description: "${_skill_desc}"
|
|
498
533
|
---
|
|
499
534
|
|
|
500
|
-
# User Skill:
|
|
535
|
+
# User Skill: ${full_name}
|
|
501
536
|
|
|
502
537
|
CRITICAL: Do not execute inline heuristics. Read and strictly follow the agentic skill protocol at:
|
|
503
538
|
\`${target_path}\`
|
|
@@ -507,14 +542,33 @@ EOF
|
|
|
507
542
|
done
|
|
508
543
|
}
|
|
509
544
|
|
|
510
|
-
# Usage:
|
|
545
|
+
# Usage: rnex_register_user_skill <skill_name> <target_path_in_rnex> [plugin_name]
|
|
546
|
+
rnex_register_user_skill() {
|
|
547
|
+
rnex_generate_user_skill "$@"
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
# Usage: rnex_unregister_user_skill <skill_name> [plugin_name]
|
|
511
551
|
rnex_unregister_user_skill() {
|
|
512
552
|
skill_name="$1"
|
|
553
|
+
plugin_name="${2:-}"
|
|
554
|
+
if [ -n "$plugin_name" ]; then
|
|
555
|
+
full_name="rnex-${plugin_name}-${skill_name}"
|
|
556
|
+
else
|
|
557
|
+
case "$skill_name" in
|
|
558
|
+
rnex-*) full_name="$skill_name" ;;
|
|
559
|
+
*) full_name="rnex-${skill_name}" ;;
|
|
560
|
+
esac
|
|
561
|
+
fi
|
|
562
|
+
|
|
513
563
|
_dirs="${RNEX_PROVIDER_SKILL_DIRS:-$(get_active_provider_skill_dirs)}"
|
|
514
564
|
_r="${NEXUS_DIR:-${RNEX_ROOT:-.}}"
|
|
515
565
|
for provider_dir in $_dirs; do
|
|
516
|
-
rm -f "$_r/$provider_dir
|
|
517
|
-
rm -rf "$_r/$provider_dir
|
|
566
|
+
rm -f "$_r/$provider_dir/${full_name}.md"
|
|
567
|
+
rm -rf "${_r:?}/${provider_dir:?}/${full_name:?}"
|
|
568
|
+
if [ -n "$plugin_name" ]; then
|
|
569
|
+
rm -f "$_r/$provider_dir/rnex-${skill_name}.md"
|
|
570
|
+
rm -rf "${_r:?}/${provider_dir:?}/rnex-${skill_name:?}"
|
|
571
|
+
fi
|
|
518
572
|
done
|
|
519
573
|
}
|
|
520
574
|
|
|
@@ -536,10 +590,12 @@ clean_provider_skills() {
|
|
|
536
590
|
clean_plugin_user_skills() {
|
|
537
591
|
_pdir="$1"
|
|
538
592
|
[ -d "$_pdir" ] || return 0
|
|
593
|
+
_pname="$(basename "$_pdir")"
|
|
539
594
|
if [ -d "$_pdir/skills" ]; then
|
|
540
595
|
for _sk_file in "$_pdir/skills"/*.md; do
|
|
541
596
|
[ -f "$_sk_file" ] || continue
|
|
542
597
|
_sk_name="$(basename "$_sk_file" .md)"
|
|
598
|
+
rnex_unregister_user_skill "$_sk_name" "$_pname"
|
|
543
599
|
rnex_unregister_user_skill "$_sk_name"
|
|
544
600
|
done
|
|
545
601
|
fi
|
|
@@ -634,6 +690,12 @@ sync_rnex_base_assets() {
|
|
|
634
690
|
rm -f "$NEXUS_DIR/.rnex/skills/wiki-ingest.md" "$NEXUS_DIR/.rnex/skills/wiki-lint.md" \
|
|
635
691
|
"$NEXUS_DIR/.rnex/skills/rnex-wiki-ingest.md" "$NEXUS_DIR/.rnex/skills/rnex-wiki-lint.md" 2>/dev/null || true
|
|
636
692
|
|
|
693
|
+
# Purge stale unprefixed wiki user skills across provider directories
|
|
694
|
+
for _p_dir in $(get_active_provider_skill_dirs 2>/dev/null || true); do
|
|
695
|
+
rm -f "$NEXUS_DIR/$_p_dir/rnex-wiki-ingest.md" "$NEXUS_DIR/$_p_dir/rnex-wiki-lint.md" 2>/dev/null || true
|
|
696
|
+
rm -rf "$NEXUS_DIR/$_p_dir/rnex-wiki-ingest" "$NEXUS_DIR/$_p_dir/rnex-wiki-lint" 2>/dev/null || true
|
|
697
|
+
done
|
|
698
|
+
|
|
637
699
|
# Register core User Skills across active provider directories
|
|
638
700
|
for _sk_file in "$NEXUS_DIR/.rnex/skills"/*.md; do
|
|
639
701
|
[ -f "$_sk_file" ] || continue
|
package/lib/commands/init.sh
CHANGED
|
@@ -119,7 +119,7 @@ cmd_init() {
|
|
|
119
119
|
_init_plugins="${_init_plugins} windsurf:\n instructions: true\n skills: true\n"
|
|
120
120
|
fi
|
|
121
121
|
if [ "$_cli_karpathy" = "true" ]; then
|
|
122
|
-
_init_plugins="${_init_plugins} karpathy-llm:\n raw_dir: \"./docs\"\n wiki_dir: \".rnex/wiki\"\n lint_trigger: \"manual\"\n"
|
|
122
|
+
_init_plugins="${_init_plugins} karpathy-llm:\n raw_dir: \"./docs\"\n wiki_dir: \".rnex/wiki\"\n lint_trigger: \"manual\"\n ingest_member_readmes: true\n"
|
|
123
123
|
fi
|
|
124
124
|
|
|
125
125
|
cat > "$_target_yaml" <<YAML_EOF
|
package/lib/commands/plugin.sh
CHANGED
|
@@ -83,11 +83,13 @@ cmd_plugin_info() {
|
|
|
83
83
|
if [ "$_name" = "karpathy-llm" ]; then
|
|
84
84
|
_cur_lt="$(yaml_plugin_get "karpathy-llm" "lint_trigger" 2>/dev/null || true)"
|
|
85
85
|
_cur_nc="$(yaml_plugin_get "karpathy-llm" "notify_on_changes" 2>/dev/null || true)"
|
|
86
|
+
_cur_imr="$(yaml_plugin_get "karpathy-llm" "ingest_member_readmes" 2>/dev/null || true)"
|
|
86
87
|
printf '\n%bConfigurable Options (in rnex.yaml or .local.rnex.yaml):%b\n' "$_BOLD" "$_NC"
|
|
87
88
|
printf ' - wiki_dir: <dir> (directory for curated markdown pages; current: %s)\n' "$(karpathy_wiki_dir)"
|
|
88
89
|
printf ' - raw_dir: <dir> (directory for unmodified intake documents; current: %s)\n' "$(karpathy_raw_dir)"
|
|
89
90
|
printf ' - lint_trigger: git-post-merge|git-post-commit|git-pre-commit|git-pre-push|manual (current: %s)\n' "${_cur_lt:-manual}"
|
|
90
91
|
printf ' - notify_on_changes: true|false (show notification when raw/wiki changes are committed; current: %s)\n' "${_cur_nc:-true}"
|
|
92
|
+
printf ' - ingest_member_readmes: true|false (automatically track member repository READMEs in wiki; current: %s)\n' "${_cur_imr:-true}"
|
|
91
93
|
fi
|
|
92
94
|
|
|
93
95
|
printf '\n%bScoped Directory:%b .rnex/plugins/%s\n' "$_BOLD" "$_NC" "$_name"
|
package/lib/hooks.sh
CHANGED
|
@@ -59,9 +59,16 @@ run_hook() {
|
|
|
59
59
|
RNEX_PROVIDER_SKILL_DIRS="$_skill_dirs"
|
|
60
60
|
export RNEX_ROOT RNEX_CONFIG_MERGED RNEX_PLUGIN_DIR RNEX_CMD RNEX_ARGS RNEX_QUIET RNEX_PROVIDER_SKILL_DIRS
|
|
61
61
|
# shellcheck disable=SC2329
|
|
62
|
-
|
|
62
|
+
rnex_generate_user_skill() {
|
|
63
63
|
skill_name="$1"
|
|
64
64
|
target_path="$2"
|
|
65
|
+
plugin_name="${3:-}"
|
|
66
|
+
|
|
67
|
+
if [ -n "$plugin_name" ]; then
|
|
68
|
+
full_name="rnex-${plugin_name}-${skill_name}"
|
|
69
|
+
else
|
|
70
|
+
full_name="rnex-${skill_name}"
|
|
71
|
+
fi
|
|
65
72
|
_target_file=""
|
|
66
73
|
if [ -f "$RNEX_ROOT/$target_path" ]; then
|
|
67
74
|
_target_file="$RNEX_ROOT/$target_path"
|
|
@@ -73,7 +80,7 @@ run_hook() {
|
|
|
73
80
|
_skill_desc="$(awk 'NF && !/^#/ { print; exit }' "$_target_file" 2>/dev/null)"
|
|
74
81
|
fi
|
|
75
82
|
if [ -z "$_skill_desc" ]; then
|
|
76
|
-
_skill_desc="Repo Nexus agentic skill protocol for ${
|
|
83
|
+
_skill_desc="Repo Nexus agentic skill protocol for ${full_name}."
|
|
77
84
|
fi
|
|
78
85
|
_skill_desc="$(printf '%s' "$_skill_desc" | tr '\n\r' ' ' | sed 's/^[[:space:]]*//;s/[[:space:]]*$//;s/"/\\"/g')"
|
|
79
86
|
|
|
@@ -81,24 +88,24 @@ run_hook() {
|
|
|
81
88
|
case "$provider_dir" in
|
|
82
89
|
*rules*)
|
|
83
90
|
mkdir -p "$RNEX_ROOT/$provider_dir"
|
|
84
|
-
rm -rf "$RNEX_ROOT/$provider_dir
|
|
85
|
-
cat << EOF > "$RNEX_ROOT/$provider_dir
|
|
86
|
-
# User Skill:
|
|
91
|
+
rm -rf "${RNEX_ROOT:?}/${provider_dir:?}/${full_name:?}" 2>/dev/null || true
|
|
92
|
+
cat << EOF > "$RNEX_ROOT/$provider_dir/${full_name}.md"
|
|
93
|
+
# User Skill: ${full_name}
|
|
87
94
|
|
|
88
95
|
CRITICAL: Do not execute inline heuristics. Read and strictly follow the agentic skill protocol at:
|
|
89
96
|
\`${target_path}\`
|
|
90
97
|
EOF
|
|
91
98
|
;;
|
|
92
99
|
*)
|
|
93
|
-
mkdir -p "$RNEX_ROOT/$provider_dir
|
|
94
|
-
rm -f "$RNEX_ROOT/$provider_dir
|
|
95
|
-
cat << EOF > "$RNEX_ROOT/$provider_dir
|
|
100
|
+
mkdir -p "$RNEX_ROOT/$provider_dir/${full_name}"
|
|
101
|
+
rm -f "$RNEX_ROOT/$provider_dir/${full_name}.md" 2>/dev/null || true
|
|
102
|
+
cat << EOF > "$RNEX_ROOT/$provider_dir/${full_name}/SKILL.md"
|
|
96
103
|
---
|
|
97
|
-
name:
|
|
104
|
+
name: ${full_name}
|
|
98
105
|
description: "${_skill_desc}"
|
|
99
106
|
---
|
|
100
107
|
|
|
101
|
-
# User Skill:
|
|
108
|
+
# User Skill: ${full_name}
|
|
102
109
|
|
|
103
110
|
CRITICAL: Do not execute inline heuristics. Read and strictly follow the agentic skill protocol at:
|
|
104
111
|
\`${target_path}\`
|
|
@@ -108,12 +115,30 @@ EOF
|
|
|
108
115
|
done
|
|
109
116
|
}
|
|
110
117
|
|
|
118
|
+
# shellcheck disable=SC2329
|
|
119
|
+
rnex_register_user_skill() {
|
|
120
|
+
rnex_generate_user_skill "$@"
|
|
121
|
+
}
|
|
122
|
+
|
|
111
123
|
# shellcheck disable=SC2329
|
|
112
124
|
rnex_unregister_user_skill() {
|
|
113
125
|
skill_name="$1"
|
|
126
|
+
plugin_name="${2:-}"
|
|
127
|
+
if [ -n "$plugin_name" ]; then
|
|
128
|
+
full_name="rnex-${plugin_name}-${skill_name}"
|
|
129
|
+
else
|
|
130
|
+
case "$skill_name" in
|
|
131
|
+
rnex-*) full_name="$skill_name" ;;
|
|
132
|
+
*) full_name="rnex-${skill_name}" ;;
|
|
133
|
+
esac
|
|
134
|
+
fi
|
|
114
135
|
for provider_dir in $RNEX_PROVIDER_SKILL_DIRS; do
|
|
115
|
-
rm -f "$RNEX_ROOT/$provider_dir
|
|
116
|
-
rm -rf "$RNEX_ROOT/$provider_dir
|
|
136
|
+
rm -f "$RNEX_ROOT/$provider_dir/${full_name}.md"
|
|
137
|
+
rm -rf "${RNEX_ROOT:?}/${provider_dir:?}/${full_name:?}"
|
|
138
|
+
if [ -n "$plugin_name" ]; then
|
|
139
|
+
rm -f "$RNEX_ROOT/$provider_dir/rnex-${skill_name}.md"
|
|
140
|
+
rm -rf "${RNEX_ROOT:?}/${provider_dir:?}/rnex-${skill_name:?}"
|
|
141
|
+
fi
|
|
117
142
|
done
|
|
118
143
|
}
|
|
119
144
|
set -- "$@"
|
|
@@ -174,9 +199,16 @@ run_plugin_hook() {
|
|
|
174
199
|
RNEX_PROVIDER_SKILL_DIRS="$_skill_dirs"
|
|
175
200
|
export RNEX_ROOT RNEX_CONFIG_MERGED RNEX_PLUGIN_DIR RNEX_CMD RNEX_ARGS RNEX_QUIET RNEX_PROVIDER_SKILL_DIRS
|
|
176
201
|
# shellcheck disable=SC2329
|
|
177
|
-
|
|
202
|
+
rnex_generate_user_skill() {
|
|
178
203
|
skill_name="$1"
|
|
179
204
|
target_path="$2"
|
|
205
|
+
plugin_name="${3:-}"
|
|
206
|
+
|
|
207
|
+
if [ -n "$plugin_name" ]; then
|
|
208
|
+
full_name="rnex-${plugin_name}-${skill_name}"
|
|
209
|
+
else
|
|
210
|
+
full_name="rnex-${skill_name}"
|
|
211
|
+
fi
|
|
180
212
|
_target_file=""
|
|
181
213
|
if [ -f "$RNEX_ROOT/$target_path" ]; then
|
|
182
214
|
_target_file="$RNEX_ROOT/$target_path"
|
|
@@ -188,7 +220,7 @@ run_plugin_hook() {
|
|
|
188
220
|
_skill_desc="$(awk 'NF && !/^#/ { print; exit }' "$_target_file" 2>/dev/null)"
|
|
189
221
|
fi
|
|
190
222
|
if [ -z "$_skill_desc" ]; then
|
|
191
|
-
_skill_desc="Repo Nexus agentic skill protocol for ${
|
|
223
|
+
_skill_desc="Repo Nexus agentic skill protocol for ${full_name}."
|
|
192
224
|
fi
|
|
193
225
|
_skill_desc="$(printf '%s' "$_skill_desc" | tr '\n\r' ' ' | sed 's/^[[:space:]]*//;s/[[:space:]]*$//;s/"/\\"/g')"
|
|
194
226
|
|
|
@@ -196,24 +228,24 @@ run_plugin_hook() {
|
|
|
196
228
|
case "$provider_dir" in
|
|
197
229
|
*rules*)
|
|
198
230
|
mkdir -p "$RNEX_ROOT/$provider_dir"
|
|
199
|
-
rm -rf "$RNEX_ROOT/$provider_dir
|
|
200
|
-
cat << EOF > "$RNEX_ROOT/$provider_dir
|
|
201
|
-
# User Skill:
|
|
231
|
+
rm -rf "${RNEX_ROOT:?}/${provider_dir:?}/${full_name:?}" 2>/dev/null || true
|
|
232
|
+
cat << EOF > "$RNEX_ROOT/$provider_dir/${full_name}.md"
|
|
233
|
+
# User Skill: ${full_name}
|
|
202
234
|
|
|
203
235
|
CRITICAL: Do not execute inline heuristics. Read and strictly follow the agentic skill protocol at:
|
|
204
236
|
\`${target_path}\`
|
|
205
237
|
EOF
|
|
206
238
|
;;
|
|
207
239
|
*)
|
|
208
|
-
mkdir -p "$RNEX_ROOT/$provider_dir
|
|
209
|
-
rm -f "$RNEX_ROOT/$provider_dir
|
|
210
|
-
cat << EOF > "$RNEX_ROOT/$provider_dir
|
|
240
|
+
mkdir -p "$RNEX_ROOT/$provider_dir/${full_name}"
|
|
241
|
+
rm -f "$RNEX_ROOT/$provider_dir/${full_name}.md" 2>/dev/null || true
|
|
242
|
+
cat << EOF > "$RNEX_ROOT/$provider_dir/${full_name}/SKILL.md"
|
|
211
243
|
---
|
|
212
|
-
name:
|
|
244
|
+
name: ${full_name}
|
|
213
245
|
description: "${_skill_desc}"
|
|
214
246
|
---
|
|
215
247
|
|
|
216
|
-
# User Skill:
|
|
248
|
+
# User Skill: ${full_name}
|
|
217
249
|
|
|
218
250
|
CRITICAL: Do not execute inline heuristics. Read and strictly follow the agentic skill protocol at:
|
|
219
251
|
\`${target_path}\`
|
|
@@ -223,12 +255,30 @@ EOF
|
|
|
223
255
|
done
|
|
224
256
|
}
|
|
225
257
|
|
|
258
|
+
# shellcheck disable=SC2329
|
|
259
|
+
rnex_register_user_skill() {
|
|
260
|
+
rnex_generate_user_skill "$@"
|
|
261
|
+
}
|
|
262
|
+
|
|
226
263
|
# shellcheck disable=SC2329
|
|
227
264
|
rnex_unregister_user_skill() {
|
|
228
265
|
skill_name="$1"
|
|
266
|
+
plugin_name="${2:-}"
|
|
267
|
+
if [ -n "$plugin_name" ]; then
|
|
268
|
+
full_name="rnex-${plugin_name}-${skill_name}"
|
|
269
|
+
else
|
|
270
|
+
case "$skill_name" in
|
|
271
|
+
rnex-*) full_name="$skill_name" ;;
|
|
272
|
+
*) full_name="rnex-${skill_name}" ;;
|
|
273
|
+
esac
|
|
274
|
+
fi
|
|
229
275
|
for provider_dir in $RNEX_PROVIDER_SKILL_DIRS; do
|
|
230
|
-
rm -f "$RNEX_ROOT/$provider_dir
|
|
231
|
-
rm -rf "$RNEX_ROOT/$provider_dir
|
|
276
|
+
rm -f "$RNEX_ROOT/$provider_dir/${full_name}.md"
|
|
277
|
+
rm -rf "${RNEX_ROOT:?}/${provider_dir:?}/${full_name:?}"
|
|
278
|
+
if [ -n "$plugin_name" ]; then
|
|
279
|
+
rm -f "$RNEX_ROOT/$provider_dir/rnex-${skill_name}.md"
|
|
280
|
+
rm -rf "${RNEX_ROOT:?}/${provider_dir:?}/rnex-${skill_name:?}"
|
|
281
|
+
fi
|
|
232
282
|
done
|
|
233
283
|
}
|
|
234
284
|
set -- "$@"
|
package/lib/yaml.sh
CHANGED
|
@@ -281,14 +281,14 @@ yaml_enable_plugin() {
|
|
|
281
281
|
awk -v name="$_name" '
|
|
282
282
|
/^plugins:[ ]*$/ || /^plugins:[ ]*#/ {
|
|
283
283
|
print
|
|
284
|
-
printf " %s:\n raw_dir: \"./docs\"\n wiki_dir: \".rnex/wiki\"\n lint_trigger: \"manual\"\n", name
|
|
284
|
+
printf " %s:\n raw_dir: \"./docs\"\n wiki_dir: \".rnex/wiki\"\n lint_trigger: \"manual\"\n ingest_member_readmes: true\n", name
|
|
285
285
|
added=1
|
|
286
286
|
next
|
|
287
287
|
}
|
|
288
288
|
{ print }
|
|
289
289
|
END {
|
|
290
290
|
if (!added) {
|
|
291
|
-
printf "plugins:\n %s:\n raw_dir: \"./docs\"\n wiki_dir: \".rnex/wiki\"\n lint_trigger: \"manual\"\n", name
|
|
291
|
+
printf "plugins:\n %s:\n raw_dir: \"./docs\"\n wiki_dir: \".rnex/wiki\"\n lint_trigger: \"manual\"\n ingest_member_readmes: true\n", name
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
294
|
' "$_target_file" > "$_tmp" && mv "$_tmp" "$_target_file"
|
package/package.json
CHANGED
|
@@ -23,3 +23,6 @@ When workspace configuration, routing blocks, plugin assets, or member repositor
|
|
|
23
23
|
|
|
24
24
|
## Git Operations
|
|
25
25
|
Commit and push changes directly within the respective member repository root (`repos/<name>/`).
|
|
26
|
+
|
|
27
|
+
## Wiki Operations
|
|
28
|
+
`raw_dir` (`./docs`) and `./repos/` are strictly read-only inputs during wiki operations. Never create, copy, or modify files inside `./docs`; write generated output exclusively inside `wiki_dir` (`.rnex/wiki/`).
|
|
@@ -107,6 +107,8 @@ plugins:
|
|
|
107
107
|
# wiki_dir: ".rnex/wiki" # Directory for curated atomic markdown pages (default: .rnex/wiki)
|
|
108
108
|
# lint_trigger: "manual" # Runs manually via 'rnex sync' or validation checklists (git-post-merge, git-post-commit, git-pre-commit, git-pre-push, manual)
|
|
109
109
|
# notify_on_changes: true # Show notification when changes are committed to ./docs or .rnex/wiki
|
|
110
|
+
# ingest_member_readmes: true # Automatically ingest member repository READMEs into atomic wiki pages (default: true)
|
|
111
|
+
|
|
110
112
|
|
|
111
113
|
# ------------------------------------------------------------------------------
|
|
112
114
|
# repos — Member repositories managed by Repo Nexus
|
|
@@ -26,9 +26,9 @@ Reference specification: [setup-karpathy-wiki.md](https://github.com/unoxen/ai-t
|
|
|
26
26
|
* **Rolling Context Cache (`<wiki_dir>/hot.md`, default: `.rnex/wiki/hot.md`):** High-density ~500-word orientation summary for rapid agent onboarding without full wiki scans (especially for codebase knowledge and second-brain wikis).
|
|
27
27
|
* **Audit Trail (`<wiki_dir>/_log.md`, default: `.rnex/wiki/_log.md`):** Append-only log recording every ingest and lint operation with timestamped details.
|
|
28
28
|
|
|
29
|
-
### 4. Standardized Agent
|
|
30
|
-
* **`
|
|
31
|
-
* **`
|
|
29
|
+
### 4. Standardized Agent Skills (`skills/`)
|
|
30
|
+
* **`wiki-ingest.md` (User Skill: `rnex-karpathy-llm-wiki-ingest`):** Decomposes raw source documents into 5–25 atomic wiki pages with frontmatter relations.
|
|
31
|
+
* **`wiki-lint.md` (User Skill: `rnex-karpathy-llm-wiki-lint`):** Integrity audit protocol to validate paths, recompute `mentioned_in`, eliminate orphans, merge duplicates, audit inconsistencies, identify gaps, suggest source candidates, and rebuild indexes.
|
|
32
32
|
|
|
33
33
|
---
|
|
34
34
|
|
|
@@ -45,9 +45,9 @@ Enabling the plugin (`rnex plugin enable karpathy-llm`) performs an exact, zero-
|
|
|
45
45
|
|
|
46
46
|
### Phase 2: Evolutionary Growth & Domain Specialization (Usage Phase)
|
|
47
47
|
Once initialized, the workspace structure organically evolves according to actual domain needs and source materials:
|
|
48
|
-
* **Source Ingestion (`rnex-wiki-ingest`)**: As raw source documents are deposited into `./docs` and ingested, atomic pages are generated. Users or agents can organize pages into categorical subfolders (e.g. `architecture/`, `decisions/`, `concepts/`, `projects/`) or keep them flat.
|
|
48
|
+
* **Source Ingestion (`rnex-karpathy-llm-wiki-ingest`)**: As raw source documents are deposited into `./docs` and ingested, atomic pages are generated. Users or agents can organize pages into categorical subfolders (e.g. `architecture/`, `decisions/`, `concepts/`, `projects/`) or keep them flat.
|
|
49
49
|
* **Customizable Guidelines**: Teams can tailor `rules/rnex-behavioral.md` and `instructions/rnex-wiki-architecture.md` for their specific team conventions.
|
|
50
|
-
* **Graph Maintenance (`rnex-wiki-lint`)**: The periodic lint workflow validates relation paths, updates `mentioned_in`, and rebuilds `index.md` and `hot.md` to match the evolved knowledge graph.
|
|
50
|
+
* **Graph Maintenance (`rnex-karpathy-llm-wiki-lint`)**: The periodic lint workflow validates relation paths, updates `mentioned_in`, and rebuilds `index.md` and `hot.md` to match the evolved knowledge graph.
|
|
51
51
|
|
|
52
52
|
---
|
|
53
53
|
|
|
@@ -71,9 +71,9 @@ my-workspace/
|
|
|
71
71
|
│ │ └── rnex-wiki-architecture.md# LLM Wiki architecture & relation schema
|
|
72
72
|
│ ├── rules/
|
|
73
73
|
│ │ └── rnex-behavioral.md # Cardinal principles & context engineering
|
|
74
|
-
│ ├──
|
|
75
|
-
│ │ ├──
|
|
76
|
-
│ │ └──
|
|
74
|
+
│ ├── skills/
|
|
75
|
+
│ │ ├── wiki-ingest.md # 8-step decomposition & ingestion workflow
|
|
76
|
+
│ │ └── wiki-lint.md # 10-step graph validation & maintenance workflow
|
|
77
77
|
│ └── templates/
|
|
78
78
|
│ ├── rnex-wiki-page.template.md# Atomic page template with typed relations
|
|
79
79
|
│ └── rnex-llm-wiki.sample.md# Sample wiki walkthrough
|
|
@@ -7,9 +7,6 @@ set -e
|
|
|
7
7
|
# Resolve root workspace
|
|
8
8
|
_root="$RNEX_ROOT"
|
|
9
9
|
|
|
10
|
-
# Target directory inside .rnex/ (the internal wiki's Raw intake state)
|
|
11
|
-
WIKI_RAW_DIR="$RNEX_ROOT/.rnex/wiki/raw"
|
|
12
|
-
mkdir -p "$WIKI_RAW_DIR"
|
|
13
10
|
|
|
14
11
|
# Helper to read plugin config
|
|
15
12
|
get_cfg() {
|
|
@@ -48,6 +45,7 @@ get_cfg() {
|
|
|
48
45
|
|
|
49
46
|
_wiki="$(get_cfg "wiki_dir" ".rnex/wiki")"
|
|
50
47
|
_raw="$(get_cfg "raw_dir" "./docs")"
|
|
48
|
+
_ingest_readmes="$(get_cfg "ingest_member_readmes" "true")"
|
|
51
49
|
|
|
52
50
|
# Clean relative paths
|
|
53
51
|
_wiki="$(printf '%s' "$_wiki" | sed -e 's#^/##' -e 's#/$##')"
|
|
@@ -59,6 +57,9 @@ _raw_path="$_root/$_raw"
|
|
|
59
57
|
mkdir -p "$_wiki_path" "$_raw_path"
|
|
60
58
|
[ -f "$_raw_path/.gitkeep" ] || touch "$_raw_path/.gitkeep"
|
|
61
59
|
|
|
60
|
+
# Ensure .rnex/wiki/ contains only agent-maintained wiki artifacts (no raw staging directory)
|
|
61
|
+
rm -rf "$_wiki_path/raw" 2>/dev/null || true
|
|
62
|
+
|
|
62
63
|
_pdir="${RNEX_PLUGIN_DIR:-$_root/.rnex/plugins/karpathy-llm}"
|
|
63
64
|
if [ ! -d "$_pdir/templates" ] && [ -d "$_root/toolkit/plugins/karpathy-llm/templates" ]; then
|
|
64
65
|
_tmpl_dir="$_root/toolkit/plugins/karpathy-llm/templates"
|
|
@@ -97,18 +98,31 @@ if [ -n "$_src_k_skills" ] && [ "$_src_k_skills" != "$RNEX_ROOT/.rnex/plugins/ka
|
|
|
97
98
|
cp -R "$_src_k_skills"/. "$RNEX_ROOT/.rnex/plugins/karpathy-llm/skills"/ 2>/dev/null || true
|
|
98
99
|
fi
|
|
99
100
|
|
|
100
|
-
# 2. Register plugin User Skills via contract helper
|
|
101
|
-
if ! command -v rnex_register_user_skill >/dev/null 2>&1; then
|
|
101
|
+
# 2. Register plugin User Skills via contract helper (with plugin name prefix)
|
|
102
|
+
if ! command -v rnex_register_user_skill >/dev/null 2>&1 && ! command -v rnex_generate_user_skill >/dev/null 2>&1; then
|
|
102
103
|
if [ -f "$RNEX_ROOT/.rnex/bin/rnex-env.sh" ]; then
|
|
103
104
|
. "$RNEX_ROOT/.rnex/bin/rnex-env.sh"
|
|
104
105
|
fi
|
|
105
106
|
fi
|
|
106
107
|
|
|
107
|
-
|
|
108
|
+
# Clean up stale unprefixed skills
|
|
109
|
+
if command -v rnex_unregister_user_skill >/dev/null 2>&1; then
|
|
110
|
+
rnex_unregister_user_skill "wiki-ingest"
|
|
111
|
+
rnex_unregister_user_skill "wiki-lint"
|
|
112
|
+
fi
|
|
113
|
+
|
|
114
|
+
_reg_fn=""
|
|
115
|
+
if command -v rnex_generate_user_skill >/dev/null 2>&1; then
|
|
116
|
+
_reg_fn="rnex_generate_user_skill"
|
|
117
|
+
elif command -v rnex_register_user_skill >/dev/null 2>&1; then
|
|
118
|
+
_reg_fn="rnex_register_user_skill"
|
|
119
|
+
fi
|
|
120
|
+
|
|
121
|
+
if [ -n "$_reg_fn" ]; then
|
|
108
122
|
for skill_file in "$RNEX_ROOT/.rnex/plugins/karpathy-llm/skills"/*.md; do
|
|
109
123
|
[ -f "$skill_file" ] || continue
|
|
110
124
|
skill_name=$(basename "$skill_file" .md)
|
|
111
|
-
|
|
125
|
+
"$_reg_fn" "$skill_name" ".rnex/plugins/karpathy-llm/skills/${skill_name}.md" "karpathy-llm"
|
|
112
126
|
done
|
|
113
127
|
fi
|
|
114
128
|
|
|
@@ -134,20 +148,6 @@ RAW_DIR_VAL=$(grep -h -E '^\s*raw_dir:' "$RNEX_ROOT/rnex.yaml" "$RNEX_ROOT/.loca
|
|
|
134
148
|
[ -z "$RAW_DIR_VAL" ] && RAW_DIR_VAL="$(get_cfg "raw_dir" "./docs")"
|
|
135
149
|
RAW_DIR="${RAW_DIR_VAL:-./docs}"
|
|
136
150
|
|
|
137
|
-
# Clear and sync custom local raw folder files to raw intake (skip if RAW_DIR is a documentation site)
|
|
138
|
-
if [ -d "$RNEX_ROOT/$RAW_DIR" ] && [ ! -d "$RNEX_ROOT/$RAW_DIR/.vitepress" ]; then
|
|
139
|
-
_raw_abs="$(cd "$RNEX_ROOT/$RAW_DIR" 2>/dev/null && pwd -P || true)"
|
|
140
|
-
_wiki_raw_abs="$(cd "$WIKI_RAW_DIR" 2>/dev/null && pwd -P || true)"
|
|
141
|
-
if [ -n "$_raw_abs" ] && [ "$_raw_abs" != "$_wiki_raw_abs" ]; then
|
|
142
|
-
find "$RNEX_ROOT/$RAW_DIR" -type f \( -name "*.md" -o -name "*.txt" -o -name "*.json" \) 2>/dev/null | while read -r filepath; do
|
|
143
|
-
filename=$(basename "$filepath")
|
|
144
|
-
# Prevent overwriting standard operational files
|
|
145
|
-
if [ "$filename" != "index.md" ] && [ "$filename" != "hot.md" ] && [ "$filename" != "_log.md" ]; then
|
|
146
|
-
cp "$filepath" "$WIKI_RAW_DIR/$filename"
|
|
147
|
-
fi
|
|
148
|
-
done
|
|
149
|
-
fi
|
|
150
|
-
fi
|
|
151
151
|
|
|
152
152
|
# Ingest member repository README into atomic wiki page, index, and hot cache
|
|
153
153
|
ingest_member_readme() {
|
|
@@ -316,18 +316,24 @@ LOG_EOF
|
|
|
316
316
|
fi
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
-
# 2. Automatically
|
|
319
|
+
# 2. Automatically ingest README.md from all enabled/cloned member repositories in-place
|
|
320
320
|
# Get list of enabled repositories using a secure cross-repo read or `rnex list`
|
|
321
|
+
case "$(printf '%s' "$_ingest_readmes" | tr '[:upper:]' '[:lower:]')" in
|
|
322
|
+
false|no|0|disabled|off) _skip_all_readmes=1 ;;
|
|
323
|
+
*) _skip_all_readmes=0 ;;
|
|
324
|
+
esac
|
|
325
|
+
|
|
321
326
|
REPOS_DIR_VAL=$(grep -h -E '^\s*repos_dir:' "$RNEX_ROOT/rnex.yaml" "$RNEX_ROOT/.local.rnex.yaml" 2>/dev/null | tail -n1 | awk -F: '{print $NF}' | awk '{print $1}' | tr -d '"'\''')
|
|
322
327
|
REPOS_DIR="${REPOS_DIR_VAL:-./repos}"
|
|
323
328
|
|
|
324
|
-
if [ -d "$RNEX_ROOT/$REPOS_DIR" ]; then
|
|
329
|
+
if [ "$_skip_all_readmes" -ne 1 ] && [ -d "$RNEX_ROOT/$REPOS_DIR" ]; then
|
|
325
330
|
for repo_path in "$RNEX_ROOT/$REPOS_DIR"/*; do
|
|
326
331
|
[ ! -d "$repo_path" ] && continue
|
|
327
332
|
repo_name=$(basename "$repo_path")
|
|
328
333
|
|
|
329
334
|
# Check if this repository is explicitly disabled in .local.rnex.yaml or rnex.yaml (block-scoped)
|
|
330
335
|
_is_disabled=""
|
|
336
|
+
_repo_ingest=""
|
|
331
337
|
for _cfg_file in "$RNEX_ROOT/.local.rnex.yaml" "$RNEX_ROOT/rnex.yaml"; do
|
|
332
338
|
[ -f "$_cfg_file" ] || continue
|
|
333
339
|
_en="$(awk -v repo="$repo_name" '
|
|
@@ -344,21 +350,40 @@ if [ -d "$RNEX_ROOT/$REPOS_DIR" ]; then
|
|
|
344
350
|
exit
|
|
345
351
|
}
|
|
346
352
|
' "$_cfg_file")"
|
|
347
|
-
if [ -n "$_en" ]; then
|
|
353
|
+
if [ -n "$_en" ] && [ -z "$_is_disabled" ]; then
|
|
348
354
|
case "$(printf '%s' "$_en" | tr '[:upper:]' '[:lower:]')" in
|
|
349
355
|
false|no|0|disabled|off) _is_disabled=1 ;;
|
|
350
356
|
*) _is_disabled=0 ;;
|
|
351
357
|
esac
|
|
352
|
-
|
|
358
|
+
fi
|
|
359
|
+
|
|
360
|
+
_ingest_val="$(awk -v repo="$repo_name" '
|
|
361
|
+
/^repos:[ ]*$/ || /^repos:[ ]*#/ { r=1; next }
|
|
362
|
+
r && /^[^ #]/ { r=0 }
|
|
363
|
+
r && match($0, "^ " repo ":[ ]*(#.*)?$") { in_target=1; next }
|
|
364
|
+
in_target && /^ [^ #]/ { in_target=0 }
|
|
365
|
+
in_target && match($0, "^ ingest_member_readmes:[ ]*") {
|
|
366
|
+
line = $0
|
|
367
|
+
sub("^ ingest_member_readmes:[ ]*", "", line)
|
|
368
|
+
sub(/[ ]*#.*$/, "", line)
|
|
369
|
+
gsub(/^["\x27]|["\x27]$/, "", line)
|
|
370
|
+
print line
|
|
371
|
+
exit
|
|
372
|
+
}
|
|
373
|
+
' "$_cfg_file")"
|
|
374
|
+
if [ -n "$_ingest_val" ] && [ -z "$_repo_ingest" ]; then
|
|
375
|
+
case "$(printf '%s' "$_ingest_val" | tr '[:upper:]' '[:lower:]')" in
|
|
376
|
+
false|no|0|disabled|off) _repo_ingest=0 ;;
|
|
377
|
+
*) _repo_ingest=1 ;;
|
|
378
|
+
esac
|
|
353
379
|
fi
|
|
354
380
|
done
|
|
355
381
|
[ "$_is_disabled" = "1" ] && continue
|
|
382
|
+
[ "$_repo_ingest" = "0" ] && continue
|
|
356
383
|
|
|
357
|
-
# Read and
|
|
384
|
+
# Read and ingest any README file directly in-place (no staging copy)
|
|
358
385
|
for readme_name in README.md readme.md README.markdown README; do
|
|
359
386
|
if [ -f "$repo_path/$readme_name" ]; then
|
|
360
|
-
# Namespace the copied file with its repo name to prevent conflicts
|
|
361
|
-
cp "$repo_path/$readme_name" "$WIKI_RAW_DIR/README_${repo_name}.md"
|
|
362
387
|
# Ingest member repository README into atomic wiki page, index, and hot cache
|
|
363
388
|
ingest_member_readme "$repo_name" "$repo_path" "$readme_name"
|
|
364
389
|
break
|
|
@@ -11,11 +11,19 @@ if ! command -v rnex_unregister_user_skill >/dev/null 2>&1; then
|
|
|
11
11
|
fi
|
|
12
12
|
|
|
13
13
|
if command -v rnex_unregister_user_skill >/dev/null 2>&1; then
|
|
14
|
+
rnex_unregister_user_skill "wiki-ingest" "karpathy-llm"
|
|
15
|
+
rnex_unregister_user_skill "wiki-lint" "karpathy-llm"
|
|
14
16
|
rnex_unregister_user_skill "wiki-ingest"
|
|
15
17
|
rnex_unregister_user_skill "wiki-lint"
|
|
16
18
|
else
|
|
17
19
|
for _pdir in $RNEX_PROVIDER_SKILL_DIRS; do
|
|
20
|
+
rm -f "$RNEX_ROOT/$_pdir/rnex-karpathy-llm-wiki-ingest.md"
|
|
21
|
+
rm -f "$RNEX_ROOT/$_pdir/rnex-karpathy-llm-wiki-lint.md"
|
|
22
|
+
rm -rf "$RNEX_ROOT/$_pdir/rnex-karpathy-llm-wiki-ingest"
|
|
23
|
+
rm -rf "$RNEX_ROOT/$_pdir/rnex-karpathy-llm-wiki-lint"
|
|
18
24
|
rm -f "$RNEX_ROOT/$_pdir/rnex-wiki-ingest.md"
|
|
19
25
|
rm -f "$RNEX_ROOT/$_pdir/rnex-wiki-lint.md"
|
|
26
|
+
rm -rf "$RNEX_ROOT/$_pdir/rnex-wiki-ingest"
|
|
27
|
+
rm -rf "$RNEX_ROOT/$_pdir/rnex-wiki-lint"
|
|
20
28
|
done
|
|
21
29
|
fi
|
|
@@ -13,12 +13,13 @@ The curated wiki directory (`wiki_dir`, default: `.rnex/wiki`) and raw intake di
|
|
|
13
13
|
When working in a workspace with an active Karpathy LLM Wiki:
|
|
14
14
|
|
|
15
15
|
- **Configuration Resolution**: Read `rnex.yaml` / `.local.rnex.yaml` to identify the active `raw_dir` (default: `./docs`) and `wiki_dir` (default: `.rnex/wiki`).
|
|
16
|
-
- **
|
|
16
|
+
- **Read-Only Input Directives**: `raw_dir` (`./docs`) and `./repos/` are strictly read-only inputs during wiki operations. Never create, copy, or modify files inside `./docs`; write generated output exclusively inside `wiki_dir` (`.rnex/wiki/`).
|
|
17
|
+
- **Intake**: All source material (articles, transcripts, docs, notes) goes to `<raw_dir>/` (default: `./docs`) unmodified, and member repository READMEs exist under `./repos/<name>/README.md`. Sources are read directly in-place without staging copies. Never write directly to `<wiki_dir>/` without ingesting.
|
|
17
18
|
- **Orientation (Hot-Cache First)**: Read `<wiki_dir>/hot.md` (default: `.rnex/wiki/hot.md`) for quick ~500-word orientation. Consult `<wiki_dir>/index.md` (default: `.rnex/wiki/index.md`) on demand only if the specific topic or contract is not covered in `hot.md`.
|
|
18
19
|
- **Bounded Hot Cache**: `<wiki_dir>/hot.md` enforces a strict ~500-word ceiling with 3 structured sections: 1. Architecture & Repo Map, 2. Current Focus & Recent Ingests, 3. Key Contracts. Ingest and lint workflows must condense older context to prevent bloat.
|
|
19
20
|
- **Annotated Indexing**: `<wiki_dir>/index.md` entries must maintain a single 1-line summary next to each atomic page link (e.g. `- [Auth Flow](auth.md): JWT validation and token rotation`) so agents pinpoint target pages in a single read without trial-and-error scanning.
|
|
20
|
-
- **Ingestion**: When files appear in `<raw_dir
|
|
21
|
-
- **Maintenance**:
|
|
21
|
+
- **Ingestion**: When files appear in `<raw_dir>/` or member repositories are added, execute the `wiki-ingest` agentic skill (`.rnex/plugins/karpathy-llm/skills/wiki-ingest.md`). One source document produces 5–25 atomic pages — never collapse a source into a single file.
|
|
22
|
+
- **Maintenance**: Execute the `wiki-lint` agentic skill (`.rnex/plugins/karpathy-llm/skills/wiki-lint.md`) to validate paths, update `mentioned_in`, and preserve graph integrity.
|
|
22
23
|
|
|
23
24
|
---
|
|
24
25
|
|
|
@@ -13,11 +13,12 @@ The curated wiki directory (`wiki_dir`, default: `.rnex/wiki`) and raw intake di
|
|
|
13
13
|
When working in a workspace with an active Karpathy LLM Wiki:
|
|
14
14
|
|
|
15
15
|
- **Configuration Resolution**: Read `rnex.yaml` / `.local.rnex.yaml` to identify the active `raw_dir` (default: `./docs`) and `wiki_dir` (default: `.rnex/wiki`).
|
|
16
|
-
- **
|
|
16
|
+
- **Read-Only Input Directives**: `raw_dir` (`./docs`) and `./repos/` are strictly read-only inputs during wiki operations. Never create, copy, or modify files inside `./docs`; write generated output exclusively inside `wiki_dir` (`.rnex/wiki/`).
|
|
17
|
+
- **Intake**: All source material (articles, transcripts, docs, notes) goes to `<raw_dir>/` (default: `./docs`) unmodified, and member repository READMEs exist under `./repos/<name>/README.md`. Sources are read directly in-place without staging copies. Never write directly to `<wiki_dir>/` without ingesting.
|
|
17
18
|
- **Orientation (Hot-Cache First)**: Read `<wiki_dir>/hot.md` (default: `.rnex/wiki/hot.md`) for quick ~500-word orientation. Consult `<wiki_dir>/index.md` (default: `.rnex/wiki/index.md`) on demand only if the specific topic or contract is not covered in `hot.md`.
|
|
18
19
|
- **Bounded Hot Cache**: `<wiki_dir>/hot.md` enforces a strict ~500-word ceiling with 3 structured sections: 1. Architecture & Repo Map, 2. Current Focus & Recent Ingests, 3. Key Contracts. Ingest and lint workflows must condense older context to prevent bloat.
|
|
19
20
|
- **Behavioral Principles**: Strictly adhere to the coding agent principles defined at `.rnex/plugins/karpathy-llm/rules/behavioral.md`.
|
|
20
|
-
- **Ingestion**: When files appear in `<raw_dir
|
|
21
|
+
- **Ingestion**: When files appear in `<raw_dir>/` or when member repos are added, execute the `wiki-ingest` agentic skill protocol (`.rnex/plugins/karpathy-llm/skills/wiki-ingest.md`). One source document produces 5–25 atomic pages — never collapse a source into a single file.
|
|
21
22
|
- **Maintenance**: Execute the `wiki-lint` agentic skill protocol (`.rnex/plugins/karpathy-llm/skills/wiki-lint.md`) to validate paths, update `mentioned_in`, and preserve graph integrity.
|
|
22
23
|
|
|
23
24
|
---
|
|
@@ -9,12 +9,14 @@ config_defaults:
|
|
|
9
9
|
wiki_dir: ".rnex/wiki"
|
|
10
10
|
lint_trigger: "manual" # Default changed to manual to avoid unsolicited background trigger tasks
|
|
11
11
|
notify_on_changes: true
|
|
12
|
+
ingest_member_readmes: true
|
|
12
13
|
|
|
13
14
|
config:
|
|
14
15
|
raw_dir: "./docs"
|
|
15
16
|
wiki_dir: ".rnex/wiki"
|
|
16
17
|
lint_trigger: "manual"
|
|
17
18
|
notify_on_changes: true
|
|
19
|
+
ingest_member_readmes: true
|
|
18
20
|
|
|
19
21
|
rules:
|
|
20
22
|
- rules/behavioral.md: .rnex/plugins/karpathy-llm/rules/behavioral.md
|
|
@@ -45,3 +45,7 @@ In a Repo Nexus workspace, independent repositories are organized into `./repos/
|
|
|
45
45
|
3. **Context Economy:**
|
|
46
46
|
- Do not redundantly read entire files or directory trees when targeted symbol lookups or line ranges suffice.
|
|
47
47
|
- Rely on active workspace context, indexing, and compiled documentation rather than re-scanning raw files repeatedly.
|
|
48
|
+
|
|
49
|
+
4. **Read-Only Intake & Source Directories:**
|
|
50
|
+
- `raw_dir` (`./docs`) and `./repos/` are strictly read-only inputs during wiki operations. Never create, copy, or modify files inside `./docs`; write generated output exclusively inside `wiki_dir` (`.rnex/wiki/`).
|
|
51
|
+
|
|
@@ -10,13 +10,17 @@ Use this skill when ingesting new reference materials, architecture documentatio
|
|
|
10
10
|
|
|
11
11
|
## Ingestion Protocol
|
|
12
12
|
|
|
13
|
-
1. **Resolve Configuration &
|
|
13
|
+
1. **Resolve Configuration & Direct Source Paths:**
|
|
14
14
|
- Read `rnex.yaml` (and `.local.rnex.yaml` if present) to resolve the active `raw_dir` (default: `./docs`) and `wiki_dir` (default: `.rnex/wiki`) under `plugins.karpathy-llm`.
|
|
15
|
-
-
|
|
16
|
-
|
|
15
|
+
- Direct input scope explicitly reads:
|
|
16
|
+
1. All files in `raw_dir` (`./docs`) (read-only).
|
|
17
|
+
2. `./repos/<name>/README.md` for every enabled member repository in `rnex.yaml` / `.local.rnex.yaml` (read-only).
|
|
18
|
+
- `raw_dir` (`./docs`) and `./repos/` are strictly read-only inputs during wiki operations. Never create, copy, or modify files inside `./docs`; write generated output exclusively inside `wiki_dir` (`.rnex/wiki/`).
|
|
19
|
+
- Scan direct source paths for source materials not yet recorded in `<wiki_dir>/_log.md`.
|
|
20
|
+
- All source material is read directly in-place without staging copies. Never write directly to `<wiki_dir>/` without ingesting.
|
|
17
21
|
|
|
18
22
|
2. **Read & Clarify:**
|
|
19
|
-
- Read each source document thoroughly.
|
|
23
|
+
- Read each source document thoroughly in-place.
|
|
20
24
|
- If scope, domain boundaries, or terminology are ambiguous, ask one round of clarifying questions before decomposing.
|
|
21
25
|
|
|
22
26
|
3. **Atomic Decomposition:**
|
|
@@ -31,7 +35,7 @@ Use this skill when ingesting new reference materials, architecture documentatio
|
|
|
31
35
|
title: ""
|
|
32
36
|
tags: []
|
|
33
37
|
last_updated: YYYY-MM-DD
|
|
34
|
-
sources: [] # <raw_dir>/
|
|
38
|
+
sources: [] # direct source files (<raw_dir>/... or repos/<name>/README.md) this page was derived from
|
|
35
39
|
related: [] # thematically related wiki pages
|
|
36
40
|
extends: [] # pages this one builds upon or specialises
|
|
37
41
|
contradicts: [] # pages with conflicting information
|
|
@@ -56,4 +60,4 @@ Use this skill when ingesting new reference materials, architecture documentatio
|
|
|
56
60
|
- Maintain the strict ~500-word ceiling. Condense or prune older focus items.
|
|
57
61
|
|
|
58
62
|
8. **Append Operation Log:**
|
|
59
|
-
- Append a timestamped entry to `<wiki_dir>/_log.md` detailing date,
|
|
63
|
+
- Append a timestamped entry to `<wiki_dir>/_log.md` detailing date, direct source path processed, generated atomic pages, and follow-ups.
|
|
@@ -12,7 +12,11 @@ Use this skill to perform health checks and maintenance on the curated wiki know
|
|
|
12
12
|
|
|
13
13
|
1. **Resolve Configuration & Verify Paths:**
|
|
14
14
|
- Read `rnex.yaml` (and `.local.rnex.yaml` if present) to resolve `wiki_dir` (default: `.rnex/wiki`) and `raw_dir` (default: `./docs`) under `plugins.karpathy-llm`.
|
|
15
|
-
-
|
|
15
|
+
- Direct input scope explicitly reads:
|
|
16
|
+
1. All files in `raw_dir` (`./docs`) (read-only).
|
|
17
|
+
2. `./repos/<name>/README.md` for every enabled member repository in `rnex.yaml` / `.local.rnex.yaml` (read-only).
|
|
18
|
+
- `raw_dir` (`./docs`) and `./repos/` are strictly read-only inputs during wiki operations. Never create, copy, or modify files inside `./docs`; write generated output exclusively inside `wiki_dir` (`.rnex/wiki/`).
|
|
19
|
+
- For every page under `<wiki_dir>/`, verify that all paths in frontmatter relation fields (`related`, `extends`, `contradicts`, `sources`) resolve to existing files under `<wiki_dir>/`, `<raw_dir>/`, or `./repos/<name>/README.md`.
|
|
16
20
|
- Fix or flag broken paths.
|
|
17
21
|
|
|
18
22
|
2. **Recompute `mentioned_in` Relations:**
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
## 2. Current Focus & Recent Ingests
|
|
10
10
|
* **Active Tasks:** Wiki initialization complete.
|
|
11
|
-
* **Recent Ingests:** None yet. Deposit source documents into `/{raw_dir}/` and run `rnex-wiki-ingest`.
|
|
11
|
+
* **Recent Ingests:** None yet. Deposit source documents into `/{raw_dir}/` and run `rnex-karpathy-llm-wiki-ingest`.
|
|
12
12
|
|
|
13
13
|
## 3. Key Contracts & Boundaries
|
|
14
14
|
* **Atomic Pages:** Concepts live in discrete files with frontmatter relations (`sources`, `related`, `extends`, `mentioned_in`).
|