propose-project-learning
Propose additions to project CLAUDE.md based on session learnings
What this skill does
# Propose Project Learning
Retrospect on the current session and propose learnings for the project's CLAUDE.md.
## Purpose
After working on a project, identify patterns, conventions, preferences, and rules that should be documented in the project's CLAUDE.md to improve future sessions.
## Usage
```bash
/propose-project-learning # Analyze and propose learnings
/propose-project-learning --save # Save proposal to ~/.claude/learnings/
```
## What This Captures
| Category | Examples |
|----------|----------|
| **Code conventions** | Naming patterns, file organization, import ordering |
| **Architecture decisions** | Preferred patterns, avoided anti-patterns |
| **Tool preferences** | Test frameworks, linters, formatters |
| **Project-specific rules** | Business logic constraints, domain terminology |
| **Workflow preferences** | Commit style, PR conventions, review process |
## Execution Instructions
When the user runs this command:
### 1. Analyze Current Session
Review the conversation history for:
- **Corrections made** - When the user corrected Claude's approach
- **Explicit preferences** - "Always use X", "Never do Y", "Prefer Z"
- **Repeated patterns** - Consistent choices across multiple files
- **Project conventions** - Naming, structure, organization patterns
- **Tool/framework specifics** - Project-specific configurations or usage
### 2. Check Existing CLAUDE.md
Read the project's CLAUDE.md (if exists) to avoid duplicates:
```bash
cat CLAUDE.md 2>/dev/null || echo "No CLAUDE.md found"
```
Also check for CLAUDE.local.md:
```bash
cat CLAUDE.local.md 2>/dev/null
```
### 3. Generate Proposal
Format the proposal as:
```markdown
# Proposed Learnings for CLAUDE.md
Based on this session, consider adding these to your project's CLAUDE.md:
## Code Conventions
- Use `snake_case` for all Python function names
- Prefer dataclasses over plain dicts for structured data
## Architecture
- All API endpoints go through the service layer, never direct DB access
- Use repository pattern for database operations
## Testing
- Use pytest fixtures, not setUp/tearDown methods
- Mock external services at the client level, not individual methods
## Project-Specific
- The `core` module should have no dependencies on other app modules
- All dates are stored as UTC, converted to local time only in templates
---
To add these to your CLAUDE.md:
1. Review each suggestion
2. Copy relevant items to CLAUDE.md
3. Adjust wording to match your style
```
### 4. Handle --save Flag
If `--save` is provided:
1. **Ensure directory exists**:
```bash
mkdir -p ~/.claude/learnings/projects/{project-slug}/proposals/
```
2. **Save proposal** with timestamp:
```bash
# File: ~/.claude/learnings/projects/{project-slug}/proposals/learning-{timestamp}.md
```
3. **Confirm**:
```
Proposal saved to ~/.claude/learnings/projects/{project-slug}/proposals/learning-2026-01-09.md
Review later with: cat ~/.claude/learnings/projects/{project-slug}/proposals/
```
### 5. Offer Next Steps
```
Next steps:
[1] Add to CLAUDE.md now (I'll help edit)
[2] Save for later (/propose-project-learning --save)
[3] Dismiss
Select option:
```
## Quality Criteria
Only propose learnings that are:
| Criterion | Description |
|-----------|-------------|
| **Specific** | Concrete rules, not vague guidelines |
| **Actionable** | Claude can follow them in future sessions |
| **Project-relevant** | Not general best practices already known |
| **Validated** | Based on actual session behavior, not assumptions |
## Examples
### Good Learnings
```markdown
- API responses use `{"data": ..., "error": null}` wrapper format
- All Django models inherit from `BaseModel` in `core.models`
- Use `ruff` for linting, not `flake8`
```
### Poor Learnings (Too Generic)
```markdown
- Write clean code
- Follow PEP 8
- Use meaningful variable names
```
## Notes
- This command analyzes the current session context
- Works best after substantial implementation work
- Complements `/propose-forge-improvement` which targets Product Forge itself
- Learnings are project-specific, not global
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.