aiskillstore/marketplace / skills/0xdarkmatter/code-stats
code-stats
VerifiedAnalyze codebase with tokei (fast line counts by language) and difft (semantic AST-aware diffs). Get quick project overview without manual counting. Triggers on: how big is codebase, count lines of code, what languages, show semantic diff, compare files, code statistics.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 2.7 KB |
| assets/.gitkeep | other | 0 B |
| references/difft-advanced.md | markdown | 5.1 KB |
| references/tokei-advanced.md | markdown | 5.1 KB |
| scripts/.gitkeep | other | 0 B |
| skill-report.json | config | 35.7 KB |
skill-report.json
View on GitHub{
"schema_version": "2.0",
"meta": {
"generated_at": "2026-07-06T14:21:48.746Z",
"slug": "0xdarkmatter-code-stats",
"source_url": "https://github.com/0xDarkMatter/claude-mods/tree/main/skills/code-stats",
"source_ref": "main",
"model": "codex",
"analysis_version": "3.0.0",
"source_type": "community",
"content_hash": "05a4bb46de040f24db2f5a61c337c7f7b7a5cdfd24f60762d5d5792df714be7d",
"tree_hash": "48b59fb57a8eef5ad1e83a9c95d53f013870a6d4c3278aa54781c218beb73180",
"provenance": {
"model_effective": "codex",
"fallback_chain": [
{
"agent": "codex",
"outcome": "success"
}
],
"analysis_version": "3.0.0"
}
},
"skill": {
"name": "code-stats",
"description": "Analyze repository size, language mix, and semantic code changes with tokei and difftastic command examples.",
"summary": "Run tokei and difftastic workflows for code metrics and semantic diffs.",
"icon": "📦",
"version": "1.0.1",
"author": "0xDarkMatter",
"license": "MIT",
"tags": [
"code-metrics",
"line-counts",
"semantic-diff",
"tokei",
"difftastic"
],
"supported_tools": [
"claude",
"codex",
"claude-code"
],
"risk_factors": [
"filesystem",
"external_commands"
],
"category": "coding"
},
"security_audit": {
"risk_level": "safe",
"is_blocked": false,
"safe_to_publish": true,
"analysis_status": "ok",
"summary": "All static findings were adjudicated as false positives. The flagged lines are documentation examples for local tokei and difftastic commands, git configuration, pager use, and jq filters; I found no prompt injection, network access, or data exfiltration intent.",
"remediation": [
{
"issue": "Command examples rely on Bash and local CLI tools.",
"suggestion": "Add a short safety note telling users to review paths and exclude private or generated directories before running counts.",
"severity": "low"
},
{
"issue": "Global git and difftastic configuration examples touch user-level config files.",
"suggestion": "Label global configuration as optional and show repository-scoped alternatives first where possible.",
"severity": "low"
},
{
"issue": "Advanced examples include shell substitutions that may trigger security scanners.",
"suggestion": "State that examples use fixed local commands and should not interpolate untrusted input.",
"severity": "low"
}
],
"risk_factor_evidence": [
{
"factor": "filesystem",
"evidence": [
{
"file": "references/difft-advanced.md",
"line_start": 87,
"line_end": 87
},
{
"file": "references/difft-advanced.md",
"line_start": 261,
"line_end": 261
},
{
"file": "references/difft-advanced.md",
"line_start": 87,
"line_end": 87
},
{
"file": "references/difft-advanced.md",
"line_start": 261,
"line_end": 261
},
{
"file": "references/difft-advanced.md",
"line_start": 211,
"line_end": 211
}
]
},
{
"factor": "external_commands",
"evidence": [
{
"file": "references/tokei-advanced.md",
"line_start": 145,
"line_end": 145
},
{
"file": "references/tokei-advanced.md",
"line_start": 155,
"line_end": 155
},
{
"file": "references/tokei-advanced.md",
"line_start": 172,
"line_end": 172
},
{
"file": "references/tokei-advanced.md",
"line_start": 192,
"line_end": 192
},
{
"file": "references/tokei-advanced.md",
"line_start": 193,
"line_end": 193
},
{
"file": "references/tokei-advanced.md",
"line_start": 151,
"line_end": 151
},
{
"file": "references/tokei-advanced.md",
"line_start": 168,
"line_end": 168
},
{
"file": "references/tokei-advanced.md",
"line_start": 189,
"line_end": 189
},
{
"file": "SKILL.md",
"line_start": 17,
"line_end": 32
},
{
"file": "SKILL.md",
"line_start": 32,
"line_end": 36
},
{
"file": "SKILL.md",
"line_start": 36,
"line_end": 45
},
{
"file": "SKILL.md",
"line_start": 45,
"line_end": 49
},
{
"file": "SKILL.md",
"line_start": 49,
"line_end": 59
},
{
"file": "SKILL.md",
"line_start": 59,
"line_end": 73
},
{
"file": "SKILL.md",
"line_start": 73,
"line_end": 74
},
{
"file": "SKILL.md",
"line_start": 74,
"line_end": 75
},
{
"file": "SKILL.md",
"line_start": 75,
"line_end": 76
},
{
"file": "SKILL.md",
"line_start": 76,
"line_end": 77
},
{
"file": "SKILL.md",
"line_start": 77,
"line_end": 78
},
{
"file": "SKILL.md",
"line_start": 78,
"line_end": 79
},
{
"file": "SKILL.md",
"line_start": 79,
"line_end": 80
},
{
"file": "SKILL.md",
"line_start": 80,
"line_end": 93
},
{
"file": "SKILL.md",
"line_start": 93,
"line_end": 94
}
]
}
],
"static_findings": [
{
"id": "filesystem:references/difft-advanced.md:87:hidden-file-in-home-directory",
"category": "filesystem",
"severity": "high",
"pattern": "Hidden file in home directory",
"file": "references/difft-advanced.md",
"line_start": 87,
"line_end": 87,
"snippet": "# Add to ~/.gitconfig"
},
{
"id": "filesystem:references/difft-advanced.md:261:hidden-file-in-home-directory",
"category": "filesystem",
"severity": "high",
"pattern": "Hidden file in home directory",
"file": "references/difft-advanced.md",
"line_start": 261,
"line_end": 261,
"snippet": "Create `~/.config/difft/config.toml`:"
},
{
"id": "filesystem:references/difft-advanced.md:87:hidden-file-access",
"category": "filesystem",
"severity": "medium",
"pattern": "Hidden file access",
"file": "references/difft-advanced.md",
"line_start": 87,
"line_end": 87,
"snippet": "# Add to ~/.gitconfig"
},
{
"id": "filesystem:references/difft-advanced.md:261:hidden-file-access",
"category": "filesystem",
"severity": "medium",
"pattern": "Hidden file access",
"file": "references/difft-advanced.md",
"line_start": 261,
"line_end": 261,
"snippet": "Create `~/.config/difft/config.toml`:"
},
{
"id": "filesystem:references/difft-advanced.md:211:standard-device-file-access",
"category": "filesystem",
"severity": "low",
"pattern": "Standard device file access",
"file": "references/difft-advanced.md",
"line_start": 211,
"line_end": 211,
"snippet": "difft old.ts new.ts > /dev/null"
},
{
"id": "sensitive:references/difft-advanced.md:87:git-config-file",
"category": "sensitive",
"severity": "medium",
"pattern": "Git config file",
"file": "references/difft-advanced.md",
"line_start": 87,
"line_end": 87,
"snippet": "# Add to ~/.gitconfig"
},
{
"id": "sensitive:references/difft-advanced.md:90:git-config-file",
"category": "sensitive",
"severity": "medium",
"pattern": "Git config file",
"file": "references/difft-advanced.md",
"line_start": 90,
"line_end": 90,
"snippet": "# Or add to .gitconfig directly:"
},
{
"id": "blocker:references/difft-advanced.md:58:network-reconnaissance",
"category": "blocker",
"severity": "low",
"pattern": "Network reconnaissance",
"file": "references/difft-advanced.md",
"line_start": 58,
"line_end": 58,
"snippet": "difft --color=always old.ts new.ts | less -R"
},
{
"id": "blocker:references/difft-advanced.md:205:network-reconnaissance",
"category": "blocker",
"severity": "low",
"pattern": "Network reconnaissance",
"file": "references/difft-advanced.md",
"line_start": 205,
"line_end": 205,
"snippet": "difft old.ts new.ts | less -R"
},
{
"id": "external_commands:references/tokei-advanced.md:145:shell-command-substitution",
"category": "external_commands",
"severity": "medium",
"pattern": "Shell command substitution",
"file": "references/tokei-advanced.md",
"line_start": 145,
"line_end": 145,
"snippet": "echo \"Before: $(jq '.Total.code' before.json), After: $(jq '.Total.code' after.json)\""
},
{
"id": "external_commands:references/tokei-advanced.md:155:shell-command-substitution",
"category": "external_commands",
"severity": "medium",
"pattern": "Shell command substitution",
"file": "references/tokei-advanced.md",
"line_start": 155,
"line_end": 155,
"snippet": "LINES=$(tokei --output json | jq '.Total.code')"
},
{
"id": "external_commands:references/tokei-advanced.md:172:shell-command-substitution",
"category": "external_commands",
"severity": "medium",
"pattern": "Shell command substitution",
"file": "references/tokei-advanced.md",
"line_start": 172,
"line_end": 172,
"snippet": "echo \"Generated: $(date)\""
},
{
"id": "external_commands:references/tokei-advanced.md:192:shell-command-substitution",
"category": "external_commands",
"severity": "medium",
"pattern": "Shell command substitution",
"file": "references/tokei-advanced.md",
"line_start": 192,
"line_end": 192,
"snippet": "DATE=$(date +%Y-%m-%d)"
},
{
"id": "external_commands:references/tokei-advanced.md:193:shell-command-substitution",
"category": "external_commands",
"severity": "medium",
"pattern": "Shell command substitution",
"file": "references/tokei-advanced.md",
"line_start": 193,
"line_end": 193,
"snippet": "STATS=$(tokei --output json | jq -c '{date: \"'\"$DATE\"'\", stats: .Total}')"
},
{
"id": "external_commands:references/tokei-advanced.md:151:unix-shell-invocation",
"category": "external_commands",
"severity": "medium",
"pattern": "Unix shell invocation",
"file": "references/tokei-advanced.md",
"line_start": 151,
"line_end": 151,
"snippet": "#!/bin/bash"
},
{
"id": "external_commands:references/tokei-advanced.md:168:unix-shell-invocation",
"category": "external_commands",
"severity": "medium",
"pattern": "Unix shell invocation",
"file": "references/tokei-advanced.md",
"line_start": 168,
"line_end": 168,
"snippet": "#!/bin/bash"
},
{
"id": "external_commands:references/tokei-advanced.md:189:unix-shell-invocation",
"category": "external_commands",
"severity": "medium",
"pattern": "Unix shell invocation",
"file": "references/tokei-advanced.md",
"line_start": 189,
"line_end": 189,
"snippet": "#!/bin/bash"
},
{
"id": "sensitive:references/tokei-advanced.md:181:certificate-key-files",
"category": "sensitive",
"severity": "high",
"pattern": "Certificate/key files",
"file": "references/tokei-advanced.md",
"line_start": 181,
"line_end": 181,
"snippet": "select(.key != \"Total\") |"
},
{
"id": "sensitive:references/tokei-advanced.md:182:certificate-key-files",
"category": "sensitive",
"severity": "high",
"pattern": "Certificate/key files",
"file": "references/tokei-advanced.md",
"line_start": 182,
"line_end": 182,
"snippet": "\"- \\(.key): \\(.value.code) lines (\\(.value.files) files)\""
},
{
"id": "external_commands:SKILL.md:17:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 17,
"line_end": 32,
"snippet": "```bash"
},
{
"id": "external_commands:SKILL.md:32:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 32,
"line_end": 36,
"snippet": "```"
},
{
"id": "external_commands:SKILL.md:36:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 36,
"line_end": 45,
"snippet": "```"
},
{
"id": "external_commands:SKILL.md:45:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 45,
"line_end": 49,
"snippet": "```"
},
{
"id": "external_commands:SKILL.md:49:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 49,
"line_end": 59,
"snippet": "```bash"
},
{
"id": "external_commands:SKILL.md:59:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 59,
"line_end": 73,
"snippet": "```"
},
{
"id": "external_commands:SKILL.md:73:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 73,
"line_end": 74,
"snippet": "| Count all code | `tokei` |"
},
{
"id": "external_commands:SKILL.md:74:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 74,
"line_end": 75,
"snippet": "| Compact output | `tokei --compact` |"
},
{
"id": "external_commands:SKILL.md:75:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 75,
"line_end": 76,
"snippet": "| Sort by code | `tokei --sort code` |"
},
{
"id": "external_commands:SKILL.md:76:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 76,
"line_end": 77,
"snippet": "| TypeScript only | `tokei -t TypeScript` |"
},
{
"id": "external_commands:SKILL.md:77:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 77,
"line_end": 78,
"snippet": "| JSON output | `tokei --output json` |"
},
{
"id": "external_commands:SKILL.md:78:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 78,
"line_end": 79,
"snippet": "| Exclude dir | `tokei --exclude node_modules` |"
},
{
"id": "external_commands:SKILL.md:79:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 79,
"line_end": 80,
"snippet": "| Semantic diff | `difft file1 file2` |"
},
{
"id": "external_commands:SKILL.md:80:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 80,
"line_end": 93,
"snippet": "| Git diff | `GIT_EXTERNAL_DIFF=difft git diff` |"
},
{
"id": "external_commands:SKILL.md:93:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 93,
"line_end": 94,
"snippet": "- `./references/tokei-advanced.md` - Filtering, output formats, CI integration"
}
],
"finding_verdicts": [
{
"id": "filesystem:references/difft-advanced.md:87:hidden-file-in-home-directory",
"verdict": "false_positive",
"confidence": 0.89,
"reason": "The line is a comment introducing optional git configuration for difftastic. It does not read secrets or write a hidden file by itself, and the following command is explicit user documentation."
},
{
"id": "filesystem:references/difft-advanced.md:261:hidden-file-in-home-directory",
"verdict": "false_positive",
"confidence": 0.9,
"reason": "This is documentation for an optional difftastic configuration file. It asks the user to create a normal tool config, not to read hidden data or modify unrelated files."
},
{
"id": "filesystem:references/difft-advanced.md:87:hidden-file-access",
"verdict": "false_positive",
"confidence": 0.9,
"reason": "The hidden-file reference is part of a transparent git configuration example. It is not stealth file access, credential harvesting, or automatic modification."
},
{
"id": "filesystem:references/difft-advanced.md:261:hidden-file-access",
"verdict": "false_positive",
"confidence": 0.9,
"reason": "The path is an explicit difftastic config location described for user setup. No instruction reads hidden files or accesses unrelated home-directory data."
},
{
"id": "filesystem:references/difft-advanced.md:211:standard-device-file-access",
"verdict": "false_positive",
"confidence": 0.96,
"reason": "The command redirects difftastic output to /dev/null to check the exit code. This is a standard local discard device and does not expose or alter user data."
},
{
"id": "sensitive:references/difft-advanced.md:87:git-config-file",
"verdict": "false_positive",
"confidence": 0.9,
"reason": "The line introduces a user-visible git configuration example for difftastic. It does not access credentials or modify configuration without user intent."
},
{
"id": "sensitive:references/difft-advanced.md:90:git-config-file",
"verdict": "false_positive",
"confidence": 0.91,
"reason": "The line is a commented example showing how to add difftastic to git config. It is transparent user documentation, not credential access or stealth modification."
},
{
"id": "blocker:references/difft-advanced.md:58:network-reconnaissance",
"verdict": "false_positive",
"confidence": 0.97,
"reason": "The pipeline sends local difftastic output to less for paging. No network tool or remote target is present; the reconnaissance label appears to match text accidentally."
},
{
"id": "blocker:references/difft-advanced.md:205:network-reconnaissance",
"verdict": "false_positive",
"confidence": 0.97,
"reason": "The command pipes local diff output into less for terminal viewing. It has no network destination, scanning behavior, or reconnaissance intent."
},
{
"id": "external_commands:references/tokei-advanced.md:145:shell-command-substitution",
"verdict": "false_positive",
"confidence": 0.86,
"reason": "The substitution runs jq against previously generated local JSON files to print before and after counts. The command names are fixed and no untrusted shell input is interpolated."
},
{
"id": "external_commands:references/tokei-advanced.md:155:shell-command-substitution",
"verdict": "false_positive",
"confidence": 0.87,
"reason": "The substitution captures tokei and jq output for a CI size check. It is a local metrics example with fixed commands and no external destination."
},
{
"id": "external_commands:references/tokei-advanced.md:172:shell-command-substitution",
"verdict": "false_positive",
"confidence": 0.94,
"reason": "The substitution inserts the local date into a report heading. It does not execute user-controlled content or access sensitive data."
},
{
"id": "external_commands:references/tokei-advanced.md:192:shell-command-substitution",
"verdict": "false_positive",
"confidence": 0.94,
"reason": "The substitution stores the local date for history entries. This is fixed local command use and not a command injection pattern."
},
{
"id": "external_commands:references/tokei-advanced.md:193:shell-command-substitution",
"verdict": "false_positive",
"confidence": 0.85,
"reason": "The substitution combines tokei output, jq, and a date variable to append local metrics. It does not include attacker-controlled command text or network transfer."
},
{
"id": "external_commands:references/tokei-advanced.md:151:unix-shell-invocation",
"verdict": "false_positive",
"confidence": 0.96,
"reason": "The shebang marks an example bash script for CI line limits. It is documentation of a local workflow, not an executable bundled script."
},
{
"id": "external_commands:references/tokei-advanced.md:168:unix-shell-invocation",
"verdict": "false_positive",
"confidence": 0.96,
"reason": "The shebang marks a documented report-generation example. The script uses local tokei and jq output and is not bundled as executable code."
},
{
"id": "external_commands:references/tokei-advanced.md:189:unix-shell-invocation",
"verdict": "false_positive",
"confidence": 0.96,
"reason": "The shebang introduces a local history-tracking example. It records local code statistics and does not indicate malicious command execution."
},
{
"id": "sensitive:references/tokei-advanced.md:181:certificate-key-files",
"verdict": "false_positive",
"confidence": 0.99,
"reason": "The .key token is a jq field name from to_entries, not a certificate or private key file. The context formats language names from tokei output."
},
{
"id": "sensitive:references/tokei-advanced.md:182:certificate-key-files",
"verdict": "false_positive",
"confidence": 0.99,
"reason": "The .key reference is part of a jq expression that prints language names. It is not a filesystem path and cannot access certificate or key files."
},
{
"id": "external_commands:SKILL.md:17:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.99,
"reason": "This finding points at a Markdown bash code fence containing tokei examples. It is not Ruby backtick execution or hidden dynamic command evaluation."
},
{
"id": "external_commands:SKILL.md:32:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.99,
"reason": "This line closes a Markdown code block and is not executable syntax. The surrounding content is sample tokei output."
},
{
"id": "external_commands:SKILL.md:36:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.99,
"reason": "This line is inside a sample output block, not executable code. The static pattern confused Markdown fences with shell backticks."
},
{
"id": "external_commands:SKILL.md:45:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.99,
"reason": "This line closes a sample output block in Markdown. It has no shell, Ruby, or runtime execution behavior."
},
{
"id": "external_commands:SKILL.md:49:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.98,
"reason": "This is a Markdown bash fence introducing difftastic examples. The commands are explicit local diff and git examples, not Ruby backtick execution."
},
{
"id": "external_commands:SKILL.md:59:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.99,
"reason": "This closes the difftastic example block. It is Markdown syntax and has no execution semantics by itself."
},
{
"id": "external_commands:SKILL.md:73:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.99,
"reason": "The backticks format a command name in a Markdown table. It is user-facing documentation and cannot execute code."
},
{
"id": "external_commands:SKILL.md:74:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.99,
"reason": "The backticks format a tokei option in a Markdown table. It is documentation, not dynamic shell or Ruby execution."
},
{
"id": "external_commands:SKILL.md:75:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.99,
"reason": "The backticks format a tokei sorting command in Markdown. This is static reference text with no execution path."
},
{
"id": "external_commands:SKILL.md:76:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.99,
"reason": "The backticks format a TypeScript-only tokei example. It is a documented local command, not Ruby shell backtick execution."
},
{
"id": "external_commands:SKILL.md:77:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.99,
"reason": "The backticks format a tokei JSON output example. Markdown inline code is not executable and has no injection vector."
},
{
"id": "external_commands:SKILL.md:78:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.99,
"reason": "The backticks format an exclude-directory example for tokei. This is documentation for a local command and not runtime evaluation."
},
{
"id": "external_commands:SKILL.md:79:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.99,
"reason": "The backticks format a difftastic command in a Markdown table. It is static documentation and cannot execute by itself."
},
{
"id": "external_commands:SKILL.md:80:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.99,
"reason": "The backticks format a git diff command in a Markdown table. It is documentation for a local command, not dynamic shell execution."
},
{
"id": "external_commands:SKILL.md:93:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.99,
"reason": "The backticks format a relative reference file path in Markdown. It is not command execution and does not request sensitive access."
}
],
"semantic_findings": [],
"critical_findings": [],
"high_findings": [],
"medium_findings": [],
"low_findings": [],
"dangerous_patterns": [],
"files_scanned": 5,
"total_lines": 636,
"audit_model": "codex",
"audited_at": "2026-07-06T14:21:48.746Z",
"agent_auto_install_policy": "allowed",
"manual_install_policy": "allowed"
},
"content": {
"user_title": "Analyze Code Size and Semantic Diffs",
"value_statement": "Teams need quick visibility into codebase size, language mix, and meaningful changes. This skill guides Claude, Codex, and Claude Code to run tokei and difftastic safely.",
"seo_keywords": [
"Claude",
"Codex",
"Claude Code",
"tokei",
"difftastic",
"code statistics",
"line count analysis",
"semantic diff",
"codebase metrics",
"developer tooling"
],
"actual_capabilities": [
"Count code, comments, blank lines, and files by language with tokei.",
"Filter line counts by language, path, depth, and ignored directories.",
"Generate compact, JSON, YAML, and per-file statistics from tokei.",
"Compare files, directories, branches, and commits with difftastic.",
"Explain semantic diffs that ignore formatting and identify moved code.",
"Use git integration examples for external diffs and difftool workflows."
],
"limitations": [
"Requires installed tokei and difftastic command-line tools.",
"Analysis is limited to files the agent can access in the workspace.",
"Generated counts depend on tokei language detection and ignore rules.",
"The skill reports statistics; it does not assess code quality or security."
],
"use_cases": [
{
"title": "Estimate project size",
"description": "Get language totals before planning a migration or staffing review.",
"target_user": "Engineering manager"
},
{
"title": "Review refactoring impact",
"description": "Compare files or branches semantically to separate behavior changes from formatting noise.",
"target_user": "Software developer"
},
{
"title": "Track repository growth",
"description": "Create repeatable tokei reports for CI size checks and trend tracking.",
"target_user": "DevOps engineer"
}
],
"prompt_templates": [
{
"title": "Count this repository",
"scenario": "Beginner overview",
"prompt": "Use tokei to summarize this repository by language. Exclude dependency and build folders. Explain total code, comments, and blanks."
},
{
"title": "Compare two files",
"scenario": "Intermediate diff",
"prompt": "Use difftastic to compare these two files semantically. Explain moved code, renamed symbols, and real behavior changes."
},
{
"title": "Create a size baseline",
"scenario": "Team reporting",
"prompt": "Run tokei with compact and machine-readable output. Summarize language totals and note directories that should be excluded next time."
},
{
"title": "Review a refactor",
"scenario": "Advanced code review",
"prompt": "Compare the current branch against main with difftastic. Focus on semantic changes and ignore formatting-only churn."
}
],
"output_examples": [
{
"input": "Summarize this repository with tokei.",
"output": [
"Shows a language breakdown with files, total lines, code lines, comments, and blanks.",
"Highlights the largest languages and notes excluded folders."
]
},
{
"input": "Compare old.ts and new.ts with difftastic.",
"output": [
"Explains that formatting-only changes were ignored.",
"Lists moved functions, renamed variables, and semantic edits that affect review."
]
},
{
"input": "Build a CI line-count report.",
"output": [
"Reports whether the current code count is under the configured limit.",
"Provides a short trend summary suitable for a pull request comment."
]
}
],
"best_practices": [
"Exclude dependency, generated, and build folders before sharing totals.",
"Use semantic diffs for refactors where formatting changes obscure behavior.",
"State the paths or branches to compare before asking for a report."
],
"anti_patterns": [
"Do not run counts on private or unrelated folders without permission.",
"Do not compare generated artifacts when reviewing source changes.",
"Do not treat line counts as a direct measure of engineering value."
],
"faq": [
{
"question": "Which tools does this skill use?",
"answer": "It uses tokei for line counts and difftastic for semantic diffs."
},
{
"question": "Does it install tools automatically?",
"answer": "No. The user must install tokei and difftastic before running commands."
},
{
"question": "Can it analyze hidden or ignored files?",
"answer": "Only when requested with tool options. Default examples respect normal ignore behavior."
},
{
"question": "Can it compare branches?",
"answer": "Yes. It includes git diff and git show workflows that use difftastic as an external diff tool."
},
{
"question": "Does it send data over the network?",
"answer": "The documented commands operate on local files and do not include network requests."
},
{
"question": "Is it useful for non-code files?",
"answer": "Tokei focuses on recognized programming and markup languages. Difftastic works best when it can parse the file type."
}
]
},
"file_structure": [
{
"name": "assets",
"type": "dir",
"path": "assets",
"children": [
{
"name": ".gitkeep",
"type": "file",
"path": "assets/.gitkeep",
"lines": 0
}
]
},
{
"name": "references",
"type": "dir",
"path": "references",
"children": [
{
"name": "difft-advanced.md",
"type": "file",
"path": "references/difft-advanced.md",
"lines": 284
},
{
"name": "tokei-advanced.md",
"type": "file",
"path": "references/tokei-advanced.md",
"lines": 255
}
]
},
{
"name": "scripts",
"type": "dir",
"path": "scripts",
"children": [
{
"name": ".gitkeep",
"type": "file",
"path": "scripts/.gitkeep",
"lines": 0
}
]
},
{
"name": "SKILL.md",
"type": "file",
"path": "SKILL.md",
"lines": 95
}
]
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |