collect-components

collect-components is a skill for Claude Code, Codex from odarino/haren. It costs 22 tokens per session (1,319 once invoked), scanned A, original, MIT.

A procedure for cataloguing shared user-interface components, services, and helper functions across repositories. The catalog records reusable building blocks so future plans can find existing code instead of proposing duplicates.

In plain words
What is it for?
Use it to scan a repository or changed files and update a component catalog for planning and implementation work.
Why use it?
It makes shared code easier to discover and reduces unnecessary one-off implementations.

Skill for Claude CodeCodex

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

Good fit Use it to scan a repository or changed files and update a component catalog for planning and implementation work.

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

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 collect-components

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/odarino/haren/collect-components"><img src="https://agentmods.dev/badge/skills/odarino/haren/collect-components.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,319 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.00022 $0.01319
Opus 5.5 $0.00009 $0.00528
Sonnet 5.5 $0.00004 $0.00264
Haiku 4.5 $0.00002 $0.00132

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

Security

Grade A, and why

collect-components 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 11d 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.

.haren-dev/skills/collect-components/SKILL.md · 82 lines

How it starts

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

Collect Components

Keep one catalog of the common building blocks in the target repos. The plan skill reads it before it designs new code. The implement skill updates it after each task.

Output: artifacts/03-modules/component-catalog.md (template: templates/component-catalog.md).

When to Use

  • Incremental: the implement skill runs it after the code commit of each task. Scan only the files that the task commits changed.
  • Full scan: the catalog does not exist yet, the user asks for it, or the plan skill starts the reuse inventory (Step 4) on a repo that has code but no catalog. Scan all target repos in manifest.yaml repos.

What Is Common

Add an item when one of these is true:

  1. It is in a shared location: a shared/, common/, components/ui/, lib/, utils/, core/ folder, or a shared package of the monorepo.
  2. Two or more modules or features import it.
  3. The design marks it as a reuse target ("reuse" or "extend" verdict in ## Existing Code).

Do not add page-level screens, one-off helpers that one file uses, tests, generated code, or vendored code.

Kinds

Kind Examples API to record
UI component Button, DataTable, FormField, Modal, layout shell Props (name, type, required, default), slots/children, variants, states
Shared service API client, auth, notification, mail, file storage, audit log, numbering Public methods with signature, side effects, tables it writes
Shared function date/number/currency format, validation, mapping, hooks Signature, return value, one-line purpose

A route guard or a wrapper that renders JSX (for example RoleGuard) is a UI component. A client state store (Zustand, Redux slice, Pinia) is a shared service. A hook that only computes values is a shared function.

Process

  1. Read artifacts/03-modules/component-catalog.md. If it does not exist, create it from templates/component-catalog.md and do a full scan.
  2. Get the repo keys from manifest.yaml repos. If repos is empty (common in the monorepo layout), use the key default for the repo that holds the haren folder (see skill.md "No repos listed"). Do not make up keys. If an existing entry uses a key that breaks this rule (for example backend when repos is empty), re-key every entry in one pass, then continue
  3. Get the files to scan:
    • Incremental: git -C <repo> show --name-only --format= <sha> for each code commit SHA of the task
    • Full scan: list the source files of each repo. Skip node_modules, build output, tests and generated folders
  4. For each candidate, apply "What Is Common". To count importers, search all target repos for the import path or the symbol name
  5. For each common item, write or update its entry (see "Entry format")
  6. Remove an entry when its file or symbol no longer exists. If it moved, update the path. Search for the symbol name before you remove it
  7. Update Used by from the import search, not from memory
  8. On every run, re-sort each whole kind section A-Z, not only the new entries. Sort by the ### heading name, case-insensitive (Combobox before ConfirmationDialog, ResizableTable before RichTextEditor). Check the order of every section before you save
  9. Update the front matter updated: date and the last_scan: line: full, or incremental <repoKey>@<sha>, ...
  10. Register the catalog once: haren track artifact component-catalog --type component-catalog --path artifacts/03-modules/component-catalog.md --status approved. Run it again only if the row is missing

Read the full file on GitHub · 82 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. 11d ago First seen · 82 lines · 22 tokens per session scan A 2665dfaee9a2

Subscribe to this mod's changes

collect-components is a skill published in the GitHub repository odarino/haren (13 stars, last pushed yesterday), licensed MIT. It adds 22 tokens to every session and 1,319 once invoked, about $0.0001 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-11-21.

Related

collect-components compared with skills from other repositories

collect-components next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
collect-componentsodarino/harenSkill13yesterdayMITA22Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill331k4d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code