Compare commits
2
Commits
6281a26665
...
5826a10fa2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5826a10fa2 | ||
|
|
f72138f718 |
No files matched your search
@@ -0,0 +1 @@
|
||||
.obsidian
|
||||
@@ -6,5 +6,6 @@ Source of truth for my agent skills. Installed into agent tools by `install.sh`.
|
||||
- Direct commits to `main` are allowed (solo repo).
|
||||
- Edit skills **here**, never in an installed location (`~/.gemini/config/skills/…`).
|
||||
- Every `skills/*/SKILL.md` follows `skills/build-skill/references/skeleton.md` and stays ≤ 80 lines.
|
||||
- Portable skills must not encode a user's filesystem topology (no home paths, no hardcoded vault directories).
|
||||
- No absolute home paths (`/home/<user>`) and no secrets; this repo is public.
|
||||
- Commit types: Conventional Commits; scope = skill name (e.g. `refactor(git-commit): …`).
|
||||
@@ -1,14 +1,40 @@
|
||||
# skills
|
||||
# Skills
|
||||
|
||||
**Modular, harness-agnostic skills for disciplined pair programming with coding agents.**
|
||||
|
||||
A collection of lightweight, single-purpose skills focused on low context overhead (≤50 lines), zero ceremony, and human-approved state transitions. Designed to enforce clean git history, scientific diagnosis, Socratic practice, and durable documentation across any compliant agent platform.
|
||||
A collection of lightweight, single-purpose skills focused on low context overhead (≤80 lines), minimal ceremony, and user-approved state transitions.
|
||||
|
||||
Designed to support critical systems thinking, active learning, disciplined engineering, and durable documentation across any compliant agent platform.
|
||||
|
||||
This collection was not designed for a Senior Software Engineer, but for learners, with the primary goal of maximizing long-term learning gains; the idea is to learn to think like a software engineer and architect, rather than simply producing code.
|
||||
|
||||
---
|
||||
|
||||
## Why Build Instead of Borrow?
|
||||
|
||||
There are many great Skills bundles out there, written by and for experienced developers to orchestrate automated "software factories". Many existing agent workflows optimize for experienced developers who want to delegate as much implementation work as possible.
|
||||
|
||||
That is a reasonable goal, but it is not mine. As a learner, I need the workflow to preserve opportunities to reason, make decisions, debug, and build mental models.
|
||||
|
||||
Copying skills crafted for someone else's workflow imports their cognitive shortcuts, and assumptions. I believe that AI is useful for much more than only producing code.
|
||||
|
||||
These skills exist to enforce four core principles:
|
||||
|
||||
1. **Defeating the Comprehension Illusion**: Having an AI generate code is not the same as understanding how a system behaves. When code velocity outpaces comprehension, you end up with systems you cannot debug when production breaks. Skills like `practice` make the learner write the code and drive analysis, ensuring mental models develop alongside the codebase.
|
||||
|
||||
2. **Intentional Epistemic Friction ("Your call")**: Great engineering requires deliberate checkpoints. Instead of letting agents make unilateral architectural choices, these skills pause at critical state transitions—requiring proven root causes before patching (`diagnose`), approving reviewable atomic slices (`git-commit`), or identifying learning opportunities that should be preserved as durable knowledge (`document`).
|
||||
|
||||
3. **Operational Ownership**: An agent should investigate, measure, and propose concrete options, but the human engineer must own the trade-offs, failure domains, and repository history. You cannot own what you did not decide.
|
||||
|
||||
4. **Radical Simplicity over Prompt Bloat**: Many third-party skills are brittle, multi-page prompts that consume context and hallucinate complex state machines. These skills adhere to strict line caps (≤80 lines for portable skills), the deletion test, and minimal ceremony.
|
||||
|
||||
---
|
||||
|
||||
## The System Architecture
|
||||
|
||||
The skills form an orchestrated pair-programming workflow. `build-skill` governs meta-level skill design. Three core operational skills (`practice`, `diagnose`, `git-commit`) structure day-to-day engineering. `document` evaluates whether insights produced during work warrant durable preservation.
|
||||
The system is under active testing and continuous improvement. Currently, the skills form an orchestrated pair-programming workflow. `build-skill` governs meta-level skill design.
|
||||
|
||||
Three core operational skills (`practice`, `diagnose`, `git-commit`) structure day-to-day engineering. `document` evaluates whether insights produced during work warrant durable preservation.
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
@@ -42,12 +68,12 @@ Every skill features an explicit **"Your call"** checkpoint where the agent paus
|
||||
| **[`document`](skills/document/SKILL.md)** | `/document` | Second-order knowledge classifier (Discussion, ADR, Plan, Debug Record, Knowledge). User confirms type and provides core insight. | 49 lines |
|
||||
| **[`build-skill`](skills/build-skill/SKILL.md)** | `/build-skill [topic]` | Interactive design, sizing, authoring, and empirical dogfooding of agent skills. Enforces design review gate before file creation. | 48 lines |
|
||||
|
||||
### Brain Extensions (`brain/`)
|
||||
### Vault Extensions (`extensions/`)
|
||||
|
||||
| Skill | Status | Purpose |
|
||||
| :--- | :--- | :--- |
|
||||
| **[`inbox-curation`](brain/inbox-curation/SKILL.md)** | Active | Triages, classifies, and commits incoming notes from Brain's `00-inbox/` into lifecycle directories. |
|
||||
| **[`commit-logger`](brain/commit-logger/SKILL.md)** | Standby | Immutable Git commit event capture script into Brain ledger (planned consumer of future `journal-builder`). |
|
||||
| **[`draft-curation`](extensions/draft-curation/SKILL.md)** | Active | Triages, classifies, and commits incoming notes from an inbox/staging directory into structured lifecycle directories. |
|
||||
| **[`commit-logger`](extensions/commit-logger/SKILL.md)** | Standby | Immutable Git commit event capture script into a machine-readable CSV ledger (planned consumer of future `journal-builder`). |
|
||||
|
||||
---
|
||||
|
||||
@@ -105,4 +131,4 @@ When run:
|
||||
|
||||
## License
|
||||
|
||||
Released into the public domain under the [Unlicense](LICENSE).
|
||||
Released into the public domain under the [Unlicense](UNLICENSE.md).
|
||||
@@ -0,0 +1,24 @@
|
||||
This is free and unencumbered software released into the public domain.
|
||||
|
||||
Anyone is free to copy, modify, publish, use, compile, sell, or
|
||||
distribute this software, either in source code form or as a compiled
|
||||
binary, for any purpose, commercial or non-commercial, and by any
|
||||
means.
|
||||
|
||||
In jurisdictions that recognize copyright laws, the author or authors
|
||||
of this software dedicate any and all copyright interest in the
|
||||
software to the public domain. We make this dedication for the benefit
|
||||
of the public at large and to the detriment of our heirs and
|
||||
successors. We intend this dedication to be an overt act of
|
||||
relinquishment in perpetuity of all present and future rights to this
|
||||
software under copyright law.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
For more information, please refer to <https://unlicense.org>
|
||||
@@ -1,14 +1,12 @@
|
||||
---
|
||||
name: commit-logger
|
||||
description: >-
|
||||
Record verified Git commit events as lossless, immutable records in Brain's machine-readable
|
||||
commit ledger (00-inbox/commit-log.csv).
|
||||
description: Record verified Git commit events as lossless, immutable records in a machine-readable commit ledger (00-inbox/commit-log.csv).
|
||||
disable-model-invocation: false
|
||||
---
|
||||
|
||||
# Commit Logger
|
||||
|
||||
This skill captures verified Git commit events and logs them into Brain's machine-readable event ledger (`00-inbox/commit-log.csv`).
|
||||
Vault extension: captures Git commit events into a configured knowledge-vault ledger (`00-inbox/commit-log.csv`).
|
||||
|
||||
Its sole responsibility is **immutable fact capture**. It does not interpret, summarize, or evaluate changes.
|
||||
|
||||
@@ -28,9 +26,9 @@ Its sole responsibility is **immutable fact capture**. It does not interpret, su
|
||||
Captures the complete commit identity and essential Git attributes:
|
||||
`committed_at,repository,project,branch,commit_sha,parent_sha,subject`
|
||||
4. **Authoritative Project Resolution**:
|
||||
Resolves the repository directory against Brain's `06-projects/` topology. If no authoritative project mapping exists, preserves the repository name and leaves `project` empty (`""`). Never guesses project associations.
|
||||
Resolves the repository directory against the vault's project topology (e.g. `06-projects/`). If no authoritative project mapping exists, preserves the repository name and leaves `project` empty (`""`). Never guesses project associations.
|
||||
5. **Anti-Recursion Invariant**:
|
||||
Commits inside the `Brain` repository itself (`~/Brain`) are strictly non-loggable by default to prevent recursion. Any automated or hook invocation targeting Brain exits immediately as a no-op. When Brain commits represent meaningful engineering progress, passing `--force` (or `--allow-brain`) explicitly captures the commit under project `brain`.
|
||||
Commits inside the vault repository itself (e.g. `~/Brain`) are strictly non-loggable by default to prevent recursion. Any automated or hook invocation targeting the vault exits immediately as a no-op. When vault commits represent meaningful engineering progress, passing `--force` (or `--allow-brain`) explicitly captures the commit under project `brain`.
|
||||
6. **Idempotency Barrier**:
|
||||
The full 40-character commit SHA acts as a unique idempotency key. If the SHA already exists in `00-inbox/commit-log.csv`, the event is skipped silently.
|
||||
|
||||
@@ -50,7 +48,7 @@ Its sole responsibility is **immutable fact capture**. It does not interpret, su
|
||||
| :--- | :--- | :--- | :--- |
|
||||
| `committed_at` | Git committer timestamp | ISO-8601 with timezone (`%cI`) | `2026-10-02T16:42:13-05:00` |
|
||||
| `repository` | Top-level working directory | Directory basename | `bdinvite` |
|
||||
| `project` | Brain `06-projects/` mapping | Directory slug if known, else `""` | `bdinvite` |
|
||||
| `project` | Vault `06-projects/` mapping | Directory slug if known, else `""` | `bdinvite` |
|
||||
| `branch` | Current Git branch | Branch ref name (or `detached`) | `feat/gitops` |
|
||||
| `commit_sha` | Git commit identity | Full 40-character SHA | `a81f3c2e9b7d84f...` |
|
||||
| `parent_sha` | First parent commit SHA | Full 40-character SHA, or `""` if root | `91bc7de41f2a...` |
|
||||
@@ -66,7 +64,7 @@ When invoked following a verified commit (or during catch-up):
|
||||
flowchart TD
|
||||
Start["Receive Commit Reference<br/>(SHA or HEAD)"] --> RepoCheck{"Inside Git Repo?"}
|
||||
RepoCheck -->|No| Abort["Exit with Error"]
|
||||
RepoCheck -->|Yes| Recursion{"Repo == Brain?"}
|
||||
RepoCheck -->|Yes| Recursion{"Repo == Vault?"}
|
||||
Recursion -->|Yes| NoOp["Silent No-Op Exit"]
|
||||
Recursion -->|No| Extract["Extract Git Metadata & Resolve Project"]
|
||||
Extract --> Dedup{"SHA already in<br/>commit-log.csv?"}
|
||||
@@ -80,7 +78,7 @@ Inspect the target repository:
|
||||
```bash
|
||||
git rev-parse --show-toplevel
|
||||
```
|
||||
If the repository root is `~/Brain` or the directory name is `Brain`, terminate immediately.
|
||||
If the repository root matches the configured vault or the directory name is `Brain`, terminate immediately.
|
||||
|
||||
### Step 2: Capture via Deterministic Script
|
||||
Execute the bundled deterministic capture script:
|
||||
+9
-9
@@ -1,11 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
# log-commit.sh - Deterministic Git commit event capture for Brain
|
||||
# log-commit.sh - Deterministic Git commit event capture for structured knowledge vaults
|
||||
# Appends verified commit metadata into 00-inbox/commit-log.csv
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
BRAIN_ROOT="${BRAIN_ROOT:-$HOME/Brain}"
|
||||
LEDGER_FILE="${BRAIN_ROOT}/00-inbox/commit-log.csv"
|
||||
VAULT_ROOT="${VAULT_ROOT:-${BRAIN_ROOT:-$HOME/Brain}}"
|
||||
LEDGER_FILE="${VAULT_ROOT}/00-inbox/commit-log.csv"
|
||||
|
||||
TARGET_REF="HEAD"
|
||||
FORCE_ALLOW_BRAIN=false
|
||||
@@ -27,8 +27,8 @@ fi
|
||||
REPO_ROOT="$(git rev-parse --show-toplevel)"
|
||||
REPO_NAME="$(basename "${REPO_ROOT}")"
|
||||
|
||||
# 2. Anti-Recursion Invariant: Brain is non-loggable unless explicitly forced
|
||||
if [[ "${REPO_ROOT}" == "${BRAIN_ROOT}" ]] || [[ "${REPO_NAME}" == "Brain" ]]; then
|
||||
# 2. Anti-Recursion Invariant: Vault repo is non-loggable unless explicitly forced
|
||||
if [[ "${REPO_ROOT}" == "${VAULT_ROOT}" ]] || [[ "${REPO_NAME}" == "Brain" ]] || [[ "${REPO_NAME}" == "$(basename "${VAULT_ROOT}")" ]]; then
|
||||
if [[ "${FORCE_ALLOW_BRAIN}" != "true" ]]; then
|
||||
# Silent exit as a no-op to prevent recursion
|
||||
exit 0
|
||||
@@ -44,13 +44,13 @@ BRANCH="$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "detached")"
|
||||
|
||||
# 4. Authoritative Project Mapping
|
||||
PROJECT=""
|
||||
if [[ "${REPO_ROOT}" == "${BRAIN_ROOT}" ]] || [[ "${REPO_NAME}" == "Brain" ]]; then
|
||||
if [[ "${REPO_ROOT}" == "${VAULT_ROOT}" ]] || [[ "${REPO_NAME}" == "Brain" ]] || [[ "${REPO_NAME}" == "$(basename "${VAULT_ROOT}")" ]]; then
|
||||
PROJECT="brain"
|
||||
elif [[ -d "${BRAIN_ROOT}/06-projects/${REPO_NAME}" ]]; then
|
||||
elif [[ -d "${VAULT_ROOT}/06-projects/${REPO_NAME}" ]]; then
|
||||
PROJECT="${REPO_NAME}"
|
||||
elif [[ -d "${BRAIN_ROOT}/06-projects" ]]; then
|
||||
elif [[ -d "${VAULT_ROOT}/06-projects" ]]; then
|
||||
# Look for matching project directory containing repository reference in README.md
|
||||
for proj_dir in "${BRAIN_ROOT}/06-projects"/*; do
|
||||
for proj_dir in "${VAULT_ROOT}/06-projects"/*; do
|
||||
if [[ -f "${proj_dir}/README.md" ]]; then
|
||||
if grep -qi "${REPO_NAME}" "${proj_dir}/README.md"; then
|
||||
PROJECT="$(basename "${proj_dir}")"
|
||||
@@ -1,14 +1,16 @@
|
||||
---
|
||||
name: inbox-curation
|
||||
name: draft-curation
|
||||
description: >-
|
||||
Triage, classify, format, validate, and move raw notes and drafts from 00-inbox into
|
||||
canonical Brain knowledge graph lifecycle directories (01-plans, 02-discussions, 03-records,
|
||||
04-learning).
|
||||
Triage, classify, format, validate, and move raw notes and drafts from an inbox or staging
|
||||
directory into canonical knowledge lifecycle directories (plans, discussions, records,
|
||||
learning).
|
||||
---
|
||||
|
||||
# Inbox Curation & Graph Ingestion
|
||||
# Draft Curation & Knowledge Ingestion
|
||||
|
||||
This skill governs the systematic ingestion and curation of unprocessed drafts from `00-inbox/` into the canonical lifecycle directories of the Brain knowledge graph.
|
||||
This extension skill governs the systematic ingestion and curation of unprocessed drafts from an inbox/staging directory (e.g. `00-inbox/`) into canonical lifecycle directories.
|
||||
|
||||
> **Vault Contract**: This extension assumes a knowledge vault organized around epistemic lifecycle directories (`01-plans/`, `02-discussions/`, `03-records/`, `04-learning/`) with schema validation and semantic commit conventions.
|
||||
|
||||
---
|
||||
|
||||
@@ -20,10 +22,10 @@ This skill governs the systematic ingestion and curation of unprocessed drafts f
|
||||
- Incidents, regressions, root-cause analyses $\to$ `03-records/debug/` (`type: debug`)
|
||||
- General knowledge, concepts, languages $\to$ `04-learning/knowledge/` (`type: knowledge`)
|
||||
- Practical SOPs, runbooks, operation walkthroughs $\to$ `04-learning/guides/<project>/` (`type: guide`)
|
||||
2. **The Validation Gate**: A curated document MUST pass `python scripts/validate-brain.py` before any commit is made.
|
||||
3. **Zero Dangling Drafts**: Once a draft is curated and committed to its destination, the original file in `00-inbox/` must be deleted.
|
||||
2. **The Validation Gate**: If the vault has an automated validator (e.g. `python scripts/validate-brain.py`), a curated document MUST pass before any commit is made.
|
||||
3. **Zero Dangling Drafts**: Once a draft is curated and committed to its destination, the original file in the staging directory must be deleted.
|
||||
4. **Interactive Checkpoint**: The agent must present the proposed destination, frontmatter, and rationale to the user before relocating files, unless explicitly instructed to process autonomously.
|
||||
5. **Atomic Commit Boundary**: Each curated document or cohesive bundle must be committed separately with the Brain's semantic commit type (`plan`, `discussion`, `knowledge`, `guide`, `debug`).
|
||||
5. **Atomic Commit Boundary**: Each curated document or cohesive bundle must be committed separately with conventional or vault-specific semantic commit types (`plan`, `discussion`, `knowledge`, `guide`, `debug`).
|
||||
|
||||
---
|
||||
|
||||
@@ -65,7 +67,7 @@ Select the target directory according to the repository's Directory Contracts:
|
||||
| **Engineering Best Practice** | `04-learning/knowledge/methods/` | `knowledge` | `<slug>.md` |
|
||||
| **Operational SOP / How-to Runbook** | `04-learning/guides/<project>/` | `guide` | `<slug>.md` |
|
||||
|
||||
Prepare the compliant YAML frontmatter block matching the destination contract (see Brain's `AGENTS.md` for templates).
|
||||
Prepare the compliant YAML frontmatter block matching the destination contract (see vault's `AGENTS.md` or templates).
|
||||
|
||||
### Step 4: Interactive Checkpoint
|
||||
Present a 4-point curation checkpoint to the user:
|
||||
@@ -94,7 +96,7 @@ python scripts/test_validator.py
|
||||
Ensure all checks pass cleanly: frontmatter validation, link resolution, code fences, Mermaid syntax, Ruff linting, and Pyright typing.
|
||||
|
||||
### Step 7: Atomic Semantic Commit
|
||||
Package the curated file using the Brain's semantic commit taxonomy:
|
||||
Package the curated file using conventional or vault semantic commit taxonomy:
|
||||
- `plan(<project>): <description>`
|
||||
- `discussion(<project>): <description>`
|
||||
- `debug(<project>): <description>`
|
||||
+9
-9
@@ -33,11 +33,11 @@ done
|
||||
|
||||
# Active skills to install
|
||||
ACTIVE_PORTABLE_SKILLS=(build-skill diagnose document git-commit practice)
|
||||
ACTIVE_BRAIN_SKILLS=(inbox-curation)
|
||||
ACTIVE_EXTENSION_SKILLS=(draft-curation)
|
||||
# Note: commit-logger is NOT installed (planned consumer of journal-builder)
|
||||
|
||||
# Legacy / deprecated skills to clean up or back up if found in target
|
||||
OBSOLETE_SKILLS=(engineering-tutor engineering-investigation skill-builder documentation-router commit-logger)
|
||||
OBSOLETE_SKILLS=(engineering-tutor engineering-investigation skill-builder documentation-router commit-logger inbox-curation)
|
||||
|
||||
echo "=== Target: $TARGET_DIR (mode: $MODE) ==="
|
||||
|
||||
@@ -50,9 +50,9 @@ if [[ "$CHECK_ONLY" -eq 1 ]]; then
|
||||
missing=$((missing + 1))
|
||||
fi
|
||||
done
|
||||
for s in "${ACTIVE_BRAIN_SKILLS[@]}"; do
|
||||
for s in "${ACTIVE_EXTENSION_SKILLS[@]}"; do
|
||||
if [[ ! -e "$TARGET_DIR/$s" ]]; then
|
||||
echo " [MISSING] $s (brain)"
|
||||
echo " [MISSING] $s (extension)"
|
||||
missing=$((missing + 1))
|
||||
fi
|
||||
done
|
||||
@@ -118,9 +118,9 @@ for s in "${ACTIVE_PORTABLE_SKILLS[@]}"; do
|
||||
fi
|
||||
done
|
||||
|
||||
# Install brain skills
|
||||
for s in "${ACTIVE_BRAIN_SKILLS[@]}"; do
|
||||
src="$SCRIPT_DIR/brain/$s"
|
||||
# Install extension skills
|
||||
for s in "${ACTIVE_EXTENSION_SKILLS[@]}"; do
|
||||
src="$SCRIPT_DIR/extensions/$s"
|
||||
dest="$TARGET_DIR/$s"
|
||||
|
||||
if [[ -L "$dest" ]]; then
|
||||
@@ -134,12 +134,12 @@ for s in "${ACTIVE_BRAIN_SKILLS[@]}"; do
|
||||
|
||||
if [[ "$MODE" == "link" ]]; then
|
||||
ln -sfn "$src" "$dest"
|
||||
echo " [LINKED] $s (brain) -> $dest"
|
||||
echo " [LINKED] $s (extension) -> $dest"
|
||||
elif [[ "$MODE" == "copy" ]]; then
|
||||
mkdir -p "$dest"
|
||||
rsync -a --delete "$src/" "$dest/"
|
||||
echo "$SCRIPT_DIR@$(git -C "$SCRIPT_DIR" rev-parse HEAD 2>/dev/null || echo unknown)" > "$dest/.managed-by-skills-repo"
|
||||
echo " [COPIED] $s (brain) -> $dest"
|
||||
echo " [COPIED] $s (extension) -> $dest"
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@ Use the ask-question tool if available; otherwise a numbered list.
|
||||
- Never run destructive git (`reset --hard`, `restore <file>`, `clean -fd`, force-push) without
|
||||
my explicit yes.
|
||||
- Redact secrets (tokens, keys, passwords, connection strings) from anything you print or save.
|
||||
|
||||
## Skills and docs
|
||||
|
||||
- My skills live in `~/Projects/active/skills`. Edit them there, never in an installed copy.
|
||||
|
||||
@@ -18,9 +18,9 @@ disable-model-invocation: true
|
||||
2. **Pick the right tool.** Before writing a skill, check whether it is really:
|
||||
- a rule that always applies: one line in `AGENTS.md`;
|
||||
- a fixed command with no judgment: a script;
|
||||
- a human procedure: a guide in Brain;
|
||||
- a human procedure: a guide in your docs or vault;
|
||||
- a procedure that needs agent judgment: a skill. Continue.
|
||||
3. **Check overlap.** List the skills in this repo (`skills/`, `brain/`). Ask where the new
|
||||
3. **Check overlap.** List the skills in this repo (`skills/`, `extensions/`). Ask where the new
|
||||
skill stops and which existing skill it hands off to.
|
||||
4. **Size it.** Decide the shape: reference (facts consulted on demand), transformation
|
||||
(input to output), procedure (steps with checks between them), or interview (rounds of
|
||||
|
||||
@@ -24,14 +24,14 @@ seen. If you can't name the failure, don't add the control.
|
||||
|
||||
Change the smallest thing that explains what went wrong:
|
||||
|
||||
| Observed | Smallest fix |
|
||||
| :--- | :--- |
|
||||
| Skipped a verification step | Make the step's proof observable and gate the next step on it. |
|
||||
| Ignored an important rule | Move the rule into the numbered steps, where it is read at the right moment. |
|
||||
| Procedure lost in detail | Move the detail to `references/`. |
|
||||
| Wandered into another skill's job | Tighten "Use when" and "Hands off to". |
|
||||
| Repeated boilerplate | Cut the instruction or shorten it. |
|
||||
| Behaved correctly without an instruction | Delete the instruction. |
|
||||
| Observed | Smallest fix |
|
||||
| :--------------------------------------- | :--------------------------------------------------------------------------- |
|
||||
| Skipped a verification step | Make the step's proof observable and gate the next step on it. |
|
||||
| Ignored an important rule | Move the rule into the numbered steps, where it is read at the right moment. |
|
||||
| Procedure lost in detail | Move the detail to `references/`. |
|
||||
| Wandered into another skill's job | Tighten "Use when" and "Hands off to". |
|
||||
| Repeated boilerplate | Cut the instruction or shorten it. |
|
||||
| Behaved correctly without an instruction | Delete the instruction. |
|
||||
|
||||
Then re-run a scenario that used to work, to confirm nothing regressed.
|
||||
|
||||
|
||||
+14
-12
@@ -18,29 +18,31 @@ description: >-
|
||||
surprising failure, a reusable insight.
|
||||
2. **Classify by the kind of knowledge, not by the activity that produced it:**
|
||||
|
||||
| Knowledge | Type | Spec |
|
||||
| :--- | :--- | :--- |
|
||||
| Why: exploration, alternatives, trade-offs | Discussion | [discussion](references/discussion-authoring.md) |
|
||||
| What we decided (architecture) | ADR | [adr](references/adr-authoring.md) |
|
||||
| How to build it: phases, constraints, done-definition | Plan | [plan](references/plan-authoring.md) |
|
||||
| What broke and why (root cause) | Debug Record | [debug](references/debug-record-authoring.md) |
|
||||
| A general mental model or technique | Knowledge | [knowledge](references/knowledge-authoring.md) |
|
||||
| Knowledge | Type | Spec |
|
||||
| ----------------------------------------------------- | ------------ | :----------------------------------------------- |
|
||||
| Why: exploration, alternatives, trade-offs | Discussion | [discussion](references/discussion-authoring.md) |
|
||||
| What we decided (architecture) | ADR | [adr](references/adr-authoring.md) |
|
||||
| How to build it: phases, constraints, done-definition | Plan | [plan](references/plan-authoring.md) |
|
||||
| What broke and why (root cause) | Debug Record | [debug](references/debug-record-authoring.md) |
|
||||
| A general mental model or technique | Knowledge | [knowledge](references/knowledge-authoring.md) |
|
||||
|
||||
A rich session may justify more than one (e.g. Debug Record + Discussion). Split them; don't write one hybrid document.
|
||||
|
||||
A rich session may justify more than one (e.g. Debug Record + Discussion). Split them;
|
||||
don't write one hybrid document.
|
||||
3. **Draft** each document following its spec. Read the spec before writing.
|
||||
4. **Avoid overlap.** Each fact has one owning document: the Discussion owns the reasoning,
|
||||
4. **Avoid overlap.** Each fact has one owning document: the Discussion owns the reasoning,
|
||||
the ADR the decision, the Plan the steps, the Debug Record the evidence, Knowledge the
|
||||
general lesson. Others link to it instead of repeating it.
|
||||
5. **Save** to the location I choose (see below). Discussions and Debug Records are
|
||||
5. **Keep references portable**: Use relative paths or context-defined placeholders. Never write absolute file-system paths into documentation.
|
||||
6. **Save** to the location I choose (see below). Discussions and Debug Records are
|
||||
historical and never rewritten later. ADRs and Plans get `status: superseded` when replaced.
|
||||
|
||||
## Your call
|
||||
- **Type(s)**: confirm the classification from step 2.
|
||||
- **The key sentence**: before drafting, ask me to state the core in my own words: the
|
||||
decision, the root cause, or the insight. Build the draft around my sentence.
|
||||
- **Insights:** when the core insight is unclear, ask about the intent behind important choices, rejected alternatives, and relevant trade-offs. Use these questions to validate the user's understanding, not to expand the scope of the session.
|
||||
- **Where it goes**: offer 2-3 options, recommended first, e.g.
|
||||
`~/Brain/00-inbox/` (Recommended) / the project's `docs/` / Brain's typed folder for this type.
|
||||
default notes inbox (from profile) / the project's `docs/` / typed record folder.
|
||||
|
||||
## Done when
|
||||
- The file exists at the chosen location, or we agreed no document is needed.
|
||||
|
||||
@@ -17,7 +17,7 @@ Create a Knowledge Article when an engineering effort, investigation, practice d
|
||||
2. **Non-Trivial Mental Model**: The subject involves non-obvious trade-offs, subtle failure modes, or conceptual hurdles that standard API docs or cursory tutorials gloss over.
|
||||
3. **Pedagogical Durability**: The explanation will remain valuable to an engineer months or years later, independent of transient project tasks.
|
||||
|
||||
### Target Placement within Brain (`04-learning/knowledge/`)
|
||||
### Target Placement within Knowledge Base or Vault
|
||||
* **`concepts/`** — Disciplinary and theoretical ideas: data structures, algorithmic paradigms, concurrency models, distributed systems principles (`type: knowledge`).
|
||||
* **`methods/`** — Reusable engineering practices, workflows, and disciplines: testing strategies, investigative techniques, architectural paradigms, documentation methods (`type: knowledge`).
|
||||
* **`technologies/`** — Deep dives into tools, runtimes, and languages: environment managers, container engines, frameworks, standard library mechanics (`type: knowledge`).
|
||||
@@ -169,7 +169,7 @@ Conclude with a single reflective heuristic question the reader can ask themselv
|
||||
|
||||
## 6. Frontmatter & Metadata Standards
|
||||
|
||||
Knowledge articles adhere to the Brain `DirectoryContract` for `04-learning/knowledge/`:
|
||||
Knowledge articles adhere to standard YAML frontmatter metadata:
|
||||
|
||||
```yaml
|
||||
---
|
||||
|
||||
@@ -51,4 +51,4 @@ the repo allows it.
|
||||
|
||||
## Hands off to
|
||||
- `document`: if a commit carries a decision or insight worth more than a commit message.
|
||||
- `commit-logger` (Brain only): after a verified commit, if installed.
|
||||
- `commit-logger`: after a verified commit, if installed.
|
||||
@@ -1,7 +1,7 @@
|
||||
# Practice Record Template
|
||||
|
||||
Default location: `~/Brain/00-inbox/practice-YYYY-MM-DD-<topic>.md`.
|
||||
Before saving, ask where it goes (2-3 options, `~/Brain/00-inbox` recommended).
|
||||
Default location: configured notes inbox (or project `docs/`) as `practice-YYYY-MM-DD-<topic>.md`.
|
||||
Before saving, ask where it goes (2-3 options, configured notes inbox recommended).
|
||||
|
||||
```markdown
|
||||
---
|
||||
|
||||
Reference in new issue
Block a user