Code Auditor

by BaekGyu9

code

Analyze a project to provide a summary of line counts per programming language (e.g., how many lines of Go vs Rust). Generates a PDF summary report.

Skill Details

Repository Files

4 files in this skill directory


name: code-auditor description: Analyze a project to provide a summary of line counts per programming language (e.g., how many lines of Go vs Rust). Generates a PDF summary report.

Code Auditor Instructions

You are a Code Statistics Assistant. Your goal is to provide a high-level overview of the programming languages used in a project.

Capabilities

  • Count lines of code grouped by Language (Python, Go, Rust, etc.).
  • Ignore non-code artifacts and user-specified garbage folders.
  • Generate a PDF visualization.

Prerequisites

  1. Target Path: The root directory of the project.
  2. Project Type: (Optional) To help identify ignore patterns.

Step-by-Step Guide

1. Determine Ignore Patterns (Reference Lookup)

Identify folders that distort statistics (like vendor in Go, or target in Rust).

  • Action: Read references/ignore_rules.md.
  • Look up the project type to find folders to ignore.

2. Execute Summary Analysis (Script)

Run the analysis script. Do NOT invent script names. Use exactly the script below.

Command: python3 scripts/analyze_summary.py --path "[PATH]" --ignore "[IGNORE_LIST]"

3. Present Results

The script returns a JSON summary.

  • Present the top 3 languages to the user in the chat.
  • Provide the path to the full PDF Report for details.

Example Scenario

User: "What languages are in my project at ~/repo/hybrid-app? It uses Go."

Thought Process:

  1. Intent: Language summary. Path: ~/repo/hybrid-app.
  2. Ignore Rules: Go needs to ignore vendor.
  3. Execution: Run the specific script analyze_summary.py.

Action: python3 scripts/analyze_summary.py --path "~/repo/hybrid-app" --ignore "vendor"

Script Output:

{
  "status": "success",
  "report_path": "/home/repo/hybrid-app/language_summary.pdf",
  "summary": { "Go": 15000, "TypeScript": 8500 }
}

Related Skills

Mermaid Diagrams

Comprehensive guide for creating software diagrams using Mermaid syntax. Use when users need to create, visualize, or document software through diagrams including class diagrams (domain modeling, object-oriented design), sequence diagrams (application flows, API interactions, code execution), flowcharts (processes, algorithms, user journeys), entity relationship diagrams (database schemas), C4 architecture diagrams (system context, containers, components), state diagrams, git graphs, pie charts,

artdesigncode

Matlab

MATLAB and GNU Octave numerical computing for matrix operations, data analysis, visualization, and scientific computing. Use when writing MATLAB/Octave scripts for linear algebra, signal processing, image processing, differential equations, optimization, statistics, or creating scientific visualizations. Also use when the user needs help with MATLAB syntax, functions, or wants to convert between MATLAB and Python code. Scripts can be executed with MATLAB or the open-source GNU Octave interpreter

codedata

Dask

Distributed computing for larger-than-RAM pandas/NumPy workflows. Use when you need to scale existing pandas/NumPy code beyond memory or across clusters. Best for parallel file processing, distributed ML, integration with existing pandas code. For out-of-core analytics on single machine use vaex; for in-memory speed use polars.

codeworkflow

Consult Zai

Compare z.ai GLM 4.7 and code-searcher responses for comprehensive dual-AI code analysis. Use when you need multiple AI perspectives on code questions.

code

Writing Effective Prompts

Structure Claude prompts for clarity and better results using roles, explicit instructions, context, positive framing, and strategic organization. Use when crafting prompts for complex tasks, long documents, tool workflows, or code generation.

codedocumentworkflow

Analyze Performance

Establish performance baselines and detect regressions using flamegraph analysis. Use when optimizing performance-critical code, investigating performance issues, or before creating commits with performance-sensitive changes.

code

Flowchart Creator

Create HTML flowcharts and process diagrams with decision trees, color-coded stages, arrows, and swimlanes. Use when users request flowcharts, process diagrams, workflow visualizations, or decision trees.

artcodeworkflow

Bio Reporting Rmarkdown Reports

Create reproducible bioinformatics analysis reports with R Markdown including code, results, and visualizations in HTML, PDF, or Word format. Use when generating analysis reports with RMarkdown.

code

Desmos Graphing

Create interactive Desmos graphs in Obsidian using desmos-graph code blocks. Use when visualizing functions, parametric curves, inequalities, or mathematical relationships with customizable styling and settings.

code

Performance

Rendimiento & Optimización - Atoll Tourisme. Use when optimizing performance or profiling code.

code

Skill Information

Category:Technical
Last Updated:12/28/2025