bug-reproduce
Turn a known bug into a tight, red-capable reproducer, then prove the reproducer locks that…
Inspect codebases w/ pygount: LOC, languages, ratios.
$ npx -y skills add Prismer-AI/PrismerCloud --skill prismer-codebase-inspection --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/prismer-codebase-inspectionContext preview
The summary Claude sees to decide when to auto-load this skill.
Inspect codebases w/ pygount: LOC, languages, ratios.
name: prismer-codebase-inspection
scope: coding
description: "Inspect codebases w/ pygount: LOC, languages, ratios."
version: 1.0.0
author: Hermes Agent
license: MIT
platforms: [ linux, macos, windows ]
metadata:
nativeReplaces: [ codebase-inspection ]
hermes:
tags: [ LOC, Code Analysis, pygount, Codebase, Metrics, Repository ]
related_skills: [ github ]
requiresExplicitGrant: true
prerequisites:
commands: [ pygount ]This is the uniquely named `prismer-codebase-inspection` skill, adapted from Hermes. Use the actual tools exposed by the executing host; examples using terminal, process, delegate_task, vision_analyze or browser_* are not tool registrations. Missing dependencies do not hide this skill. Report command startup, version, account/permissions and task-specific live verification separately. Use task-owned artifact paths and existing user authorization; do not change shared accounts, Runtime/provider configuration, global security settings or unrelated work. See NOTICE.md and LICENSE for resource provenance. Runtime availability and upstream-entry suppression are owned by the integration layer.
Create TASK_TOOL_DIR with a task-owned temporary directory before installing. Use the returned venv executable path in all examples, record the resolved version, and never swallow install errors. No system Python modifications. LOC is inventory, not an architecture quality score; exclude generated/mirrored catalogs explicitly.
Analyze repositories for lines of code, language breakdown, file counts, and code-vs-comment ratios using `pygount`.
python3 -m venv "$TASK_TOOL_DIR/venv" "$TASK_TOOL_DIR/venv/bin/python" -m pip install pygount "$TASK_TOOL_DIR/venv/bin/pygount" --version # For this shell only, so subsequent pygount examples use this isolated install. export PATH="$TASK_TOOL_DIR/venv/bin:$PATH"
Get a full language breakdown with file counts, code lines, and comment lines:
cd /path/to/repo pygount --format=summary \ --folders-to-skip=".git,node_modules,venv,.venv,__pycache__,.cache,dist,build,.next,.tox,.eggs,*.egg-info" \ .
**IMPORTANT:** Always use `--folders-to-skip` to exclude dependency/build directories, otherwise pygount will crawl them and take a very long time or hang.
Adjust based on the project type:
# Python projects --folders-to-skip=".git,venv,.venv,__pycache__,.cache,dist,build,.tox,.eggs,.mypy_cache" # JavaScript/TypeScript projects --folders-to-skip=".git,node_modules,dist,build,.next,.cache,.turbo,coverage" # General catch-all --folders-to-skip=".git,node_modules,venv,.venv,__pycache__,.cache,dist,build,.next,.tox,vendor,third_party"
# Only count Python files pygount --suffix=py --format=summary . # Only count Python and YAML pygount --suffix=py,yaml,yml --format=summary .
# Default format shows per-file breakdown pygount --folders-to-skip=".git,node_modules,venv" . # Sort by code lines (pipe through sort) pygount --folders-to-skip=".git,node_modules,venv" . | sort -t$'\t' -k1 -nr | head -20
# Summary table (default recommendation) pygount --format=summary . # JSON output for programmatic use pygount --format=json . # Pipe-friendly: Language, file count, code, docs, empty, string pygount --format=summary . 2>/dev/null
The summary table columns:
Special pseudo-languages:
1. **Always exclude .git, node_modules, venv** — without `--folders-to-skip`, pygount will crawl everything and may take minutes or hang on large dependency trees. 2. **Markdown shows 0 code lines** — pygount classifies all Markdown content as comments, not code. This is expected behavior. 3. **JSON files show low code counts** — pygount may count JSON lines conservatively. For accurate JSON line counts, use `wc -l` directly. 4. **Large monorepos** — for very large repos, consider using `--suffix` to target specific languages rather than scanning everything.
Repo: Prismer-AI/PrismerCloud
Turn a known bug into a tight, red-capable reproducer, then prove the reproducer locks that…
Review a diff against its acceptance criteria in four segments (convention adherence, bug…
Five-dimension design audit (frontend UI/UX · server data-model & flow · endpoint spec ·…
Before merge, mechanize Documentation-First — derive the code delta from git diff, then…
Diagnose the local dev machine before any APC loop step — run apc env doctor, classify each…
Close out a local coding task on the bound daemon — stage, commit, branch, merge, push via…