Update CLAUDE.md with learnings, preferences, or project context. Use when user says "update claude.md", "add to claude.md", or wants to persist something.
Update CLAUDE.md so future sessions and subagents automatically inherit learnings and context.
Explicit triggers:
/claude-md <content> — with inline content/claude-md — prompts for what to add/shipkit-claude-mdNatural language triggers:
Important: Never auto-suggest. Only act when user explicitly requests persistence.
Required:
CLAUDE.md exists (installed by Shipkit)## Working Preferences and ## Project Learnings sectionsOptional:
CLAUDE.md files for folder-specific learningsImportant distinction:
CLAUDE.md → User-editable (preferences, learnings) — THIS skill edits this file.claude/rules/shipkit.md → Framework-managed (skills reference, core rules) — DO NOT editIf invoked with content:
/teach use date-fns instead of moment.js
→ Learning = "use date-fns instead of moment.js"
If invoked without content:
/teach
→ Ask: "What would you like me to remember?"
| Learning About... | Type | Target Section |
|-------------------|------|----------------|
| How Claude behaves | Style | ## Working Preferences |
| Code patterns/libraries | Technical | ## Project Learnings |
Examples:
Check for existing CLAUDE.md files:
Glob("**/CLAUDE.md")
Present options:
Where should this apply?
[1] Project-wide (root CLAUDE.md)
[2] frontend/ (frontend/CLAUDE.md)
[3] Other path: ___
If user picks a folder without CLAUDE.md, offer to create one.
Read(<path>/CLAUDE.md)
Find the target section:
## Working Preferences## Project LearningsScan existing learnings in the section. If similar exists:
Similar learning already exists:
- "Prefer date-fns over moment"
[1] Skip (already covered)
[2] Add anyway (more specific)
[3] Replace existing
Add new bullet to the end of the target section.
Before:
## Project Learnings
- Use date-fns instead of moment.js
After:
## Project Learnings
- Use date-fns instead of moment.js
- API responses wrap data in { data: [] }
Added to CLAUDE.md → Project Learnings:
- API responses wrap data in { data: [] }
This will apply to all future sessions.
If folder-specific:
Added to frontend/CLAUDE.md → Project Learnings:
- Use Tailwind instead of CSS modules
This will apply when working in frontend/.
If user wants folder-specific learning but no CLAUDE.md exists:
No CLAUDE.md found in frontend/. Create one?
[1] Yes, create frontend/CLAUDE.md
[2] Add to root CLAUDE.md instead
If yes, create minimal structure:
# Frontend
Frontend-specific context and learnings.
---
## Working Preferences
<!-- Style preferences for frontend work -->
---
## Project Learnings
<!-- Frontend-specific patterns and corrections -->
Then append the learning.
.claude/rules/ — Framework rules are managed by /shipkit-update, not this skillNo special handling needed. User says:
Remove the learning about moment.js
Claude reads CLAUDE.md, finds the line, removes it, confirms.
| Skill | Relationship | |-------|--------------| | Any skill | User may want to persist a learning discovered during any workflow |
| Skill | Relationship | |-------|--------------| | All future sessions | Learnings auto-loaded via CLAUDE.md | | Subagents in subfolders | Folder-specific learnings auto-loaded via lazy loading |
| Skill | Relationship |
|-------|--------------|
| /shipkit-project-context | Reads CLAUDE.md; teach writes to it |
| /shipkit-codebase-index | Different purpose (structure vs. learnings) |
| File | Purpose |
|------|---------|
| CLAUDE.md | Root project instructions (find target section) |
| <folder>/CLAUDE.md | Subfolder instructions (if folder-specific) |
| **/CLAUDE.md | Glob to find existing CLAUDE.md files for scope options |
| File | Action |
|------|--------|
| CLAUDE.md | Append to ## Working Preferences or ## Project Learnings |
| <folder>/CLAUDE.md | Create if needed, append learning |
Write Strategy: APPEND-ONLY to existing sections. Never reorganize or overwrite.
Confirm to user:
No follow-up skill needed — learnings are immediately active for current session and persist to future sessions.
<!-- /SECTION:after-completion -->npx skills add stefan-stepzero/shipkit-claude-md下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer