diff --git a/README.md b/README.md index 7b29a7d..2bb6cba 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,7 @@ Every skill features an explicit **"Your call"** checkpoint where the agent paus | **[`diagnose`](skills/diagnose/SKILL.md)** | `/diagnose [symptom]` | Evidence-first troubleshooting. Progresses from raw logs to proven root cause and minimal, reversible fixes. | 49 lines | | **[`git-commit`](skills/git-commit/SKILL.md)** | `/git-commit` | Working-tree inspection, atomic slice decomposition, and Conventional Commit drafting. Human approves every commit. | 54 lines | | **[`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 | +| **[`journal-builder`](skills/journal-builder/SKILL.md)** | `/journal-builder` or `/journal` | Retrospective inquiry from engineering history. Probes understanding and discovers learning edges. | 56 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 | ### Vault Extensions (`extensions/`) @@ -73,7 +74,7 @@ Every skill features an explicit **"Your call"** checkpoint where the agent paus | Skill | Status | Purpose | | :--- | :--- | :--- | | **[`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`). | +| **[`commit-logger`](extensions/commit-logger/SKILL.md)** | Active | Immutable Git commit event capture script into a machine-readable CSV ledger (consumed by `journal-builder`). | --- diff --git a/install.sh b/install.sh index 094261c..c4efda8 100755 --- a/install.sh +++ b/install.sh @@ -32,12 +32,11 @@ while [[ $# -gt 0 ]]; do done # Active skills to install -ACTIVE_PORTABLE_SKILLS=(build-skill diagnose document git-commit practice) -ACTIVE_EXTENSION_SKILLS=(draft-curation) -# Note: commit-logger is NOT installed (planned consumer of journal-builder) +ACTIVE_PORTABLE_SKILLS=(build-skill diagnose document git-commit journal-builder practice) +ACTIVE_EXTENSION_SKILLS=(draft-curation commit-logger) # 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 inbox-curation) +OBSOLETE_SKILLS=(engineering-tutor engineering-investigation skill-builder documentation-router inbox-curation) echo "=== Target: $TARGET_DIR (mode: $MODE) ===" diff --git a/skills/document/SKILL.md b/skills/document/SKILL.md index 4612cb8..6c6c624 100644 --- a/skills/document/SKILL.md +++ b/skills/document/SKILL.md @@ -25,6 +25,7 @@ description: >- | 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) | +| Daily synthesis: gains, lessons, learning edges | Journal | [journal](references/journal-authoring.md) | A rich session may justify more than one (e.g. Debug Record + Discussion). Split them; don't write one hybrid document. @@ -48,4 +49,5 @@ A rich session may justify more than one (e.g. Debug Record + Discussion). Split - The file exists at the chosen location, or we agreed no document is needed. ## Hands off to -- `git-commit`: to commit the document if it lives in a repo. +- `draft-curation`: to review and curate drafts staged into an inbox into lifecycle destinations. +- `git-commit`: to commit the document if it lives directly in a repo. diff --git a/skills/document/references/journal-authoring.md b/skills/document/references/journal-authoring.md new file mode 100644 index 0000000..c975955 --- /dev/null +++ b/skills/document/references/journal-authoring.md @@ -0,0 +1,56 @@ +# Journal Authoring Specification + +A Daily Journal is a durable, evidence-grounded record of a day's engineering accomplishments, architectural decisions, and the learning edges identified through retrospective reflection. + +--- + +## 1. Epistemic Role + +* **Purpose**: Capture the terminal state of a day's work across projects, record verified mental models, and preserve active learning edges for future study. +* **Grounding**: Derived from primary evidence (commit ledger, git history) and interactive reflection, never from passive memory or auto-summarized activity narration. +* **Mutability**: Journals are date-scoped historical records. Once curated, existing human-authored content must be preserved; subsequent journal runs may extend the same day's record with genuinely new work, learning, and reflections. + +--- + +## 2. Frontmatter Contract + +```yaml +--- +type: journal +project: brain # or primary project scope +date: YYYY-MM-DD +tags: + - project-name + - technology-or-topic +--- +``` + +--- + +## 3. Structural Sections + +### 1. Document Title +`# Daily Journal: YYYY-MM-DD` + +### 2. Wins (`## Wins`) +Subdivided by project or scope (`### `). +Bullet points detailing concrete accomplishments, architectural boundaries established, and working implementations. Use plain, precise technical language. + +### 3. Decisions, Incidents & Artifacts (`## Decisions, Incidents & Artifacts`) +Links to formal artifacts produced or updated during the day: +- Architectural Decision Records (`03-records/decisions/` or repo `docs/`) +- Implementation Plans & Roadmaps (`01-plans/`) +- Debug Records & Post-mortems (`03-records/debug/`) +- Key commit SHAs or pull requests. + +### 4. Mistakes, Gaps & Learning Edges (`## Mistakes, Gaps & Learning Edges`) +Organized by project/domain. Records the epistemic state of assessed learning objectives: +- **Achieved**: The concept or invariant the user successfully demonstrated and explained. +- **Unresolved**: Knowledge gaps where the user struggled or answered `Skip: I don't get it`. Includes the concrete code/evidence needed for follow-up. +- **Deferred**: Objectives skipped due to external constraints (e.g. `Skip: I'm exhausted`). + +### 5. Technical & Personal Reflections (`## Technical & Personal Reflections`) +Synthesized takeaways on system behavior, engineering discipline, trade-offs, and shifts in mental models. + +### 6. Next Objectives (`## Next Objectives`) +Optional forward-looking priorities for upcoming sessions. diff --git a/skills/journal-builder/SKILL.md b/skills/journal-builder/SKILL.md new file mode 100644 index 0000000..910baba --- /dev/null +++ b/skills/journal-builder/SKILL.md @@ -0,0 +1,56 @@ +--- +name: journal-builder +description: >- + Turn a day's accumulated engineering history into a structured journal through + evidence-based reconstruction, locked learning objectives, and a closed assessment loop. +--- + +# Journal Builder + +## Use when +- `/journal-builder [YYYY-MM-DD]` or `/journal [YYYY-MM-DD]` (defaults to today). +- End of a workday or sprint to review history, test understanding, and record learning edges. +- Not for standalone changelogs; use git log directly. +- Not for deliberate coding practice drills; use `practice`. + +## Steps +1. **Target the day and check history.** Establish the date window from argument or current day. + Read events from the ledger (e.g. `commit-log.csv`) or recent repository `git log`. + - **Provenance boundary**: A journal records the commit events incorporated into its + reconstruction (under Decisions & Artifacts). These references serve as the durable boundary + distinguishing previously assessed work from new ledger events. + - **Backlog check**: If older ledger events exist that are not yet incorporated in any journal + record, surface them and ask whether to process the older date first (preserve temporal fidelity). + - **Incremental run**: If a journal record already exists for the target date, compare ledger + events against incorporated commits. Only new substantive work proceeds to assessment. +2. **Reconstruct by project and domain.** Group new unassessed commits by project, then by + technical domain (e.g. auth, deployment, architecture). Summarize what changed. +3. **Lock learning objectives.** Select the smallest useful set of independently assessable + learning objectives from substantive work. Objectives must be atomic (one independently + testable understanding). Formulate a hidden expected answer before asking. Skip routine work. +4. **Run the assessment loop.** Present one objective and question at a time. + Expect either `Answer: ` or `Skip: `. + After every answer, give concise formative feedback: what was correct, what is missing + or imprecise, and the decision. Never pass an answer that omitted material understanding. + - **Demonstrated**: core understanding articulated -> mark Achieved, move to next. + - **Partially demonstrated**: material understanding missing -> targeted follow-up question. + - **Incorrect / Unresolved**: provide smallest evidence (code line, diff, log) -> retry. + - **Skip: I'm exhausted**: mark Deferred and move to next. + - **Retries fail or Skip: I don't get it**: mark Unresolved (learning edge) and continue. +5. **Synthesize the candidate journal.** Structure the entry with Wins by project, + Decisions/Artifacts, Mistakes & Learning Edges (with objective outcomes), and Technical Reflections. +6. **Hand off to `document`.** Pass the candidate journal to `document` to classify, + author, and stage the draft. Do not choose or prompt for storage destinations. + +## Your call +- **Backlog triage**: whether to process older unassessed work before today. +- **Confirm the day's scope**: whether the detected projects and domains match the day's work. +- **Respond to objectives**: provide `Answer: ...` or `Skip: `. + +## Done when +- All locked learning objectives are assessed and the candidate journal is handed off to `document`. + +## Hands off to +- `document`: to author and stage the candidate journal draft. +- `practice`: if an unresolved learning edge warrants an isolated deliberate practice drill. +- `diagnose`: if reflection identified an active, unexplained system failure.