Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

dash-discover

БесплатноБез исполняемых скриптовНе проверен

Diagnoses latent architectural modernization opportunities across Dart and Flutter packages (language idioms, testing hygiene, CLI patterns, doc rot) and…

kevmooот kevmoo★ 149 звёзд на GitHub

Об этом скилле

Dash Discover (Meta-Skill)

The Meta-Skill Discovery Engine evaluates a Dart or Flutter project's architecture, language idioms, testing patterns, and documentation health to uncover latent modernization opportunities that standard static analysis passes ignore.


1. When to use this skill

Use this skill when:

  • Asked questions like: "Am I doing this right?", "Am I holding it right?", or "What skills should I use on this repository?"
  • Entering a new or unfamiliar Dart/Flutter repository and determining where to focus modernization effort.
  • dart analyze reports clean code (0 errors, 0 warnings), but the codebase may still harbor outdated pre-Dart 3 constructs, legacy matcher assertions, unstructured CLI entrypoints, or rotting doc examples.

When NOT to use (Abstention Guardrails)

Do NOT run or prescribe discovery scans when:

  • Non-Dart / Non-Flutter Projects: The repository or directory has no pubspec.yaml or Dart source files (e.g. pure documentation repositories or external language services).
  • Targeted Single-File Edits or Bug Fixes: The user is requesting a narrow, isolated bug fix or single-file adjustment. Do not derail the turn into a broad repository-wide architectural audit unless specifically solicited.
  • Active In-Flight Breaking Migrations: The repository is midway through a breaking SDK upgrade or uncommitted refactoring. Allow primary migrations to stabilize before running discovery sweeps.

2. Core Mental Model: The Analyzer Blindspot

Static analysis (dart analyze) verifies syntactic and semantic correctness, not architectural quality or modern idiomatic design. A package can pass dart analyze --fatal-infos with zero warnings while simultaneously:

  • Using 7-branch polymorphic else if (x is Y) cascades instead of concise Dart 3 switch expressions with pattern destructuring.
  • Relying on legacy package:test expect(actual, matcher) calls instead of fluent, type-safe package:checks.
  • Storing rotting, unverified code snippets in /// ``` doc comments instead of automated {@example} region testing.
  • Building ad-hoc monolithic 300+ line bin/main.dart entrypoints without package:args/command_runner.dart.

Dash Discover systematically identifies these latent gaps and points directly to the specialized skills equipped to remediate them.


3. Two-Tier Discovery Protocol

Tier 1: Fast Static Heuristics (<50ms)

Run the discovery CLI from anywhere in the workspace:

dart run dash_discover <path-to-target-package>

Or for structured machine ingestion:

dart run dash_discover <path-to-target-package> --json

By default, scans report Defect and Capability rules while suppressing Alternative idiom rules (checks-migration, pattern-matching, matcher-best-practices) when existing code is already valid. Pass --include-alternatives (or target a rule directly via --rule <id>) to opt into alternative-idiom checks:

dart run dash_discover <path-to-target-package> --include-alternatives

The static scanner performs rapid, zero-network checks across 7 built-in rules:

  1. Testing Architecture (dart-migrate-to-checks-package) [Alternative (requires --include-alternatives)]: Detects test or flutter_test in dependencies when checks is absent.
  2. Dart 3 Language Idioms (dart-use-pattern-matching) [Alternative (requires --include-alternatives)]: Detects legacy else if (... is ...) type cascades and returning switch statements.
  3. CLI Architecture (dart-build-cli-app) [Capability]: Detects ad-hoc bin/*.dart CLI entrypoints lacking structured argument parsing.
  4. Cross-Platform Robustness (dart-use-path-package) [Defect]: Detects manual path string concatenation without package:path.
  5. Testing Architecture (dart-generate-test-mocks) [Capability]: Detects handwritten fake or mock class definitions without mockito or mocktail.
  6. Testing Architecture (dart-matcher-best-practices) [Alternative (requires --include-alternatives)]: Detects unidiomatic expect() assertions (e.g. expect(x.length, ...) or expect(x.isEmpty, true)).
  7. Dart 3 Language Idioms (dart-seal-type-hierarchies) [Capability]: Detects closed type hierarchies that are not sealed, so the compiler cannot check switch exhaustiveness over them.

Tier 2: Token-Efficient Outline Probing

To capture complex cross-cutting architectural patterns beyond regexes:

  1. Generate the condensed repository outline (~1k tokens):
    dart run dash_discover <path-to-target-package> --outline-only
    
  2. The outline captures:
    • pubspec.yaml (dependencies, dev-dependencies, SDK constraints).
    • Shallow directory structure (up to 3 levels deep).
    • Structural API signatures and class outlines (via sem entities lib/ --signatures).
  3. Pass the generated pro
Полный SKILL.md на GitHub

Установить dash-discover в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

evals/evals.json

FAQ

Что делает скилл dash-discover?

Diagnoses latent architectural modernization opportunities across Dart and Flutter packages (language idioms, testing hygiene, CLI patterns, doc rot) and prescribes matching specialized skills.

Как установить скилл dash-discover?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл dash-discover запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить dash-discover с