d-sorganization/tools/memory-alignment-check

Claude Code and agent skill by d-sorganization/tools

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

After QA PASS, compare the Story's implementation footprint against relevant memory entries. Reports confirmed entries, contradictions, and new knowledge candidates. Never writes to memory — produces a delta report for Discovery to action.

Install

npx vskill@latest install d-sorganization/tools/memory-alignment-check

SKILL.md

The same SKILL.md was published earlier as d-sorganization/tools/memory-alignment-check.

Memory Alignment Check

Purpose / When to Activate

Activate after QA verdict is PASS — never before (avoids analysis on code that will change).

This skill checks that long-term memory (decisions, patterns, project context) remains accurate after a Story is delivered. It compares only the Story's implementation footprint against relevant memory entries — not the full codebase.

The codebase is the source of truth for implementation. Memory is the source of truth for decisions and patterns. This skill checks that both remain consistent after each delivery.

This skill reports. It never writes to memory.


Process

1. Extract Implementation Footprint

From {id}.impl-report.md:

  • Files modified or created
  • New modules or services introduced
  • Patterns applied during implementation
  • Technical decisions made during implementation
  • New integrations or external dependencies introduced
2. Retrieve Relevant Memory (Selective)

Using contexts/memory/index.md:

  • Identify memory entries whose tags intersect the Story's scope and touched modules
  • Load only those entries — do not load all memory
  • Scope: project context, patterns, decisions relevant to the implementation footprint
3. Compare Footprint Against Memory

For each relevant memory entry, assign one verdict:

  • CONFIRMED — implementation is consistent with what memory states

→ Record entry ID, suggest last_verified_at update to today, verified_against_story to Story ID

  • CONTRADICTED — implementation contradicts or obsoletes what memory states

→ Record exact contradiction, affected memory entry ID, severity (high / medium / low)

  • UNADDRESSED — memory entry is not touched by this Story

→ Skip — no verdict needed

4. Identify New Knowledge Not Yet in Memory

From the implementation footprint, extract candidates not present in memory:

  • New patterns introduced not in contexts/memory/patterns/
  • New architectural or technical decisions not in contexts/memory/decisions/
  • New constraints or conventions applied for the first time

These are ingestion candidates — flagged for Discovery to validate and ingest.


Outputs

Written to: contexts/artefacts/memory-deltas/{id}.memory-delta.md

yaml
---
skill: memory-alignment-check
story_id: E01S01
generated_at: YYYY-MM-DD
verdict: ALIGNED | DRIFT_DETECTED | NEW_KNOWLEDGE_FOUND | DRIFT_AND_NEW_KNOWLEDGE
---
## Confirmed Entries
- memory_id: PATTERNS-001
status: CONFIRMED
suggested_last_verified_at: YYYY-MM-DD
suggested_verified_against_story: E01S01
note: Implementation of X is consistent with stated convention.
## Contradicted Entries
- memory_id: DEC-{N}
status: CONTRADICTED
severity: high | medium | low
description: Memory states [X]. Implementation did [Y]. These are incompatible.
action_required: Update or invalidate memory entry.
## New Knowledge Candidates
- candidate_id: CANDIDATE-001
category: patterns | decisions | project
description: New retry pattern introduced in services/api/client.ts — not yet in memory.
suggested_tags: [api, resilience, patterns]
ingestion_priority: high | medium | low

Verdict Logic

VerdictCondition
ALIGNEDNo contradictions, no new knowledge candidates
DRIFT_DETECTEDOne or more memory entries contradicted by the implementation
NEW_KNOWLEDGE_FOUNDNew knowledge candidates identified, no contradictions
DRIFT_AND_NEW_KNOWLEDGEBoth contradictions and new knowledge candidates present

Quality Checks

  • Only memory entries intersecting the Story scope are loaded — never full memory
  • Confirmed entries include specific evidence from impl-report (not assertions)
  • Contradictions describe the exact mismatch — no vague statements
  • New knowledge candidates are concrete and grounded in impl-report — not speculative
  • No memory is written — this skill produces a report only

Non-Goals

This skill must NOT:

  • Write or update any memory file
  • Trigger memory-ingest directly (only Discovery may do so)
  • Scan the full codebase
  • Analyse code outside the Story's implementation footprint
  • Make product or architectural decisions
  • Block or modify the QA verdict

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/d-sorganization/tools/memory-alignment-check/badge)](https://verified-skill.com/skills/d-sorganization/tools/memory-alignment-check)

Something wrong with this skill or its page? Tell us.