askill
debugging

debuggingSafety 100Repository

Systematic debugging patterns and common gotchas. Load when encountering errors, tracebacks, or investigating bugs.

0 stars
1.2k downloads
Updated 2/6/2026

Package Files

Loading files...
SKILL.md

Debugging

Merged Skills

  • error-analysis: Reading tracebacks, identifying root cause
  • gotcha-lookup: Known issues from project history

Critical Gotchas (from 131 logs)

CategoryPatternSolution
API307 redirect on POSTAdd trailing slash to URL
API401 on valid tokenCheck auth headers, token expiry
AuthlocalStorage returns nullCheck nop-auth key, not auth_token
StatePersisted state staleVersion storage key, clear cache
StateNested object not updatingUse immutable update or flag_modified
StateReact state stale in asyncUse callback/ref patterns
StateConfigPanel save lostPersist to backend, not just Zustand
BuildChanges not visibleRebuild with --no-cache
BuildContainer old codeUse --build --force-recreate
SyntaxJSX comment errorUse {/* */} not // in JSX
CSSElement hiddenCheck z-index, overflow, position
FrontendDropdown flickeringMemoize options with useMemo
FrontendBlack screenAdd error boundary/try-catch
MockBlock executor mock dataCheck mock vs real implementation
JSONBNested object not updatingUse flag_modified() after update
WorkflowProgress stuck at 3/4Set 100% on execution_completed event
WorkflowBlack screen on switchCall reset() to clear execution state
ContextConnection menu hiddenCheck DOM ordering, z-index, pointer-events
CacheSame skill reloadedLoad skill ONCE per domain, cache list
ScriptsParse failsCreate log BEFORE running scripts
WorkflowEND scripts failCreate workflow log FIRST
TerminalLine wrapping corruptsLimit line length, handle overflow
Undo/RedoDeep state breaksUse immutable update patterns
CredentialsParams missingValidate block config completeness
JSEmpty object {} is truthyUse Object.keys(obj).length > 0 check
WebSocketexecution_completed missing stateInclude nodeStatuses in WS completion event
DockerBridge uses gateway IPUse different IP for containers (e.g., 172.x.0.254)
PortsWrong service on portVerify port mappings (8000=Portainer, 12000=NOP)
APIWrong endpoint pathCheck actual API routes, not assumed ones

Rules

RulePattern
Check gotchas first75% of issues are known - check table above
Read full tracebackDon't stop at first error line
Root cause focusFix cause, not symptoms
Plan before fixUnderstand problem before coding
Verify fix worksTest that issue is actually resolved
Document findingsAdd new gotchas to workflow log

Avoid

BadGood
Fix symptomsFind root cause
Ignore tracebackRead entire error
Skip gotcha checkCheck known issues first
Assume fix worksVerify with test
Undocumented fixAdd to gotchas if new

Patterns

# Pattern 1: JSONB mutation fix (SQLAlchemy)
from sqlalchemy.orm.attributes import flag_modified

agent.agent_metadata['key'] = value
flag_modified(agent, 'agent_metadata')  # CRITICAL
await db.commit()

# Pattern 2: Async state capture (React)
const handleClick = async () => {
  const capturedState = { ...localState };  # Capture BEFORE async
  await updateNode(nodeId, capturedState);
  await saveCurrentWorkflow();
};
// Pattern 3: Error boundary wrapper
<ErrorBoundary fallback={<ErrorFallback />}>
  <RiskyComponent />
</ErrorBoundary>
# Pattern 4: Container debugging
docker compose logs -f backend --tail 100
docker exec -it nop-backend bash
docker compose down && docker compose up -d --build

Debug Protocol

StepAction
1CHECK gotchas table (75% are known)
2READ full error/traceback
3ANALYZE root cause (not symptoms)
4PLAN fix before implementing
5VERIFY fix resolves issue
6DOCUMENT in workflow log

Commands

IssueCommand
Backend logsdocker compose logs -f backend
Frontend logsdocker compose logs -f frontend
Rebuild cleandocker compose build --no-cache
Full resetdocker compose down && docker compose up -d --build
Check processesdocker compose ps
Enter containerdocker exec -it nop-backend bash

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

85/100Analyzed 2/13/2026

A comprehensive, project-specific debugging guide containing a high-density table of known issues ('gotchas'), code patterns for common fixes (React, SQLAlchemy), and Docker commands. It is highly actionable for the specific repository it resides in.

100
95
40
85
90

Metadata

Licenseunknown
Version-
Updated2/6/2026
Publishergoranjovic55

Tags

apici-cdgithub-actionssecuritytesting