update-skill-learnings
Extract a validated learning about skill design or skill quality from the current session and add it to the central skill learnings file. User-only maintenance workflow for updating durable skill-authoring guidance after a session reveals a pattern worth preserving.
What this skill does
<EXTREMELY-IMPORTANT> This skill updates durable skill-authoring guidance and must stay disciplined. Non-negotiable rules: 1. Only record learnings about skill structure, skill content, anti-patterns, or one skill's design. 2. Reject application-code and agent-behavior learnings and route them to the right maintenance workflow. 3. Update exactly one canonical learnings file instead of creating parallel copies. 4. Check for duplicates or near-duplicates before writing. 5. Get explicit user confirmation before modifying the learnings file. </EXTREMELY-IMPORTANT> # Update Skill Learnings ## Inputs - `$request`: Optional learning candidate, skill name, category hint, or reminder about what the session revealed ## Goal Add one validated skill-authoring learning to the central learnings store by: - confirming the learning belongs in skill memory - choosing the right category - updating the canonical learnings file - preserving file structure and avoiding duplicates - reporting exactly what changed ## Step 0: Confirm the learning belongs here This skill is only for persistent guidance about creating, reviewing, or improving skills. Valid examples: - structural patterns for better skills - content patterns that improve clarity or usability - anti-patterns that repeatedly cause confusion - one skill's specific design rule that should be remembered centrally Invalid examples: - application implementation rules - agent-behavior rules for the main Claude conversation - direct requests to rewrite a skill right now - one-off notes that do not deserve durable memory Load `references/learning-scope.md` for routing, category placement, and failure modes. If the learning does not belong in the skill learnings system, stop and say where it should go instead. **Success criteria**: The learning clearly belongs in persistent skill-authoring guidance. ## Step 1: Extract one concrete learning Review the session and identify the smallest useful rule. Rules: - prefer one precise learning over a long list of vague observations - write it in imperative mood - tie it to a concrete pattern, anti-pattern, or skill-specific rule - avoid documenting advice that is already implied by stronger existing guidance Good shape: - "Keep heavy checklists in references instead of inline in `SKILL.md`." - "Mark durable-memory maintenance skills as `disable-model-invocation: true`." Bad shape: - "Skills should be better." - "Use clearer instructions." **Success criteria**: You have a single actionable learning candidate with a clear rationale. ## Step 2: Resolve the canonical learnings file and choose placement Locate the canonical central learnings file. Path policy: - if the repo already has a single existing skill learnings file, use it - if both `.agents` and `.claude` variants exist, update the canonical authoring surface and do not create a second source of truth - in this canonical `.agents` tree, prefer `.agents/learnings/skill-learnings.md` - if the repo still uses `.claude/learnings/skill-learnings.md` as its only learnings store, use that instead Choose the correct category: - `Structural Patterns` - `Content Patterns` - `Anti-Patterns` - `Skill-Specific Learnings` Before writing: - search for duplicates or near-duplicates - merge with existing wording if a similar rule already exists - keep the new instruction small and local Load: - `references/learning-scope.md` for routing, categories, and duplicate handling - `references/skill-learnings-template.md` only if the canonical learnings file does not exist yet **Success criteria**: The target file and section are known and duplication risk has been checked. ## Step 3: Confirm with the user Before editing the learnings file, present: - category - final wording - target file - reason this learning was extracted Use `AskUserQuestion` if confirmation or wording refinement is needed. Do not write until the user explicitly approves the learning. **Success criteria**: The user has approved the learning, placement, and target file. ## Step 4: Update the learnings file Apply the minimal correct edit: - preserve file structure - insert the learning in the chosen section - avoid deleting unrelated content - update the "Last updated" marker only if the file already uses one Rules: - if the canonical learnings file is missing, create it from `references/skill-learnings-template.md` - if the section is missing, create the smallest compatible section rather than restructuring the whole file - keep formatting consistent with the existing document - do not sync or rewrite actual skill files as part of this workflow **Success criteria**: The approved learning is present in the right section of the canonical learnings file. ## Step 5: Verify and report Verify: - the learning was added exactly once - the category placement is correct - the file structure still makes sense - the update did not drift into application-code or agent-behavior territory Report: - category - target file - section path - final wording - whether the file was created or updated **Success criteria**: The user can see exactly what durable skill-authoring memory changed. ## Guardrails - Do not let the model invoke this skill proactively; it mutates durable learnings. - Do not add `context: fork`; this workflow edits the active repository. - Do not add `paths:`; this is a generic maintenance skill. - Do not keep routing matrices, quality scorecards, or long failure catalogs inline in `SKILL.md`. - Do not add a learning without explicit user approval. - Do not create both `.agents/learnings/skill-learnings.md` and `.claude/learnings/skill-learnings.md`. - Do not rewrite actual skill files as part of this learnings update. ## When To Load References - `references/learning-scope.md` Use for deciding whether the learning belongs in skill memory, choosing the right category, handling duplicates, and checking common failure modes. - `references/skill-learnings-template.md` Use only when the canonical central learnings file is missing and a minimal compatible file must be created. ## Output Contract Report: 1. whether the learning was accepted or redirected elsewhere 2. the chosen category and target file 3. the final approved wording 4. whether the learnings file was created or updated 5. any duplicate merge or canonical-path decisions
Related in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.