Back to list
BaekGyu9

code-auditor

by BaekGyu9

A tiny Coding Agent implemented from scratch in Rust, helping you understand the core principles of Coding Agents.

1🍴 0📅 Dec 30, 2025

SKILL.md


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 }
}

Score

Total Score

60/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon