add-feature

add-feature is a skill for Claude Code, Codex from edimuj/tokenlean. It costs 51 tokens per session (598 once invoked), scanned A, original, MIT.

A workflow for adding new functionality to an existing codebase by first finding related code and learning its conventions.

In plain words
What is it for?
Use it to add features such as flags, endpoints, components, or modules, then connect them to the system and verify them.
Why use it?
It reduces the risk of placing a feature in the wrong place, duplicating existing work, or missing related integrations and tests.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to add features such as flags, endpoints, components, or modules, then connect them to the system and verify them.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/edimuj/tokenlean/add-feature
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 edimuj/tokenlean --skill add-feature
Clone the repo
git clone --depth 1 https://github.com/edimuj/tokenlean

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 add-feature

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/edimuj/tokenlean/add-feature"><img src="https://agentmods.dev/badge/skills/edimuj/tokenlean/add-feature.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 598 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 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.00051 $0.00598
Opus 5.5 $0.00020 $0.00239
Sonnet 5.5 $0.00010 $0.00120
Haiku 4.5 $0.00005 $0.00060

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

Security

Grade A, and why

add-feature 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/claude/add-feature/SKILL.md · 91 lines

How it starts

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

Add Feature

Add functionality by understanding existing code before writing new code.

Workflow

Locate → Understand → Implement → Integrate → Verify

1. Locate

Find where the feature belongs:

tl parallel "tl structure" "tl entry" "tl example <pattern>"

2. Understand

Before writing a single line:

tl parallel \
  "symbols=tl symbols <file>" \
  "style=tl style" \
  "deps=tl deps <file>" \
  "exports=tl exports <file>"

3. Implement

# Extending an existing file?
tl snippet <function> <file>   # Read just the function you're modifying

# New file?
# Follow conventions from tl style, place per tl structure

# Adding a dependency?
tl npm <package>           # Check size, health, and download stats first

4. Integrate

Wire it into the existing system:

tl parallel \
  "impact=tl impact <modified-file>" \
  "guard=tl guard" \
  "diff=tl diff --breaking"

5. Verify

tl parallel "test=tl run '<test command>'" "testmap=tl test-map <file>"

Decision tree

Feature request → Does similar functionality exist?
  ├─ Yes (extending) → tl example to find the pattern
  │   → tl symbols on target file
  │   → tl snippet on the function to extend
  │   → Implement following the existing pattern
  ├─ Yes (replacing) → tl impact on what you're replacing
  │   → tl exports to check public API surface
  │   → Implement, update all consumers
  └─ No (greenfield) → tl structure for placement
      → tl style for conventions
      → tl entry to understand how it'll be wired in
      → Implement, then tl guard to check integration

Tips

  • Always run tl example before implementing — the codebase almost always has a precedent
  • Use tl npm before adding any new dependency — check size and health
  • Run tl diff --breaking after modifying any file with exports
  • For React/frontend projects, also use tl component on main UI files
  • If a file is under 150 lines, just read it directly — tokenlean overhead isn't worth it

Read the full file on GitHub · 91 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 · 91 lines · 51 tokens per session scan A b7a30c3b1c49

Subscribe to this mod's changes

add-feature is a skill published in the GitHub repository edimuj/tokenlean (14 stars, last pushed 4mo ago), licensed MIT. It adds 51 tokens to every session and 598 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

add-feature compared with skills from other repositories

add-feature next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
add-featureedimuj/tokenleanSkill144mo agoMITA51Claude Code, Codex
zerodustandresdefi/zerodustSkill224d agoMITA124Claude Code, Codex
ctx2imgKoukyosyumei/h5i-ctx2imgSkill34mo agoApache-2.0A103Claude Code, Codex
r3f-animationzebbern/claude-code-guideSkill4.7ktodayMITA43Claude Code, Codex
r3f-best-practiceszebbern/claude-code-guideSkill4.7ktodayMITA74Claude Code, Codex
code-documenterzebbern/claude-code-guideSkill4.7ktodayMITA39Claude Code, Codex
vs-searchvolcengine/SearchCLISkill1.2k19d agoApache-2.0A27Claude Code, Codex