Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

code-health

Skill by telegramdesktop

Measures Telegram Desktop code health on a freshly fetched origin/dev and keeps a findings ledger with stable identities. Turns findings into proposed quality tasks and checks changes against a quality ratchet.

  • Score 92
  • 34k stars
  • GPL-3.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install code-health

Built from the published package, never by AI.

git clone --depth 1 https://github.com/telegramdesktop/tdesktop /tmp/tdesktop && mkdir -p ~/.claude/skills && cp -r /tmp/tdesktop/.agents/skills/code-health ~/.claude/skills/code-health

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install code-health in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Code health is a skill for Telegram Desktop maintainers. It measures the exact origin/dev commit, including pinned submodules, without touching the working tree. Each finding is kept in a ledger with first-seen and resolved dates. The scan covers file and class size, function length, churn and hotspots, duplicated code, unused-function candidates, include-graph build cost, and headless test coverage.

It also surveys one hot area in depth, drafts area maps, and turns findings into proposed quality tasks with proof proportional to the change. The skill never edits product code. A check command compares a change with its base and reports errors and warnings against the quality ratchet. It is meant for the scheduled daily run, requested area surveys, and change checks. It needs Python 3, Git, and an ai-tdesktop checkout beside the repository.

Written from the project's SKILL.md and checked against it.

What it can do

  • ScanMeasures code health on the exact origin/dev commit and records the results in the ledger.
  • CheckCompares a change with its base and reports errors and warnings against the quality ratchet.
  • MovesProves that a Q1 change only moves code, listing added, removed and reordered lines.
  • VerifyReports each finding as present, resolved, changed or unknown compared with the base.
  • AreaPrints everything the latest scan knows about one area of the code.
  • SurveySurveys one hot area in depth and drafts or amends its area map without changing source.
  • AtlasBuilds a whole-tree area map skeleton for the owner to approve.
  • ProposalsWrites proposed quality tasks with proof, batched by class and routed through the inbox.

What you need

  • Python 3
  • Git
  • An ai-tdesktop checkout beside the Telegram Desktop checkout

Try asking

  • Run the daily code health scan on origin/dev and summarize the findings
  • Survey the highest-priority hot area of Telegram Desktop
  • Check my current change against the quality ratchet

Good to know

  • Never edits product code; improvements become ordinary queue tasks
  • A failed fetch is treated as a failed run, not an older ref
  • Records at most one scan per UTC day unless forced
  • Surveys at most one area a week

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/code-health/SKILL.md, .agents/skills/code-health/scripts/atlas.py, .agents/skills/code-health/scripts/clones.py, .agents/skills/code-health/scripts/cmake_model.py, .agents/skills/code-health/scripts/cpp_text.py, .agents/skills/code-health/scripts/harness.py, .agents/skills/code-health/scripts/harness_test.py, .agents/skills/code-health/scripts/health.py, .agents/skills/code-health/scripts/health_test.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md16 KB
  • agents/openai.yaml266 B
  • references/atlas.md4 KB
  • references/classes.md7 KB
  • references/harness-lifecycle.md6 KB
Show all 21 files
  • references/maps.md2 KB
  • references/survey.md3 KB
  • scripts/atlas.py11 KB
  • scripts/clones.py12 KB
  • scripts/cmake_model.py4 KB
  • scripts/cpp_text.py5 KB
  • scripts/harness.py16 KB
  • scripts/harness_test.py10 KB
  • scripts/health.py18 KB
  • scripts/health_test.py60 KB
  • scripts/history.py4 KB
  • scripts/includes.py5 KB
  • scripts/metrics.py4 KB
  • scripts/report.py19 KB
  • scripts/review.py26 KB
  • scripts/sources.py6 KB

Alternatives to code-health

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

code-health: common questions

Does code health change Telegram Desktop source code?

No. The skill measures, proposes and checks. Improvements land as ordinary queue tasks.

Where is the code health state stored?

The shared ledger, history, runs and decisions live in the code-health folder of the ai-tdesktop repository.

What does the scan measure?

It measures file and class size, function length, churn and hotspots, duplicated code, unused functions, include-graph build cost and headless test coverage.

How do I install code-health?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is code-health free?

The code is published under the GPL-3.0 licence. The service it connects to may have its own pricing.

Is code-health safe to use?

It scores 92 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to code-health?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

code-health Install

Add to stack

Loading.