pattern-dev
Guide for developing CommonTools patterns (TypeScript modules that define reactive data transformations with UI). Use this skill when creating patterns, modifying existing patterns, or working with the pattern framework. Triggers include requests like "build a pattern", "fix this pattern error", "deploy this piece/patch", or questions about handlers and reactive patterns.
How do I install this agent skill?
npx skills add https://github.com/commontoolsinc/labs --skill pattern-devIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill is a development guide for creating reactive UI patterns. It provides technical instructions on pattern structure, coding practices, and the use of specialized subagents for building and reviewing code. No security vulnerabilities were identified.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerpass
1 file scanned · No issues
What does this agent skill do?
Start with the shared pattern development guidance in:
docs/common/ai/pattern-development-guide.md
Read that guide first. It is the canonical reference.
Runtime notes:
- Use the
ctskill, or readskills/ct/SKILL.md, when you need CLI command details. - If your runtime supports delegation, pass file paths rather than pasted summaries.
Runtime-Specific Notes
Claude Code
- Use
EnterPlanModebefore building. - Scale the plan to the problem:
- simple pattern: 2-3 sentences
- medium pattern: short list
- complex pattern: structured plan with entities, relationships, and actions
- Delegate by role when that helps:
Task({
prompt: "Implement [feature]. Keep it simple, one file.",
subagent_type: "pattern-maker"
})
Task({
prompt: "Deploy and test [pattern].",
subagent_type: "pattern-user"
})
Task({
prompt: "Review [file] for violations.",
subagent_type: "pattern-critic"
})
- Run a critic pass before first deploy unless the change is a tiny, low-risk fix.
- At useful milestones, offer a commit.
Other runtimes
- Preserve the same rhythm even when the invocation syntax differs:
- plan first
- keep the first slice runnable
- separate implementation, runtime testing, and critique when the task is large enough to justify it
Phase skills consult as needed:
- Types:
docs/common/concepts/types-and-schemas/ - Actions/handlers:
docs/common/concepts/action.md,docs/common/concepts/handler.md - Testing:
docs/common/workflows/pattern-testing.md - Components:
packages/patterns/catalog/catalog.tsx— the authoritative, type-checked component catalog. Story files inpackages/patterns/catalog/stories/show live usage for each component. Also seedocs/common/components/COMPONENTS.mdfor narrative docs. - Debugging:
docs/development/debugging/
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/commontoolsinc/labs/pattern-dev">View pattern-dev on skillZs</a>