bug-hunter
Find and fix a bug in the octane monorepo
Install / Use
npx skills add octanejs/octaneInstalls into whichever agent you are using.
Gemini Rules
Gemini CLI config
Quality Score
Category
Development & EngineeringSupported Platforms
Skill content
View source on GitHubname: bug-hunter description: >- Find and fix a bug in the octane monorepo. Use when given a failing test, a regression, or a report that behavior differs from expectation, including deciding whether a React mismatch is an intentional divergence.
Skill: Octane bug hunter
Use this to find, reproduce, minimize, and fix a suspected Octane bug.
Read first
AGENTS.md- Owning source and nearby tests
docs/differences-from-react.mdbefore assuming React mismatch is a bug
Workflow
-
State the suspected behavior
- Expected behavior, actual behavior, package, environment, and reproduction path.
- Decide whether the issue concerns runtime, compiler, SSR/hydration, Vite plugin, or an ecosystem binding.
-
Reproduce before fixing
- Add or locate the smallest failing test/fixture.
- For compiler/runtime behavior, prefer
packages/octane/tests/_fixtures/*.tsrxplus a focused*.test.ts. - For React parity, cite source React tests and use conformance/differential conventions.
- For ecosystem packages, use that package's
tests/harness.
-
Minimize
- Remove unrelated props, effects, timing, and DOM.
- Keep
.tsrxfixtures tiny. - Confirm the test fails for the intended reason, not setup/aliasing/jsdom.
-
Localize
- Runtime: inspect
packages/octane/src/runtime.tscomments and closest tests. - Compiler: inspect
packages/octane/src/compiler/compile.jsand emitted output if needed. - SSR: inspect
runtime.server.ts,server/index.ts, hydration tests. - Bindings: compare existing package patterns and upstream React binding behavior.
- Runtime: inspect
-
Patch carefully
- Preserve documented intentional divergences.
- Prefer fixing owning source over weakening tests.
- Add regression coverage that would fail on the old behavior.
- Keep changes minimal and idiomatic.
-
Validate
- Run the new failing test until it passes.
- Run nearby affected tests.
- If runtime/compiler changed, consider wider
packages/octane/testsorpnpm testdepending on scope. - Run
pnpm typecheckwhen TS/API surfaces changed.
-
Report
- Root cause.
- Files changed.
- Tests added/updated and commands run.
- Any remaining risks or intentional divergences.
Common traps
- React synthetic
onChange, StrictMode double invoke, and class components are not bugs by default. Controlledvalue/checkedis supported, but text editing uses nativeonInput;OCTANE_NATIVE_TEXT_ONCHANGEwarns about likely React-style host wiring without changing native behavior. Deliberate commit-on-blur usessuppressNativeChangeWarning. - Differential
innerHTMLcannot catch render counts, effect timing, refs, focus, or node move sets. - jsdom layout/focus limitations can masquerade as library bugs.
Related Skills
semiotic-react-dataviz-cursorrules-prompt-file
40.6kCursor rules for Semiotic data visualization library with 30+ chart types, MCP server, and AI-assisted chart generation.
claude-howto
41.2kA visual, example-driven guide to Claude Code — from basic concepts to advanced agents, with copy-paste templates that bring immediate value.
ai-job-search
33.1kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
guizang-ppt-skill
24.7kAI-agent Skill for generating polished HTML slide decks: editorial magazine and Swiss layouts, image prompts, social covers, and a WebGL/low-power presentation runtime.
Security Score
Audited on Aug 22, 2026
