pattern-debug — community pattern-debug, community, ide skills

v1.0.0

About this Skill

Perfect for AI Agents needing advanced pattern debugging capabilities in TypeScript environments. Debug pattern errors systematically

commontoolsinc commontoolsinc
[30]
[12]
Updated: 3/11/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reviewed Landing Page Review Score: 9/11

Killer-Skills keeps this page indexable because it adds recommendation, limitations, and review signals beyond the upstream repository text.

Original recommendation layer Concrete use-case guidance Explicit limitations and caution Quality floor passed for review Locale and body language aligned
Review Score
9/11
Quality Score
50
Canonical Locale
en
Detected Body Locale
en

Perfect for AI Agents needing advanced pattern debugging capabilities in TypeScript environments. Debug pattern errors systematically

Core Value

Empowers agents to systematically debug pattern issues using a 5-step process and error reference matrix, leveraging Deno task CLI and TypeScript error checking to resolve deployment and piece issues.

Ideal Agent Persona

Perfect for AI Agents needing advanced pattern debugging capabilities in TypeScript environments.

Capabilities Granted for pattern-debug

Debugging pattern issues in TypeScript code
Resolving deployment errors using the Deno task CLI
Matching errors to documentation for efficient troubleshooting

! Prerequisites & Limits

  • Requires Deno task CLI installation
  • Specific to TypeScript environments
  • Needs access to documentation files (e.g., README.md, workflow.md)

Source Boundary

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

After The Review

Decide The Next Action Before You Keep Reading Repository Material

Killer-Skills should not stop at opening repository instructions. It should help you decide whether to install this skill, when to cross-check against trusted collections, and when to move into workflow rollout.

Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is pattern-debug?

Perfect for AI Agents needing advanced pattern debugging capabilities in TypeScript environments. Debug pattern errors systematically

How do I install pattern-debug?

Run the command: npx killer-skills add commontoolsinc/labs/pattern-debug. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for pattern-debug?

Key use cases include: Debugging pattern issues in TypeScript code, Resolving deployment errors using the Deno task CLI, Matching errors to documentation for efficient troubleshooting.

Which IDEs are compatible with pattern-debug?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for pattern-debug?

Requires Deno task CLI installation. Specific to TypeScript environments. Needs access to documentation files (e.g., README.md, workflow.md).

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add commontoolsinc/labs/pattern-debug. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use pattern-debug immediately in the current project.

Upstream Repository Material

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

Upstream Source

pattern-debug

Install pattern-debug, an AI agent skill for AI agent workflows and automation. Review the use cases, limitations, and setup path before rollout.

SKILL.md
Readonly
Upstream Repository Material
The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.
Supporting Evidence

Debug Pattern

Use Skill("ct") for ct CLI documentation if debugging deployment or piece issues.

Read First

  • docs/development/debugging/workflow.md - 5-step debugging process
  • docs/development/debugging/README.md - Error reference matrix

Process

  1. Check TypeScript errors:

    bash
    1deno task ct check pattern.tsx --no-run
  2. Match error to documentation:

    • Read the error message carefully
    • Check docs/development/debugging/README.md for matching errors
  3. Check gotchas:

    • docs/development/debugging/gotchas/handler-inside-pattern.md
    • docs/development/debugging/gotchas/filter-map-find-not-a-function.md
    • docs/development/debugging/gotchas/onclick-inside-computed.md
  4. Simplify to minimal reproduction:

    • Comment out code until error disappears
    • Add back piece by piece to find root cause
  5. Fix and verify:

    • Apply fix
    • Run tests to confirm

Common Issues

Handler defined inside pattern body:

  • Move handler() to module scope
  • Only bind it inside pattern: onClick={myHandler({ state })}

Type errors with Writable/Default:

  • Check if field needs write access → use Writable<>
  • Check if field could be undefined → use Default<T, value>

Action not triggering:

  • Ensure Output type includes action as Stream<void>
  • Use .send() not .get() to trigger

computed() wrapping JSX — conditional rendering broken:

  • Inside computed() body, ternaries are plain JS (Writable objects always truthy)
  • Cell bindings ($value, $checked) inside derive() may get positionally mis-resolved
  • Fix: use bare JSX ternaries, hoist computed() for data only
  • See docs/common/concepts/computed/computed.md

Runtime Debugging (browser)

When the pattern compiles but behaves wrong at runtime, use the browser console utilities. Full reference: docs/development/debugging/console-commands.md.

With agent-browser (for automated testing):

bash
1# Read piece cell values 2agent-browser eval "(async () => { 3 const v = await commontools.readCell(); 4 return JSON.stringify(v).slice(0, 500); 5})()" 6 7# Inspect VDOM tree 8agent-browser eval "(async () => { 9 await commontools.vdom.dump(); 10 return 'dumped'; 11})()" 12 13# Detect non-idempotent computations (UI churning) 14agent-browser eval "(async () => { 15 const r = await commontools.detectNonIdempotent(5000); 16 return JSON.stringify({ nonIdempotent: r.nonIdempotent.length, cycles: r.cycles.length }); 17})()" 18 19# Check for action schema mismatches (handlers doing nothing) 20agent-browser eval "JSON.stringify(commontools.getLoggerFlagsBreakdown())"

In browser console (for interactive debugging):

javascript
1// Read cell values 2await commontools.readCell() 3await commontools.readArgumentCell({ path: ["items"] }) 4 5// Watch values change during interaction 6const cancel = commontools.subscribeToCell() 7// ... interact ... then cancel() 8 9// VDOM tree 10await commontools.vdom.dump() 11commontools.vdom.stats() 12 13// Logger counts and timing 14commontools.getLoggerCountsBreakdown() 15commontools.getTimingStatsBreakdown() 16 17// Non-idempotent detection 18await commontools.detectNonIdempotent()

Done When

  • Root cause identified
  • Error fixed
  • Tests pass again

Related Skills

Looking for an alternative to pattern-debug or another community skill for your workflow? Explore these related open-source skills.

View All

openclaw-release-maintainer

Logo of openclaw
openclaw

Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

333.8k
0
AI

widget-generator

Logo of f
f

Generate customizable widget plugins for the prompts.chat feed system

149.6k
0
AI

flags

Logo of vercel
vercel

The React Framework

138.4k
0
Browser

pr-review

Logo of pytorch
pytorch

Tensors and Dynamic neural networks in Python with strong GPU acceleration

98.6k
0
Developer