Skip to main content

setup-openhands

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.

소스 정보

저장소
OpenHands/extensions
최근 소스 활동
2026년 4월 8일 15:57
감지된 SKILL.md 언어
영어
스타
157
포크
102

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
2 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
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
GitHub에서 보기