add-repo

add-repo is a skill for Claude Code from MostAshraf/ai-sdlc-harness. It costs 59 tokens per session (1,696 once invoked), scanned A, original, MIT.

A skill for registering one new code repository in an already configured ai-sdlc-harness workspace. A repository is a project folder tracked by Git, a system for recording code changes.

In plain words
What is it for?
Use it only with /add-repo to check a repository, confirm its name and branch, and add it to the workspace.
Why use it?
It avoids repeating the full workspace setup and protects repositories that are already registered.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: reads .claude/ paths; mentions subagents.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the ai-sdlc-harness plugin — 8 skills, 4 commands, 3 agents, 4 hooks shipped together

Good fit Use it only with /add-repo to check a repository, confirm its name and branch, and add it to the workspace.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add MostAshraf/ai-sdlc-harness
Claude Code
/plugin install ai-sdlc-harness

Made for: Claude Code.

Or install ai-sdlc-harness, the plugin that ships this one along with the rest of its 8 skills, 4 commands, 3 agents, 4 hooks.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mostashraf/ai-sdlc-harness/add-repo"><img src="https://agentmods.dev/badge/skills/mostashraf/ai-sdlc-harness/add-repo.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,696 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.00059 $0.01696
Opus 5 $0.00030 $0.00848
Sonnet 5 $0.00012 $0.00339
Haiku 4.5 $0.00006 $0.00170

Measured 11d ago against content hash 9ae1d11e8e95, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

add-repo 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.

skills/add-repo/SKILL.md · 131 lines

How it starts

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

add-repo

Every command below is ${CLAUDE_PLUGIN_ROOT}/bin/harness <verb> … — run it yourself via Bash. Never ask the user to type a harness command; the user only answers the questions below.

1 · Ask

  • Repo name (must be new — case-insensitively distinct from every already-registered name) and its local path.

2 · Discover, then confirm

${CLAUDE_PLUGIN_ROOT}/bin/harness discover --repo <path> — same discovery /init-workspace uses. It first ensures the repo is clean and on its default branch: a dirty repo, or one mid-rebase/merge, refuses with a clear error — surface that to the user verbatim, never auto-stash/discard. If the guessed default branch doesn't resolve (no origin/HEAD), ask the user to name it explicitly, then pass --branch <name> yourself; a repo with no origin and a stray local branch that happens to be named main can't be told apart from a genuine one, so confirm rather than assume. Known risk: running discover against a path that's actually already registered, with a /dev-workflow run in progress against it, can switch that run's feature-branch checkout back to default — if there's any chance the path is already registered, check first rather than running discover on it. The same hazard reaches a path that is merely inside a checkout some other registered repo already covers (the monorepo shape below): the branch switch flips the whole shared tree, so check for an in-flight run on every logical repo sharing that checkout, not only on this exact path.

Present the proposals (language, test_cmd, default branch) as defaults-to-confirm, not facts:

  • Confirm test_cmd by actually running it — don't accept the proposal unconfirmed, and never collapse this repo's own command onto another registered repo's.
  • A proposal may carry no test_cmd: no single command covers that root (a .NET root with no solution file, or two side by side). Ask the user; never synthesise one. init-verify gates on invocability only, so a command that cannot even locate its project still reports pass, and the first verify-red then seals a red-proof over a build error.
  • A monorepo_split proposal means this "one repo" is actually several logical repos sharing one .git at the physical root. Register each proposed root as its own logical repo — one /add-repo pass per root (this run registers one; tell the user the rest each need their own run), not one registration at the checkout. monorepo_split lists the root of every proposal, checkout-relative in the platform's own separators (backslashed on Windows), . meaning the checkout itself; the path to register is <checkout>/<root> (plain <checkout> for .). Suggest <repo>-<root> names (xtream-backend for the . root holding the solution, xtream-frontend for frontend/) and let the user overrule the names, not the shape. init-verify passes any path inside a git work tree, root or subtree, and says <path> (subtree of <checkout>) when they differ — confirmation, not a warning. Confirm each root's test_cmd from that subtree (cd <checkout>/frontend first): proposed commands are subtree-relative and the harness runs them with the registered path as cwd. Say plainly what the user gets: per-task worktrees still isolate (built from the physical checkout, task works in <worktree>/<subtree>, staging bounded to the subtree), but outside worktrees both logical repos sit on the SAME branch — preflight cuts it in the shared checkout — and a parent root legally contains its child, so only review catches a parent task editing the child's files.

Read the full file on GitHub · 131 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 · 131 lines · 59 tokens per session scan A 9ae1d11e8e95

Subscribe to this mod's changes

add-repo is a skill published in the GitHub repository MostAshraf/ai-sdlc-harness (19 stars, last pushed 15d ago), licensed MIT. It adds 59 tokens to every session and 1,696 once invoked, about $0.0003 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-30.