From agent-capability-standard
Retrieve prior decisions, rationale, and learned patterns from memory to apply consistently. Use when needing context from previous interactions, looking up past decisions, or ensuring consistency with prior reasoning.
npx claudepluginhub synaptiai/synapti-marketplace --plugin agent-capability-standardThis skill is limited to using the following tools:
Execute **recall** to retrieve relevant prior decisions, rationale, and patterns from memory to maintain consistency and learn from past interactions.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Generates original PNG/PDF visual art via design philosophy manifestos for posters, graphics, and static designs on user request.
Execute recall to retrieve relevant prior decisions, rationale, and patterns from memory to maintain consistency and learn from past interactions.
Success criteria:
Compatible schemas:
schemas/output_schema.yaml| Parameter | Required | Type | Description |
|---|---|---|---|
query | Yes | string | What to recall: topic, decision type, or pattern name |
memory_scope | No | enum | Where to search: session (current), project (CLAUDE.md), global (all). Default: project |
time_range | No | object | Filter by time: { after: "2024-01-01", before: "2024-01-31" } |
include_rationale | No | boolean | Whether to include decision rationale. Default: true |
similarity_threshold | No | number | Minimum relevance score (0.0-1.0). Default: 0.5 |
Parse query intent: Understand what is being recalled
Scope memory search: Identify which memory stores to query
session: Current conversation contextproject: CLAUDE.md, knowledge files, local docsglobal: All accessible memory storesSearch memory stores: Query relevant sources
Rank by relevance: Score and filter results
Extract rationale: For each recalled item, capture reasoning
Check consistency: Verify recalled items are internally consistent
Format output: Structure results according to output contract
Return a structured object:
recalled:
- id: string # Unique identifier for this memory
type: decision | pattern | fact | context
content: string # The recalled information
rationale: string | null # Why this decision was made
source: string # Where this was found (CLAUDE.md:42, session, etc.)
timestamp: string | null # When originally recorded
relevance_score: number # 0.0-1.0 match to query
context:
project: string | null
conversation_id: string | null
original_query: string | null
query_interpretation: string # How the query was understood
search_scope:
stores_searched: array[string]
time_range_applied: object | null
total_matches: integer # Total before filtering
returned_matches: integer # After relevance filtering
consistency_check:
consistent: boolean
contradictions: array[object] | null
confidence: number # 0.0-1.0 based on match quality
evidence_anchors: array[string] # Sources for recalled items
assumptions: array[string] # Assumptions about memory validity
| Field | Type | Description |
|---|---|---|
recalled | array[object] | List of retrieved memories |
recalled[].type | enum | Kind of memory: decision, pattern, fact, or context |
recalled[].rationale | string | Explanation for why decision was made |
recalled[].relevance_score | number | How well this matches the query |
consistency_check | object | Whether recalled items contradict each other |
confidence | number | Overall confidence in recall quality |
Input:
query: "error handling approach"
memory_scope: project
include_rationale: true
Output:
recalled:
- id: "decision_err_001"
type: decision
content: "Use Result<T, Error> pattern for all fallible operations; avoid exceptions"
rationale: "Explicit error handling improves debuggability and makes failure paths visible in types"
source: "CLAUDE.md:127"
timestamp: "2024-01-10T09:15:00Z"
relevance_score: 0.95
context:
project: "api-service"
conversation_id: "conv_abc123"
original_query: "How should we handle errors in this codebase?"
- id: "pattern_err_001"
type: pattern
content: "Wrap external API errors with domain-specific error types before propagating"
rationale: "Prevents leaking implementation details; enables consistent error messages"
source: "CLAUDE.md:134"
timestamp: "2024-01-10T09:20:00Z"
relevance_score: 0.88
context:
project: "api-service"
conversation_id: "conv_abc123"
original_query: null
query_interpretation: "Looking for decisions and patterns related to error handling in the codebase"
search_scope:
stores_searched: ["CLAUDE.md", "docs/architecture.md"]
time_range_applied: null
total_matches: 5
returned_matches: 2
consistency_check:
consistent: true
contradictions: null
confidence: 0.92
evidence_anchors:
- "CLAUDE.md:127"
- "CLAUDE.md:134"
assumptions:
- "CLAUDE.md reflects current project decisions"
- "No conflicting decisions recorded elsewhere"
Evidence pattern: Each recalled item traced to specific file:line; rationale extracted from surrounding context.
Input:
query: "user's preferred output format"
memory_scope: session
time_range:
after: "2024-01-16T00:00:00Z"
Output:
recalled:
- id: "ctx_fmt_001"
type: context
content: "User prefers YAML output over JSON for configuration files"
rationale: "User stated 'I find YAML more readable' in earlier message"
source: "session:message_42"
timestamp: "2024-01-16T10:30:00Z"
relevance_score: 0.97
context:
project: null
conversation_id: "current_session"
original_query: "Can you output this as YAML instead?"
query_interpretation: "Looking for user preferences about output formatting from current session"
search_scope:
stores_searched: ["session"]
time_range_applied:
after: "2024-01-16T00:00:00Z"
before: null
total_matches: 1
returned_matches: 1
consistency_check:
consistent: true
contradictions: null
confidence: 0.97
evidence_anchors:
- "session:message_42"
assumptions:
- "User preference still valid within session"
- "No subsequent preference change"
Input:
query: "database choice"
memory_scope: project
include_rationale: true
Output:
recalled:
- id: "decision_db_001"
type: decision
content: "Use PostgreSQL for all persistent storage"
rationale: "Strong ACID guarantees, mature ecosystem"
source: "CLAUDE.md:45"
timestamp: "2024-01-05T14:00:00Z"
relevance_score: 0.94
context:
project: "backend-service"
conversation_id: "conv_xyz789"
original_query: "Which database should we use?"
- id: "decision_db_002"
type: decision
content: "Use SQLite for local development and testing"
rationale: "Faster setup, no external dependencies"
source: "docs/dev-setup.md:23"
timestamp: "2024-01-12T11:30:00Z"
relevance_score: 0.85
context:
project: "backend-service"
conversation_id: "conv_def456"
original_query: "How to speed up local dev?"
query_interpretation: "Looking for decisions about database selection"
search_scope:
stores_searched: ["CLAUDE.md", "docs/"]
time_range_applied: null
total_matches: 2
returned_matches: 2
consistency_check:
consistent: false
contradictions:
- items: ["decision_db_001", "decision_db_002"]
attribute: "database"
resolution_hint: "Different contexts: production vs development"
confidence: 0.75
evidence_anchors:
- "CLAUDE.md:45"
- "docs/dev-setup.md:23"
assumptions:
- "Both decisions are currently valid"
- "Context difference (prod vs dev) resolves contradiction"
next_actions:
- "Clarify if query refers to production or development"
- "Document environment-specific database strategy"
Verification tools: Read (to validate memory file contents), Grep (to search across memory stores)
mutation: falserequires_checkpoint: falserequires_approval: falserisk: lowCapability-specific rules:
Commonly follows:
receive - After receiving a request, recall relevant contextsearch - Search results may trigger memory lookup for similar past queriesCommonly precedes:
decide - Recalled decisions inform new decision-makingplan - Past patterns guide new plan creationexplain - Recalled rationale used to explain current approachpersist - New decisions should be consistent with recalled onesAnti-patterns:
Workflow references:
persist for the remember/recall cycle