add-repo

add-repo is a skill for Claude Code, Codex from dyzsasd/dev-loop. It costs 161 tokens per session (1,574 once invoked), scanned A, original, MIT.

A setup skill that registers a Git repository in a dev-loop workspace project and maps it to that project's work. A Git repository is a folder containing versioned source code and its history.

In plain words
What is it for?
Finding or cloning a repository, registering it, checking its setup, and mapping it into the project's strategy and repository registry.
Why use it?
It makes a new service or codebase known to the workspace, so the team can build, test, deploy, and coordinate around it.

Skill for Claude CodeCodex

Part of the dev-loop plugin — 17 skills, 1 hook shipped together

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.

agentmods
npx agentmods add skills/dyzsasd/dev-loop/add-repo
Any agent
npx skills add dyzsasd/dev-loop --skill add-repo
Clone the repo
git clone --depth 1 https://github.com/dyzsasd/dev-loop

Made for: Claude Code, Codex.

Or install dev-loop, the plugin that ships this one along with the rest of its 17 skills, 1 hook.

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/dyzsasd/dev-loop/add-repo.svg)](https://agentmods.dev/skills/dyzsasd/dev-loop/add-repo)
Your own site
<a href="https://agentmods.dev/skills/dyzsasd/dev-loop/add-repo"><img src="https://agentmods.dev/badge/skills/dyzsasd/dev-loop/add-repo.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,574 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00161 $0.01574
Opus 5 $0.00081 $0.00787
Sonnet 5 $0.00032 $0.00315
Haiku 4.5 $0.00016 $0.00157

Measured 5d ago against content hash 983e824ac4cd, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 5d 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 · 109 lines

How it starts

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

add-repo — register a repo into a workspace project (one pass)

ROLE: You are the operator-present setup skill that makes a git repo a first-class member of a workspace project in one DETECT → INTERVIEW → REGISTER → MAP pass.

MISSION

After this skill, dev-loop doctor is green and the repo is clonable, buildable, deployable within policy, and mapped into the project's strategy doc.

BOOT

Operator-present, but each invocation is fresh (§0); boot per §0a (the Topology block + the sections cited below). Inputs:

  • The workspace dev-loop.json (1.x workspace schema), resolved from cwd — none ⇒ tell the user to dev-loop team init first and stop. Target project missing ⇒ run /dev-loop:add-project first.
  • references/config-schema.md (registry/reference field shapes).
  • Conventions context: claiming/worktrees (§7), landing + auto-merge (§12b/§12c), multi-repo registry + doc-home (§19), workspace portability (§27). Sections: §0 §0a §2 §4 §7 §12b §12c §19 §20 §27

JOBS

1. DETECT — identify the repo and where it goes

  • Ask (or take from args): the project key, a short repo ref (lowercase, the registry key AND the repo:<ref> label — must not collide with a reserved name: team/lessons/wt/locks), the role (primary for the main service, docs, or omit), and either a --remote git URL to clone or an existing path already inside the workspace.
  • If a remote is given and the target dir does not exist: git clone <remote> <workspace>/<ref>. If a path is given, confirm it is INSIDE the workspace (relative path); a repo outside the workspace breaks the copy-the-folder portability rule (§27) — offer to mv it in.

2. INTERVIEW — build, merge checks, deploy (auto-detect first, confirm with the operator)

  • Build/typecheck: read package.json scripts (build, typecheck/tsc), or the repo's equivalent. Propose --typecheck-cmd / --build-cmd; confirm.
  • Merge checks: parse .github/workflows/* for the required PR check names (the name: of jobs that run on pull_request). These become --merge-check values — the gate autoMerge polls (§12c). List them; let the operator prune.
  • Landing (§12b): pr (default; agent opens a PR, CI is the build gate) or direct. If pr + --auto-merge, the agent merges its own PR once checks are green (§12c).
  • Ops probes (don't skip — an unprobed deploy is invisible to ops-agent, doctor W07): ask for the repo's health endpoint (probe it live once to confirm a 2xx before recording), an optional version endpoint, the critical user-flow routes the operator declares "can't be down", and an optional read-only logs/metrics command. Persist via --ops-check <url> / --critical-route <path> / --logs-command "<cmd>".
  • Deploy: interview the deploy shape (release-pr / command / none) PER environment. Enforce the team deployPolicy ceiling: if deployPolicy.<env> = "manual", that env may NOT be auto:true — the validated write (below) will reject it (E06); surface it before writing.

Read the full file on GitHub · 109 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. 5d ago First seen · 109 lines · 161 tokens per session scan A 983e824ac4cd

Subscribe to this mod's changes

add-repo is a skill published in the GitHub repository dyzsasd/dev-loop (5 stars, last pushed 3d ago), licensed MIT. It adds 161 tokens to every session and 1,574 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

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…

openai/codex · 113 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens