Optimizes hot-path scalar loops in .NET 8+ with cross-platform Vector128/Vector256/Vector512 SIMD intrinsics, or replaces manual math loops with single TensorPrimitives API calls.
CLOC for .NET Repositories
Use the open-source free `cloc` tool for line-count, language-mix, and diff statistics in .NET repositories. Use when a repo needs C# and solution footprint metrics, branch-to-branch LOC comparison, or repeatable code-size reporting in local workflows and CI.
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
Workflow
- Choose the counting mode deliberately:
- --vcs=git for repo-respecting counts - path-based counting for bounded folders - --git --diff BASE HEAD for change deltas
- Prefer
.NET-relevant views first:
- C# footprint - test versus production footprint - solution language mix such as C#, Razor, XML, JSON, YAML, and MSBuild files
- Exclude noise before trusting the numbers:
- bin - obj - .git - vendored or generated folders when they are not part of the decision
- Use machine-readable output when the numbers feed docs, CI, or follow-up automation:
- --json - --csv - --yaml - --md
- Treat
clocas a sizing and comparison tool, not as evidence that the design is good. - When using diff mode, compare named refs that match the review question:
- origin/main..HEAD - release branch versus main - before and after a refactor
- After any code cleanup based on
clocfindings, run the repo's normal quality pass.
Deliver
- repeatable LOC and language-mix reporting for .NET repos
- explicit include and exclude rules
- branch-diff or bounded-scope commands that answer a concrete engineering question
Validate
- counts match the intended source boundary instead of including build output noise
- command choice matches the reporting question
- any automation or docs that consume the numbers can rerun the same command
clocis used as context, not as a substitute for tests or design review
Load References
references/commands.mdreferences/examples.mdreferences/cloc.md
Related skills
Use the open-source free `Asynkron.Profiler` dotnet tool for CLI-first CPU, allocation, exception, contention, and heap profiling of .NET commands or existing trace artifacts.
Use the open-source CodeQL ecosystem for .NET security analysis.