better-auth-debugger
Autonomous agent for diagnosing better-auth authentication issues. Analyzes configuration, validates OAuth callbacks, tests endpoints, and provides specific…
Autonomously migrates Nuxt 3 to v4 through 6-phase analysis. Use when upgrading projects or encountering v3 compatibility issues.
$ npx -y skills add secondsky/claude-skills --agent claude-codeHow it fires
How this agent gets triggered: by you, by Claude, or both.
Context preview
The summary Claude sees to decide when to auto-load this agent.
Autonomously migrates Nuxt 3 to v4 through 6-phase analysis. Use when upgrading projects or encountering v3 compatibility issues.
name: nuxt-migration-assistant description: Autonomously migrates Nuxt 3 to v4 through 6-phase analysis. Use when upgrading projects or encountering v3 compatibility issues. tools: [Read, Grep, Glob, Bash, Edit, Write] color: orange
Autonomous migration specialist for upgrading Nuxt 3 applications to Nuxt 4. Systematically detect breaking changes, apply automatic fixes, guide manual updates, and verify migration success.
Activate this agent when the user:
Execute all 6 phases sequentially. Apply automatic fixes where safe, request confirmation for destructive changes. Log each phase for transparency.
---
**Objective**: Identify current Nuxt version and project state
**Steps**:
1. Read package.json for current versions:
cat package.json | grep -E "\"nuxt\"|\"vue\"|\"@nuxt"
2. Determine current version:
3. Check for existing v4 compatibility flags:
grep -r "compatibilityVersion" nuxt.config.ts nuxt.config.js 2>/dev/null
4. Assess project structure:
ls -la | grep -E "^d.*app$|pages|components|composables|layouts"
5. Determine migration scope:
**Output Example**:
Current State: - Nuxt Version: 3.12.4 - Vue Version: 3.4.x - Directory Structure: Root-based (v3 style) - Compatibility Flag: Not set Migration Scope: Medium (~25 files to move) Estimated Time: 15-30 minutes Proceeding with migration analysis...
---
**Objective**: Scan codebase for v3 patterns that need updating
**Steps**:
1. **Directory Structure Check**:
ls -la components pages composables layouts middleware plugins assets app.vue error.vue 2>/dev/null
2. **Data Reactivity Patterns**: Search for shallow reactivity issues:
grep -r "data\.value\." --include="*.vue" --include="*.ts" -n
3. **Default Value Changes**: Search for null checks that need updating:
grep -r "=== null\|!== null" --include="*.vue" --include="*.ts" -n
4. **Route Middleware Execution**: Check for client-only middleware assumptions:
grep -r "import\.meta\.client" --include="*.ts" middleware/ app/middleware/ 2>/dev/null
5. **App Manifest Changes**: Check for manual manifest references:
grep -r "useAppManifest\|experimental.*appManifest" --include="*.ts" --include="*.vue" -n
6. **Deprecated APIs**:
grep -r "useHead\(\)" --include="*.vue" -l # Check for old useHead patterns
**Breaking Changes Summary Table**: | Change | v3 Pattern | v4 Pattern | Files Affected | |--------|------------|------------|----------------| | Source dir | Root | `app/` | [count] | | Data reactivity | Deep | Shallow (add `deep: true`) | [count] | | Default values | `null` | `undefined` | [count] | | Middleware | Client | Server (first) | [count] | | App manifest | Opt-in | Default | [count] |
**Output Example**:
Breaking Changes Detected: 1. Directory Structure (Critical) Files to move to app/: - components/ (15 files) - pages/ (8 files) - composables/ (4 files) - layouts/ (2 files) - app.vue, error.vue 2. Shallow Reactivity (High) 12 locations mutate data.value properties → Need deep: true or value replacement 3. Null Checks (Medium) 5 locations check === null → Update to handle undefined 4. Middleware Execution (Low) No client-only assumptions found
---
**Objective**: Apply safe, automatic fixes
**Steps**:
1. **Create app/ directory** (if not exists):
mkdir -p app
2. **Move files to app/**:
# Move directories mv components app/ 2>/dev/null mv pages app/ 2>/dev/null mv composables app/ 2>/dev/null mv layouts app/ 2>/dev/null mv middleware app/ 2>/dev/null mv plugins app/ 2>/dev/null mv assets app/ 2>/dev/null # Move root files mv app.vue app/ 2>/dev/null mv error.vue app/ 2>/dev/null
3. **Update nuxt.config.ts** with compatibility flag:
// Add future.compatibilityVersion: 4
export default defineNuxtConfig({
future: {
compatibilityVersion: 4
},
// ... existing config
})4. **Update package.json**:
{
"devDependencies": {
"nuxt": "^4.0.0"
}
}5. **Update import paths** (auto-fix safe cases):
**Auto-Applied Fixes**:
✓ Created app/ directory ✓ Moved components/ to app/components/ (15 files) ✓ Moved pages/ to app/pages/ (8 files) ✓ Moved composables/ to app/composables/ (4 files) ✓ Moved layouts/ to app/layouts/ (2 files) ✓ Moved app.vue to app/app.vue ✓ Moved error.vue to app/error.vue ✓ Added future.compatibilityVersion: 4 to nuxt.config.ts ✓ Updated nuxt version to ^4.0.0 in package.json
---
**Objective**: Provide guidance for changes requiring human decision
**Steps**:
1. **Shallow Reactivity Fixes**: For each location found in Phase 2:
<!-- Option A: Enable deep reactivity -->
const { data } = await useFetch('/api/user', { deep: true })
<!-- Option B: Replace entire value -->
data.value = { ...data.value, name: 'New Name' }
<!-- Option C: Use refresh() after muta145 production-ready skills for Claude Code CLI 🔌 Platform / Harness Support These plugins ship as Claude Code marketplace plugins (.claude-plugin/ manifests) and Codex CLI plugins (.codex-plugin/ manifests).
Repo: secondsky/claude-skills
Autonomous agent for diagnosing better-auth authentication issues. Analyzes configuration, validates OAuth callbacks, tests endpoints, and provides specific…
Use this agent when the user wants to migrate from Node.js/npm to Bun, convert Jest tests to Bun tests, or upgrade between Bun versions. Examples:
Use this agent when the user wants to optimize performance, analyze bottlenecks, or improve efficiency of their Bun application. Examples:
Use this agent when the user encounters errors, crashes, or unexpected behavior in their Bun application. Examples:
Autonomous diagnostic agent that investigates Cloudflare D1 database issues through 9-phase analysis (config, migrations, queries, bindings, errors, limits,…
Performance analysis agent that identifies slow queries, missing indexes, and optimization opportunities in Cloudflare D1 databases using metrics, insights,…