jyn514/dotfiles/rustc-diagnostic-gap-tests
Claude Code and agent skill by jyn514/dotfiles
- community
Checking that the SKILL.md file is still in the repository.
Survey Rust compiler and rustdoc diagnostics for weak or missing beginner-facing guidance, investigate helpers and implementation difficulty, or add non-duplicated compiletest UI cases and snapshots. Use in a rust-lang/rust checkout when asked to find diagnostic gaps, expand tests/ui or tests/rustdoc-ui coverage, estimate implementation difficulty, cross-reference existing diagnostic helpers, or continue a diagnostic-quality survey until diminishing returns.
Install
npx vskill@latest install jyn514/dotfiles/rustc-diagnostic-gap-testsSKILL.md
The same SKILL.md was published earlier as jyn514/dotfiles/rustc-diagnostic-gap-tests.
Rustc Diagnostic Gap Tests
Select the requested activity
Inspect the worktree and preserve unrelated changes. Distinguish a read-only survey, helper lookup, or difficulty estimate from authorized test additions. A diagnostic investigation does not authorize creating tests, blessing snapshots, or implementing compiler fixes. For a bounded lookup or estimate, inspect the named diagnostic and relevant nearby tests; do not expand it into a compiler-wide survey. For a broad gap survey, use the coverage procedure below. When test additions are authorized, assess the candidate first, then read test construction and verification before creating or blessing files.
Survey
- Search the relevant test suites before proposing a case. Reject a case when both
its input shape and diagnostic limitation already exist. Sharing an error code alone does not make it a duplicate.
- Prefer mistakes likely from new Rust users and diagnostics that expose compiler internals without actionable context.
- Find the owning diagnostic and nearby helpers under
compiler/. Search emitted wording, diagnostic structs, trait diagnostic items, and suggestion text. - When a subsystem mostly yields duplicates, switch compiler phases or suites.
Consider parser/macro expansion, resolution/imports, type checking, trait selection, borrow checking, const evaluation, async lowering, attributes/cfg, coherence, unsafe checking, lints/FFI, command-line parsing, and rustdoc.
Before concluding a broad survey
Ask: “Are there any other parts of the compiler with gaps?” Survey at least one plausible remaining area before answering no.
Rate difficulty
Name helpers when they materially lower difficulty, such as suggest_ref_or_clone, suggest_await_on_expect_found, get_impl_future_output_ty, suggest_option_to_bool, cannot_return_reference_to_local, and suggest_capturing_closure. Verify names in the current checkout.
- Easy detection: the diagnostic already owns the decisive types, spans, or DefIds, or an existing helper recognizes the shape.
- Medium detection: extend a local HIR/MIR pattern, connect existing paths, group expanded errors, or carry short-range provenance.
- Hard detection: add visible-name enumeration, whole-body or inter-procedural reasoning, or intent-sensitive dataflow.
- Easy fix: add static help or an unambiguous local edit using recovered spans.
- Medium fix: make a bounded multipart edit or offer several valid alternatives without selecting one.
- Hard fix: change API, ownership, control flow, synchronization, error handling, or ABI, or prove another body or caller remains valid.
Rate detection and fix independently. Borrowck may easily identify a by-value self move while changing the method to &self remains hard because the method body and API must be analyzed.
Read-only result
Report the diagnostic owner and verified helper names with source locations, what guidance is missing or already supplied, and duplicate-test evidence for any proposed gap. For an estimate, rate detection and fix independently using the rubric above; state the required analysis, reusable consumers, ambiguous intent, and remaining uncertainty. For a broad survey, report inspected areas and remaining or lower-value areas, including the final coverage check above. Stop here for investigation-only work; sources, snapshots, blessing, forced-batch runs, and pass counts are completion requirements only for authorized test additions.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/rustc-diagnostic-gap-tests/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jyn514/dotfiles/rustc-diagnostic-gap-tests)