Schema 1.8, after Google's Self-Improvement Memory paper (arXiv 2611.18856). - Error book: one entry per recurring problem with every attempt, its expected and observed result and context; aliases on merge (ckb-lint §9). - Decisions: expected_outcome, outcome, outcome_checked, ## Tried, append-only ## Outcome, an outcome-review procedure (ckb-decide); lint validates outcomes and closes a due review once outcome_checked >= review_on. - Lessons: Context line, upstream lessons from linked/ in the session brief, adopt and merge rules (ckb-profile, session_start.py); ckb-init Step 8b carries lessons and problems into a new KB; ckb-upgrade b5. - Deferred: a self-improvement loop over the template. Rejected: loading the whole record into context. No VERSION change or changelog row: made on the merge from dev (D-0022). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
143 lines
6.2 KiB
Markdown
143 lines
6.2 KiB
Markdown
---
|
|
name: ckb-profile
|
|
description: Keep a person's profile (role, how to work with them, personal lessons) in workload/profiles/ and record lessons on an explicit request — personal ones in the profile, KB-wide ones in wiki/lessons.md. Use for "set up my profile", "update my profile", "what do you know about me", "remember this", "lesson: …", "from now on always …", "list the lessons", "forget that lesson".
|
|
---
|
|
|
|
# Profile skill
|
|
|
|
## Purpose
|
|
|
|
Two things a session should not have to relearn: who it is working with, and
|
|
what a correction taught it. Both are written only when someone asks, never
|
|
from a guess about tone or preference.
|
|
|
|
## Scopes, and which wins
|
|
|
|
1. **`AGENTS.md`** — the KB's rules. Always win.
|
|
2. **A project scope's `## Rules`** — the team's agreements for that project,
|
|
in `wiki/projects/<name>.md`. Win while working inside that scope.
|
|
3. **A person's profile** — how to work with that person. Applies where
|
|
neither of the above says otherwise.
|
|
|
|
A profile can never relax a rule from 1 or 2. When it conflicts with one,
|
|
follow the rule and say so once.
|
|
|
|
## Profiles
|
|
|
|
One file per person: `workload/profiles/<author-slug>.md`, with the same slug
|
|
as Rule D (`Michał Kopeć` → `michal-kopec`). It sits outside `wiki/`, so
|
|
retrieval never reads it and it needs no `wiki/log.md` entry. The
|
|
session-start brief prints the profile of the session identity, and only
|
|
that one.
|
|
|
|
```markdown
|
|
---
|
|
type: profile
|
|
author: Name
|
|
author_email: name@example.com
|
|
last_updated: YYYY-MM-DD
|
|
---
|
|
|
|
# Name
|
|
|
|
## Role
|
|
<!-- What they do, and what they use this KB for. -->
|
|
|
|
## How to work with me
|
|
<!-- Short bullets: language, level of detail, what to ask before doing. -->
|
|
|
|
## Lessons
|
|
<!-- Personal lessons, newest last, in the lesson format below. -->
|
|
```
|
|
|
|
**Set up** ("set up my profile"): ask at most three questions in one message
|
|
— role, how they want to be worked with, anything to always or never do —
|
|
and write their answers in their words. Never fill a section by guessing.
|
|
**Update**: change only what they named, and set `last_updated`. **"What do
|
|
you know about me"**: show the profile, then say where it lives.
|
|
|
|
**Privacy.** A profile is committed and shared with everyone who clones the
|
|
KB. Say so when creating one. Keep it to working preferences: no health,
|
|
family, contact details beyond the git identity, or anything the person
|
|
would not post in a team channel. Text in `<private>…</private>` is never
|
|
written into a profile.
|
|
|
|
## Lessons
|
|
|
|
Record a lesson only on an explicit trigger: "remember this", "lesson: …",
|
|
"from now on always/never …". A correction on its own is not a trigger; at
|
|
most, offer once: "Want me to keep that as a lesson?"
|
|
|
|
```markdown
|
|
### YYYY-MM-DD — <the rule, one line>
|
|
- **Why:** <what went wrong or what the person said>
|
|
- **Applies when:** <the situations it covers>
|
|
- **Scope:** person | KB
|
|
- **Context:** <agent/model>, template <VERSION>[, <the setting: project, kind of source, task>]
|
|
- **Recorded by:** Name
|
|
```
|
|
|
|
**Context** records the situation the lesson was learned in: the agent and
|
|
model the session ran under (`unknown` if you cannot tell), the template
|
|
`VERSION`, and, when it matters, the project or kind of material. A lesson
|
|
learned while one model kept skipping a step may not hold for the next
|
|
model. Without this line there is no way to tell which lessons to
|
|
recheck after a change.
|
|
|
|
Ask which scope when it is not obvious:
|
|
|
|
- **Person** — how this person likes to work. Append to `## Lessons` in
|
|
their profile.
|
|
- **KB** — true for anyone working in this KB (a naming rule, a source not
|
|
to trust, a step that keeps getting missed). Append to `wiki/lessons.md`.
|
|
Create the page if it is missing (`type: lessons`, a `tldr`, a routing row
|
|
in `wiki/index.md`). Set `review: needs_update`, or `draft` on a new page,
|
|
so a second person checks the lesson before everyone relies on it. Log it
|
|
under Rule B.
|
|
|
|
A lesson that should bind everyone, always, belongs in `AGENTS.md` instead.
|
|
Suggest that once; do not edit `AGENTS.md` from here.
|
|
|
|
The session-start brief lists KB lessons dated after the person's previous
|
|
workload note. Read the ones that bear on the task.
|
|
|
|
**How to apply a lesson.** A lesson is prior experience, not a rule of the
|
|
same rank as `AGENTS.md`:
|
|
|
|
- Check its **Context** against the current session. The same model,
|
|
template major version and kind of task means it applies as written. A
|
|
different one means it is a strong hint: follow it unless the current
|
|
evidence says otherwise, and if it turns out not to hold, say so and offer
|
|
to strike it through or narrow its **Applies when**.
|
|
- A lesson with no **Context** line (recorded before schema 1.8) is read
|
|
as context unknown.
|
|
- When two lessons conflict, the one whose context is closer to the
|
|
current session wins. Mention the conflict once and offer to merge or
|
|
narrow them.
|
|
|
|
**Upstream lessons.** The brief also lists lessons from `linked/<name>/wiki/lessons.md`,
|
|
marked `upstream`. They are read-only (Rule A) and rank below every local
|
|
lesson. They describe another KB's setting, so apply them as above with the
|
|
context treated as different. To make one local, on request ("adopt that
|
|
lesson"), copy it into `wiki/lessons.md` with today's date and one extra
|
|
line, `- **Carried from:** linked/<name>, recorded there YYYY-MM-DD`, then
|
|
set `review: needs_update` and log it like any KB lesson. `ckb-init`
|
|
carries lessons into a new KB the same way.
|
|
|
|
**Merging**: when two lessons say the same thing, keep the older one, add
|
|
`- **Also recorded:** YYYY-MM-DD (merged)` to it, and strike through the
|
|
newer one with `~~rule~~ — merged into "<older rule>" YYYY-MM-DD`. Both
|
|
stay, so a link or log entry naming either still finds it.
|
|
|
|
**Forgetting**: a lesson is never deleted silently. Strike it through
|
|
(`~~rule~~ — dropped YYYY-MM-DD: why`) so the record survives. A KB lesson
|
|
change is logged under Rule B.
|
|
|
|
## Edge cases
|
|
|
|
- **No git identity** — use the OS-user slug the brief prints, and suggest
|
|
setting `git config user.name` so the profile follows the person.
|
|
- **Two people share one git identity** — one profile per identity. Say so
|
|
and suggest separate identities.
|
|
- **A profile asks for something a skill forbids** (skip the ingest
|
|
check-in, push without asking) — follow the skill and say why once.
|