remember
Write and maintain durable knowledge in the PKB. Capture persists facts, decisions, and constraints as they emerge; consolidation synthesises episodic records into durable topic notes and repairs drift. Does not file bugs (use GitHub) or log debug traces.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 5
- Forks
- 3
01 前言 Front Matter
- name
- remember
- description
- Write and maintain durable knowledge in the PKB. Capture persists facts, decisions, and constraints as they emerge; consolidation synthesises episodic records into durable topic notes and repairs drift. Does not file bugs (use GitHub) or log debug traces.
02 资源文件 8
- 脚本app.py1.3 KB
- 脚本bridge.py11.7 KB
- 其他pyproject.toml243 B
- 参考文档references/consolidation.md6.8 KB
- 参考文档references/quality.md1.6 KB
- 脚本run.sh19.2 KB
- 脚本sanity.sh1.3 KB
- 脚本synthesis_eval.py5.5 KB
03 SKILL.md 正文
Remember
Write and consolidate knowledge notes under synthesize-not-accrete. State current truth in synthesised prose; do not accumulate chronological history or changelogs.
Invariants
- Current facts only: The PKB holds what is true now, one canonical note per topic. Logs, event records, narration of work done, and standing rules about how agents work do not belong in it.
- Rewrite in place: A fact that is no longer true is deleted, not annotated. No superseded sections, changelogs, dated layers, or corrections that quote the old text.
- Extraction is every writer's duty: When you find durable knowledge sitting in a task body, extract it to a knowledge note in the same pass. Do not leave it for a later sweep.
- Search before writing: Query existing notes before creating or updating.
- Never fabricate: Record citable facts and direct implications; omit opinions on what should have happened.
- Resolve contradictions: When sources disagree, state the resolved fact and delete the losing version -- do not record the disagreement. Where a retired premise would otherwise be re-derived by the next reader, keep one forward-looking line of warning and delete the reasoning it came from. If the conflict cannot be resolved from evidence, ask; do not file both claims and move on.
- Target and task rules: Target nodes carry only worth ($W_t \in \mathbb{R}$ on the open continuous log scale); task bodies are work checklists, not logs.
- Bugs on GitHub: Report system, tool, and framework bugs on GitHub only.
- Age is not staleness: Do not archive or cancel notes based on age alone.
Capture Workflow
- Search: Run
codemode.pkb_search({ query: "<topic>" }). - Find canonical note: Maintain one canonical note per primary topic (concept, tool, project). If a topic note exists, update it rather than creating a new one.
- Augment in place: Rewrite the relevant section to reflect current state via
codemode.pkb_update_body. Replace superseded facts; do not append dated entries or provenance narratives. Grounding evidence lives in its own node linked by[[wikilink]]. - Create when novel: Use
codemode.pkb_create({ type: "knowledge", ... })for documents orcodemode.pkb_create({ type: "memory", ... })for atomic facts only when no canonical topic matches.
All PKB calls above go through the services MCP server's code-mode interface: portal_codemode_execute running async () => await codemode.<pkb_op>(...) (in agy via call_mcp_tool with ServerName: "services", in Claude Code via mcp__services__portal_codemode_execute), always providing a concise 1-line toolSummary argument (e.g. toolSummary: "Update canonical note for <topic>"). There is no directly-invocable flat tool named pkb__<op> or pkb-<op>.
Graph Integration
- Densify relationships: Link notes to peer concepts and navigation nodes with
[[wikilink]]pointers in the prose that needs them. A wikilink anywhere in a body is a real graph edge (not read by the flow rule, pending FQ23). Do not author a## Relationships,## Related,## See also, or## Referencesheading -- no code path reads body headings into edges, and a link parked in a list at the foot of a note is an edge without a reason attached. Task bodies express relationships via graph edges, never in prose. - Frontmatter: Set it when creating the node.
codemode.pkb_createacceptstitle,type,tags,confidence(float 0–1), andsource(a single string);id,alias,permalink,created, andmodifiedare generated. When deriving a note from a PKB artefact, pass the artefact's PKB-relative path insource(or parent to a node whose file lives in that sub-project directory) so home-directory placement files the note in that sub-project directory rather than defaulting tonotes/. Afterwardsbatch_updatecan changetitle,type,tagsand the other task fields. Nothing else is writable -- unknown keys are rejected, not written -- so provenance beyond the onesourcestring belongs in the body as a[[wikilink]]to its evidence node. - Legacy frontmatter: a few older hand-written nodes carry
sources:,synthesized:,last_reviewed:, ormaturity:. These are unreachable through the current tools and no code reads them. Do not add them, do not treat their absence as a defect, and do not require them in a review. - Navigation nodes: Create or update
type: indexnotes when a topic accumulates five or more notes. There is nomoctype; writes specifying one are rejected.
Routing Emerging Work
- Incidents and friction: Route to
/aops:learnfor root-cause diagnosis. - New asks or decisions: Route to
/ida:qfor graph positioning and valuation. - Fallback: If an owning skill cannot run, create an
inboxnode noting the required skill.
Consolidation
Consolidate episodic sources (daily notes, meeting notes, closed tasks) into canonical topic notes per references/consolidation.md and references/quality.md.
- Synthesis over collection: Synthesise underlying principles across sources; do not concatenate bullet lists.
- Repair drifted tasks: Extract durable knowledge (models, architecture, decisions) to destination notes first, then rewrite the task body to minimal goal, deliverable, scope, checklist, and pointers.
- Retire primary records: Delete episodic notes and replaced memories once their content is written to the destination node. Delete outright -- no tombstone, no
status: archived, no archive copy. Git, session transcripts, and audit logs hold the history, and none of them is loaded on every retrieval.
04 同仓库更多 Skills
supervise
Supervise an epic or complex task end-to-end within a container session -- assemble workflows via /reify, coordinate subagents with incremental git checkpoints, deliver in-session artifacts and pull requests, and queue out-of-session follow-ups. Use for autonomous epic execution, high-level task supervision, and multi-stage delivery. Exclude for single atomic tasks already reified on the graph (use pull).
supervise
Supervise an epic or complex task end-to-end within a container session -- assemble workflows via /reify, coordinate subagents with incremental git checkpoints, deliver in-session artifacts and pull requests, and queue out-of-session follow-ups. Use for autonomous epic execution, high-level task supervision, and multi-stage delivery. Exclude for single atomic tasks already reified on the graph (use pull).
supervise
Supervise an epic or complex task end-to-end within a container session -- assemble workflows via /reify, coordinate subagents with incremental git checkpoints, deliver in-session artifacts and pull requests, and queue out-of-session follow-ups. Use for autonomous epic execution, high-level task supervision, and multi-stage delivery. Exclude for single atomic tasks already reified on the graph (use pull).
supervise
Supervise an epic or complex task end-to-end within a container session -- assemble workflows via /reify, coordinate subagents with incremental git checkpoints, deliver in-session artifacts and pull requests, and queue out-of-session follow-ups. Use for autonomous epic execution, high-level task supervision, and multi-stage delivery. Exclude for single atomic tasks already reified on the graph (use pull).
supervise
Supervise an epic or complex task end-to-end within a container session -- assemble workflows via /reify, coordinate subagents with incremental git checkpoints, deliver in-session artifacts and pull requests, and queue out-of-session follow-ups. Use for autonomous epic execution, high-level task supervision, and multi-stage delivery. Exclude for single atomic tasks already reified on the graph (use pull).
madr
Draft Markdown Architectural Decision Records (MADR) capturing context, considered options, decision outcomes, and consequences. Use when recording an architectural decision, documenting a technical choice, or evaluating design alternatives. Exclude for declarative target-state specifications (use specs) or task planning (use reify).