From 714dc76eb75435a7d4760275bf9b937c9cfbaccd Mon Sep 17 00:00:00 2001 From: kiskaadee Date: Fri, 2 Oct 2026 17:58:53 -0500 Subject: [PATCH] agent(skills): add system-level skill interaction matrix and collection index Create 05-agents/skills/README.md as the canonical navigation hub for the global skill collection, containing: - Layered system architecture diagram (Skill Builder governs; 4 domain skills provide behavior; Documentation Router sits at the output boundary) - Pairwise skill interaction matrix (5x5 handoff table) - Three canonical transition workflows with Mermaid diagrams: Investigation -> Git Commit -> Documentation Router Tutor -> Documentation Router -> Knowledge Article Skill Builder dogfood loop - Governing maintenance criterion: ownership over mentions - Package index table linking all skill README/SKILL pairs Update 05-agents/README.md catalog: - Add pointer to skills/README.md above the catalog table - Update capability summaries to reflect refined behavior (proportional checkpoints, conditional transfer verification, explicit authority precedence) --- 05-agents/README.md | 11 +-- 05-agents/skills/README.md | 136 +++++++++++++++++++++++++++++++++++++ 2 files changed, 143 insertions(+), 4 deletions(-) create mode 100644 05-agents/skills/README.md diff --git a/05-agents/README.md b/05-agents/README.md index 8987eaf..cab6a47 100644 --- a/05-agents/README.md +++ b/05-agents/README.md @@ -43,10 +43,13 @@ Skills in `05-agents/skills/` are organized as encapsulated capability packages ## Catalog of Operational Skills +For the system-level architecture diagram, skill interaction matrix, and canonical transition workflows, see [skills/README.md](skills/README.md). + | Skill | Target Workspace | Primary Capability | Status | | :--- | :--- | :--- | :--- | -| [Engineering Investigation](skills/engineering-investigation.md) | Global (`~/.gemini/config/skills/`) | Scientific investigation lifecycle, 6-part interactive checkpoints, and runtime verification | `active` | +| [Engineering Investigation](skills/engineering-investigation/README.md) | Global (`~/.gemini/config/skills/`) | Scientific investigation lifecycle, proportional checkpoints, and runtime verification | `active` | | [Documentation Router](skills/documentation-router/README.md) | Global (`~/.gemini/config/skills/`) | Second-order knowledge evaluation, epistemic classification, anti-overlap invariants, and authoring modules | `active` | -| [Engineering Tutor](skills/engineering-tutor.md) | Global (`~/.gemini/config/skills/`) | Practice mode, Socratic graduated assistance, learner-as-primary-agent, and transfer verification | `active` | -| [Git Commit & History Hygiene](skills/git-commit.md) | Global (`~/.gemini/config/skills/`) | GitKeeper history construction, atomic commit slicing, 3-level CC messages, and readiness gates | `active` | -| [Skill Builder](skills/skill-builder.md) | Global (`~/.gemini/config/skills/`) | Interactive skill design, proportional sizing, boundary review, and empirical refinement | `active` | +| [Engineering Tutor](skills/engineering-tutor/README.md) | Global (`~/.gemini/config/skills/`) | Practice mode, Socratic graduated assistance, learner-as-primary-agent, and context-sensitive transfer verification | `active` | +| [Git Commit & History Hygiene](skills/git-commit/README.md) | Global (`~/.gemini/config/skills/`) | GitKeeper history construction, atomic commit slicing, 3-level CC messages, explicit authority precedence, and readiness gates | `active` | +| [Skill Builder](skills/skill-builder/README.md) | Global (`~/.gemini/config/skills/`) | Interactive skill design, proportional sizing, boundary review, and empirical refinement | `active` | + diff --git a/05-agents/skills/README.md b/05-agents/skills/README.md new file mode 100644 index 0000000..8f7e99c --- /dev/null +++ b/05-agents/skills/README.md @@ -0,0 +1,136 @@ +--- +type: agent +status: active +name: skill-collection-index +kind: skill +project: brain +tags: + - skills + - agent-engineering + - skill-interaction + - system-architecture +--- + +# Global Skill Collection + +> **This index describes the skill collection as a system rather than a list of individual capabilities.** + +--- + +## System Architecture + +The global skills form a layered behavioral architecture. `skill-builder` governs the collection's design quality. Four domain skills provide reusable behaviors that project agents invoke. `documentation-router` sits at the output boundary, evaluating whether anything produced by the other skills is worth preserving. + +```mermaid +flowchart TD + SB["Skill Builder
meta-level design"] + subgraph Domain["Domain Skills"] + INV["Engineering Investigation
'find out'"] + TUT["Engineering Tutor
'learn it'"] + GIT["Git Commit
'package it'"] + end + DR["Documentation Router
'preserve it?'"] + Brain["Brain / Records"] + + SB --> Domain + Domain --> DR + DR --> Brain +``` + +Project agents sit above this layer, providing context while the global skills provide reusable behavior: + +```mermaid +flowchart LR + Agents["Project Agents
(Homelab, MagNetFlix, NekoWeb, NixOS, Brain)"] + Skills["Global Skills"] + Agents --> Skills +``` + +--- + +## Skill Interaction Matrix + +Each cell describes the pairwise relationship between the **row** skill and the **column** skill. + +| From \ To | Investigation | Tutor | Git Commit | Docs Router | Skill Builder | +| :--- | :--- | :--- | :--- | :--- | :--- | +| **Investigation** | — | yields (learner drives) | delegates commit packaging | hands off if RCA warrants it | — | +| **Tutor** | yields (agent takes over for production incidents) | — | learner-controlled; proposes message only | optional handoff for knowledge articles | — | +| **Git Commit** | packages remediation result | learner-controlled | — | delegates if commit warrants documentation | — | +| **Docs Router** | consumes investigation outcome | consumes practice milestones | evaluates commit significance | — | — | +| **Skill Builder** | — | — | delegates all commits | delegates all vault documentation | applies to itself (deletion test) | + +--- + +## Canonical Transition Workflows + +These are the three most common multi-skill sequences. They describe normal flows, not mandatory pipelines — each step is independently optional. + +### 1. Investigation to History + +```mermaid +flowchart LR + A["engineering-investigation
RCA established, recovery verified"] --> B["git-commit
Atomic commit slice constructed"] --> C["documentation-router
Evaluate if Debug Record or ADR warranted"] +``` + +**Trigger**: A non-trivial bug, infrastructure incident, or regression is diagnosed and fixed. + +**Handoff gates**: +- `engineering-investigation` terminates only after verified runtime recovery. +- `git-commit` packages the fix; does not re-examine whether it was the right fix. +- `documentation-router` evaluates whether non-obvious RCA, architectural insights, or operational heuristics justify a durable artifact. Most fixes do not. + +--- + +### 2. Learning to Knowledge + +```mermaid +flowchart LR + A["engineering-tutor
Transfer challenge demonstrated"] --> B["documentation-router
Evaluate if Knowledge Article warranted"] --> C["04-learning/knowledge/
Durable concept article authored"] +``` + +**Trigger**: A tutoring session reaches a demonstrated-mastery milestone (transfer challenge solved, novel mechanism understood). + +**Handoff gates**: +- The practice session record (`type: practice`) is an optional offer, not a prerequisite. +- `documentation-router` applies the Gatekeeper: does this concept generalize across system boundaries? If not, no artifact. + +--- + +### 3. Skill Design Loop + +```mermaid +flowchart LR + A["skill-builder
Skill Design Specification approved"] --> B["Dogfooding
Run on real task"] --> C{"Observed
failure?"} + C -->|Yes| D["skill-builder
Minimal Refinement Matrix
smallest mechanism changed"] + C -->|No| E["Done
Regression check passes"] + D --> B +``` + +**Trigger**: A new or modified skill is scaffolded and needs empirical validation. + +**Invariant**: The Mandatory Review Gate in Stage 4 must fire before any file is created. No files before human approval. + +--- + +## Governing Maintenance Criterion + +> **Ownership over mentions.** + +When adding any new rule, ask: *"Where does this rule belong?"* — not *"Where should I mention this rule?"* + +Each rule has one authoritative owner. Other documents may link to it. They must not redefine it. + +The primary threat to this collection's health is **duplicate authority**, not missing instructions. + +--- + +## Package Index + +| Skill | Human API | Runtime Engine | References | +| :--- | :--- | :--- | :--- | +| [Engineering Investigation](engineering-investigation/README.md) | [README](engineering-investigation/README.md) | [SKILL.md](engineering-investigation/SKILL.md) | — | +| [Engineering Tutor](engineering-tutor/README.md) | [README](engineering-tutor/README.md) | [SKILL.md](engineering-tutor/SKILL.md) | — | +| [Git Commit](git-commit/README.md) | [README](git-commit/README.md) | [SKILL.md](git-commit/SKILL.md) | — | +| [Documentation Router](documentation-router/README.md) | [README](documentation-router/README.md) | [SKILL.md](documentation-router/SKILL.md) | [5 authoring specs](documentation-router/references/) | +| [Skill Builder](skill-builder/README.md) | [README](skill-builder/README.md) | [SKILL.md](skill-builder/SKILL.md) | [Evaluation checklist](skill-builder/references/skill-evaluation-checklist.md) |