dx-discover-repos

dx-discover-repos is a skill for Claude Code from easingthemes/dx-aem-flow. It costs 48 tokens per session (1,698 once invoked), scanned A, original, MIT.

A repository-routing tool that determines which projects a work item affects and returns the matching repositories. A work item is a tracked task or ticket in a system such as Azure DevOps or Jira.

In plain words
What is it for?
Use it to resolve target repositories before sending a ticket to separate coding workflows.
Why use it?
It removes guesswork when a ticket spans multiple repositories. It limits results to repositories known in the project registry.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: model in frontmatter.

Part of the dx-hub plugin — 5 skills shipped together

Good fit Use it to resolve target repositories before sending a ticket to separate coding workflows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/easingthemes/dx-aem-flow/dx-discover-repos
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 easingthemes/dx-aem-flow --skill dx-discover-repos
Clone the repo
git clone --depth 1 https://github.com/easingthemes/dx-aem-flow

Made for: Claude Code.

Or install dx-hub, the plugin that ships this one along with the rest of its 5 skills.

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 dx-discover-repos

README.md
[![agentmods](https://agentmods.dev/badge/skills/easingthemes/dx-aem-flow/dx-discover-repos/github.svg)](https://agentmods.dev/skills/easingthemes/dx-aem-flow/dx-discover-repos)
Your own site
<a href="https://agentmods.dev/skills/easingthemes/dx-aem-flow/dx-discover-repos"><img src="https://agentmods.dev/badge/skills/easingthemes/dx-aem-flow/dx-discover-repos/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 dx-discover-repos

Your own site · 80×15
<a href="https://agentmods.dev/skills/easingthemes/dx-aem-flow/dx-discover-repos"><img src="https://agentmods.dev/badge/skills/easingthemes/dx-aem-flow/dx-discover-repos.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,698 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.00048 $0.01698
Opus 5.5 $0.00019 $0.00679
Sonnet 5.5 $0.00010 $0.00340
Haiku 4.5 $0.00005 $0.00170

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

Security

Grade A, and why

dx-discover-repos 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 2d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/parse-crossrepo-table.sh, scripts/parse-explicit-repos.sh, scripts/route-targets.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.

plugins/dx-hub/skills/dx-discover-repos/SKILL.md · 150 lines

How it starts

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

dx-discover-repos

Resolve the set of repos a work item touches and emit a structured JSON array the KAI-HUB router uses to fan a worker pipeline out — one run per repo.

This skill is the multi-repo brain of the hub model. Single-repo projects never call it: their worker fires directly via its own webhook (dual-mode workers).

Inputs

Input Source Notes
workItemId skill argument the ticket being routed
trigger-comment text .ai/run-context/trigger-comment.txt if present, else fetch from the work item the human comment that fired the hook (after @kai-<agent>)
repo registry $DX_REPOS_REGISTRY (default .ai/automation/registries/repos.json) alias → metadata; see dx-hub/shared/registry-format.md

Output (StructuredOutput)

A JSON array, constrained to known registry aliases — never invent repos:

[
  { "alias": "brand-one", "repoId": "…", "adoProject": "Example Project",
    "cloneUrl": "https://…/_git/brand-one", "branch": "development",
    "reason": "explicit 'repos:' directive in trigger comment" }
]

On ambiguity or no match the skill emits a structured error object instead of an array, which the hub turns into a clarification comment on the work item:

{ "error": "ambiguous", "code": 3, "message": "project spans 2 platforms — add 'platform:' …" }
{ "error": "no-match", "code": 8, "message": "no candidate repo matched platform=… scope=… brand=…" }

The cascade

First non-empty tier wins. Tiers 0–2 are deterministic (fully testable offline); tier 3 is the LLM fallback, constrained to registry aliases.

digraph discover {
    "Start" [shape=box];
    "Tier 0: explicit repos: directive?" [shape=diamond];
    "Tier 1: simple block present?" [shape=diamond];
    "Tier 1 route ok?" [shape=diamond];
    "Tier 2: cross-repo table?" [shape=diamond];
    "Tier 3: LLM choose from registry" [shape=box];
    "Emit JSON array" [shape=doublecircle];
    "Emit structured error" [shape=doublecircle];

    "Start" -> "Tier 0: explicit repos: directive?";
    "Tier 0: explicit repos: directive?" -> "Emit JSON array" [label="non-empty"];
    "Tier 0: explicit repos: directive?" -> "Tier 1: simple block present?" [label="empty"];

    "Tier 1: simple block present?" -> "Tier 1 route ok?" [label="yes"];
    "Tier 1: simple block present?" -> "Tier 2: cross-repo table?" [label="no"];
    "Tier 1 route ok?" -> "Emit JSON array" [label="repos resolved"];
    "Tier 1 route ok?" -> "Emit structured error" [label="exit 3 / exit 8"];

    "Tier 2: cross-repo table?" -> "Emit JSON array" [label="non-empty"];
    "Tier 2: cross-repo table?" -> "Tier 3: LLM choose from registry" [label="empty"];

    "Tier 3: LLM choose from registry" -> "Emit JSON array";
}

Read the full file on GitHub · 150 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. 2d ago Changed · -1 lines · -20 tokens per session 0928a6b9e749
  2. 1mo ago First seen · 151 lines · 68 tokens per session scan A d3c19223b109

Subscribe to this mod's changes

dx-discover-repos is a skill published in the GitHub repository easingthemes/dx-aem-flow (6 stars, last pushed 2d ago), licensed MIT. It adds 48 tokens to every session and 1,698 once invoked, about $0.0002 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-09-03.