Agent skill

Tsp Csharp

by querylenshq in querylenshq/ef-querylens

Comprehensive C and .NET development skill for TSP projects.

MITAuto-check passedBackend & APIs

Install Tsp Csharp

skills CLI
$ npx skills add querylenshq/ef-querylens --skill tsp-csharp -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install querylenshq/ef-querylens tsp-csharp --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/querylenshq/ef-querylens.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/tsp-csharp .claude/skills/tsp-csharp && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
tsp-csharp
GitHub stars
225
Token cost
~1.3k tokens
SKILL.md length
391 words
Files
7 (incl. references)
Skills in repo
3
Repo updated
First seen
Licence
MIT

At a glance

Comprehensive C and .NET development skill for TSP projects.

  • Debugging C code — covers async/await
  • SKILL.md covers Reference Files, Decision Tables, Default Patterns and API Endpoint Conventions, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • HTTP resilience

What it does

Tsp Csharp is an agent skill from querylenshq/ef-querylens. Comprehensive C and .NET development skill for TSP projects. Use when writing, reviewing, or debugging C code — covers async/await, EF Core, performance, security, HTTP resilience, Options pattern, middleware, logging, and ASP.NET Core patterns. Trigger for: async, Task, CancellationToken, DbContext, LINQ, Span, Memory, hot path, authentication, authorization, validation, secrets, HttpClient, IOptions, middleware, minimal API, TypedResults, ProblemDetails, Channels, ILogger, Serilog, logging, pagination, entity…

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including reference files (for example `references/_contract.md`, `references/async.md` and `references/ef-core.md`).

It sits in Backend & APIs, covering Async programming, OpenAPI specifications and Database schema design. It works with C#, .NET, ASP.NET Core and OpenAPI. The repository describes itself as: See the SQL EF Core will generate in real-time while you write LINQ. The licence is MIT.

When your agent uses it

  • Debugging C code — covers async/await
  • HTTP resilience
  • Options pattern
  • ASP.NET Core patterns

Example prompts

  • “/tsp-csharp”

What it can do on your machine

Read from SKILL.md and the folder at commit fe73cf3. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Tsp Csharp loads about 1.3k tokens when it runs, and up to ~11k if it reads all its reference files. Until then it costs about 140 tokens; SKILL.md has 391 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~140
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~11k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from querylenshq/ef-querylens at commit fe73cf3, republished under its MIT licence (© querylenshq). 391 words, ~1,263 tokens.

Download SKILL.mdSave it as .claude/skills/tsp-csharp/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
tsp-csharp
description
Comprehensive C# and .NET development skill for TSP projects. Use when writing, reviewing, or debugging C# code — covers async/await, EF Core, performance, security, HTTP resilience, Options pattern, middleware, logging, and ASP.NET Core patterns. Trigger for: async, Task, CancellationToken, DbContext, LINQ, Span, Memory, hot path, authentication, authorization, validation, secrets, HttpClient, IOptions, middleware, minimal API, TypedResults, ProblemDetails, Channels, ILogger, Serilog, logging, pagination, entity design, audit fields, OpenAPI.

C# & .NET — TSP Standards

Target .NET 8+ / C# 12+. Use the reference files below for detailed guidance per domain.

Reference Files

Read the relevant reference(s) based on the current task:

When working with...Read
Async/await, Tasks, CancellationToken, IAsyncEnumerable, ChannelsAsync & Concurrency
DbContext, LINQ queries, migrations, change tracking, N+1Entity Framework Core
Hot paths, Span/Memory, pooling, allocations, benchmarkingPerformance
Auth, secrets, input validation, CORS, rate limiting, middlewareSecurity
Structured logging, Serilog, correlation, severity, maskingLogging

Decision Tables

Result vs Exception
Error typeExpected?Use
Domain / business ruleYesResult<T> / ErrorOr<T>
Domain / business ruleNoException
Infrastructure (DB, network)—Exception
IOptions Selection
Need runtime reload?Per-request scope?Use
No—IOptions<T> (most common)
YesYesIOptionsSnapshot<T>
YesNo (live + OnChange)IOptionsMonitor<T>
Service Lifetime
ScenarioLifetime
Default for most servicesScoped
Stateless utilities, factoriesTransient
Thread-safe caches, channels, singletons by designSingleton
Multiple implementations of same interfaceKeyed services (.NET 8+)

Default Patterns

PatternDefaultEscalate to
Web entrypointMinimal APIs with TypedResultsControllers when filters/conventions help
HTTP resultsTypedResults.Ok() + ProblemDetailsResult envelope only when API needs stable error shape
ConfigurationOptions pattern + ValidateOnStart()IValidateOptions<T> for cross-property validation
Outbound HTTPTyped clients + AddStandardResilienceHandler()Custom retry/circuit-breaker only when measured
Error handlingProblemDetails (RFC 9457) + UseExceptionHandler()ErrorOr<T> when failure is expected, not exceptional
ConcurrencyChannel<T> for producer/consumer with backpressureSemaphoreSlim, other primitives when channels don't fit
Health checksAddHealthChecks() with liveness + readiness probesCustom checks for external dependencies
LoggingSerilog + message templates + correlation IDsCustom enrichers/sinks for specialized needs
Show full SKILL.md (148 more words)Show less

API Endpoint Conventions

  • Dedicated request and response models per endpoint — never bind directly to entities
  • Explicit parameter binding: [FromQuery], [FromBody], [FromRoute] — no ambiguous model binding
  • OpenAPI annotations on every endpoint: Produces<T>() / [ProducesResponseType] for all response codes
  • Use enums for status fields and other enumerations — never raw strings or magic integers
  • No business logic in endpoint methods — delegate to services
  • Return ProblemDetails for all error responses (4xx and 5xx)

Anti-Patterns Quick Reference

Anti-PatternFix
new HttpClient() per requestIHttpClientFactory or typed client
Manual Polly configurationAddStandardResilienceHandler()
Results.Ok()TypedResults.Ok() (explicit contract)
Missing ValidateOnStart()Always add to Options registration
Singleton capturing ScopedIServiceScopeFactory
.Result / .Wait() in asyncawait
Exceptions for flow controlErrorOr<T> / Result pattern
DateTime.NowDateTime.UtcNow or TimeProvider
Console.WriteLineILogger<T>
Silent catch blocksLog + rethrow or handle explicitly

Middleware Ordering (ASP.NET Core)

Order matters. Follow this sequence:

1. UseExceptionHandler()          // Catch everything downstream
2. UseStatusCodePages()
3. UseHttpsRedirection()
4. UseStaticFiles()               // If applicable
5. UseRouting()                   // Before auth
6. UseCors()                      // After routing, before auth
7. UseRateLimiter()
8. UseAuthentication()            // Identify user
9. UseAuthorization()             // Check permissions
10. UseOutputCache()              // After auth
11. MapEndpoints()                // Last

Reference Contract

All reference files follow a consistent structure. See _contract.md for details.

© querylenshq, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files (references) in .github/skills/tsp-csharp of querylenshq/ef-querylens.

  • SKILL.md
  • references/_contract.md
  • references/async.md
  • references/ef-core.md
  • references/logging.md
  • references/perf.md
  • references/security.md

Open the folder on GitHubat commit fe73cf3

Compare with similar skills

Tsp Csharp next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Tsp Csharp compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Tsp Csharp this skillquerylenshq/ef-querylens225—~1.3kAutomated safety check: PassMIT
Dotnet Webapidotnet/skills5.6k2 repos~5.5kAutomated safety check: PassMIT
Migrate Dotnet9 To Dotnet10dotnet/skills5.6k2 repos~4.8kAutomated safety check: PassMIT
C# and .NET DeveloperJeffallan/claude-skills12k—~1.3kAutomated safety check: PassMIT
Dotnet APInovotnyllc/dotnet-artisan233—~1.6kAutomated safety check: PassMIT
API Breaking Change Detectorgithub/awesome-copilot40k—~1.7kAutomated safety check: PassMIT

Similar skills

  • Dotnet Webapi

    dotnet/skills

    Official

    Guides creation and modification of ASP.NET Core Web API endpoints with correct HTTP semantics, OpenAPI metadata, and error handling.

    5.6k GitHub starsUsed in 2 repos~5.5k tokens
    Backend & APIsAuto-check passed
  • Official

    Migrate a .NET 9 project or solution to .NET 10 and resolve all breaking changes.

    5.6k GitHub starsUsed in 2 repos~4.8k tokens
    DevOps & CloudAuto-check passed
  • C# and .NET Developer

    Jeffallan/claude-skills

    Guides C# work on .NET 8+: ASP.NET Core APIs, Entity Framework Core data access, Blazor apps and CQRS with MediatR, following a five-step build workflow.

    12k GitHub stars~1.3k tokensUpdated 3 days ago
    Backend & APIsAuto-check passed
  • Dotnet API

    novotnyllc/dotnet-artisan

    Builds ASP.NET Core APIs, EF Core data access, gRPC, SignalR, and backend services with middleware, security (OAuth, JWT, OWASP), resilience, messaging, OpenAPI, .NET Aspire, Semantic Kernel…

    233 GitHub stars~1.6k tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed
  • API Breaking Change Detector

    github/awesome-copilot

    Official

    Cross-references C Web API controllers/DTOs against their TypeScript/JavaScript consumers (React, Angular, Vue, Svelte, Node.js, or hand-written/auto-generated HTTP clients like Fetch, Axios, NSwag)…

    40k GitHub stars~1.7k tokensUpdated today
    Backend & APIsAuto-check passed
  • Dotnet Csharp

    novotnyllc/dotnet-artisan

    Baseline C skill loaded for every .NET code path. An agent skill from novotnyllc/dotnet-artisan.

    233 GitHub stars~1.7k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed

More from querylenshq/ef-querylens

  • Release

    querylenshq/ef-querylens

    A skill your agent uses when: creating a release, publishing a version, cutting a release, tagging a release, releasing plugin, release workflow, prepare release, create git tag, create GitHub…

    225 GitHub stars~887 tokensUpdated 1 mo ago
    Auto-check passed
  • Tsp Csharp Xunit

    querylenshq/ef-querylens

    Comprehensive xUnit testing guide for C projects. An agent skill from querylenshq/ef-querylens.

    225 GitHub stars~972 tokensUpdated 1 mo ago
    Auto-check passed

Questions about Tsp Csharp

What does Tsp Csharp do?

Comprehensive C and .NET development skill for TSP projects. Tsp Csharp is an agent skill from querylenshq/ef-querylens.NET development skill for TSP projects.

When should I use Tsp Csharp?

Tsp Csharp fits situations like: debugging C code — covers async/await; HTTP resilience; options pattern; ASP.NET Core patterns.

How do I install Tsp Csharp in Claude Code?

Run `npx skills add querylenshq/ef-querylens --skill tsp-csharp -a claude-code`. Or copy the skill folder (.github/skills/tsp-csharp in querylenshq/ef-querylens) into .claude/skills/tsp-csharp in your project. Claude Code loads it when a task matches its description.

How do I install Tsp Csharp in Codex?

Run `npx skills add querylenshq/ef-querylens --skill tsp-csharp -a codex`. Or copy the skill folder (.github/skills/tsp-csharp in querylenshq/ef-querylens) into .agents/skills/tsp-csharp in your project. Codex loads it when a task matches its description.

Can I use Tsp Csharp in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add querylenshq/ef-querylens --skill tsp-csharp -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/tsp-csharp, .gemini/skills/tsp-csharp, .github/skills/tsp-csharp and .opencode/skills/tsp-csharp in your project.

What does Tsp Csharp need to run?

SKILL.md names no scripts, command-line tools or credentials: Tsp Csharp is instructions for the agent only.

Does Tsp Csharp access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Tsp Csharp safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Tsp Csharp use?

Tsp Csharp is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Tsp Csharp use?

About 1.3k tokens (SKILL.md is roughly 5.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 9.3k tokens, read only when the agent opens those files.

What are the alternatives to Tsp Csharp?

Skills that share tags, products or a category with Tsp Csharp: Dotnet Webapi (dotnet/skills, 5.6k stars), Migrate Dotnet9 To Dotnet10 (dotnet/skills, 5.6k stars), C# and .NET Developer (Jeffallan/claude-skills, 12k stars) and Dotnet API (novotnyllc/dotnet-artisan, 233 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Tsp Csharp?

querylenshq (a GitHub organization) maintains it in querylenshq/ef-querylens, which has 225 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on September 3, 2026.

Source: querylenshq/ef-querylens on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.