smithery/neversight

pattern-debug

Debug pattern errors systematically

Installation

$ npx skills add smithery/neversight --skill pattern-debug

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/neversight · top by installs.

npx skills add smithery/neversight

Browse all from smithery/neversight

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,542 B
  • docs SUMMARY.md 56 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Debug Pattern

Use Skill("ct") for ct CLI documentation if debugging deployment or charm 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 deno task ct check pattern.tsx --no-run ``

  1. Match error to documentation:

- Read the error message carefully - Check docs/development/debugging/README.md for matching errors

  1. 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

  1. Simplify to minimal reproduction:

- Comment out code until error disappears - Add back piece by piece to find root cause

  1. 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

Done When

  • Root cause identified
  • Error fixed
  • Tests pass again