askill
fix

fixSafety --Repository

Debugs and fixes issues systematically. Use when something is broken, throwing errors, or behaving unexpectedly.

2 stars
1.2k downloads
Updated 2/9/2026

Package Files

Loading files...
SKILL.md

Fix Workflow

On "fix" or "debug"

Step 1: Identify the Problem

question: "What's the issue?"
options:
  - { label: "Build error", description: "npm run build fails" }
  - { label: "Runtime error", description: "App crashes or throws" }
  - { label: "UI bug", description: "Something looks wrong" }
  - { label: "I'll describe it", description: "Custom issue" }

Step 2: Gather Context

Build error:

npm run build 2>&1
# Capture and parse error output

Runtime error:

# Check browser console
agent-browser run --task "Go to localhost:3000, open dev console, report any errors"
# Or check server logs
npm run dev 2>&1 | tail -50

UI bug:

# Take screenshot
agent-browser run --task "Go to localhost:3000/[page], screenshot the issue"
# Inspect element
agent-browser run --task "Inspect [element], report CSS and structure"

Step 3: Analyze Root Cause

Common patterns:

Error TypeLikely Cause
Cannot find moduleMissing import or package
Type 'X' is not assignableTypeScript mismatch
undefined is not a functionNull/undefined access
Hydration mismatchServer/client render diff
CORS errorAPI endpoint config
401 UnauthorizedAuth token issue

Step 4: Fix

  1. Make the minimal change needed
  2. Don't refactor unrelated code
  3. Don't add "improvements"
  4. Test the fix immediately

Step 5: Verify

npm run build
# If passes, test the specific feature

If build or feature test fails, return to Step 4 with updated error info. Maximum 3 fix attempts — if still failing after 3 tries, report the remaining issue and stop.

Step 6: Document (ALWAYS output this after Step 5 passes)

Append to progress.txt:
"## [DATE]: Fixed [issue]
- Root cause: [explanation]
- Solution: [what was changed]
- Files: [list of modified files]"

Quick Fix Commands

SayAction
fix buildRun build, auto-fix errors
fix typesFix TypeScript errors only
fix [file]Focus on specific file

Common Auto-Fixes

Missing import:

// Add at top of file
import { Thing } from './path'

Null safety:

// Before
obj.property
// After
obj?.property

Type assertion:

// When type is known but TS doesn't infer
(value as ExpectedType)

When to Stop

STOP and ask user if:

  • Fix requires architectural change
  • Multiple valid approaches exist
  • Fix might break other features
  • Root cause is unclear after 3 attempts

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

AI review pending.

Metadata

Licenseunknown
Version-
Updated2/9/2026
Publisherdjnsty23

Tags

apici-cdgithub-actionssecuritytesting