nowsprinting/test-framework.analyzers/analyzer-code-writing-guide

Claude Code and agent skill by nowsprinting/test-framework.analyzers

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Shared conventions for writing code in this repository (Roslyn analyzers). Covers CancellationToken and concurrent execution handling in DiagnosticAnalyzer implementations, DiagnosticSuppressor implementation and testing, backward compatibility, "why not" comments, how to handle diagnostics and review feedback, and how test data (fixtures and dummies under UTF.Analyzers.Tests/TestData/) is compiled and written. Always use when creating or editing .cs files in this repository.

Install

npx vskill@latest install nowsprinting/test-framework.analyzers/analyzer-code-writing-guide

SKILL.md

Shared Conventions for Analyzer Code

Read this before writing or editing code under UTF.Analyzers/ and UTF.Analyzers.Tests/.

Implementing DiagnosticAnalyzer

  • In any method that receives context.CancellationToken, check for cancellation frequently with context.CancellationToken.ThrowIfCancellationRequested().
  • compilation.Options.ConcurrentBuild tells whether the compilation is running in a multi-threaded environment. Use it where work can be parallelized.
  • Call context.EnableConcurrentExecution() in Initialize(AnalysisContext).

Other Conventions

  • Backward compatibility: see the "Backward Compatibility" section in resources/coding-guideline.md.
  • Recording implementation decisions: see the ""Why Not" Comments" section in resources/coding-guideline.md.
  • Handling IDE diagnostics, analyzers, and review feedback: see resources/diagnostics-review-feedback.md.
  • Test data (how fixtures and dummies are compiled, how to write fixtures and dummies): see resources/test-data-conventions.md.
  • Suppressors (DiagnosticSuppressor: descriptor shape, how users can and cannot disable one, testing with a second analyzer or a stub): see resources/suppressor-conventions.md.

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

Popularity

7-day trend score
5

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/nowsprinting/test-framework.analyzers/analyzer-code-writing-guide/badge)](https://verified-skill.com/skills/nowsprinting/test-framework.analyzers/analyzer-code-writing-guide)

Something wrong with this skill or its page? Tell us.