agentsclimarketplace

Debugging

Skill hekivo/superpowers-sage/skills/debugging

Structured troubleshooting for Sage/Acorn/Lando projects — diagnoses PHP errors, Blade rendering failures, Livewire mount errors, Eloquent query issues, Acorn boot failures, queue job failures, WP hook conflicts; uses lando logs, Query Monitor, Xdebug, WP_DEBUG. Invoke for: "/debugging", "something is broken and I can't figure out why", "lando logs show an error", "acorn boot error", "blade is rendering wrong", "livewire component not mounting", "500 error", "debug this issue". Skip when: you are building or implementing features — that is /building, not debugging.From its SKILL.md

Install
npx -y skills add hekivo/superpowers-sage --skill debugging

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 13 stars13 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

4.7 KB, as published. Nobody here has run it

Debugging — Sage-Aware Troubleshooting

Diagnose and fix issues in Sage/Acorn/Lando projects with domain-specific knowledge of common pitfalls.

Base skill: This wraps systematic-debugging with Sage domain knowledge.

Inputs

$ARGUMENTS

Procedure

0) Categorize the issue

CategorySymptomsFirst Check
Blade/View CacheTemplate not updating, old content showinglando flush
OPcachePHP changes not reflected despite cache clearlando restart
Vite/HMRStyles missing, HMR not connectingCheck dev server, vite.config.js
ACF RegistrationBlock not appearing, fields missingACF sync, block class $name
Lando ServicesContainer errors, service unavailablelando info, service logs
Acorn BootCommand not found, provider failurelando wp acorn, config cache
LivewireComponent not rendering, wire actions failingInstall check, CSRF, Alpine
Tailwind PurgeClasses not applying in production@source paths, CSS-first config
DatabaseConnection refused, migration errors.env DB config, Lando service
AutoloadClass not foundlando theme-composer dump-autoload

1) Run targeted diagnostics

Based on category, investigate:

Blade/View Cache

lando flush                                    # Clear all caches
ls content/cache/acorn/framework/views/        # Check for stale compiled views
  • If lando flush doesn't help, check for stale files directly
  • PHP-FPM OPcache is separate from CLI OPcache — lando restart for FPM

Vite/HMR

lando vite                    # Start dev server
  • Check vite.config.js: server.host must be '0.0.0.0'
  • Check .lando.yml proxy includes Vite port
  • Check @vite() directive in layout blade

ACF Registration

lando acorn acf:sync          # Sync field groups
  • Block $name must be kebab-case
  • fields() must call setLocation()
  • with() must return array

Autoload

lando theme-composer dump-autoload
  • Namespace must match directory: App\Blocks\ → app/Blocks/
  • Class name must match filename

2) Known fixes (from experience)

ProblemRoot CauseFix
Blade cache not clearingStale compiled viewslando flush (uses custom Lando tooling)
OPcache stale after editPHP-FPM OPcache != CLI OPcachelando restart
Grid classes not renderingDynamic classes purged by Tailwind v4Use inline styles for dynamic grids
lando acorn brokenPath misconfigurationUse lando wp acorn instead
Material Symbols not renderingWrong icon name (not in symbol set)Check Material Symbols catalog
Block content wrong after editStale Blade cache + OPcacheDelete specific cache file + lando flush

3) Present diagnosis

## Diagnosis: {issue summary}

### Root Cause
{What's causing the issue — with evidence}

### Fix
{Step-by-step commands and/or code changes}

### Prevention
{How to avoid this in the future}

4) Verify fix

Run verification after applying fix. If issue persists, dig deeper or escalate to adjacent category.

Common Quick Fixes

SymptomQuick Fix
Blade not updatinglando flush
Class not foundlando theme-composer dump-autoload
ACF fields missinglando acorn acf:sync
Vite HMR brokenCheck server.host in vite.config.js is '0.0.0.0'
acorn command not foundlando wp acorn or check --path in .lando.yml
Styles not in editorAdd editor.css to Vite entry points

Key Principles

  • lando flush first — clears Blade cache, OPcache, Acorn cache in one command
  • OPcache is separate — PHP-FPM and CLI have different OPcaches
  • Check the actual cache files — sometimes programmatic clear doesn't work
  • Use systematic-debugging as the base approach
  • Dispatch sage-debugger agent for automated investigation

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.