telegram-claude-codex: Skill for Claude Code

.agents/skills/quality-code/SKILL.md

quality-code is a skill for Claude Code, Codex from Mark-Life/telegram-claude-codex. It costs 55 tokens per session (752 once invoked), scanned A, a copy of quality-code, MIT.

A set of guidelines for writing and reviewing full-stack TypeScript code. It uses TypeScript's type system to represent valid states, carry types from databases through servers to clients, and encourage real tests and useful observability.

In plain words
What is it for?
Use it when designing, writing, or reviewing TypeScript applications, including data validation, state modeling, testing, and monitoring.
Why use it?
It helps prevent invalid data combinations and catches design problems earlier than relying only on runtime checks or loosely typed code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is Mark-Life/telegram-claude-codex's own configuration. It tells Claude Code and Codex how to work on telegram-claude-codex itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything telegram-claude-codex configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Mark-Life/telegram-claude-codex. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Mark-Life/telegram-claude-codex/main/.agents/skills/quality-code/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Mark-Life/telegram-claude-codex

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 quality-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/mark-life/telegram-claude-codex/quality-code/github.svg)](https://agentmods.dev/skills/mark-life/telegram-claude-codex/quality-code)
Your own site
<a href="https://agentmods.dev/skills/mark-life/telegram-claude-codex/quality-code"><img src="https://agentmods.dev/badge/skills/mark-life/telegram-claude-codex/quality-code/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for quality-code

Your own site · 80×15
<a href="https://agentmods.dev/skills/mark-life/telegram-claude-codex/quality-code"><img src="https://agentmods.dev/badge/skills/mark-life/telegram-claude-codex/quality-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 752 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.1 $0.00055 $0.00752
Opus 5.5 $0.00022 $0.00301
Sonnet 5.5 $0.00011 $0.00150
Haiku 4.5 $0.00006 $0.00075

Measured 7d ago against content hash b5294e271ff2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

quality-code scanned grade A with 0 findings 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 7d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to quality-code — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/quality-code/SKILL.md · 94 lines

How it starts

The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Writing quality full-stack TypeScript

Apply these principles when writing or reviewing TypeScript code.

Make impossible states unrepresentable

Use the type system to make invalid states fail at compile time. Fewer reachable states = easier code to read and change.

Branded types

Brand primitives so they can't be mixed up. Validate once at the boundary; downstream code trusts the type.

type PhoneNumber = string & { __brand: "PhoneNumber" };

function parsePhone(input: string): PhoneNumber {
  if (!/^\+?\d{10,15}$/.test(input)) throw new Error(`Invalid: ${input}`);
  return input as PhoneNumber;
}

function sendSMS(to: PhoneNumber, body: string) {
  /* input is trusted */
}

If the project already uses a library with native branded-type support (e.g. Effect), use their primitives instead of rolling your own.

Discriminated unions over flag bags

// Don't — invalid combos representable
type State = { loading: boolean; user?: User; error?: string };

// Do — only valid states exist
type State =
  | { status: "loading" }
  | { status: "success"; user: User }
  | { status: "error"; error: string };

Let the types flow end-to-end

DB schema → server → client should share types without manual duplication. Use whatever end-to-end type tool the project already has (tRPC, oRPC, Elysia, TanStack Start). A users.email branded as Email should arrive on the client still branded.

Don't restate types you can derive. Reach for Pick, Omit, Parameters, ReturnType, Awaited, typeof etc. before writing a new interface. For function arguments, infer from the source instead of typing them by hand:

// Don't — duplicate shape, drifts when the row changes
type UserSummary = { id: string; email: Email };
function renderUser(u: UserSummary) {
  /* ... */
}

// Do — derive from the source of truth
type User = Awaited<ReturnType<typeof db.query.users.findFirst>>;
function renderUser(u: Pick<User, "id" | "email">) {
  /* ... */
}

Read the full file on GitHub · 94 lines

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. 7d ago First seen · 94 lines · 55 tokens per session scan A b5294e271ff2

Subscribe to this mod's changes

quality-code is a skill published in the GitHub repository Mark-Life/telegram-claude-codex (12 stars, last pushed 5d ago), licensed MIT. It adds 55 tokens to every session and 752 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to quality-code, differing in 0 lines, and is treated as a copy.

Related

quality-code compared with skills from other repositories

quality-code next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
quality-codeMark-Life/telegram-claude-codexSkill125d agoMITA55Claude Code, Codex
no-bare-castsprisma/ormSkill48ktodayApache-2.0A52Claude Code, Codex
agent-squad-typescript2FastLabs/agent-squadSkill7.8k19d agoApache-2.0A87Claude Code, Codex
better-t-stackAmanVarshney01/create-better-t-stackSkill5.9k12d agoMITA149Claude Code, Codex
splitting-oversized-modulesPostHog/posthogSkill41ktodaynoneA197Claude Code, Codex
ts-reviewliuyanghejerry/ClausuraSkill2054d agoMITA26Claude Code, Codex
react-frontendiliaal/whetstoneSkill37yesterdayMITA57Claude Code, Codex