Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

add-lint-rule

Skill by DataDog

Adds or changes lint rules and static analysis in the dd-trace-dotnet repository. It is for contributors who need to enforce a coding convention at compile time.

  • Score 76
  • 573 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install add-lint-rule

Built from the published package, never by AI.

git clone --depth 1 https://github.com/DataDog/dd-trace-dotnet /tmp/dd-trace-dotnet && mkdir -p ~/.claude/skills && cp -r /tmp/dd-trace-dotnet/.claude/skills/add-lint-rule ~/.claude/skills/add-lint-rule

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install add-lint-rule in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill guides changes to lint rules and static analysis in dd-trace-dotnet. It covers adding a Roslyn analyzer, a diagnostic, a BannedSymbols.txt entry, a StyleCop or .editorconfig severity change, a CppCheck suppression, or a Clang-Tidy check.

The skill tells the assistant to classify each rule first as correctness, convention, style, or performance. New managed rules are introduced as Error, and Info is marked as legacy. Enforcement applies only to core production code, while analyzer unit tests still go in Datadog.Trace.Tools.Analyzers.Tests. It is for developers working in the dd-trace-dotnet repository.

Written from the project's SKILL.md and checked against it.

What it can do

  • Classify a ruleSorts a proposed rule into correctness, convention, style, or performance before choosing a mechanism.
  • Choose a mechanismPicks between BannedSymbols.txt, a custom Roslyn analyzer, or an existing StyleCop or .editorconfig severity.
  • Set diagnostic severitySets new managed diagnostics to Error and explains why Warning and Info are not used.
  • Native analysis guidanceExplains when to use CppCheck for the native tracer and loader, and Clang-Tidy with CppCheck for the profiler.
  • Analyzer test guidanceAsks for tests under Datadog.Trace.Tools.Analyzers.Tests that cover a flagged case and a no-flag case.
  • PR description guidanceLists what a pull request description should state about the category, diagnostic ID, and reason.

What you need

  • Access to the dd-trace-dotnet repository
  • A .NET build environment to compile the managed source

Try asking

  • Add a Roslyn analyzer that bans a specific API in Datadog.Trace
  • Which mechanism should I use to enforce this convention at compile time?
  • Write analyzer tests for a new diagnostic in dd-trace-dotnet

Good to know

  • Enforcement applies only to core production code, not tests or samples.
  • Info diagnostics are legacy and are ignored, so new rules must use Error.
  • The repo has no dotnet format or clang-format CI job, and new C# rules should not add a pipeline stage.
  • Built-in .NET analyzers are off on purpose and should not be enabled globally.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/add-lint-rule/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to add-lint-rule

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

add-lint-rule: common questions

Which severity should a new lint rule use in dd-trace-dotnet?

New rules are introduced as Error. Warning is not a softer landing because warnings already fail the build, and Info is legacy and ignored in CI.

Can I add a performance rule without evidence?

No. A rule can be classified as performance only if the replacement mechanistically avoids a known allocation or extra work on a hot path, or there is a benchmark or tight proof.

Should I add a new CI job for a C# lint rule?

No. The source says managed enforcement is compile-time Roslyn with TreatWarningsAsErrors, so a new pipeline stage is not needed for a C# rule.

How do I install add-lint-rule?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is add-lint-rule free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is add-lint-rule safe to use?

It scores 76 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to add-lint-rule?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

add-lint-rule Install

Add to stack

Loading.