From agent-capability-standard
Write stable learnings, decisions, and patterns to durable storage like CLAUDE.md or knowledge files. Use when saving project decisions, recording patterns, or updating long-term memory.
npx claudepluginhub synaptiai/synapti-marketplace --plugin agent-capability-standardThis skill is limited to using the following tools:
Execute **persist** to write stable learnings, decisions, and patterns to durable storage for future recall and consistency.
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 persist to write stable learnings, decisions, and patterns to durable storage for future recall and consistency.
Success criteria:
Compatible schemas:
schemas/output_schema.yaml| Parameter | Required | Type | Description |
|---|---|---|---|
content | Yes | string|object | What to persist: decision, pattern, fact, or structured knowledge |
destination | No | string | Where to write: CLAUDE.md, file path, or auto (determine best location). Default: CLAUDE.md |
section | No | string | Section within destination to write to (e.g., "Decisions", "Patterns", "Facts") |
content_type | No | enum | Type of content: decision, pattern, fact, context. Default: auto-detect |
merge_strategy | No | enum | How to handle existing content: append, replace, merge. Default: append |
Validate content: Ensure content is appropriate for persistence
Determine destination: Select where to write
CLAUDE.md: Project-level decisions and patternsauto: Choose based on content type and scopeRead existing content: Load current state of destination
Check for duplicates/conflicts: Compare new vs existing
Format new content: Structure for persistence
Apply merge strategy:
append: Add to end of sectionreplace: Overwrite matching existing entrymerge: Intelligently combine with existingWrite to destination: Execute the write operation
Verify write: Confirm content was persisted correctly
Return a structured object:
persisted:
content_type: decision | pattern | fact | context
content_id: string # Unique identifier for this persisted item
destination: string # File path where content was written
section: string | null # Section within file
timestamp: string # ISO timestamp of persistence
write_operation:
strategy: append | replace | merge
bytes_written: integer
lines_added: integer
lines_modified: integer
verification:
write_confirmed: boolean
content_present: boolean
structure_valid: boolean
metadata:
source: string # Where this knowledge came from
related_entries: array[string] # IDs of related persisted items
expiry: string | null # When this knowledge should be reviewed
duplicates_found:
- existing_id: string
similarity: number
action_taken: skipped | updated | merged
confidence: number # 0.0-1.0 based on write verification
evidence_anchors: array[string] # References to verification
assumptions: array[string] # Explicit assumptions
| Field | Type | Description |
|---|---|---|
persisted.content_id | string | Unique ID for retrieval with recall |
persisted.destination | string | File path of storage location |
write_operation | object | Details of the write performed |
verification.write_confirmed | boolean | Whether write was verified |
duplicates_found | array | Any duplicate/similar entries detected |
confidence | number | 1.0 if verified; lower if issues |
Input:
content:
decision: "Use PostgreSQL for all persistent storage"
rationale: "Strong ACID guarantees, mature ecosystem, team familiarity"
context: "Evaluated PostgreSQL, MySQL, and MongoDB for new backend service"
constraints:
- "Must support complex queries"
- "Team has PostgreSQL experience"
destination: CLAUDE.md
section: "Architecture Decisions"
content_type: decision
Output:
persisted:
content_type: decision
content_id: "decision_db_20240116"
destination: "CLAUDE.md"
section: "Architecture Decisions"
timestamp: "2024-01-16T10:00:00Z"
write_operation:
strategy: append
bytes_written: 256
lines_added: 8
lines_modified: 0
verification:
write_confirmed: true
content_present: true
structure_valid: true
metadata:
source: "conversation:conv_abc123"
related_entries: []
expiry: null
duplicates_found: []
confidence: 1.0
evidence_anchors:
- "CLAUDE.md:45-52"
- "verification:re-read:success"
assumptions:
- "CLAUDE.md is the correct location for architecture decisions"
- "No conflicting database decisions exist"
What was written to CLAUDE.md:
### Architecture Decisions
#### Database: PostgreSQL [2024-01-16]
**Decision:** Use PostgreSQL for all persistent storage
**Rationale:** Strong ACID guarantees, mature ecosystem, team familiarity
**Context:** Evaluated PostgreSQL, MySQL, and MongoDB for new backend service
**Constraints:**
- Must support complex queries
- Team has PostgreSQL experience
Input:
content:
pattern: "Wrap external API errors with domain-specific error types"
rationale: "Prevents leaking implementation details"
destination: CLAUDE.md
section: "Patterns"
content_type: pattern
Output:
persisted:
content_type: pattern
content_id: null
destination: "CLAUDE.md"
section: "Patterns"
timestamp: "2024-01-16T11:00:00Z"
write_operation:
strategy: append
bytes_written: 0
lines_added: 0
lines_modified: 0
verification:
write_confirmed: false
content_present: true
structure_valid: true
metadata:
source: "conversation:conv_def456"
related_entries: ["pattern_err_001"]
expiry: null
duplicates_found:
- existing_id: "pattern_err_001"
similarity: 0.95
action_taken: skipped
confidence: 0.9
evidence_anchors:
- "CLAUDE.md:134"
assumptions:
- "High similarity indicates same pattern"
- "Skipping to avoid duplicate"
next_actions:
- "Consider updating existing pattern if new rationale is better"
Input:
content:
fact: "API rate limit is 1000 requests per minute"
source: "API documentation v2.3"
destination: "docs/api-notes.md"
section: "Rate Limits"
content_type: fact
merge_strategy: merge
Output:
persisted:
content_type: fact
content_id: "fact_rate_limit_20240116"
destination: "docs/api-notes.md"
section: "Rate Limits"
timestamp: "2024-01-16T12:00:00Z"
write_operation:
strategy: merge
bytes_written: 64
lines_added: 1
lines_modified: 1
verification:
write_confirmed: true
content_present: true
structure_valid: true
metadata:
source: "API documentation v2.3"
related_entries: ["fact_rate_limit_20231201"]
expiry: "2024-07-16"
duplicates_found:
- existing_id: "fact_rate_limit_20231201"
similarity: 0.8
action_taken: merged
confidence: 1.0
evidence_anchors:
- "docs/api-notes.md:23"
- "source:API documentation v2.3"
assumptions:
- "New rate limit supersedes previous"
- "6-month expiry for review"
Verification tools: Read (to verify write), Edit (to perform write)
mutation: truerequires_checkpoint: falserequires_approval: falserisk: mediumCapability-specific rules:
Commonly follows:
decide - Persist decisions for future referencediscover - Save discovered patterns or relationshipsrecall - Update existing memories with new contextsummarize - Save summary as durable knowledgeCommonly precedes:
recall - Persisted content becomes available for recallverify - Verify persisted content is correctaudit - Record what was persisted for complianceAnti-patterns:
Workflow references:
recall for the remember/recall cycle