agentleFS
D-RoboticsD-Robotics/dsh-plugin-rdk/skills/rdk-skills/d-robotics-pack-installer/SKILL.md

d-robotics-pack-installer

Skill1 starsChanged 3 months agoApache-2.0View on GitHub

Install a D-Robotics workspace-integrated Skill Pack (such as OE-Skills-X5 or OE-Skills-S) into a local development project — clone the pack repo, run its setup.sh with a confirmed project root, and verify the installed workspace (.drobotics/ or .horizon/). Use when the user asks to install, initialize, or set up a D-Robotics pack/toolchain for a project ("install D-Robotics OE-Skills-X5", "装一下 OE 工具链", "setup this repo for RDK X5 tool chain work"). 触发词:install OE-Skills、装 OE、setup X5 workspace、初始化 .drobotics、安装 D-Robotics pack、OE 工具链环境搭建. Do not use for installing a single flat skill (npx skills add / pack install.sh) or for editing skill content — those follow the flat-pack flow.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 4 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use when the user asks to install / initialize / set up a workspace-integrated D-Robotics pack into a project:

    line 24
  2. Distinctive:

    Do not use when:

    line 31
  3. Very specific:

    Locate the component: Read every components.d/*.yml in the Hub repo.

    line 39
  4. Very specific:

    Always ask the user to confirm the exact PROJECT_ROOT before any write.

    line 44
  5. Very specific:

    If the clone fails (network/proxy/credentials), report the exact error and stop — do not fabricate results.

    line 50
  6. Very specific:

    Follow the pack's own setup instructions: If the clone contains agent-setup.md, read and follow it.

    line 52
  7. Very specific:

    Before executing, tell the user what it will write (typically a .drobotics/ or .horizon/ workspace plus routing rules injected into …

    line 56
  8. Distinctive:

    Verify the install: Check the pack's declared artifacts exist, e.g.

    line 58
  9. Distinctive:

    Clean up: Remove the temporary clone.

    line 67

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

D-Robotics Pack Installer

Purpose

The Hub catalog hosts two kinds of packs. Flat packs (e.g. RDK Device Skills) install skill-by-skill via npx skills add or the pack's install.sh. Workspace-integrated packs (OE Tool Chain X5, OE Tool Chain S) cannot be installed that way — their skills depend on shared workspace resources (docs/, platforms/, scripts/, skill-index.json) laid down by the pack's setup.sh. This skill is the Hub's first-class installer for those workspace packs: it locates the pack registration, runs the documented install flow, and verifies the result.

When to use

Use when the user asks to install / initialize / set up a workspace-integrated D-Robotics pack into a project:

  • "Install D-Robotics OE-Skills-X5 into this project"
  • "帮我把 OE 工具链装到这个项目"
  • "Setup this repo for RDK X5 tool chain work"
  • "装一下 OE-Skills-S(S 系列工具链)"

Do not use when:

  • The request is a single flat skill install (npx skills add d-robotics/rdk-skills --skill rdk-diagnostic, pack install.sh) — hand off to the flat pack flow.
  • The user only asks what a pack contains or how it works — read components.d/*.yml and answer without installing.
  • The target pack has no install_type: workspace in its registration — then it is a flat pack.

Instructions

  1. Locate the component. Read every components.d/*.yml in the Hub repo. Match the user's intent against the component name and description. Confirm the matched component declares install_type: workspace; otherwise stop and explain it is a flat pack. Collect: repo, install_script (default setup.sh), and install_instructions if present.
  2. Confirm the project root. Determine the candidate PROJECT_ROOT:
    • A directory containing CLAUDE.md or AGENTS.md in the user's current working tree, else
    • The user's current working directory. Always ask the user to confirm the exact PROJECT_ROOT before any write. Do not proceed unconfirmed.
  3. Clone the pack. Shallow-clone to a disposable directory, never into the project:
    git clone --depth 1 https://github.com/<repo>.git <tmp>/<repo>
    If the clone fails (network/proxy/credentials), report the exact error and stop — do not fabricate results.
  4. Follow the pack's own setup instructions. If the clone contains agent-setup.md, read and follow it. Otherwise run the declared install script:
    bash <tmp>/<repo>/<install_script> <PROJECT_ROOT>
    Before executing, tell the user what it will write (typically a .drobotics/ or .horizon/ workspace plus routing rules injected into CLAUDE.md / AGENTS.md) and get a final go-ahead.
  5. Verify the install. Check the pack's declared artifacts exist, e.g. for OE-Skills-X5:
    test -f <PROJECT_ROOT>/.drobotics/X5.md
    test -f <PROJECT_ROOT>/.drobotics/VERSION
    test -f <PROJECT_ROOT>/.drobotics/skill-index.json
    test -f <PROJECT_ROOT>/.drobotics/skills/x5-router/SKILL.md
    Report which checks passed and failed. On failure, show the failing command and its output, retry at most once, then stop and report.
  6. Clean up. Remove the temporary clone. Tell the user to restart the agent session so the newly installed skills load.

Safety

  • Never run setup.sh (or any write) before the user confirms PROJECT_ROOT. This is a hard gate.
  • Show what will be modified (.drobotics/ files, CLAUDE.md/AGENTS.md routing injection) and get a second confirmation before executing.
  • The installer itself is read-only apart from the clone (temporary dir) and the pack's own install script. No sudo, no edits to files outside the confirmed project root.
  • Repeated installs are expected to be safe (the packs' setup scripts are documented as idempotent for routing injection), but verify before re-running.
  • Network failures are terminal for this flow: report and stop.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.