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

v1.0.0

Sobre este Skill

Perfeito para Agentes de IA que necessitam de capacidades avançadas de depuração de padrões em ambientes TypeScript. Debug pattern errors systematically

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

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 9/11

This page remains useful for operators, but Killer-Skills treats it as reference material instead of a primary organic landing page.

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

Perfeito para Agentes de IA que necessitam de capacidades avançadas de depuração de padrões em ambientes TypeScript. Debug pattern errors systematically

Por que usar essa habilidade

Habilita os agentes a depurar sistematicamente problemas de padrão usando um processo de 5 etapas e matriz de referência de erros, aproveitando o CLI do Deno task e a verificação de erros do TypeScript para resolver problemas de implantação e peça.

Melhor para

Perfeito para Agentes de IA que necessitam de capacidades avançadas de depuração de padrões em ambientes TypeScript.

Casos de Uso Práticos for pattern-debug

Depuração de problemas de padrão em código TypeScript
Resolução de erros de implantação usando o CLI do Deno task
Correspondência de erros à documentação para solução de problemas eficiente

! Segurança e Limitações

  • Requer instalação do CLI do Deno task
  • Específico para ambientes TypeScript
  • Necessita acesso a arquivos de documentação (por exemplo, README.md, workflow.md)

Why this page is reference-only

  • - Current locale does not satisfy the locale-governance contract.

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?

Perfeito para Agentes de IA que necessitam de capacidades avançadas de depuração de padrões em ambientes TypeScript. 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: Depuração de problemas de padrão em código TypeScript, Resolução de erros de implantação usando o CLI do Deno task, Correspondência de erros à documentação para solução de problemas eficiente.

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?

Requer instalação do CLI do Deno task. Específico para ambientes TypeScript. Necessita acesso a arquivos de documentação (por exemplo, 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.

! Reference-Only Mode

This page remains useful for installation and reference, but Killer-Skills no longer treats it as a primary indexable landing page. Read the review above before relying on the upstream repository instructions.

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

Habilidades Relacionadas

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

Ver tudo

openclaw-release-maintainer

Logo of openclaw
openclaw

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

widget-generator

Logo of f
f

Gerar plugins de widgets personalizáveis para o sistema de feed do prompts.chat

flags

Logo of vercel
vercel

O Framework React

138.4k
0
Navegador

pr-review

Logo of pytorch
pytorch

Tensors and Dynamic neural networks in Python with strong GPU acceleration

98.6k
0
Desenvolvedor