/syarif-laravel-ai-skills:memory-managementfrom syarif-laravel-ai-skills
Manages durable project knowledge across Laravel sessions. Recalls, checkpoints, and audits prior context when it materially affects the current task.
Ships in syarif-laravel-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Use this skill as conditional context infrastructure when a Laravel task depends on prior context, project history, or known conventions. For self-contained local tasks, skip memory entirely.
The using-laravel-standards entrypoint decides this automatically before broad code exploration. Do not wait for explicit phrases like "remember" or "use memory-management".
Run memory preflight only when at least one is true:
For self-contained local tasks, skip memory entirely.
Prefer the active MCP server when the host exposes it:
MCP server: syarif-memory-management
Tool: memory_auto
Root: %USERPROFILE%\.ai-memory on Windows unless AI_MEMORY_ROOT overrides it
Installed skill path: %USERPROFILE%\.agents\skills\memory-management
If MCP is unavailable and Node/file access exists, fall back to the local CLI:
node <skill-dir>/scripts/memory.mjs auto --cwd <project-root> --query "<task intent>" --limit 5
This returns an explicit decision: RUN or decision: SKIP. On SKIP, continue normal work without memory. On RUN, use only compact relevant memory. Do not load every memory file by default. Do not fail the task merely because memory infrastructure is unavailable.
Memory is outside specialist routing. It does not consume the primary specialist slot, the supporting specialist slot, or the 0-2 specialist cap.
Preflight is retrieval-only. It must not create durable memory entries; writes happen through remember or checkpoint after safety checks.
Default recall budget:
Stop retrieving when marginal relevance is lower than token cost.
When memory-graph.json exists, query the graph before opening Markdown evidence:
node <skill-dir>/scripts/memory.mjs graph query "<task intent>" --limit 5
node <skill-dir>/scripts/memory.mjs graph path <from-id> <to-id>
node <skill-dir>/scripts/memory.mjs graph explain <memory-id>
Use graph edges with confidence tags:
EXTRACTED = explicit in sourceINFERRED = derived by reasoningAMBIGUOUS = weak or conflicting evidenceMemory is not forever. Every memory entry should carry a lifecycle:
CURRENT - actively valid and aligned with current codebase.STALE - likely outdated; verify before trusting.SUPERSEDED - replaced by newer memory or current code.TEMPORARY - valid only for the current session or short horizon.When the codebase or architecture changes, mark older project memories as STALE or SUPERSEDED rather than deleting them. Prefer current code over old memory.
When memory and current evidence conflict, trust this order:
This prevents memory poisoning during implementation.
When memory conflicts with current evidence, mark the memory mentally as stale or superseded until verified. Do not silently implement old memory over current code/config.
Do not checkpoint everything. Store only reusable durable knowledge:
Do not store:
Prefer storing the decision, not just the fact.
Good:
Bad:
Decision memory helps the next agent understand why, not just what.
Run checkpoint after meaningful work only when durable reusable project knowledge changed:
node <skill-dir>/scripts/memory.mjs checkpoint --project <alias> --summary "<handoff summary>" --pending "<open questions>" --files "app/Actions/Foo.php,tests/Feature/FooTest.php"
Memory checkpoint is never a requirement for task completion. It occurs only when durable reusable knowledge was produced. Temporary debugging, transient terminal failures, trivial line edits, one-time grep results, and raw logs should not be checkpointed.
Before writing memory, pass data through:
raw input -> secret detection -> personal-data classification -> scope classification -> anonymization -> retention policy -> encryption at rest -> memory storage
Never store secrets, raw emails, phone numbers, .env contents, or customer personal data.
references/graph-memory.mdreferences/hermes-orchestrator-profile.mdWhat SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (soden46/syarif-laravel-ai-skills) — no native marketplace selected
npx claudepluginhub p/soden46-syarif-laravel-ai-skills72 skills in this plugin
/actions-and-servicesUse Actions and Services as deliberate Laravel application boundaries for use cases, integrations, and reusable workflows./ai-sdkBuild AI features with the first-party Laravel AI SDK (Laravel 13+); agents, embeddings, images, audio, and tool calling with provider-agnostic APIs/api-resources-and-paginationLaravel guidance to use API Resources with pagination and conditional fields; keep response shapes stable and cache-friendly