Capture learnings, patterns, or workflows from the current conversation into a new or existing skill...
Extract knowledge, patterns, and workflows from the current conversation and persist them as a reusable skill.
Review the conversation for:
Summarize what you plan to capture and confirm with the user before proceeding.
If the user already specified a skill or the destination is obvious from context, proceed. Otherwise, clarify:
~/.cursor/skills/ and .cursor/skills/)~/.cursor/skills/) — available across all projects.cursor/skills/) — shared with the repositoryWhen capturing into a new skill:
When updating an existing skill:
Transform a messy conversation into clean, reusable instructions.
Do:
Don't:
If a conversation involved debugging a tricky deployment issue, the captured skill might look like:
---
name: debug-k8s-deployments
description: Debug Kubernetes deployment failures including CrashLoopBackOff, image pull errors, and resource limits. Use when pods are failing to start or deployments are stuck.
---
# Debug K8s Deployments
## Diagnostic Steps
1. Check pod status: `kubectl get pods -n <namespace> | grep -v Running`
2. Get events: `kubectl describe pod <pod> -n <namespace>`
3. Check logs: `kubectl logs <pod> -n <namespace> --previous`
## Common Issues
### CrashLoopBackOff
- Check if the entrypoint command exists in the container
- Verify environment variables are set (especially secrets)
- Look for OOMKilled in `describe` output → increase memory limits
### ImagePullBackOff
- Verify image tag exists: `docker manifest inspect <image>`
- Check imagePullSecrets are configured for private registries
Note how this captures the diagnostic sequence and common solutions without any conversation artifacts.
Conversation had multiple topics: Ask which specific learning to capture, or suggest creating separate skills for distinct topics.
Learning is too small for a skill: Use a rule instead (.cursor/rules/, .claude/rules/, etc.). Heuristic: single behavioral guideline or coding convention → rule. Multi-step workflow or needs bundled resources → skill.
Existing skill needs major rewrite: Confirm with the user whether to restructure the existing skill or create a new one that supersedes it.