Durable Knowledge Maintainer
Use this skill when a task is being closed, when durable findings may have been missed, or when a repository needs a deliberate knowledge-maintenance pass instead of leaving conclusions in task notes.
Preconditions
- The target repo should already have:
AGENTS.mddocs/work/knowledge/
- If those surfaces do not exist yet, use
agents-md-context-managerfirst.
Read first
AGENTS.mddocs/work/.current- the active task's
meta.yaml,status.md,decisions.md, andlearning-log.md knowledge/index.md,knowledge/sources.yaml, andknowledge/changelog.md- every doc named by
related_knowledge,knowledge_targets, or the repo's durable-knowledge protocol
Workflow
- Review the task-time learnings first.
- ignore entries already marked
dismissed - resolve whether each remaining entry stays
pending, becomestriaged, or should bepromoted - completed tasks must not leave relevant learning entries in
pending
- ignore entries already marked
- Decide whether the task introduced a durable change.
- architecture, command, build, packaging, or validation flow changed
- a new workaround, pitfall, or failure mode appeared
- verification evidence or verification status changed
- a new authoritative source was added or refreshed
- a repeated workflow looks reusable across tasks or repos
- If there is no lasting change:
- set
knowledge_review_status: not_needed - set
knowledge_reviewed_at - dismiss or triage any non-durable learning entries and leave a short reason in the task status or follow-up fields
- set
- If durable change exists, map it to the correct targets.
- repo rules ->
AGENTS.md - implementation snapshot ->
knowledge/project/current-state.md - recommended default -> the repo's standard-solution doc
- failure pattern -> the repo's pitfalls doc
- validation state -> the repo's verification matrix or equivalent
- source freshness ->
knowledge/sources.yaml - all durable edits ->
knowledge/changelog.md
- repo rules ->
- Update task bookkeeping.
- set
knowledge_review_status - set
knowledge_reviewed_at - fill
knowledge_targets - fill
knowledge_followupsfor anything still blocked - fill
skill_candidateswhen a reusable workflow appears - keep
Learning CaptureandPromotion Queueinstatus.mdaligned with the learning-log outcome
- set
- Enforce honest validation language.
- missing device or tool coverage is not
verified - partially checked fixes stay partial
- blocked validation stays blocked
- missing device or tool coverage is not
- Hand off reusable workflows.
- if a workflow has stable inputs, outputs, and validation, create or update a candidate under
$CODEX_HOME/memories/durable-knowledge/skill-candidates/ - preserve the learning entry ids,
pattern_key, and trigger types in candidate provenance - if a matching skill already exists, update its source doc or changelog instead of duplicating it
- if a workflow has stable inputs, outputs, and validation, create or update a candidate under
- Close the loop.
- completed tasks must not leave
knowledge_review_status: pending - if
knowledge_review_status: followup_required, make the follow-up explicit and durable
- completed tasks must not leave
- When running a weekly review instead of a single-task closeout, explicitly check for:
- completed tasks missing
updatedornot_needed - active tasks missing
learning-log.md - learning entries still
pendingmore than 24 hours after capture - overdue
next_review_atsource entries - verification rows older than 7 days that are still
pending_validation,partially_verified, orblocked_by_missing_device_or_tooling - unprocessed
Potential Skillsitems andskill_candidates
- completed tasks missing
Default cadence
- Use
7days as the default stale-review window unless the target repo documents a tighter cadence inAGENTS.md.
Hard rules
- Do not leave durable findings only in chat or ad hoc notes.
- Do not mark unverified or blocked work as complete evidence.
- Do not pollute
AGENTS.mdwith one-off task chatter; only keep durable rules there. - Do not close a task while the durable-knowledge targets are still implicit.
- Do not promote an unstable one-off procedure into a skill candidate without evidence.
- Do not treat raw
pendinglearning entries as durable truth until they are triaged.
Deliverables
- The task metadata reflects the durable review result.
- The task
learning-log.mdreflects the final triage or promotion status. - The right long-term docs are updated.
knowledge/changelog.mdrecords the durable update.- Any reusable workflow is either linked to an existing skill or handed off as a candidate.