app

app is a skill for Claude Code from t1/tdder. It costs 62 tokens per session (776 once invoked), scanned A, original, Apache-2.0.

A code-measurement method that assigns scores to parts of a program, such as variables, function calls, conditions, loops, and assignments.

In plain words
What is it for?
Use it to calculate code mass, compare alternative implementations, and guide refactoring after tests pass.
Why use it?
It gives developers a consistent way to compare two implementations. A lower total score suggests simpler code, all else being equal, especially during TDD, or test-driven development.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the tdder plugin — 15 skills, 2 commands, 6 agents, 1 hook shipped together

Good fit Use it to calculate code mass, compare alternative implementations, and guide refactoring after tests pass.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/t1/tdder/app
View source ↗ t1/tdder
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.

Any agent
npx skills add t1/tdder --skill app
Clone the repo
git clone --depth 1 https://github.com/t1/tdder

Made for: Claude Code.

Or install tdder, the plugin that ships this one along with the rest of its 15 skills, 2 commands, 6 agents, 1 hook.

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 app

README.md
[![agentmods](https://agentmods.dev/badge/skills/t1/tdder/app/github.svg)](https://agentmods.dev/skills/t1/tdder/app)
Your own site
<a href="https://agentmods.dev/skills/t1/tdder/app"><img src="https://agentmods.dev/badge/skills/t1/tdder/app/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 app

Your own site · 80×15
<a href="https://agentmods.dev/skills/t1/tdder/app"><img src="https://agentmods.dev/badge/skills/t1/tdder/app.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 776 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original 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.1 $0.00062 $0.00776
Opus 5.5 $0.00025 $0.00310
Sonnet 5.5 $0.00012 $0.00155
Haiku 4.5 $0.00006 $0.00078

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

Security

Grade A, and why

app 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 3mo 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.

skills/app/SKILL.md · 84 lines

How it starts

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

Absolute Priority Premise (APP)

Objective heuristic for comparing code quality by assigning mass values to code components. Lower total mass indicates simpler code.

The Six Components

Component Mass Examples
Constant 1 5, "hello", true, []
Binding 1 amount, userName, result
Invocation 2 calculate(), Math.max(a, b)
Conditional 4 if, switch, case, ?:
Loop 5 while, for, forEach, map
Assignment 6 x = 5, count++, list.add()

Calculation

Total Mass = (constants x 1) + (bindings x 1) + (invocations x 2)
           + (conditionals x 4) + (loops x 5) + (assignments x 6)

Lower mass = Better code (all else being equal).

Special Counting Rules

  • Method declarations count as Constant (1) + Binding (1)
  • Class definitions count as Constant (1) + Binding (1) (usually ignored in comparisons)
  • final fields and local variables are Bindings (1), not Assignments (6)
  • Only re-assignments that modify values count as Assignment (6)

Integration with TDD

  • Red Phase: Mass is irrelevant (focus on passing tests)
  • Green Phase: Minimal code naturally has low mass
  • Refactor Phase: Use APP to guide toward simpler solutions

Integration with Simple Design

  1. Tests Pass (Rule #1) - Always highest priority
  2. Reveals Intent (Rule #2) - May increase mass for clarity
  3. No Duplication (Rule #3) - Extract to reduce mass
  4. Fewest Elements (Rule #4) - Aligns with low mass goal

Simple Design Rule #2 trumps APP - Choose clarity over low mass. APP helps choose between equivalent clear solutions.

When to Apply

  • During refactoring to choose between working solutions
  • When comparing algorithms of similar functionality
  • To guide toward simpler implementations

When NOT to Apply

Read the full file on GitHub · 84 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. 3mo ago First seen · 84 lines · 62 tokens per session scan A d63bc6cea6ce

Subscribe to this mod's changes

app is a skill published in the GitHub repository t1/tdder (14 stars, last pushed today), licensed Apache-2.0. It adds 62 tokens to every session and 776 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

app compared with skills from other repositories

app next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
appt1/tdderSkill14todayApache-2.0A62Claude Code
tdd-arrange-act-asserthelmedeiros/clean-code-skillsSkill39mo agoMITA55Claude Code
tdd-red-green-refactorhelmedeiros/clean-code-skillsSkill39mo agoMITA50Claude Code
tdd-test-firsthelmedeiros/clean-code-skillsSkill39mo agoMITA49Claude Code
develop-tdddanielvm-git/bigpowersSkill2986d agoMITA38Claude Code, Codex
investigate-bugdanielvm-git/bigpowersSkill2986d agoMITA64Claude Code, Codex
judge-evaluationkunchenguid/compact-adviserSkill2352d agoMITA24Claude Code