code-doctor

Detect Vue/Nuxt and Firebase anti-patterns, dead exports, and code duplication.

1|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/lasswellt/blitz-cc --skill code-doctor-lasswellt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-doctor
Source: https://github.com/lasswellt/blitz-cc/tree/main/skills/code-doctor
Command: npx skills add https://github.com/lasswellt/blitz-cc --skill code-doctor-lasswellt

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Vue/Nuxt + Firebase projects often accumulate undetected framework-API anti-patterns, unused exports, and duplicated code that cause runtime bugs, memory leaks, and maintenance overhead, which are difficult to catch manually in large codebases.

Core Features & Use Cases

  • Framework API Auditing: Detects anti-patterns and misuse for Firestore, VueFire, Vue 3, and Pinia, including unclosed Firestore listeners, unbounded queries, and incorrect Pinia store usage.
  • Dead Code & Duplication Detection: Flags unused exported symbols and identical code blocks across files to reduce technical debt and improve maintainability.
  • Safe, Controlled Fixes: Runs in read-only mode by default, with opt-in low-risk auto-fixes for pre-vetted common issues, plus LLM validation for critical findings to reduce false positives.
  • Use Case: A development team can run this skill before a release to catch memory leaks from unsubscribed Firestore listeners and unused Pinia store exports that would cause production runtime errors.

Quick Start

Use the code-doctor skill to scan your Vue/Nuxt + Firebase project for framework API anti-patterns, dead exports, and code duplication, or add the --fix flag to apply low-risk auto-fixes for eligible issues.

Frequently Asked Questions about code-doctor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect unclosed Firestore listeners in a Vue 3 project?

An audit identifies unclosed Firestore listeners in Vue 3 projects by scanning for framework API anti-patterns. It detects unsubscribed listeners and flags them to prevent memory leaks and runtime bugs during pre-ship code reviews.

What is the best way to find unused Pinia store exports?

The best way to find unused Pinia store exports is to perform a dead code detection scan. This identifies unused exported symbols across your files, reducing technical debt and improving project maintainability.

Can I automatically fix VueFire anti-patterns without breaking my application?

You can automatically fix VueFire anti-patterns safely by using opt-in low-risk auto-fixes. The system applies pre-vetted corrections and validates critical findings with an LLM to reduce false positives while maintaining code stability.

How do I audit my Nuxt and Firebase codebase for duplicate code blocks?

To audit a Nuxt and Firebase codebase for duplicate code blocks, run a read-only scanning process. This detects identical code structures across files, helping reduce maintenance overhead and prevent technical debt accumulation.

Does code auditing work for enforcing consistent Vue 3 quality standards across development cycles?

Code auditing enforces consistent Vue 3 quality standards across development cycles by applying ratcheted quality tracking. This mechanism monitors progress and prevents new anti-patterns from entering your codebase over time.

What causes memory leaks in VueFire and Firestore applications?

Memory leaks in VueFire and Firestore applications are frequently caused by framework API anti-patterns like unbounded queries and unclosed listeners. Detecting and removing these misuses prevents production runtime errors and performance degradation.