reuse-first

reuse-first is a skill for Claude Code, Codex from tentenco/skills. It costs 77 tokens per session (1,607 once invoked), scanned A, original, MIT.

A required decision step before building a substantial app, feature, integration, library, infrastructure component, or agent workflow. It checks existing skills, packages, repositories, and other prior work before choosing whether to reuse, adapt, harvest, or build.

In plain words
What is it for?
Use it before architecture choices and meaningful new development, especially when mature existing tools or implementations may be available.
Why use it?
It reduces unnecessary greenfield coding and helps avoid adding a new solution when a suitable one already exists.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit Use it before architecture choices and meaningful new development, especially when mature existing tools or implementations may be available.

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

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 reuse-first

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/tentenco/skills/reuse-first"><img src="https://agentmods.dev/badge/skills/tentenco/skills/reuse-first.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,607 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.00077 $0.01607
Opus 5.5 $0.00031 $0.00643
Sonnet 5.5 $0.00015 $0.00321
Haiku 4.5 $0.00008 $0.00161

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

Security

Grade A, and why

reuse-first 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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/install.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/engineering/reuse-first/SKILL.md · 252 lines

How it starts

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

Reuse First

Mission

Prevent unnecessary greenfield implementation.

Prime directive: SEARCH BEFORE DESIGN. REUSE BEFORE BUILD. ADAPT BEFORE REWRITE. BUILD FROM SCRATCH ONLY WHEN JUSTIFIED.

Hard Gate

Before completing the Reuse Report, you MAY inspect/search/read files, docs, manifests, Skills, GitHub, package registries, official docs, and temporary clones.

Before completing it, you MUST NOT:

  • scaffold a new subsystem
  • write production implementation code
  • add dependencies
  • mutate application configuration
  • copy third-party source into the project
  • start a large refactor based on unverified assumptions

Research-only tasks stop after the decision; implementation continues only after the gate passes.

Trigger

Mandatory for new apps/services, meaningful features, integrations, architecture choices, framework/library/database/search/auth/AI/agent/CMS/UI/infrastructure decisions, or anything likely to have mature prior art.

Usually skip typo/copy edits, tiny CSS changes, mechanical refactors, and isolated bug fixes where external reuse cannot materially change the solution.

When uncertain, run a lightweight pass.

1. Establish Constraints

Infer from the request and repository before asking questions. Capture only decision-changing constraints:

  • outcome and current stack
  • runtime/deployment target
  • must-keep systems
  • license/commercial-use rules
  • security/privacy needs
  • performance/scale
  • dependency/complexity tolerance

2. Internal Reuse First

Search the current codebase before public sources:

  • modules/components/services
  • manifests and lockfiles
  • utilities/abstractions
  • docs/architecture notes
  • existing implementations of the same pattern

3. Discover Agent Skills

First inspect installed Codex Skills:

gh skill list --agent codex --json skillName,sourceURL,scope,version,path

Derive 2–4 concise capability queries and search public Skills:

gh skill search "QUERY" --limit 10

Preview serious candidates before installation/use:

Read the full file on GitHub · 252 lines

Files

What ships with it

2 files 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. 3mo ago First seen · 252 lines · 77 tokens per session scan A 32e3d81c997c

Subscribe to this mod's changes

reuse-first is a skill published in the GitHub repository tentenco/skills (5 stars, last pushed 2mo ago), licensed MIT. It adds 77 tokens to every session and 1,607 once invoked, about $0.0003 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-31.

Related

reuse-first compared with skills from other repositories

reuse-first next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
reuse-firsttentenco/skillsSkill52mo agoMITA77Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill331k3d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code