dash-discover
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.
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
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 & EvidenceDash 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 analyzereports 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.yamlor 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:testexpect(actual, matcher)calls instead of fluent, type-safepackage:checks. - Storing rotting, unverified code snippets in
/// ```doc comments instead of automated{@example}region testing. - Building ad-hoc monolithic 300+ line
bin/main.dartentrypoints withoutpackage: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 -->
- Testing Architecture (
dart-migrate-to-checks-package): Detects test or flutter_test in dependencies when checks is absent. - Dart 3 Language Idioms (
dart-use-pattern-matching): Detects legacy else if (... is ...) type cascades and returning switch statements. - CLI Architecture (
dart-build-cli-app): Detects ad-hoc bin/*.dart CLI entrypoints lacking structured argument parsing. - Cross-Platform Robustness (
dart-use-path-package): Detects manual path string concatenation without package:path. - Testing Architecture (
dart-generate-test-mocks): Detects handwritten fake or mock class definitions without mockito or mocktail. - Testing Architecture (
dart-matcher-best-practices): Detects unidiomatic expect() assertions (e.g. expect(x.length, ...) or expect(x.isEmpty, true)). - 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:
- Generate the condensed repository outline (~1k tokens):
dart run dash_discover <path-to-target-package> --outline-only - 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).
- 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:
- 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).
- Follow the Resolved Skill Target:
- Each opportunity output by
dash-discoverincludes aresolved_uriin--jsonand a clickable link in Markdown. - If the target skill is installed locally (
is_local: true), inspect and follow the localSKILL.mddirectly (file://...). - If not installed locally, inspect the upstream definition at the provided
github_urlor install the skill into your agent environment before applying changes.
- Each opportunity output by
- Verify Empirically:
- Ensure tests continue to pass (
dart test). - Ensure analysis remains clean (
dart analyze).
- Ensure tests continue to pass (
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- Dash Discover 精准定位 Dart/Flutter 项目中静态分析无法发现的架构现代化机会,填补了语言习惯用法、测试规范、CLI 模式和文档陈旧化等方面的诊断空白。
- 提供两阶段发现协议(快速静态启发式扫描 + Token 高效轮廓探测),并结合专业技能推荐,形成端到端的现代化改造工作流,具备高实用价值。
Areas to improve
-
description写错位置 Reported severity: Minor
顶层 frontmatter 中 description 为空,实际描述内容位于 skill_body 内部。
Recommendation: 建议将 description 内容移至顶层 frontmatter,以符合规范并提升可读性。
Highlights
- 触发词精准描述了典型使用场景(如“Am I doing this right?”类问题、进入新仓库时)和不适用情况(非 Dart/Flutter 项目、单一文件修复等),边界清晰。
Highlights
- 文档结构完整且逻辑清晰,包含使用时机、核心模型、发现协议和修复工作流四大模块,步骤划分明确。
- 提供了丰富的 CLI 命令示例和 JSON 输出说明,便于用户理解和执行。
Highlights
- 工具来源明确(dash_discover CLI),参数设计合理(--json, --outline-only, --prompt-only),覆盖了主要异常场景的排除逻辑。
- 推荐操作依赖用户手动执行,并提供了验证建议(dart test, dart analyze),降低了误操作风险。
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.
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.
User discussion
No verified reviews yet.