project-learnings
Captures project-specific patterns and anti-patterns into the project's CLAUDE.md. Loaded by other skills (bug-killer, feature-dev, etc.) when they discover project-specific knowledge worth encoding for future sessions.
What this skill does
# Project Learnings Capture project-specific patterns and anti-patterns into the project's CLAUDE.md. This creates a self-improving feedback loop where discoveries from debugging, development, and review make future Claude sessions smarter. **CRITICAL:** Only project-specific knowledge qualifies. Generic programming advice does not belong in CLAUDE.md. --- ## Step 1: Evaluate Discovery Determine if the finding qualifies as project-specific. The finding must pass at least ONE of these criteria: | Criteria | Example That Qualifies | Example That Doesn't | |----------|------------------------|----------------------| | Would a developer unfamiliar with this project likely hit this issue? | "The `processOrder()` function expects amounts in cents, not dollars" | "Always validate function inputs" | | Is this pattern specific to this codebase's architecture, APIs, or conventions? | "The `UserProfile` type has an optional `metadata` field that is always present at runtime" | "Use TypeScript strict mode" | | Is it something Claude's training data wouldn't cover? | "Never call `db.query()` without the `timeout` option — the default is infinite" | "Use async/await instead of callbacks" | **If NO to all criteria → STOP.** Do not add generic programming knowledge to CLAUDE.md. Return to the calling skill and report that no project-specific learning was found. **If YES to any → proceed to Step 2.** --- ## Step 2: Read Existing CLAUDE.md 1. **Find the project's CLAUDE.md:** - Check the repository root first - If not found, check if there's a project-level `.claude/` directory 2. **Parse existing content:** - Understand the existing structure, headings, and conventions - Look for sections where this learning would fit (e.g., "Known Gotchas", "Bug Patterns", "Conventions", "Known Challenges") - Check for duplicate or similar entries already present 3. **If a similar entry already exists → STOP.** Report to the calling skill that this knowledge is already captured. Do not create duplicates. 4. **Identify placement:** - If an appropriate section exists, plan to add the entry there - If no appropriate section exists, plan to propose a new section (e.g., `## Known Gotchas` or `## Project-Specific Patterns`) - New sections should be placed after the main documentation sections but before appendices or settings --- ## Step 3: Format the Learning Write a concise, actionable instruction following these rules: **Format:** - Use imperative form: "Always validate X before calling Y" - Include the WHY: "...because the API returns dates as strings, not Date objects" - Keep it to 1-3 lines - Follow the existing CLAUDE.md style and conventions **Templates:** For bug patterns: ``` - **[Area/Component]**: [What to do/avoid] — [why, with specific details] ``` For API gotchas: ``` - `functionName()` in `path/to/file`: [What's surprising about it] — [consequence if ignored] ``` For architectural constraints: ``` - [Constraint description] — [why it exists and what breaks if violated] ``` **Examples of well-formatted learnings:** - **Order processing**: Always multiply amounts by 100 before passing to `processOrder()` — it expects cents, not dollars - `db.query()` in `src/database.ts`: Always pass the `timeout` option — the default is infinite and has caused production hangs (30 second timeout recommended) - Never import from `internal/` directories in `src/api/` — the build system treats these as separate compilation units and circular dependencies will silently break HMR --- ## Step 4: Confirm with User Present the proposed addition via AskUserQuestion: Show: 1. The exact text to be added 2. Where it will be placed in CLAUDE.md (section name, after which line/entry) 3. Why this qualifies as project-specific Options: - **"Add this"** — Write the entry as proposed - **"Edit before adding"** — User provides modified text, then write that instead - **"Skip"** — Do not add anything, return to calling skill --- ## Step 5: Write Update If the user confirmed (or provided edited text): 1. Use the Edit tool to add the entry to CLAUDE.md at the identified location 2. If a new section was needed, create the section heading first 3. Verify the edit was applied correctly by reading the modified area 4. Report success to the calling skill with a summary of what was added If the user chose "Skip": - Report to the calling skill that the learning was declined - Do not modify any files
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.