dash-discover

Diagnose potential architecture-modernization opportunities in Dart and Flutter packages (including language idioms, testing practices, CLI patterns, and stale documentation), and recommend matching professional skills.

Last repository push
GitHub Stars
149
Forks
17
Issues / PRs
2

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "dash-discover" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-00def2e9e72cb8b77c64018251f931c556f61d44dd7ef74d74124d516aff0203. Verify the upstream source and version against https://github.com/kevmoo/dash_skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Diagnose potential architecture-modernization opportunities in Dart and Flutter packages (including language idioms, testing practices, CLI patterns, and stale documentation), and recommend matching professional skills.

0 Downloads

Introduction source: third_party · kevmoo · 0.0.1 Reference

SkillPi interpretation

Tasks
|-
Audience
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.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: dash-discover
description: |-
  Diagnoses latent architectural modernization opportunities across Dart and
  Flutter packages (language idioms, testing hygiene, CLI patterns, doc rot)
  and prescribes matching specialized skills.
key_features:
  - Architectural Gap Diagnosis
  - Latent Modernization Discovery
  - Two-Tier Prescriptions & Evidence

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

<!-- DISCOVERY_RULES_START -->

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

<!-- prettier-ignore -->

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

<!-- DISCOVERY_RULES_END -->

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 prompt (--prompt-only) and outline to a fast model (such as Gemini Flash) along with the active skills catalog to evaluate semantic architectural fit with concrete file evidence.

4. Remediation Workflow

When dash-discover produces recommendations:

  1. Triage by Lifecycle & Confidence:
    • Focus on finite migrations first (e.g. core language modernization and testing migrations), prioritized by confidence and affected file count.
    • Treat periodic hygiene audits (e.g. cognitive complexity, doc validation) as recurring sweeps rather than one-time migrations.
    • Throttle ubiquitous recommendations (e.g. at most one test framework migration at a time).
  2. Follow the Resolved Skill Target:
    • Each opportunity output by dash-discover includes a resolved_uri in --json and a clickable link in Markdown.
    • If the target skill is installed locally (is_local: true), inspect and follow the local SKILL.md directly (file://...).
    • If not installed locally, inspect the upstream definition at the provided github_url or install the skill into your agent environment before applying changes.
  3. Verify Empirically:
    • Ensure tests continue to pass (dart test).
    • Ensure analysis remains clean (dart analyze).

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • Dash Discover 精准定位 Dart/Flutter 项目中静态分析无法发现的架构现代化机会,填补了语言习惯用法、测试规范、CLI 模式和文档陈旧化等方面的诊断空白。
  • 提供两阶段发现协议(快速静态启发式扫描 + Token 高效轮廓探测),并结合专业技能推荐,形成端到端的现代化改造工作流,具备高实用价值。
Trigger Precision85/100

Areas to improve

  • description写错位置 Reported severity: Minor

    顶层 frontmatter 中 description 为空,实际描述内容位于 skill_body 内部。

    Recommendation: 建议将 description 内容移至顶层 frontmatter,以符合规范并提升可读性。

Highlights

  • 触发词精准描述了典型使用场景(如“Am I doing this right?”类问题、进入新仓库时)和不适用情况(非 Dart/Flutter 项目、单一文件修复等),边界清晰。
Structure and Standards95/100

Highlights

  • 文档结构完整且逻辑清晰,包含使用时机、核心模型、发现协议和修复工作流四大模块,步骤划分明确。
  • 提供了丰富的 CLI 命令示例和 JSON 输出说明,便于用户理解和执行。
Execution Reliability90/100

Highlights

  • 工具来源明确(dash_discover CLI),参数设计合理(--json, --outline-only, --prompt-only),覆盖了主要异常场景的排除逻辑。
  • 推荐操作依赖用户手动执行,并提供了验证建议(dart test, dart analyze),降低了误操作风险。
Evidence Verifiability (mean of the first four)91/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.