agilab-code-statistics

agilab-code-statistics is a skill for Claude Code, Codex from ThalesGroup/agilab. It costs 56 tokens per session (1,266 once invoked), scanned A, original, no licence file.

A tool for producing quick, repeatable statistics about an AGILAB codebase without building it. It can summarize files, lines of code, languages, tests, documentation, source, and changes over time.

In plain words
What is it for?
Use it for line and file counts, language breakdowns, test-to-source or documentation ratios, change summaries, and repository footprint reports.
Why use it?
It provides a concise view of repository size and composition without waiting for a build or relying on manual counting.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/thalesgroup/agilab/agilab-code-statistics
Any agent
npx skills add ThalesGroup/agilab --skill agilab-code-statistics
Clone the repo
git clone --depth 1 https://github.com/ThalesGroup/agilab

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agilab-code-statistics

README.md
[![agentmods](https://agentmods.dev/badge/skills/thalesgroup/agilab/agilab-code-statistics.svg)](https://agentmods.dev/skills/thalesgroup/agilab/agilab-code-statistics)
Your own site
<a href="https://agentmods.dev/skills/thalesgroup/agilab/agilab-code-statistics"><img src="https://agentmods.dev/badge/skills/thalesgroup/agilab/agilab-code-statistics.svg" alt="Measured on agentmods" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,266 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00056 $0.01266
Opus 5 $0.00028 $0.00633
Sonnet 5 $0.00011 $0.00253
Haiku 4.5 $0.00006 $0.00127

Measured 4d ago against content hash 7f72e0d256aa, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

agilab-code-statistics scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

paths = subprocess.check_output(["git", "ls-files"], text=True).splitlines()
.claude/skills/agilab-code-statistics/SKILL.md · 156 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 156 lines · 56 tokens per session scan A 7f72e0d256aa

Subscribe to this mod's changes

agilab-code-statistics is a skill published in the GitHub repository ThalesGroup/agilab (21 stars, last pushed today), with no licence file. It adds 56 tokens to every session and 1,266 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

addressing-pr-review-comments

Address all valid review comments on a PR for the current branch in the streamlit/streamlit repo. Covers both inline review comments and general PR (issue) comments. Use when a PR has reviewer feedback to address, including code changes, style fixes, and documentation updates.

streamlit/streamlit · 61 tokens

generating-changelog

Generates polished website release notes between two git tags for docs.streamlit.io. Use when preparing a new Streamlit release or reviewing changes between versions.

streamlit/streamlit · 35 tokens

understanding-streamlit-architecture

Explains Streamlit's internal architecture including backend runtime, frontend rendering, and WebSocket communication. Use when debugging cross-layer issues, understanding how features work end-to-end, planning architectural changes, or onboarding to the codebase. Covers ForwardMsg/BackMsg protocol, script rerun…

streamlit/streamlit · 75 tokens

debugging-streamlit

Debug Streamlit frontend and backend changes using make debug with hot-reload. Use when testing code changes, investigating bugs, checking UI behavior, or needing screenshots of the running app.

streamlit/streamlit · 41 tokens

fixing-flaky-e2e-tests

Diagnose and fix flaky Playwright e2e tests. Use when tests fail intermittently, show timeout errors, have snapshot mismatches, or exhibit browser-specific failures.

streamlit/streamlit · 43 tokens

fixing-streamlit-ci

Analyze and fix failed GitHub Actions CI jobs for the current branch/PR. Use when CI checks fail, PR checks show failures, or you need to diagnose lint/type/test errors and verify fixes locally.

streamlit/streamlit · 47 tokens