dotnet-cloc

dotnet-cloc is a skill for Claude Code, Codex from Postpartum-genushyacinthus29/dotnet-skills. It costs 62 tokens per session (1,404 once invoked), scanned B, a copy of mcaf-dotnet-cloc, MIT.

A code-counting tool for .NET repositories, which are projects built with Microsoft’s .NET platform. It measures lines of code, the mix of programming languages, and differences between branches or other code versions.

In plain words
What is it for?
Use it to report a C# project’s size and composition, compare two branches, or create code-size reports for local work and continuous integration (automated checks run when code changes).
Why use it?
It replaces rough guesses about project size with repeatable measurements. It also helps separate changes in code, tests, documentation, configuration, and other files.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Use it to report a C# project’s size and composition, compare two branches, or create code-size reports for local work and continuous integration (automated checks run when code changes).

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/postpartum-genushyacinthus29/dotnet-skills/dotnet-cloc
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Postpartum-genushyacinthus29/dotnet-skills --skill dotnet-cloc
Clone the repo
git clone --depth 1 https://github.com/Postpartum-genushyacinthus29/dotnet-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dotnet-cloc

README.md
[![agentmods](https://agentmods.dev/badge/skills/postpartum-genushyacinthus29/dotnet-skills/dotnet-cloc/github.svg)](https://agentmods.dev/skills/postpartum-genushyacinthus29/dotnet-skills/dotnet-cloc)
Your own site
<a href="https://agentmods.dev/skills/postpartum-genushyacinthus29/dotnet-skills/dotnet-cloc"><img src="https://agentmods.dev/badge/skills/postpartum-genushyacinthus29/dotnet-skills/dotnet-cloc/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dotnet-cloc

Your own site · 80×15
<a href="https://agentmods.dev/skills/postpartum-genushyacinthus29/dotnet-skills/dotnet-cloc"><img src="https://agentmods.dev/badge/skills/postpartum-genushyacinthus29/dotnet-skills/dotnet-cloc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,404 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 92% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00062 $0.01404
Opus 5 $0.00031 $0.00702
Sonnet 5 $0.00012 $0.00281
Haiku 4.5 $0.00006 $0.00140

Measured 12d ago against content hash 041a0a3ce25a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade B, and why

dotnet-cloc scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- Debian or Ubuntu: `sudo apt install cloc`
Origin

This is a copy

92% identical to mcaf-dotnet-cloc — 10 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/dotnet-cloc/SKILL.md · 145 lines

How it starts

The opening of the file, as written. The whole thing — 145 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLOC for .NET Repositories

Trigger On

  • the repo wants cloc
  • the team needs repeatable LOC, language, or branch diff statistics for a .NET repo
  • the user asks about C# codebase size, solution composition, or code-count deltas between refs

Value

  • produce a concrete project delta: code, docs, config, tests, CI, or review artifact
  • reduce ambiguity through explicit planning, verification, and final validation skills
  • leave reusable project context so future tasks are faster and safer

Do Not Use For

  • judging developer productivity from raw LOC
  • replacing behavioral verification, architecture review, or complexity analysis
  • counting generated or vendored files without an explicit reason

Inputs

  • the nearest AGENTS.md
  • target repository, solution, project, or subtree
  • the question being answered: footprint, composition, diff, or trend

Quick Start

  1. Read the nearest AGENTS.md and confirm scope and constraints.
  2. Run this skill's Workflow through the Ralph Loop until outcomes are acceptable.
  3. Return the Required Result Format with concrete artifacts and verification evidence.

Workflow

  1. Choose the counting mode deliberately:
    • --vcs=git for repo-respecting counts
    • path-based counting for bounded folders
    • --git --diff BASE HEAD for change deltas
  2. Prefer .NET-relevant views first:
    • C# footprint
    • test versus production footprint
    • solution language mix such as C#, Razor, XML, JSON, YAML, and MSBuild files
  3. Exclude noise before trusting the numbers:
    • bin
    • obj
    • .git
    • vendored or generated folders when they are not part of the decision
  4. Use machine-readable output when the numbers feed docs, CI, or follow-up automation:
    • --json
    • --csv
    • --yaml
    • --md
  5. Treat cloc as a sizing and comparison tool, not as evidence that the design is good.
  6. When using diff mode, compare named refs that match the review question:
    • origin/main..HEAD
    • release branch versus main
    • before and after a refactor
  7. After any code cleanup based on cloc findings, run the repo's normal quality pass.

Read the full file on GitHub · 145 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 145 lines · 62 tokens per session scan B 041a0a3ce25a

Subscribe to this mod's changes

dotnet-cloc is a skill published in the GitHub repository Postpartum-genushyacinthus29/dotnet-skills (10 stars, last pushed yesterday), licensed MIT. It adds 62 tokens to every session and 1,404 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). It is 92% identical to mcaf-dotnet-cloc, differing in 10 lines, and is treated as a copy.

Related

Other skills, from other repositories

ve-midnight-editorial

OpenDesign's financial review: runway, burn, and the sustainability plan that keeps the project independent. Built as a decision-grade data & finance deck for board, leadership.

nexu-io/open-design · 40 tokens

html-ppt-zhangzara-long-table

OpenDesign's unit-economics and BYOK cost model: the assumptions, the sensitivity, and why it scales. Built as a decision-grade data & finance deck for CFO, investors.

nexu-io/open-design · 49 tokens

huashu-sparkline-arc

OpenDesign's revenue-driver narrative: what actually moves ARR, the leverage points, and the forecast. Built as a decision-grade data & finance deck for board, finance leadership.

nexu-io/open-design · 44 tokens

analytics

Queries local analytics across OrchestKit projects for agent usage, skill frequency, hook timing, team activity, session replay, cost estimation, and model delegation trends. Privacy-safe with hashed project IDs. Supports time-range filtering and comparative analysis. Use when reviewing performance, estimating costs…

yonatangross/orchestkit · 62 tokens

telemetry-inspect

Inspects the OrchestKit telemetry pipeline for the current project — lists all known telemetry files with write counts, sizes, schema status, growth trend, and orphan detection. Use when verifying the observability pipeline is healthy, debugging a missing writer, or auditing which files have schema locks vs. which are…

yonatangross/orchestkit · 78 tokens

A/B Test Validation

Validating A/B test implementations including traffic splitting accuracy, statistical significance calculation, metric tracking, and experiment cleanup.

PramodDutta/qaskills · 27 tokens