AgentRepoRouter

Repo-aware router skill for AI coding CLIs: map tasks to the right repository, project skill or agent, and native CLI backend across OpenClaw, Claude Code, O...

Wu Fei

@wufei-png

What This Skill Does

Routes coding tasks to the correct repository, project skill, or agent CLI (OpenClaw, Claude Code, OpenCode, Codex, Cursor, Hermes) using repo names, aliases, and task intent. It reads local repo metadata from `repo_mappings.json` and falls back to global capabilities when no project-level match exists.

Replaces manually switching between multiple AI coding CLIs and remembering which repository or agent handles each task by providing a single routing entry point that respects each CLI's native conventions.

When to Use It

  • Route a coding task to the correct repository when working across multiple projects
  • Let an agent host choose the right CLI backend (e.g., Claude Code vs. OpenCode) for a given task
  • Use repo aliases or task intent to resolve which repository to operate on
  • Delegate work to a project-level skill or agent before falling back to global capabilities
  • Share one routing configuration across OpenClaw, Claude Code, OpenCode, Codex, and Hermes

Install

$ openclaw skills install @wufei-png/agent-repo-router

AgentRepoRouter

AgentRepoRouter is repo-aware routing for AI coding CLIs as an installable skill for multiple agent hosts. It does not replace OpenClaw, Claude Code, OpenCode, Codex, Cursor, or Hermes; it helps a host choose the right repository, preserve each CLI's native conventions, and pass work to the selected native CLI backend.

AgentRepoRouter is useful when you want an agent host to:

  • resolve the target repository from repo names, aliases, and task intent;
  • use structured local repo metadata from repo_mappings.json;
  • notice project-level skills and agents before falling back to global capabilities;
  • choose execution CLIs in a predictable order while preserving native CLI invocation patterns;
  • share one routing entry point across OpenClaw, Claude Code, OpenCode, Codex, and Hermes.

Install

This ClawHub package is an install notice, not the AgentRepoRouter runtime skill body. AgentRepoRouter is configured at installation time, so use the official repository's installation documentation and review the current source before making any local agent-host changes.

Official repository: https://github.com/wufei-png/AgentRepoRouter

The native setup selects an English or Chinese runtime skill, creates the local repository mapping file, records selected agent hosts and execution CLIs, and links the router skill into the selected agent host directories.

After installation, use the installed router skill and edit the generated repository mapping file printed by the installer.

Top skills in this category