brilliantrough/agent-skills

save-mem

Preserve useful project knowledge through StrictDoc, Magic Context, and available memory tools, including overlapping storage where useful.

Vedi sorgente
Documento Skill originale

Contenuto dal repository con titoli, esempi, codice, tabelle, link e immagini preservati.

Save Memory

Intent

Leave memory that helps both the next Agent and the human reader understand what applies now, why, and how the project got here. Preserve useful knowledge rather than reproducing the conversation. Decide what deserves saving and where; the following are guidance, not a storage pipeline or a checklist for every save.

Use the stores together

StoreUseful capabilities
StrictDoc docs/Readable current rules and decisions, rationale, project history, specs, and runbooks
Magic Context ctx_memoryPersistent facts, rules, decisions, lessons, and context available across sessions
Magic Context ctx_search / ctx_expandFind existing knowledge and recover the discussion behind it
Magic Context ctx_noteReminders and follow-ups for later
claude-memCaptured activity and searchable observations, where installed and capturing
  • Storing the same knowledge in StrictDoc and Magic Context is reasonable and often useful. Database entries can contain substantive knowledge, not just document pointers.
  • Choose the amount of overlap and detail that helps future work. There is no requirement for every memory to have a document counterpart, or for every document to be mirrored in a database.
  • Existing memories and relevant source files help avoid accidental duplicates and stale claims. ctx_memory supports writing, updating, merging, and archiving; use the operation that fits. Paths and UIDs are useful cross-references, not prerequisites for saving.
  • Missing tools need not stop the other stores from being useful. Be clear about any important knowledge that remains unsaved or unverified.

Keep current truth distinguishable from history

StrictDoc is the source of truth for current project norms when records disagree. Magic Context and claude-mem may legitimately contain earlier or conflicting accounts; useful overlap does not imply equal authority for every historical statement.

  • Keep current rules and their scope easy to identify. In the bundled grammar, decisions use Active, Proposed, Deprecated, or Superseded; dated journal entries describe experience rather than policy.
  • Active norms are maintainable, but historical nodes are not erased. When the user changes a decision, or a settled change is clear from the conversation and evidence, add a successor when useful, mark the old node Superseded, and briefly tell the user. Do not change the canon for guesses, temporary experiments, or every task. Ordinary explanatory docs and non-normative memories may be revised more freely.
  • Keep meaningful decision changes understandable. A journal note, revision context, or successor decision may preserve what mattered about the previous approach; choose the lightest suitable form rather than requiring a new node for every edit. Follow any project-specific history-preservation rules.
  • Capture the reason when known: evidence, constraints, alternatives, or the user's intent. An unknown reason is better acknowledged than invented.
  • Distinguish accepted decisions, observed behavior, pending work, and unverified claims. A working implementation may still differ from the intended rule.
  • Where useful, reconcile known stale database claims and link related records. This does not call for auditing every store on every save.

Human-readable writing taste

Use the user's language, Chinese by default; retain technical names and exact identifiers.

  • Short phrases and short sentences. One point per bullet, one coherent topic per node; put the useful conclusion first.
  • Structure instead of dense prose. Numbered lists for order, bullets for independent points, compact tables for comparison, parameters, status, or evidence. Avoid paragraphs disguised as oversized table cells.
  • Enough detail to act correctly. Preserve meaningful paths, commands, versions, thresholds, units, conditions, and uncertainty; brevity should not erase the caveat or the reason.
  • Occasional `PS:` notes. A longer sentence beside the relevant points can explain why, a trade-off, or a special case. It is an aside, not the main format or a place to hide essential rules.
  • History that can be skimmed. Outcomes, key evidence, lessons, and remaining questions are usually more useful than a tool-by-tool diary. Give source references when the original detail matters.
  • Favor readable distillation over copying a long passage into the current handbook. Preserve original evidence where useful; archival source material need not be rewritten just to match the style.

Practical StrictDoc reference

  • The bundled layout is one project under docs/: strictdoc_config.py, project_memory/{decisions,journal}.sdoc, and handbook/. Adapt to an existing project's layout rather than assuming an empty directory.
  • assets/docs-skeleton/, relative to this skill, provides a starting point. Add missing pieces without overwriting existing docs or config. migrate-mem covers onboarding an already-developed project.
  • The decision grammar supports UID, STATUS, TITLE, STATEMENT, optional RATIONALE, and relations. Plain journal [TEXT] nodes do not automatically support decision fields such as STATUS.
  • When a successor decision is useful, it can carry the relation below, pointing to the old UID; mark the old decision Superseded. The reverse relation is SupersededBy:
text
  RELATIONS:
  - TYPE: Parent
    VALUE: DEC-TOPIC-001
    ROLE: Supersedes
  • Markdown rendering is enabled by OPTIONS: followed by indented MARKUP: Markdown. Sections use [[SECTION]] / [[/SECTION]]; stable UIDs belong on content nodes, not [DOCUMENT] headers. Inspect the project's actual grammar when adding fields.
  • Validate .sdoc, grammar, or config changes with strictdoc export . from the docs root. Use the available executable or project environment; no particular environment manager or hard-coded version is assumed. Report a missing validator or failed export honestly and resolve it before calling the document update complete.
  • Keep secrets out of stored/exported content; names and references to secret locations usually suffice. Respect the project's existing rules for version control and preservation of historical nodes.
dallo stesso repository

Altri Skills

Tutti gli Skills
brilliantrough
Community

code-review

Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's documented coding standards?) and Spec (does the code match what the originating issue/spec asked for?). Runs both reviews in parallel sub-agents and reports them side by side. Use when the user wants to review a branch, a PR, work-in-progress changes, or asks to \"review since X\".

installazioni
1
GitHub Stars
3
Aggiornato
20 set
brilliantrough
Community

domain-modeling

Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a CONTEXT.md, or recording or editing an ADR.

installazioni
1
GitHub Stars
3
Aggiornato
20 set
brilliantrough
Community

exp-probe

Run one-off research spot experiments with minimal ceremony. Use when explicitly requested, or for a missing datapoint, a rerun after failure (OOM, crash), a sanity check of one configuration, a minimal bug reproduction, or a cheap measurement that a campaign needs before deciding. At most one focused question; run, record, report in one line. Escalate to exp-batch if the spot check turns into a branch, or exp-campaign if it reveals a decision tree; if the question itself is still fuzzy, route back to exp-discuss.

installazioni
1
GitHub Stars
3
Aggiornato
20 set
brilliantrough
Community

grill-with-docs

A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.

installazioni
1
GitHub Stars
3
Aggiornato
20 set