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 FOR: repeatable LOC reports; language-mix or branch-diff statistics; codebase size and solution-composition measurements. DO NOT USE FOR: judging developer productivity from raw LOC; replacing behavioral verification, architecture review, or complexity analysis. INVOKES: inspect the repository context, edit targeted files, and run relevant build, test, lint, or validation commands when changes are made.
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
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.