add-repository

add-repository is a skill for Claude Code from kvdm-co-pilot/create-cmp. It costs 161 tokens per session (1,360 once invoked), scanned A, original, MIT.

A guided tool for adding only the data and domain part of an entity to a Compose Multiplatform app. This includes its data model, repository, use case, and a fake repository for tests.

In plain words
What is it for?
It is for modeling entities, adding repository and use-case code, and preparing fake data access for later screens or tests.
Why use it?
It creates the data layer before a screen needs it and keeps the generated structure consistent with an existing example in the app.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md; mentions Claude Code.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node qa/scaffold-feature.mjs <Entity> --preset repository --dry-run.

Part of the create-cmp plugin — 15 skills, 2 agents, 4 hooks, 1 MCP server shipped together

Good fit It is for modeling entities, adding repository and use-case code, and preparing fake data access for later screens or tests.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/kvdm-co-pilot/create-cmp
agentmods
npx agentmods add skills/kvdm-co-pilot/create-cmp/add-repository

Made for: Claude Code.

Or install create-cmp, the plugin that ships this one along with the rest of its 15 skills, 2 agents, 4 hooks, 1 MCP server.

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-repository

README.md
[![agentmods](https://agentmods.dev/badge/skills/kvdm-co-pilot/create-cmp/add-repository.svg)](https://agentmods.dev/skills/kvdm-co-pilot/create-cmp/add-repository)
Your own site
<a href="https://agentmods.dev/skills/kvdm-co-pilot/create-cmp/add-repository"><img src="https://agentmods.dev/badge/skills/kvdm-co-pilot/create-cmp/add-repository.svg" alt="Measured on agentmods" height="20"></a>
Per session 161 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,360 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.00161 $0.01360
Opus 5 $0.00081 $0.00680
Sonnet 5 $0.00032 $0.00272
Haiku 4.5 $0.00016 $0.00136

Measured 8d ago against content hash 4f007c0c40d5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

add-repository 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 8d 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.

template/.claude/skills/add-repository/SKILL.md · 113 lines

How it starts

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

add-repository — stamp a data/domain slice only

Deterministic-stamp, gate-proven. The script (qa/scaffold-feature.mjs --preset repository) does the mechanical work — copy the home exemplar's data/domain files, whole-word identifier rename, DI injection for the repository + use case only. You (the AI) only customize the entity's fields and its sample data. You are not done until node qa/verify.mjs PASSes and the receipt is committed — see this project's CLAUDE.md.

This is the repository subset of add-feature — same stamper, same rename mechanic, filtered to just the 5 data/domain files. Use it when you want the data layer to exist before any screen consumes it (e.g. you're modeling several entities up front, or a screen for this entity will come later via add-screen).

Name the lane first, out loud. Before any tool runs, tell the human in a sentence which lane this request takes (CLAUDE.md §"After genesis"): an entity carrying decisions worth recording (data-model semantics, boundary rules) goes through a feature brief (docs/features/<name>.md, signed before code); an ordinary entity is direct lane — say so, then continue here. Never route silently.

Why a stamper and not hand-written files

Every hand-written file is a drift chance in this project's architecture. qa/scaffold-feature.mjs --preset repository produces a conforming skeleton by construction for the data/domain layer: a domain model, a domain repository interface, a use case, a data-layer impl, and a hand-written fake for tests — wired into Koin. Your job is to make the entity's shape and sample data real, not to make the wiring correct — that part is already done.

The flow

1. Name the entity

Ask the human for the entity name — PascalCase, singular (e.g. Tag, Bookmark, Category). Unlike add-feature/add-screen, there is no feature name and no --entity flag here: the positional argument is the entity.

2. Dry-run

node qa/scaffold-feature.mjs <Entity> --preset repository --dry-run

Read the full file on GitHub · 113 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. 8d ago First seen · 113 lines · 161 tokens per session scan A 4f007c0c40d5

Subscribe to this mod's changes

add-repository is a skill published in the GitHub repository kvdm-co-pilot/create-cmp (0 stars, last pushed today), licensed MIT. It adds 161 tokens to every session and 1,360 once invoked, about $0.0008 per session on Opus 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

Other skills, from other repositories

compose-multiplatform

Use when building one shared Compose UI in Kotlin across Android, iOS, and desktop — commonMain @Composables, expect/actual, source-set placement, native interop, multiplatform ViewModel/navigation/Koin. NOT a single-platform native build (that is kotlin-android / swift-ios), and NOT Dart/Flutter cross-platform UI…

ericrisco/rsc-harness · 80 tokens

m3-expressive

Material 3 Expressive design patterns for Jetpack Compose - expressive theming, motion physics, shape morphing, typography emphasis, color emphasis, and all 28 expressive components.

TalissonVitorino/kmp-ios-skills · 41 tokens

liquid-glass

Apple Liquid Glass design patterns for SwiftUI iOS 26 - glass effects, morphing, containers, interactive glass, tinting, accessibility, and cross-platform glass design.

TalissonVitorino/kmp-ios-skills · 40 tokens

android-device-integrity

Android app/device integrity and anti-fraud for a fintech app — the Play Integrity API (com.google.android.play:integrity): Standard requests (StandardIntegrityManager.prepareIntegrityToken → StandardIntegrityTokenProvider.request with a requestHash → StandardIntegrityToken) vs Classic requests…

TalissonVitorino/kmp-ios-skills · 260 tokens

mobile-session-security

KMP + iOS/Android session hardening for a fintech app — inactivity auto-lock (track last-interaction, idle timeout, biometric/passcode re-auth), biometric re-lock on background/foreground with a grace period, and screen-capture/snapshot protection. Android: WindowManager FLAGSECURE (blocks screenshots + recents…

TalissonVitorino/kmp-ios-skills · 209 tokens

offline-first

Offline-first architecture patterns - NetworkBoundResource, sync strategies, conflict resolution, cache invalidation, and connectivity monitoring.

TalissonVitorino/kmp-ios-skills · 26 tokens