skill-creation
Create, improve, and manage Droid skills. Use when the user wants to: - Create new skills from scratch or from session learnings - Improve existing skills based on user preferences - Analyze sessions to identify patterns worth codifying - Understand best practices for agentic skill design This is a meta-skill for self-improvement and continuous learning.
What this skill does
# Skill creation This skill helps you build new skills and improve existing ones. Think of it as the skill that teaches you how to learn. ## Why bother with skills? Every time you solve a problem, that knowledge usually dies with the session. Skills fix that. They're how you turn "I figured this out once" into "I know how to do this." A few reasons to extract skills: - You won't have to re-discover the same solution next month - Other sessions (and other users) benefit from what you learned - Complex workflows become repeatable instead of fragile ## The basic format Skills live in a folder with a `SKILL.md` file: ``` .factory/skills/my-skill/ └── SKILL.md ``` The file has YAML frontmatter and markdown content: ```markdown --- name: my-skill version: 1.0.0 description: | What this skill does. When to use it. --- # My skill Instructions go here. ``` The `description` matters a lot. It's how the agent decides whether to load your skill for a given task. Be specific about the problems it solves. ## When to create a skill Not everything deserves to be a skill. Skills are for complex or long workflows that someone might need to repeat or share. If it's a simple one-off task, a skill is overkill. The right level of specificity matters. A skill for "debugging in a codebase" is useful if there's a lot of common failure modes that agents might encounter. A skill for "debugging the login flow" is probably too narrow. Find the balance between general enough to reuse and specific enough to be helpful. Ask yourself: - Did I have to dig around to figure this out? - Would I be annoyed if I had to solve this again from scratch? - Is there something here that isn't obvious from the docs? If yes to any of those, probably worth extracting. If it was straightforward or you just followed a tutorial, skip it. Skills can also encode preferences and best practices. Maybe a user always logs into a specific platform when doing data analysis. Maybe there's a gotcha the team keeps hitting. If you notice you're consistently doing something the user has to correct or adjust, that's worth including. ## Extracting skills from sessions Use the `session-navigation` skill to dig through past sessions and find patterns worth extracting. Look for things that came up multiple times, solutions that took real effort to figure out, or workflows you keep repeating. Once you've found something, generalize it. Replace specific paths with patterns, note the prerequisites, call out assumptions. The skill should work for similar situations, not just the exact case you found. ## Skill design tips When writing the skill, use the `human-writing` skill. Skill docs that read like marketing copy are harder to follow. **Start small.** A skill that does one thing well beats a skill that tries to cover everything. You can always compose multiple skills together. **Include verification.** How do you know the skill worked? Add a check at the end: ```markdown ## Verify it worked Run `npm test` and make sure nothing broke. Check that the new file exists at `src/config.ts`. ``` **Document the failures too.** What doesn't work? What should you avoid? This saves future pain: ```markdown ## What not to do Don't run this on a dirty git working directory. The `--force` flag will overwrite without asking. ``` **Keep it fresh.** Skills rot. Dependencies change, APIs update, better approaches emerge. If a skill stops working or feels outdated, update it or delete it. ## Where skills live | Location | Who sees it | | -------------------- | ------------------------------------------ | | `.factory/skills/` | Everyone on the project (commit it to git) | | `~/.factory/skills/` | Just you, across all projects | Project skills are good for team conventions. Personal skills are good for your own workflows. ## Improving existing skills Signs a skill needs work: - Users ask follow-up questions after it runs - It fails on edge cases that keep coming up - There's a better approach now than when it was written To find patterns: ```bash # Which sessions used this skill? rg -l "skill-name" ~/.factory/sessions/*.jsonl # Where did things go wrong? rg "error|failed|retry" ~/.factory/sessions/*.jsonl -C 3 ``` When you update a skill, bump the version. If it's a breaking change (different output, different inputs), bump the major version. ## Research notes Some of this comes from academic work on agents that learn: **Voyager** showed that agents can build up skill libraries over time, with each skill composed from simpler ones. **CASCADE** demonstrated that skills can be shared between agents, not just stored for one agent's use. **SEAgent** found that learning from failures is as valuable as learning from successes. **Reflexion** showed that verbal feedback (explaining what went wrong in plain language) beats numeric scores for improving agent behavior. ## The loop 1. Work on something 2. Notice when you learn something non-obvious 3. Extract it as a skill 4. Use the skill next time 5. Improve the skill based on how it goes 6. Repeat
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.