From pluggedin
Capture a hard-won solution into long-term memory after trial-and-error resolution. Use when a problem was solved after ≥1 failed attempts — records what failed, what worked, and why.
How this skill is triggered — by the user, by Claude, or both
Slash command
/pluggedin:memory-capture-solutionThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> **SECURITY — Two-Layer Defence (PCI-DSS 4.0 · ISO/IEC 27001:2022 · GDPR · SOC 2)**
SECURITY — Two-Layer Defence (PCI-DSS 4.0 · ISO/IEC 27001:2022 · GDPR · SOC 2)
Layer 1 (automatic): The hook script pipes all content through
pci-scrub.pybefore sending to the API. Catches: emails, API keys (OpenAI/Anthropic/AWS/GitHub/…), IPv4/IPv6, credit card numbers, national IDs (US SSN, UK NI, EU VAT, Aadhaar, …), connection string credentials, home paths, phone numbers.Layer 2 (YOU): Regex cannot catch everything. Before calling any memory tool, apply semantic judgment. Do NOT record:
- Person names, usernames, employee IDs → replace with
[PERSON]- Company / customer names →
[COMPANY]- Passwords, MFA codes, session tokens, cookies →
[REDACTED]- Health / medical data (HIPAA PHI) →
[REDACTED]- Financial account numbers, balances →
[REDACTED]- Precise location data (GPS, home address) →
[ADDRESS]- Anything business-confidential (pricing, contracts) →
[REDACTED]When in doubt, leave it out. Over-redaction is always preferable to a compliance violation.
Capture a hard-won solution into long-term memory so it is never re-discovered.
Do NOT use for trivial fixes that were obvious on first attempt.
Structure the observation as follows (fill in all sections):
PROBLEM: <1-2 sentences describing the symptom / error>
FAILED APPROACHES:
- <approach 1> → why it failed
- <approach 2> → why it failed
SOLUTION: <exact steps / code / config that fixed it>
WHY IT WORKS: <root cause explanation>
CONTEXT: <framework version, env, any relevant constraints>
pluggedin_memory_observe with:
sessionUuid: current session UUID (from session state)observationType: success_patterncontent: the structured text aboveoutcome: "success"metadata: {"ring": "longterm", "tags": ["solution", "<domain>"]}This skill fires automatically when:
error_pattern observation was recorded in this session ANDsuccess_pattern resolves the same tool/domainPROBLEM: Next.js 15 middleware throws "Cannot use import statement" at runtime
FAILED APPROACHES:
- Added "type": "module" to package.json → broke API routes
- Used require() syntax → TypeScript compilation error
SOLUTION: Use next.config.js `experimental.serverComponentsExternalPackages`
to exclude the problematic package from middleware bundling.
WHY IT WORKS: Next.js middleware runs in Edge runtime which has different
module resolution than Node.js. Excluding packages forces CommonJS fallback.
CONTEXT: Next.js 15.1.0, package: @some/[email protected]
Skip this skill if:
ls, checked a file, viewed a README)<private> block wraps the relevant content — respect user opt-outnpx claudepluginhub veriteknik/pluggedin-plugin --plugin pluggedinCaptures solved problems as structured JSONL knowledge entries for fast recall in future sessions. Automatically activates after bug fixes or when a solution should be preserved.
Capture knowledge — solutions, context docs, learnings, and principles. Use after fixing non-trivial bugs, creating context for AI, or discovering patterns worth preserving. Triggers: compound, document solution, capture fix, save solution, knowledge compound, document this, save this fix, context, create context, update context, build context, learn, save learning, remember this.
Stores important decisions, patterns, bug fixes, and lessons into Cortex persistent memory. Use after resolving bugs, making architecture choices, or when the user asks to remember something.