robisson/build-like-amazon-agent-skills/implementation-memory

Claude Code and agent skill by robisson/build-like-amazon-agent-skills

Trust tier 2
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
LLM review pending
Source check pending

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

Internal /build flow mechanism that maintains fixed-size procedural memory of durable implementation-quality lessons.

Install

npx vskill@latest install robisson/build-like-amazon-agent-skills/implementation-memory

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as robisson/build-like-amazon-agent-skills/implementation-memory.

Implementation Memory

Overview

Implementation memory is a compact, fixed-size set of rules that improves future /build executions. It captures durable lessons from completed builds, code review feedback, test failures, and user feedback, then applies only the relevant lessons to later implementation work.

This is procedural memory, not history. It stores rules for how to implement better next time. It does not store product context, design history, changelog entries, ADRs, raw retrospectives, PR transcripts, or conversation logs.

This mechanism is harness-agnostic by design. It uses a plain markdown file in the repo (.bla/implementation-memory.md) intentionally. It is not tied to any agent's native memory system. Any AI agent that can read markdown and follow instructions can consume and update it.

This is an internal flow mechanism. Users do not invoke it as a slash command or choose it as a standalone workflow. Existing build commands and build-oriented assistant rules call it automatically at the defined points in the /build flow.

Capture Points

Implementation memory can be fed from multiple workflow stages — not only /build:

SourceWhenWhat to extract
/wb (bar raiser gate)After a PR/FAQ or 5CQ bounces on the same bar-raiser question across featuresThe recurring gap in customer evidence or problem framing, stated as a rule for future Working Backwards work
/design (design gate)After a requirement bounces at the design gate 3 or more timesThe recurring reason the requirement keeps failing the gate, stated as a rule for future design work
/spec (coherence review)After a coherence-review finding recurs across specsThe cross-spec inconsistency pattern that coherence review keeps catching
/build (post-implementation review)After PASSED WITH FIXES NEEDED or user validationProcedural lessons from fix tasks, debug cycles, review findings
/review (code review)After review feedback is resolvedRecurring review findings that apply beyond one PR
/learn (COE)After corrective actions are definedOperational lessons that should influence future implementation

All sources use the same Quality Memory Review process, admission checks, and rejection rules. Record in the rule's Phase field the phase whose work the rule constrains, so later selection scopes it correctly. For the first four sources that is the capturing phase itself — /wb → wb, /design → design, /spec → spec, /build → build — which is what makes every value the enum admits reachable: a value no source can write would be a filter hiding rules nobody can create. /review and /learn are capture points, not phases: a rule captured there inherits the Phase of the work it reviewed — a review finding about implementation is Phase: build, a COE action about operational practice is Phase: operate — because the Phase field names the phase whose work the rule governs, and there is no pre-execution selection at /review or /learn to scope. The enum is therefore unchanged: no review or learn value exists. Reachability on the write side is not enough on its own — a value every source can write but no command ever selects would hide rules just as effectively, from the read side, so Pre-Build Selection step 0 names which phases have a selection point and which are reserved, and a Phase value is only fully reachable once both sides hold.

Internal Flow Hooks

Use this mechanism in these places:

  1. Before `/build` task execution: read the current spec/tasks first, then select active memory rules as defined in Pre-Build Selection below — a rule is selected if its Phase is build and ANY signal matches (Tags, File patterns, or Applies when). That section is the single definition of the selection semantics; this hook only says when it runs.
  2. After implementation review (semi-automatic trigger): when the verdict is PASSED WITH FIXES NEEDED, the agent MUST automatically extract up to 2 candidate learnings from the fix findings and present them to the user for Accept / Reject / Edit. This is the primary memory population path. When the verdict is PASSED, prompt the user to test the delivered behavior and bring back failures or feedback.
  3. After user validation or explicit request: run a Quality Memory Review using implementation results, implementation review, test/debug feedback, and user feedback to decide whether memory should be updated.
  4. After `/review` findings are resolved: if the review surfaced recurring patterns (same finding across 2+ PRs or explicitly flagged as "this keeps happening"), extract candidates and present for Accept / Reject / Edit.
  5. After `/learn` corrective actions: if a COE produces an implementation-level corrective action (not an org/process action), extract a candidate and present for Accept / Reject / Edit.
  6. After a requirement bounces at the `/design` gate 3 or more times: extract a candidate with Phase: design describing why the requirement kept failing the gate, and present for Accept / Reject / Edit. Without this hook a requirement rejected three times leaves no trace.
  7. After a coherence-review finding recurs across specs: when /spec produces the same coherence finding in 2 or more specs, extract a candidate with Phase: spec and present for Accept / Reject / Edit.
  8. Periodic nudge: after 3 builds without a memory update (tracked via Builds without update counter at the bottom of the memory file), include in the end-of-build summary: "You have had N builds without memory update. Would you like a quick Quality Memory Review?"

Do not use this skill to replace requirements, design documents, ADRs, release notes, PR/FAQ, postmortems, or review artifacts.

Canonical Artifact

The project-level memory artifact is:

text
.bla/implementation-memory.md

If the file does not exist before a build, continue without memory guardrails. After the build, create it only when at least one candidate learning passes the admission bar. A repository may also keep an empty canonical file with the required structure so future builds have a stable location.

Memory Limits

The memory is intentionally small:

  • Maximum 12 active rules.
  • Maximum 120 words per active rule.
  • Maximum 2 candidate learnings extracted per Quality Memory Review.
  • Rewrite the whole file when updating; never append a chronological build log.
  • Prefer rules that prevent bugs, review rework, security issues, rollout failures, weak tests, or operational gaps.

Active Rule Format

Every active rule must use this shape:

markdown
### IM-XXX: [Short rule name]
Tags: [api, error-handling, testing, infra, ui, data-pipeline, security, observability, workflow, ...]
Phase: [wb | design | spec | build | deploy | operate]
File patterns: [optional glob patterns, e.g. src/api/**, tests/integration/**]
Applies when: [Spec/component/risk conditions where this rule is relevant.]
Rule: [Actionable implementation behavior.]
Avoid: [Specific behavior to avoid.]
Evidence: [Review feedback | user feedback | test failure | build defect | repeated pattern.]
Impact: [Critical | High | Medium]
Confidence: [Proven (Prevented >= 1 backed by evidence) | Established (applied successfully) | New (just added)]
Hit count: [N — number of builds where this rule was selected and applied]
Prevented: [N — number of times this rule demonstrably prevented an issue; increment only with concrete evidence that the rule stopped something]
Created: [YYYY-MM-DD]
Last used: [YYYY-MM-DD]
Builds on: [[IM-YYY]] (optional — reference to a related/prerequisite rule)

Use stable IDs. When removing a rule, do not renumber unrelated rules unless the file is being deliberately compacted for readability.

Prevented is an evidence counter, not a confidence signal. Increment it only when something concrete stopped: a validator blocked, a test failed before merge, or a review cited the rule by ID. Applying a rule, or believing it helped, is not evidence. Confidence: Proven therefore requires Prevented >= 1 backed by such evidence; a rule whose only evidence is unattributed feedback stays at Established with Prevented: 0.

Pre-Build Selection

Before implementation starts:

  1. Determine the current phase from the command in flight: /wb → wb, /design → design, /spec → spec, /build → build, /deploy → deploy, /operate → operate. This section runs at the start of every phase, not only /build. Three phases have a selection point wired into their command today: design (.claude/commands/design.md → Step 0e), spec (.claude/commands/spec.md → Read the existing context) and build (.claude/commands/build.md → step 2c). wb, deploy and operate are reserved: a rule stored under one of them is admitted normally, counts against the 12-rule cap, and will not fire until a selection point exists in that command — so accept such a rule only when it is worth a slot it cannot yet use.
  2. Read the current .bla/specs/<slice-name>/requirements.md, design.md, tasks.md, and coherence-review.md if present.
  3. Read .bla/implementation-memory.md if it exists.
  4. Select active rules using this multi-signal matching. A rule is selected when its Phase matches the current phase determined in step 0 AND any one of the following signals matches:
  • Tags match: rule tags overlap with the current spec's domain/technology areas.
  • File patterns match: the spec's tasks touch files matching the rule's glob patterns.
  • Applies when matches: the LLM judges the prose description to be relevant to the current spec, task, component, dependency, or risk profile.

The three signals above remain an OR among themselves — one is enough. Phase is an additional filter layered on top, not a replacement: a rule whose Phase does not match the current phase is never selected, however strongly its tags, file patterns, or prose match. A rule with no Phase line is treated as build.

  1. Convert selected rules into implementation guardrails, test checks, or review checks.
  2. Ignore unmatched rules. They are not requirements for the current build.
  3. Increment Hit count for each selected rule.

Phase scoping changes which rules are selected, never how many may exist: the cap defined in Memory Limits above is unchanged at 12 active rules in total, not 12 per phase.

Memory rules never override approved requirements, design, tasks, or coherence-review action items.

Semi-Automatic Trigger (Primary Population Path)

When the implementation review verdict is PASSED WITH FIXES NEEDED, the agent does not wait for the user to request memory update. Instead:

  1. Generate a structured self-reflection (2-3 sentences): "What went wrong? Why? What would have prevented it?"
  2. Use the self-reflection (not the raw findings) to extract up to 2 candidate learnings.
  3. Present candidates to the user in this format:
text
Memory candidates extracted from this build:
[1] IM-00X: [Short rule name]
Tags: [...]
Applies when: [...]
Rule: [...]
Avoid: [...]
[2] IM-00Y: [Short rule name]
Tags: [...]
Applies when: [...]
Rule: [...]
Avoid: [...]
Actions: [Accept all] [Accept 1 only] [Accept 2 only] [Edit before saving] [Reject all]
  1. Apply the user's decision. If accepted, run admission checks and write.
  2. If rejected, do not ask again for this build.

This ensures memory is populated even when users forget to ask for Quality Memory Review.

Post-Review User Validation Handoff

After implementation review is written (for PASSED verdicts without fix tasks), do not treat the model review as the final validation of product behavior. The final build response must explicitly hand the implementation to the user for real testing and invite a debug loop.

Use this shape:

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

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

Source

Popularity

7-day trend score
0

Refreshed 24 Nov 2026, 4 days ago.

Extension points

  • hookPre/post lifecycle hooks

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/robisson/build-like-amazon-agent-skills/implementation-memory/badge)](https://verified-skill.com/skills/robisson/build-like-amazon-agent-skills/implementation-memory)

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