dash-discover

诊断 Dart 与 Flutter 软件包中潜在的架构现代化机会(包括语言习惯用法、测试规范、CLI 模式、文档陈旧化),并推荐匹配的专业技能。

仓库最近推送
GitHub Stars
149
Forks
17
Issues / PRs
2

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "dash-discover":https://skillpi.com/zh/skills/deepskill-00def2e9e72cb8b77c64018251f931c556f61d44dd7ef74d74124d516aff0203。安装前核对上游来源和版本:https://github.com/kevmoo/dash_skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

诊断 Dart 与 Flutter 软件包中潜在的架构现代化机会(包括语言习惯用法、测试规范、CLI 模式、文档陈旧化),并推荐匹配的专业技能。

0 下载

介绍来源: third_party · kevmoo · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
适合谁
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
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).

当前收录版本

0.0.1

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值92/100

亮点

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

待提升项

  • description写错位置 原报告严重程度:轻微

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

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

亮点

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

亮点

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

亮点

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

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

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

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。