Codebase Inspection
Advanced codebase analysis with HTML reports, git-aware diffs, trend tracking, SVG badges, CSV export, and CI/CD integration
Rank
62
Safety
84
Downloads
1.1k
Updated
Oct 11, 2026
Version
2.0.1
Source
CLAWHUB
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · observed Oct 11, 2026
- Protocol compatibility
- OpenClawcompatibility · observed Oct 11, 2026
- Adoption signal
- 1.1K downloadsadoption · observed Oct 11, 2026
- Latest release
- 2.0.1release · observed Jul 13, 2026
- Handshake status
- UNKNOWNsecurity
Install and run
Setup complexity: low.
clawhub skill install s174ndtg3nagdpbj0zw5b8m1wn83w573:codebase-inspection- Install using `clawhub skill install s174ndtg3nagdpbj0zw5b8m1wn83w573:codebase-inspection` in an isolated environment before connecting it to live workloads.
- No published capability contract is available yet, so validate auth and request/response behavior manually.
- Review the upstream CLAWHUB listing at https://clawhub.ai/itspremkumar/codebase-inspection before using production credentials.
Contract: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-itspremkumar-codebase-inspection/snapshot"
Documentation
CLAWHUB
26,086 characters of source documentation, loaded on request.
Extracted files
4 files captured from the source.
SKILL.md
---
name: codebase-inspection
version: 2.0.0
description: Advanced codebase analysis with HTML reports, git-aware diffs, trend tracking, SVG badges, CSV export, and CI/CD integration
tags: ["codebase", "analysis", "metrics", "devtools", "python", "cli", "ci", "reports", "open-source", "agent", "automation", "MIT"]
---
# Codebase Inspector
**Walk any directory and report language breakdowns, line counts, blank/comment lines, with HTML reports, git-aware diffs, trend tracking, SVG badges, CSV export, and CI integration.**
> *Keywords: codebase, analysis, metrics, devtools, python, cli, ci, reports, open-source, agent, automation, MIT*
>
> Part of the [itsPremkumar](https://github.com/itsPremkumar) Hermes / OpenClaw / Paperclip agent stack — 31 free, MIT-licensed, CI-tested agent-native tools.
## What it does
You can't manage codebase metrics you can't measure — and you can't see trends over time. Codebase Inspector solves this: Walk any directory and report language breakdowns, line counts, blank/comment lines, with HTML reports, git-aware diffs, trend tracking, SVG badges, CSV export, and CI integration.
**Best for:** Engineering leads, open-source maintainers, and CI pipelines.
## Features
- **Print a per-language LOC report**
- **Export CSV for dashboards**
- **Generate an HTML report**
- **Git-aware diff between snapshots**
- **Track trends and emit an SVG badge**
## Install
```bash
# Requires Python 3.8+. No pip install needed.
curl -O https://raw.githubusercontent.com/itsPremkumar/codebase-inspection/main/codebase_inspector.py
# Or copy the file anywhere — it's self-contained.
```
## Quick start
```bash
python codebase_inspector.py --help # list options
```
## Use cases
1. Print a per-language LOC report
1. Export CSV for dashboards
1. Generate an HTML report
1. Git-aware diff between snapshots
1. Track trends and emit an SVG badge
## Why choose this over alternatives
| Alternative | Why this skill is better |
|---|---|
| tokei/scc | Adds git-aware diffs, trend tracking, HTML reports, and badges in one CLI. |
| Manual wc -l | Per-language breakdown with comment/blank counts. |
| Spreadsheet metrics | CSV + HTML + badge, CI-ready. |
## FAQ (SEO / AEO)
**Q: How many languages?**
A: 25+ extensions recognized out of the box.
**Q: CI integration?**
A: Yes — example GitHub Actions workflow asserts a language ratio.
**Q: Badges?**
A: --badge emits an SVG you can drop in a README.
**Q: Offline?**
A: Yes — no network, no telemetry.
## Geo / local reach
Built and maintained by [@itsPremkumar](https://github.com/itsPremkumar) (Chennai, India · serving developers worldwide).
Free for individuals and teams everywhere. Documentation in English; tool output is locale-neutral.
## CI integration
```yaml
# .github/workflows/verify.yml
name: Verify
on: [push]
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actionREADME.md
[](../..) [](../..) [](../..) --- name: codebase-inspection version: 2.0.0 description: Advanced codebase analysis with HTML reports, git-aware diffs, trend tracking, SVG badges, CSV export, and CI/CD integration tags: ["codebase", "analysis", "metrics", "devtools", "python", "cli", "ci", "reports", "open-source", "agent", "automation", "MIT"] --- # Codebase Inspector **Walk any directory and report language breakdowns, line counts, blank/comment lines, with HTML reports, git-aware diffs, trend tracking, SVG badges, CSV export, and CI integration.** > *Keywords: codebase, analysis, metrics, devtools, python, cli, ci, reports, open-source, agent, automation, MIT* > > Part of the [itsPremkumar](https://github.com/itsPremkumar) Hermes / OpenClaw / Paperclip agent stack — 31 free, MIT-licensed, CI-tested agent-native tools. ## What it does You can't manage codebase metrics you can't measure — and you can't see trends over time. Codebase Inspector solves this: Walk any directory and report language breakdowns, line counts, blank/comment lines, with HTML reports, git-aware diffs, trend tracking, SVG badges, CSV export, and CI integration. **Best for:** Engineering leads, open-source maintainers, and CI pipelines. ## Features - **Print a per-language LOC report** - **Export CSV for dashboards** - **Generate an HTML report** - **Git-aware diff between snapshots** - **Track trends and emit an SVG badge** ## Install ```bash # Requires Python 3.8+. No pip install needed. curl -O https://raw.githubusercontent.com/itsPremkumar/codebase-inspection/main/codebase_inspector.py # Or copy the file anywhere — it's self-contained. ``` ## Quick start ```bash python codebase_inspector.py --help # list options ``` ## Use cases 1. Print a per-language LOC report 1. Export CSV for dashboards 1. Generate an HTML report 1. Git-aware diff between snapshots 1. Track trends and emit an SVG badge ## Why choose this over alternatives | Alternative | Why this skill is better | |---|---| | tokei/scc | Adds git-aware diffs, trend tracking, HTML reports, and badges in one CLI. | | Manual wc -l | Per-language breakdown with comment/blank counts. | | Spreadsheet metrics | CSV + HTML + badge, CI-ready. | ## FAQ (SEO / AEO) **Q: How many languages?** A: 25+ extensions recognized out of the box. **Q: CI integration?** A: Yes — example GitHub Actions workflow asserts a language ratio. **Q: Badges?** A: --badge emits an SVG you can drop in a README. **Q: Offline?** A: Yes — no network, no telemetry. ## Geo / local reach Built and maintained by [@itsPremkumar](https://github.com/itsPremkumar) (Chennai, India · serving developers worldwide). Free for individuals and teams everywhere. D
_meta.json
{
"ownerId": "kn7cgv1dp5c95kg54gbwh6xth583wafq",
"slug": "codebase-inspection",
"version": "2.0.1",
"publishedAt": 1783936679275
}skill-card.md
## Description: Advanced codebase analysis with HTML reports, git-aware diffs, trend tracking, SVG badges, CSV export, and CI/CD integration. This skill is ready for commercial/non-commercial use. ## Publisher: [itspremkumar](https://clawhub.ai/user/itspremkumar) ### License/Terms of Use: MIT-0 ## Use Case: Developers, engineering leads, open-source maintainers, and CI pipelines use this skill to inspect repositories, measure language and line-count metrics, generate reports, compare codebase snapshots, and track trends. ### Deployment Geography for Use: Global ## Known Risks and Mitigations: Risk: Downloading and running the script from a moving branch can execute code that differs from the reviewed release. Mitigation: Use the bundled reviewed artifact or a pinned release, and inspect the script before running it. Risk: Running repository analysis on untrusted projects can expose sensitive project metadata in generated reports or snapshots. Mitigation: Run the tool in an isolated environment without secrets, and handle HTML reports and .codebase-snapshots as potentially sensitive outputs. ## Reference(s): - [ClawHub Skill Page](https://clawhub.ai/itspremkumar/skills/codebase-inspection) - [Publisher Profile](https://clawhub.ai/user/itspremkumar) - [Project Repository](https://github.com/itsPremkumar/codebase-inspection) ## Skill Output: **Output Type(s):** [text, markdown, code, shell commands, configuration, guidance] **Output Format:** [Markdown guidance with shell commands and generated text, JSON, CSV, HTML, SVG badge, and snapshot files.] **Output Parameters:** [1D] **Other Properties Related to Output:** [Can produce repository metrics, language breakdowns, largest-file lists, diffs, trend snapshots, CI checks, and report files.] ## Skill Version(s): 2.0.1 (source: server-resolved ClawHub release metadata; artifact frontmatter and tool constant report 2.0.0) ## Ethical Considerations: Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.
AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/itspremkumar/skills/codebase-inspection",
"sourceUrl": "https://clawhub.ai/itspremkumar/skills/codebase-inspection",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-11T12:40:43.515Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-itspremkumar-codebase-inspection/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-itspremkumar-codebase-inspection/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-11T12:40:43.515Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "1.1K downloads",
"href": "https://clawhub.ai/itspremkumar/codebase-inspection",
"sourceUrl": "https://clawhub.ai/itspremkumar/codebase-inspection",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-11T12:40:43.515Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "2.0.1",
"href": "https://clawhub.ai/itspremkumar/codebase-inspection",
"sourceUrl": "https://clawhub.ai/itspremkumar/codebase-inspection",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-07-13T09:57:59.275Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-itspremkumar-codebase-inspection/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-itspremkumar-codebase-inspection/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 2.0.1",
"description": "SEO/AEO/GEO-optimized docs: richer features, FAQ, comparison table, geo/local section, accurate CLI quick-start; README badges. No code changes.",
"href": "https://clawhub.ai/itspremkumar/codebase-inspection",
"sourceUrl": "https://clawhub.ai/itspremkumar/codebase-inspection",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-07-13T09:57:59.275Z",
"isPublic": true
}
]
}Record generated Oct 11, 2026.
