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

v1.0.0

关于此技能

适合需要在TypeScript环境中具有高级模式调试功能的AI代理。 Debug pattern errors systematically

commontoolsinc commontoolsinc
[30]
[12]
更新于: 3/11/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 6/11

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

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

适合需要在TypeScript环境中具有高级模式调试功能的AI代理。 Debug pattern errors systematically

核心价值

赋予代理使用5步骤流程和错误参考矩阵系统地调试模式问题的能力,利用Deno任务CLI和TypeScript错误检查来解决部署和片段问题。

适用 Agent 类型

适合需要在TypeScript环境中具有高级模式调试功能的AI代理。

赋予的主要能力 · pattern-debug

在TypeScript代码中调试模式问题
使用Deno任务CLI解决部署错误
将错误与文档匹配以实现高效的故障排除

! 使用限制与门槛

  • 需要Deno任务CLI安装
  • 特定于TypeScript环境
  • 需要访问文档文件(例如README.md,workflow.md)

Why this page is reference-only

  • - Current locale does not satisfy the locale-governance contract.
  • - The page lacks a strong recommendation layer.

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.

评审后的下一步

先决定动作,再继续看上游仓库材料

Killer-Skills 的主价值不应该停在“帮你打开仓库说明”,而是先帮你判断这项技能是否值得安装、是否应该回到可信集合复核,以及是否已经进入工作流落地阶段。

实验室 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

pattern-debug 是什么?

适合需要在TypeScript环境中具有高级模式调试功能的AI代理。 Debug pattern errors systematically

如何安装 pattern-debug?

运行命令:npx killer-skills add commontoolsinc/labs/pattern-debug。支持 Cursor、Windsurf、VS Code、Claude Code 等 19+ IDE/Agent。

pattern-debug 适用于哪些场景?

典型场景包括:在TypeScript代码中调试模式问题、使用Deno任务CLI解决部署错误、将错误与文档匹配以实现高效的故障排除。

pattern-debug 支持哪些 IDE 或 Agent?

该技能兼容 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。可使用 Killer-Skills CLI 一条命令通用安装。

pattern-debug 有哪些限制?

需要Deno任务CLI安装;特定于TypeScript环境;需要访问文档文件(例如README.md,workflow.md)。

安装步骤

  1. 1. 打开终端

    在你的项目目录中打开终端或命令行。

  2. 2. 执行安装命令

    运行:npx killer-skills add commontoolsinc/labs/pattern-debug。CLI 会自动识别 IDE 或 AI Agent 并完成配置。

  3. 3. 开始使用技能

    pattern-debug 已启用,可立即在当前项目中调用。

! 参考页模式

此页面仍可作为安装与查阅参考,但 Killer-Skills 不再把它视为主要可索引落地页。请优先阅读上方评审结论,再决定是否继续查看上游仓库说明。

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

安装 pattern-debug,这是一款面向AI agent workflows and automation的 AI Agent Skill。查看评审结论、使用场景与安装路径。

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

相关技能

寻找 pattern-debug 的替代方案 (Alternative) 或可搭配使用的同类 community Skill?探索以下相关开源技能。

查看全部

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

为prompts.chat的信息反馈系统生成可定制的插件小部件

149.6k
0
AI

flags

Logo of vercel
vercel

React 框架

138.4k
0
浏览器

pr-review

Logo of pytorch
pytorch

Python中具有强大GPU加速的张量和动态神经网络

98.6k
0
开发者工具