Agent skill

Setup Openhands

by OpenHands in OpenHands/extensions

Set up a repository for effective use with OpenHands. An agent skill from OpenHands/extensions.

MITAuto-check: notesDevelopment

Install Setup Openhands

skills CLI
$ npx skills add OpenHands/extensions --skill setup-openhands -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install OpenHands/extensions setup-openhands --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/OpenHands/extensions.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/onboarding/skills/setup-openhands .claude/skills/setup-openhands && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
setup-openhands
GitHub stars
157
Token cost
~554 tokens
SKILL.md length
236 words
Files
2
Skills in repo
78
Repo updated
First seen
Licence
MIT

At a glance

Set up a repository for effective use with OpenHands. An agent skill from OpenHands/extensions.

  • Works in 5 steps: Create AGENTS.md → Create .openhands/setup.sh → Create .openhands/pre-commit.sh → …
  • A user wants to configure their repo for OpenHands
  • SKILL.md covers Step 1: Create AGENTS.md, Step 2: Create…, Step 3: Create… and Step 4: Set up PR review, plus 1 more section
  • Calls cargo and ruff

What it does

Setup Openhands is an agent skill from OpenHands/extensions. Set up a repository for effective use with OpenHands. Creates AGENTS.md, setup and pre-commit scripts, and a PR review workflow. Designed to run automatically with minimal user intervention. Use when a user wants to configure their repo for OpenHands.

Its SKILL.md is about 550 tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `README.md`).

It sits in Development, covering Pull requests and Agent instruction files. The repository describes itself as: Public registry for OpenHands extensions. The licence is MIT.

When your agent uses it

  • A user wants to configure their repo for OpenHands
  • Tasks that involve Pull requests
  • Tasks that involve Agent instruction files

Example prompts

  • “/setup-openhands”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Create AGENTS.md
  2. Create .openhands/setup.sh
  3. Create .openhands/pre-commit.sh
  4. Set up PR review
  5. Verify

What it can do on your machine

Read from SKILL.md and the folder at commit d008b81. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • cargo
    • ruff

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • docs.openhands.dev

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Setup Openhands loads about 554 tokens when it runs. Until then it costs about 67 tokens; SKILL.md has 236 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~67
When it runs · the whole SKILL.md, loaded when a task matches
~554

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:27
    trap steps (e.g. copy `.env.example` to `.env`)

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from OpenHands/extensions at commit d008b81, republished under its MIT licence (© OpenHands). 236 words, ~554 tokens.

Download SKILL.mdSave it as .claude/skills/setup-openhands/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
setup-openhands
description
Set up a repository for effective use with OpenHands. Creates AGENTS.md, setup and pre-commit scripts, and a PR review workflow. Designed to run automatically with minimal user intervention. Use when a user wants to configure their repo for OpenHands.
triggers
setup-openhands, set up openhands, configure openhands for this repo

Set Up OpenHands for a Repository

Work through these steps in order.

Step 1: Create AGENTS.md

Run setup-agents-md to generate a root-level AGENTS.md from the repo's actual CI workflows, build files, and documentation.

Step 2: Create .openhands/setup.sh

Create .openhands/setup.sh — a bootstrap script that runs at the start of every OpenHands session. Read the repo's CI workflows, AGENTS.md, and build files to determine the correct commands. The script should:

  • Install dependencies (the project's actual install command)
  • Set required environment variables
  • Run any other bootstrap steps (e.g. copy .env.example to .env)

Keep it idempotent and fast. Use the real commands from CI, not generic examples.

Docs: https://docs.openhands.dev/openhands/usage/customization/repository#setup-script

Step 3: Create .openhands/pre-commit.sh

Create .openhands/pre-commit.sh — runs before every commit OpenHands makes. Read the repo's CI workflows to find the lint and test commands, then mirror them in the script. Exit non-zero on failure so the agent gets immediate feedback instead of waiting for CI.

The script should run the same checks CI runs — if CI runs ruff check and pytest, run those. If it runs cargo clippy and cargo test, run those.

Docs: https://docs.openhands.dev/openhands/usage/customization/repository#pre-commit-script

Step 4: Set up PR review

Run setup-pr-review to create the GitHub Actions workflow and walk the user through configuration.

Step 5: Verify

Confirm all files exist and are correct:

  • AGENTS.md at repo root with real commands (not boilerplate)
  • .openhands/setup.sh with the project's actual install/bootstrap commands
  • .openhands/pre-commit.sh mirroring the CI lint/test checks
  • .github/workflows/pr-review.yml with valid YAML

© OpenHands, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in plugins/onboarding/skills/setup-openhands of OpenHands/extensions.

  • SKILL.md
  • README.md

Open the folder on GitHubat commit d008b81

Compare with similar skills

Setup Openhands next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Setup Openhands compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Setup Openhands this skillOpenHands/extensions157—~554Automated safety check: NotesMIT
Mariadb Operator PR Reviewmariadb-operator/mariadb-operator1k—~3.3kAutomated safety check: PassApache-2.0
Code Reviewimbenrabi/Financial-Modeling-Prep-MCP-Server150—~2.6kAutomated safety check: PassApache-2.0
Shipmillionco/react-doctor15k—~716Automated safety check: PassCustom licence
Openiap Workflowshyodotdev/openiap154—~2kAutomated safety check: PassMIT
Ansible Development Contextansible/ansible71k—~427Automated safety check: PassGPL-3.0

Similar skills

  • Mariadb Operator PR Review

    mariadb-operator/mariadb-operator

    Perform a structured maintainer-style PR review for the mariadb-operator repository.

    1k GitHub stars~3.3k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Code Review

    imbenrabi/Financial-Modeling-Prep-MCP-Server

    Review a PR or working diff against this repo's intent layer (the AGENTS.md hierarchy), toolception pitfalls, and core invariants.

    150 GitHub stars~2.6k tokensUpdated 3 mo ago
    DevelopmentAuto-check passed
  • Ship

    millionco/react-doctor

    Take the current branch from done-coding to merge-ready in one pass — review the diff against AGENTS.md, deslop, commit and push, open a PR using rule-validate's PR copy, then babysit until mergeable.

    15k GitHub stars~716 tokensUpdated today
    DevelopmentAuto-check passed
  • Openiap Workflows

    hyodotdev/openiap

    A skill your agent uses for OpenIAP monorepo work that should follow the repository's shared agent workflows, including review-pr, audit-code, audit-security, audit-iapkit, compile-knowledge…

    154 GitHub stars~2k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Load Ansible project development guidelines, testing conventions, PR review processes, and code structure reference into context

    71k GitHub stars~427 tokensUpdated today
    DevelopmentAuto-check passed
  • Commit And PR

    389ds/389-ds-base

    Commit and open a PR the 389-ds-base way — "Issue NNNN - summary" subject, Bug Description/Fix Description body, Fixes:/Relates: trailer, AI-attribution trailer, and squash-merge etiquette.

    294 GitHub stars~1k tokensUpdated yesterday
    DevelopmentAuto-check passed

More from OpenHands/extensions

All 78 skills in this repo
  • Agent Readiness Report

    OpenHands/extensions

    Evaluate how well a codebase supports autonomous AI-assisted development.

    157 GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Discord

    OpenHands/extensions

    Build and automate Discord integrations (bots, webhooks, slash commands, and REST API workflows).

    157 GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • GitHub

    OpenHands/extensions

    Interact with GitHub repositories, pull requests, issues, and workflows using the GITHUBTOKEN environment variable and GitHub CLI.

    157 GitHub stars~1.7k tokensUpdated yesterday
    Auto-check passed
  • GitHub Issue To PR

    OpenHands/extensions

    Create an automation that implements GitHub issues when a configurable trigger label is applied.

    157 GitHub stars~4.4k tokensUpdated yesterday
    Auto-check passed
  • GitHub Repo Monitor

    OpenHands/extensions

    This skill should be used when the user asks to "monitor a GitHub repository", "watch GitHub for issues or PRs", "respond to @OpenHands mentions on GitHub", "set up an OpenHands GitHub integration"…

    157 GitHub stars~3.1k tokensUpdated yesterday
    Auto-check passed
  • GitLab Issue To Mr

    OpenHands/extensions

    Create an automation that implements GitLab issues when a configurable trigger label is applied.

    157 GitHub stars~4.9k tokensUpdated yesterday
    Auto-check passed

Questions about Setup Openhands

What does Setup Openhands do?

Set up a repository for effective use with OpenHands. An agent skill from OpenHands/extensions. Setup Openhands is an agent skill from OpenHands/extensions. Set up a repository for effective use with OpenHands.

When should I use Setup Openhands?

Setup Openhands fits situations like: A user wants to configure their repo for OpenHands; tasks that involve Pull requests; tasks that involve Agent instruction files.

How do I install Setup Openhands in Claude Code?

Run `npx skills add OpenHands/extensions --skill setup-openhands -a claude-code`. Or copy the skill folder (plugins/onboarding/skills/setup-openhands in OpenHands/extensions) into .claude/skills/setup-openhands in your project. Claude Code loads it when a task matches its description.

How do I install Setup Openhands in Codex?

Run `npx skills add OpenHands/extensions --skill setup-openhands -a codex`. Or copy the skill folder (plugins/onboarding/skills/setup-openhands in OpenHands/extensions) into .agents/skills/setup-openhands in your project. Codex loads it when a task matches its description.

Can I use Setup Openhands in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add OpenHands/extensions --skill setup-openhands -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/setup-openhands, .gemini/skills/setup-openhands, .github/skills/setup-openhands and .opencode/skills/setup-openhands in your project.

What does Setup Openhands need to run?

Going by SKILL.md and its folder, Setup Openhands needs the command-line tools its instructions call (cargo and ruff).

Does Setup Openhands access the network?

SKILL.md names 1 domain. As links in the text: docs.openhands.dev. This is read from the text; nothing was executed.

Is Setup Openhands safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Setup Openhands use?

Setup Openhands is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Setup Openhands use?

About 554 tokens (SKILL.md is roughly 2.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Setup Openhands?

Skills that share tags, products or a category with Setup Openhands: Mariadb Operator PR Review (mariadb-operator/mariadb-operator, 1k stars), Code Review (imbenrabi/Financial-Modeling-Prep-MCP-Server, 150 stars), Ship (millionco/react-doctor, 15k stars) and Openiap Workflows (hyodotdev/openiap, 154 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Setup Openhands?

OpenHands (a GitHub organization) maintains it in OpenHands/extensions, which has 157 GitHub stars. The repository holds 78 skills in this directory. The repository was last updated on October 6, 2026.

Source: OpenHands/extensions on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.