c-02-memory-quality-control
Skill27 starsChanged 6 months agoMITView on GitHub
Provide on-demand Agents Remember memory-quality diagnostics and scoped onboarding checks without making closeout or integration a quality gate.
In this repository59 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github-vscode/copilot-instructions.mdCopilot instructions
- .cursor/rules/agents-remember.mdcCursor rule
- docs/llms.txtllms.txt
- c-00-initialize-memory-repoSkill
- c-01-findings-captureSkill
- c-02-memory-quality-controlSkill
- c-03-repo-bootstrapSkill
- c-04-retrieval-strategy-routerSkill
- c-05-create-or-update-onboarding-filesSkill
- c-08-ar-coordination-context-resolverSkill
- c-09-git-worktree-managerSkill
- c-10-adopt-memory-baselineSkill
- c-11-memory-carryover-from-branchSkill
- c-12-closeoutSkill
- c-13-install-and-onboardSkill
- l-01-agent-lifecyclesSkill
- w-02-light-task-workflowSkill
- c-00-initialize-memory-repoSkill
- c-01-findings-captureSkill
- c-02-memory-quality-controlSkill
- c-03-repo-bootstrapSkill
- c-04-retrieval-strategy-routerSkill
- c-05-create-or-update-onboarding-filesSkill
- c-08-ar-coordination-context-resolverSkill
- c-09-git-worktree-managerSkill
- c-10-adopt-memory-baselineSkill
- c-11-memory-carryover-from-branchSkill
- c-12-closeoutSkill
- c-13-install-and-onboardSkill
- l-01-agent-lifecyclesSkill
- w-02-light-task-workflowSkill
- c-00-initialize-memory-repoSkill
- c-01-findings-captureSkill
- c-02-memory-quality-controlSkill
- c-03-repo-bootstrapSkill
- c-04-retrieval-strategy-routerSkill
- c-05-create-or-update-onboarding-filesSkill
- c-08-ar-coordination-context-resolverSkill
- c-09-git-worktree-managerSkill
- c-10-adopt-memory-baselineSkill
- c-11-memory-carryover-from-branchSkill
- c-12-closeoutSkill
- c-13-install-and-onboardSkill
- l-01-agent-lifecyclesSkill
- w-02-light-task-workflowSkill
- c-00-initialize-memory-repoSkill
- c-01-findings-captureSkill
- c-03-repo-bootstrapSkill
- c-04-retrieval-strategy-routerSkill
- c-05-create-or-update-onboarding-filesSkill
- c-08-ar-coordination-context-resolverSkill
- c-09-git-worktree-managerSkill
- c-10-adopt-memory-baselineSkill
- c-11-memory-carryover-from-branchSkill
- c-12-closeoutSkill
- c-13-install-and-onboardSkill
- l-01-agent-lifecyclesSkill
- w-02-light-task-workflowSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 8 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill when the developer explicitly requests memory-quality evidence or when an approved workflow asks for a scoped diagnostic.
- Very specific: line 62
Use c-08-ar-coordination-context-resolver or MCP resolve_context to confirm the target repository's active memory and coordination context.
- Distinctive: line 94
If actionable drift exists, first classify the affected findings by source worktree state.
- Distinctive: line 100
Do not plan against stale onboarding as trusted current state.
- Distinctive: line 106
Default repo-wide drift control deliberately does not classify every source file without onboarding as missing.
- Very specific: line 145
If actionable files exist, hand only the approved update candidates to c-05-create-or-update-onboarding-files.
- Distinctive: line 163
Treat the drift report as a maintenance artifact, not as a long-lived research handoff.
- Distinctive: line 168
When a curator's scoped handoff needs a missing-onboarding report, run the package-local check for task additions, copies, renames, or …
- Very specific: line 180
If it reports missing sidecar or inline onboarding, create the reported onboarding through the c-05-create-or-update-onboarding-files skill …
- Distinctive: line 195
If the owning role explicitly requests an MCP diagnostic, scope it to the leaf:
- Very specific: line 201
Use the returned report only to repair the named affected onboarding or to report a blocker.
- Distinctive: line 207
When the developer explicitly requests full memory-quality evidence, run the existing tool against the requested repository or contract …
- Very specific: line 221
When memory_quality_check reports update-history ordering findings, use the dedicated fixer rather than hand-writing one-off scripts:
- Very specific: line 228
Run memory_quality_check again after the fixer.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
c-02-memory-quality-control Memory Quality Control
Use this skill when the developer explicitly requests memory-quality evidence or when an approved workflow asks for a scoped diagnostic. Closeout and integration consume prepared code/memory/ledger Git inputs and do not invoke this skill as a quality prerequisite.
The skill owns the diagnostic procedure. Drift detection can qualify task-start context, and curators can run scoped onboarding checks before handoff. Full memory quality remains an explicit developer-requested operation.
Inputs
This skill operates on one repository at a time and starts from the context
resolved by c-08-ar-coordination-context-resolver or MCP resolve_context.
Primary Outputs
- task-start trust guidance from repo-wide drift classification
- a concrete onboarding maintenance worklist for
c-05-create-or-update-onboarding-files - a scoped missing-onboarding report when a curator requests it
- an on-demand memory-quality report covering the requested scope
- explicit next actions when the requested diagnostic is not clean
Quality Control Phases
| Phase | Check | Purpose |
| Task start (when requested) | drift_check | Qualify existing onboarding before planning against it. |
| Curator handoff | scoped c-05-create-or-update-onboarding-files checks | Maintain affected sidecars, overviews, indexes, and entity entries for this change. |
| Explicit developer request | memory_quality_check | Run the requested memory-quality scope and report every passed, failed, blocked, and not-run check. |
| Targeted style repair | history_order_fix.py | Fix an identified ordering issue only after the requested report names it. |
Diagnostics are evidence only. They should not become an automatic closeout or integration gate.
Boundaries
- This skill reports and routes memory quality work; it does not rewrite onboarding prose itself.
- It does not replace deep Research.
- It does not decide requirement or architecture direction.
- It should qualify stale onboarding rather than silently treating it as trustworthy.
- It must not turn the default repo-wide drift diagnostic into a whole-repository adoption scan for files that never had onboarding.
- It must not treat implementation approval as commit approval; closeout
commits remain owned by the
c-09-git-worktree-managerskill transaction and authority controls. - It must not make a memory-quality, curator, or review result a closeout or integration prerequisite.
Procedure
1. Resolve Context
Use c-08-ar-coordination-context-resolver or MCP resolve_context to confirm
the target repository's active memory and coordination context.
resolve_context(repo_id="<repo-id>")The MCP server owns topology detection, coordination-root resolution, settings
parsing, storage semantics, and pathRules parsing. The c-02-memory-quality-control skill consumes the resolved
context and applies memory quality control.
2. Run Task-Start Drift Control
At task start, request the MCP drift tool for repo-wide checks instead of rewriting shell loops:
drift_check(repo_id="<repo-id>", detail_limit=50)Inside a worktree-backed leaf, add the leaf's enclosure contract path so the check reads that leaf's memory worktree rather than the official memory repo:
drift_check(repo_id="<repo-id>", detail_limit=50, contract_path="<enclosure-contract-path>")By default the MCP drift tool writes the Markdown report to
<coordination_root>/temp/drift-reports/<repo-name>/<repo-name>_<branch-name>_drift-report.md.
That keeps temporary drift artifacts out of task contract folders while still
keeping them under the local coordination root.
If actionable drift exists, first classify the affected findings by source worktree state. Drifted onboarding whose corresponding source file is not dirty is an onboarding update candidate. Drifted onboarding whose corresponding source file is dirty is active work-in-progress and should be left alone unless the developer explicitly takes ownership of that active work.
Do not plan against stale onboarding as trusted current state. Do not silently drop or ignore onboarding after drift detection. Report update candidates and dirty-source findings separately, then ask the developer whether to refresh the update candidates before proceeding. If no actionable drift exists, the existing memory is clean for task-start planning.
Default repo-wide drift control deliberately does not classify every source file without onboarding as missing. That gradual-adoption boundary prevents old, undocumented historical files from flooding the report.
3. Understand Drift Classifications
Primary drift detection supports sidecar Markdown onboarding under the resolved
onboarding root, whether that root is repo-local internal memory or external
memory. It classifies file-level onboarding, root repo overviews, route-local
overviews, and repo entity catalogs when those artifacts carry supported
doc_type metadata. It may also classify inline onboarding blocks when storage
settings resolve a source path to inline.
For file-level sidecars, the c-02-memory-quality-control skill compares the source file against the recorded
lastVerifiedCommitHash, then checks that same source path for staged or
unstaged local changes.
For repo and route-local overviews, the c-02-memory-quality-control skill compares the recorded sourceRoute
against the recorded commit, then checks that same route for staged or
unstaged local changes.
For repo entity catalogs, the c-02-memory-quality-control skill reconciles ## Entity Inventory headings against
## Entity Fingerprints rows. Missing fingerprint tables, inventory entries
without matching rows, orphaned fingerprint rows, unsupported algorithms,
missing fingerprints, missing evidence paths, or fingerprint mismatches are
actionable maintenance.
Supported classifications are:
- up to date
- drifted
- missing verification
- missing
- orphaned
- disabled
- unsupported
4. Hand Off Drift Maintenance
If actionable files exist, hand only the approved update candidates to
c-05-create-or-update-onboarding-files. Dirty-source drift findings remain
active work-in-progress and are not maintenance targets unless the developer
explicitly says to take them over.
The handoff should identify:
- which onboarding files have clean source files and are update candidates
- which drifted onboarding files have dirty source files and must be left alone
- which files are orphaned and may need deletion
- which overview source routes changed
- which entity fingerprints changed
- which inventory entries are missing fingerprint rows
- which fingerprint rows are orphaned
- which evidence paths caused the stale signal
- which stale onboarding can still be used directionally until maintenance finishes
Treat the drift report as a maintenance artifact, not as a long-lived research handoff.
5. Run Pre-Code-Commit Missing-Onboarding Control
When a curator's scoped handoff needs a missing-onboarding report, run the package-local check for task additions, copies, renames, or untracked source files:
python -m agents_remember.memory_quality.integrity.check_missing_onboarding --code-repository-root "<code-root>" --onboarding-root "<resolved-onboarding-root>"This pass is intentionally different from task-start drift. It checks only the current worktree additions in the curator's scope and reports the result to the owning seat; it is not rerun by closeout or integration.
If it reports missing sidecar or inline onboarding, create the reported
onboarding through the c-05-create-or-update-onboarding-files skill before the
curator handoff. The closeout transaction consumes the resulting memory content
without rerunning this report.
6. Run Scoped Curator Checks
The curator maintains only the onboarding affected by the fed change set. Use
c-05-create-or-update-onboarding-files for sidecars, governing overviews,
route indexes, and entity entries, then run git diff --check in the memory
worktree plus any narrowly scoped check named by the curator brief. Record the
exact command, scope, result, and every failed or not-run check. A scoped check
does not establish full memory quality and is not a closeout or integration
gate.
If the owning role explicitly requests an MCP diagnostic, scope it to the leaf:
memory_quality_check(request={"mode":"sync", "repo_id":"<repo-id>", "contract_path":"<enclosure-contract-path>", "checks":["<named-check>"]})Use the returned report only to repair the named affected onboarding or to
report a blocker. Do not require a complete checklist, finalFullCatalog,
curator_coherence, or a quality certificate for handoff.
7. Run Full Memory Quality Only On Explicit Developer Request
When the developer explicitly requests full memory-quality evidence, run the existing tool against the requested repository or contract path:
memory_quality_check(request={"mode":"sync", "repo_id":"<repo-id>", "contract_path":"<enclosure-contract-path>"})Report every applicable check as passed, failed, blocked, or not-run. Repair findings through the existing onboarding workflow and rerun only as the developer-requested operation directs. This evidence remains separate from closeout/integration authority and never becomes an automatic prerequisite.
8. Use Targeted Style Fixers Only After Findings
When memory_quality_check reports update-history ordering findings, use the
dedicated fixer rather than hand-writing one-off scripts:
python -m agents_remember.memory_quality.style.update_history.history_order_fix --onboarding-root "<resolved-onboarding-root>"Run memory_quality_check again after the fixer. If a finding is not
mechanically fixable, update the affected onboarding by hand and rerun the
check.
Rules
- Task-start memory diagnostics begin with
c-08-ar-coordination-context-resolverskill context and thedrift_checkMCP tool when that diagnostic is requested by the workflow. - Closeout and integration do not invoke memory-quality tools; they consume the prepared memory-content and ledger Git legs.
- New files created by the current task may be checked before curator handoff
with
check_missing_onboarding. - The
c-02-memory-quality-controlskill hands maintenance work to thec-05-create-or-update-onboarding-filesskill instead of writing onboarding content. - Stale onboarding may remain directional evidence until refreshed or disproven, but that trust level must be made explicit.
- Missing verification metadata is itself actionable drift.
- Orphaned onboarding should be surfaced clearly rather than left to accumulate silently.
- Generated quality reports belong under the resolved coordination/temp root, not inside durable memory unless the developer explicitly asks.
- A requested diagnostic report belongs under the resolved coordination/temp root unless the developer explicitly requests another artifact location.
- Curator scoped checks and any explicitly requested full memory-quality run are evidence; neither is a closeout-readiness or integration authority.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

