diff --git a/README.md b/README.md index f68974738..7a499ef88 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Browse available plugins in [`plugins/`](plugins/). ## Extensions Catalog -This repository contains **2 marketplace(s)** with **45 extensions** (36 skills, 9 plugins). +This repository contains **2 marketplace(s)** with **45 extensions** (37 skills, 8 plugins). ### Quick Start @@ -89,7 +89,7 @@ OpenHands skills for interacting, improving, and refactoring large codebases Official skills and plugins for OpenHands — the open-source AI software engineer. -**41 extensions** (34 skills, 7 plugins) +**41 extensions** (35 skills, 6 plugins) | Name | Type | Description | Commands | |------|------|-------------|----------| @@ -120,7 +120,7 @@ Official skills and plugins for OpenHands — the open-source AI software engine | magic-test | plugin | A simple test plugin for verifying plugin loading. Triggers on magic words (alakazam, abracadabra) and returns a spec... | — | | notion | skill | Create, search, and update Notion pages/databases using the Notion API. Use for documenting work, generating runbooks... | — | | npm | skill | Handle npm package installation in non-interactive environments by piping confirmations. Use when installing Node.js ... | — | -| onboarding | plugin | Assess repository agent-readiness across five pillars, propose high-impact fixes, and generate repo-specific AGENTS.m... | — | +| onboarding | skill | Full repository onboarding for AI agents — deep AGENTS.md generation, readiness assessment, and automated setup workf... | — | | openhands-api | skill | Use the OpenHands Cloud REST API (V1) to create and manage app conversations, including multi-conversation delegation... | — | | pdflatex | skill | Install and use pdflatex to compile LaTeX documents into PDFs on Linux. Use when generating academic papers, research... | — | | pr-review | plugin | Automated PR code review — analyzes diffs and posts inline review comments via the GitHub API. | — | diff --git a/marketplaces/openhands-extensions.json b/marketplaces/openhands-extensions.json index ec608f8de..72e3915e9 100644 --- a/marketplaces/openhands-extensions.json +++ b/marketplaces/openhands-extensions.json @@ -332,15 +332,16 @@ }, { "name": "onboarding", - "source": "./plugins/onboarding", - "description": "Assess repository agent-readiness across five pillars, propose high-impact fixes, and generate repo-specific AGENTS.md files.", + "source": "./skills/onboarding", + "description": "Full repository onboarding for AI agents — deep AGENTS.md generation, readiness assessment, and automated setup workflows.", "category": "productivity", "keywords": [ "onboarding", "readiness", "agents-md", "agent-readiness", - "assessment" + "assessment", + "setup" ] }, { diff --git a/plugins/onboarding/.claude-plugin b/plugins/onboarding/.claude-plugin deleted file mode 120000 index 665797f0a..000000000 --- a/plugins/onboarding/.claude-plugin +++ /dev/null @@ -1 +0,0 @@ -.plugin \ No newline at end of file diff --git a/plugins/onboarding/.codex-plugin b/plugins/onboarding/.codex-plugin deleted file mode 120000 index 665797f0a..000000000 --- a/plugins/onboarding/.codex-plugin +++ /dev/null @@ -1 +0,0 @@ -.plugin \ No newline at end of file diff --git a/plugins/onboarding/.plugin/plugin.json b/plugins/onboarding/.plugin/plugin.json deleted file mode 100644 index 2b81bdfdf..000000000 --- a/plugins/onboarding/.plugin/plugin.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "onboarding", - "version": "1.0.0", - "description": "Assess repository agent-readiness across five pillars, propose high-impact fixes, and generate repo-specific AGENTS.md files", - "author": { - "name": "OpenHands", - "email": "contact@all-hands.dev" - }, - "homepage": "https://github.com/OpenHands/extensions", - "repository": "https://github.com/OpenHands/extensions", - "license": "MIT", - "keywords": [ - "onboarding", - "readiness", - "agents-md", - "agent-readiness", - "assessment", - "ai-readiness" - ] -} diff --git a/plugins/onboarding/README.md b/plugins/onboarding/README.md deleted file mode 100644 index e969b190b..000000000 --- a/plugins/onboarding/README.md +++ /dev/null @@ -1,30 +0,0 @@ -# Onboarding Plugin - -Get a repository ready for OpenHands (and other AI agents) to start being productive. This plugin bundles the skills and documentation needed to take a codebase from zero to agent-ready. - -## Quick Start - -Run the `setup-openhands` skill on any repository. It walks through everything needed in one pass: generates an AGENTS.md, creates setup and pre-commit scripts, and adds a PR review workflow. - -## Going Deeper - -Once the basics are in place, you can harden your repo's agent readiness: - -1. **`agent-readiness-report`** — evaluates the repo across five pillars and produces a scored report -2. **`improve-agent-readiness`** — reads that report and proposes the highest-impact fixes, then implements them on request - -## Skills - -| Skill | Description | -|-------|-------------| -| [setup-openhands](skills/setup-openhands/) | One-pass setup: AGENTS.md, scripts, and PR review workflow | -| [agent-readiness-report](skills/agent-readiness-report/) | Evaluate a repo's agent readiness across five pillars | -| [improve-agent-readiness](skills/improve-agent-readiness/) | Propose and implement fixes from a readiness report | -| [setup-agents-md](skills/setup-agents-md/) | Generate a repo-specific AGENTS.md | -| [setup-pr-review](skills/setup-pr-review/) | Add automated AI code review to a repo | - -The last two skills (`setup-agents-md` and `setup-pr-review`) are called by `setup-openhands` — you typically won't need to run them directly. - -## Shared References - -The `agent-readiness-report` and `improve-agent-readiness` skills share the same evaluation criteria. The canonical file lives at `references/criteria.md` at the plugin root; each skill symlinks to it. diff --git a/plugins/onboarding/skills/agent-readiness-report/README.md b/plugins/onboarding/skills/agent-readiness-report/README.md deleted file mode 100644 index 1f25dbf55..000000000 --- a/plugins/onboarding/skills/agent-readiness-report/README.md +++ /dev/null @@ -1,23 +0,0 @@ -# Agent Readiness Report - -Evaluate how well a repository supports autonomous AI-assisted development. - -## Triggers - -This skill is activated by the following keywords: - -- `agent-readiness-report` - -## What This Does - -Assesses a codebase across five pillars that determine whether an AI agent can work effectively in a repository. Produces a structured report identifying what's present, what's missing, and which pillars are strongest and weakest. - -The five pillars are: - -- **Agent Instructions** — does the agent know what to do? -- **Feedback Loops** — does the agent know if it's right? -- **Workflows & Automation** — does the process support agent work? -- **Policy & Governance** — does the agent know the rules? -- **Build & Dev Environment** — can the agent build and run the project? - -Once you have a report, use `improve-agent-readiness` to turn the gaps into concrete fixes. diff --git a/plugins/onboarding/skills/agent-readiness-report/SKILL.md b/plugins/onboarding/skills/agent-readiness-report/SKILL.md deleted file mode 100644 index a0c619954..000000000 --- a/plugins/onboarding/skills/agent-readiness-report/SKILL.md +++ /dev/null @@ -1,122 +0,0 @@ ---- -name: agent-readiness-report -description: Evaluate how well a codebase supports autonomous AI-assisted development. Analyzes repositories across five pillars (Agent Instructions, Feedback Loops, Workflows & Automation, Policy & Governance, Build & Dev Environment) covering 74 features. Use when users want to assess how agent-ready a repository is. -triggers: -- agent-readiness-report -- readiness report ---- - -# Agent Readiness Report - -Evaluate how well a repository supports autonomous AI-assisted development. - -## What this does - -Assess a codebase across five pillars that determine whether an AI agent can -work effectively in a repository. The output is a structured report identifying -what's present and what's missing. - -## Five Pillars - -| Pillar | Question | Features | -|--------|----------|----------| -| **Agent Instructions** | Does the agent know what to do? | 18 | -| **Feedback Loops** | Does the agent know if it's right? | 16 | -| **Workflows & Automation** | Does the process support agent work? | 15 | -| **Policy & Governance** | Does the agent know the rules? | 13 | -| **Build & Dev Environment** | Can the agent build and run the project? | 12 | - -74 features total. See `references/criteria.md` for the full list with -descriptions and evidence examples. - -## How to run - -### Step 1: Run the scanner scripts - -Five shell scripts gather filesystem signals — file existence, config patterns, -directory structures. They surface what's present so you don't have to run -dozens of `find` commands manually. - -```bash -bash scripts/scan_agent_instructions.sh /path/to/repo -bash scripts/scan_feedback_loops.sh /path/to/repo -bash scripts/scan_workflows.sh /path/to/repo -bash scripts/scan_policy.sh /path/to/repo -bash scripts/scan_build_env.sh /path/to/repo -``` - -Or scan all five at once: - -```bash -for s in scripts/scan_*.sh; do bash "$s" /path/to/repo; echo; done -``` - -**Important**: The scripts are helpers, not scorers. They find files and -patterns but do not evaluate quality. Many features require judgment that only -reading the actual files can provide — for example, whether a README includes -real build commands or just badges, whether inline documentation is systematic or -scattered, whether an AI usage policy has meaningful boundaries. - -### Step 2: Evaluate each feature - -Walk through `references/criteria.md` pillar by pillar. For each feature: - -1. Check the scanner output for relevant signals -2. For features the scanner can't fully evaluate, inspect the files yourself -3. Mark each feature: **✓** (present), **✗** (missing), or **—** (not applicable) - -Features that require judgment (not fully covered by scanners): -- Does the README actually contain build/run/test commands? (not just that it exists) -- Is inline documentation systematic across the public API? -- Are examples actually runnable? -- Does the contributing guide include code standards? -- Is there a meaningful AI usage policy? -- Is the architecture documentation current? -- Are tests documented well enough for an agent to run them? - -### Step 3: Write the report - -Structure the output as: - -``` -# Agent Readiness Report: {repo name} - -## Summary -- Features present: X / 74 -- Strongest pillar: {pillar} -- Weakest pillar: {pillar} - -## Pillar 1 · Agent Instructions (X / 18) -✓ Agent instruction file — AGENTS.md at root -✓ AI IDE configuration — .cursor/rules/ with 3 rule files -✗ Multi-model support — only Cursor configured -... - -## Pillar 2 · Feedback Loops (X / 16) -... - -## Pillar 3 · Workflows & Automation (X / 15) -... - -## Pillar 4 · Policy & Governance (X / 13) -... - -## Pillar 5 · Build & Dev Environment (X / 12) -... - -``` - -For each passing feature, briefly note what evidence you found. -For each failing feature, note what's missing. - -## What makes these features useful - -Every feature answers: *if this is missing, what goes wrong for the AI agent?* -Features like "agent instruction file" and "tool server configuration" exist -because agents need them. Features like "linter" and "CI pipeline" exist because -agents need fast, clear feedback on whether their changes are correct — not -because they're general best practices. - -The criteria were derived from analysis of 123 real repositories across five -AI-readiness categories, then filtered for features that actually affect agent -effectiveness. diff --git a/plugins/onboarding/skills/agent-readiness-report/references/criteria.md b/plugins/onboarding/skills/agent-readiness-report/references/criteria.md deleted file mode 120000 index e04318e1a..000000000 --- a/plugins/onboarding/skills/agent-readiness-report/references/criteria.md +++ /dev/null @@ -1 +0,0 @@ -../../../references/criteria.md \ No newline at end of file diff --git a/plugins/onboarding/skills/improve-agent-readiness/README.md b/plugins/onboarding/skills/improve-agent-readiness/README.md deleted file mode 100644 index 1ec1d0348..000000000 --- a/plugins/onboarding/skills/improve-agent-readiness/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# Improve Agent Readiness - -Take an agent readiness report and turn its gaps into concrete, repo-appropriate fixes. - -## Triggers - -This skill is activated by the following keywords: - -- `improve-agent-readiness` - -## Prerequisites - -An agent readiness report must already exist — either from running `agent-readiness-report` on the target repo or provided directly by the user. If no report exists, run the readiness report skill first. - -## What This Does - -1. **Reads the report** — identifies every missing feature across all five pillars -2. **Proposes 5–10 high-impact fixes** — ranked by how directly each change helps an agent complete coding tasks, not by checklist coverage -3. **Implements on request** — applies approved fixes with atomic commits, then updates the readiness report to reflect the new state diff --git a/plugins/onboarding/skills/improve-agent-readiness/SKILL.md b/plugins/onboarding/skills/improve-agent-readiness/SKILL.md deleted file mode 100644 index b7d2336c1..000000000 --- a/plugins/onboarding/skills/improve-agent-readiness/SKILL.md +++ /dev/null @@ -1,167 +0,0 @@ ---- -name: improve-agent-readiness -description: Use an agent readiness report to identify and implement improvements that make a repository more agent-friendly. Proposes repo-appropriate fixes for each pillar, then implements them on request. Use after running a readiness report or when a user wants to improve their repo's AI-readiness. -triggers: -- improve-agent-readiness -- agent onboarding ---- - -# Agent Onboarding - -Take a readiness report and turn its gaps into concrete, repo-appropriate fixes. - -## Prerequisites - -This skill expects an agent readiness report to already exist — either from -running `agent-readiness-report` on this repo or provided by the user. If no report -exists, run the readiness report skill first. - -## How to run - -### Step 1: Read the report - -Identify every **✗** (missing) feature across all five pillars. - -### Step 2: Propose high-impact fixes - -Don't try to fix everything. Pick the **5–10 changes that would help agents the -most** across all pillars, ranked by impact. Not every pillar needs to be -represented — focus on what matters most for this repo. The goal is to -meaningfully improve the score, not to hit 74/74. - -**Ranking heuristic** — rank by how directly the change helps an agent complete a -coding task in this repo: - -1. Things that unblock agents from working at all (AGENTS.md, build commands, - bootstrap scripts, dev environment setup) -2. Things that give agents faster feedback on their work (pre-commit hooks, test - documentation, PR templates with checklists) -3. Things that improve quality or process (CI caching, label automation, spell - checking, merge queues) -4. Things that improve governance or compliance (SECURITY.md, CODEOWNERS, - actionlint, CodeQL) - -A single change that lets an agent build and test the project outranks a 2-for-1 -that addresses minor gaps. - -Proposals should fit **this specific repo**: - -- Look at the languages, frameworks, and tools already in use -- Look at the project structure (monorepo vs single package, etc.) -- Look at what's already partially in place (don't reinvent what exists) -- Propose additions that match the repo's existing conventions and style - -For each proposal, include: -- What to add or change -- Where it goes (file path) -- Which pillar(s) it improves -- **Why it's high impact** — use the feature descriptions in - `references/criteria.md` to explain what goes wrong for agents without this - feature. Don't just say "improves Agent Instructions" — say what the agent - can't do today and what it'll be able to do after the fix. - -### Step 3: Implement on request - -When the user approves fixes (all or a subset), implement them, then **update the -readiness report** to reflect the new state. Flip each addressed feature from ✗ -to ✓ and update the pillar counts and summary. This ensures the next run of this -skill won't re-propose fixes that have already been applied. - -Follow these rules: - -- **Don't generate boilerplate** — content should be specific to this repo -- **Match existing style** — if the repo uses tabs, use tabs; if docs are in - RDoc, don't write Markdown -- **Don't over-generate** — a concise, accurate AGENTS.md beats a long generic - one -- **Commit atomically** — one commit per logical fix, not one giant commit - -## Pillar-specific guidance - -### Agent Instructions fixes - -The highest-impact fix is almost always an **agent instruction file** at the -root. A good one includes: - -- Build / test / lint commands (copy from CI config or Makefile, not invented) -- Project structure overview (what's in each top-level directory) -- Key conventions (naming, architecture patterns, things to avoid) -- Where to find more documentation - -If the repo is a monorepo, also consider per-component instruction files that -cover component-specific conventions. - -Other common fixes: -- Add AI IDE configuration if the team uses Cursor, Copilot, or Claude Code -- Create a contributing guide if one doesn't exist -- Add `.env.example` if the project uses environment variables - -### Feedback Loops fixes - -Focus on what gives agents the fastest signal: - -- **Pre-commit hooks** are the single fastest feedback loop — configure them with - the linter and formatter the project already uses -- **Test run documentation** in the agent instruction file — agents need to know - *exactly* which command runs which tests -- If the project has no linter or formatter configured, propose one that matches - the language ecosystem (don't propose Prettier for a Go project) - -### Workflows & Automation fixes - -Focus on structure that helps agents understand the process: - -- **PR template** with a checklist — agents follow checklists well -- **Issue templates** for bugs and features — gives agents structured input -- **CI concurrency control** — prevents agent-triggered CI from piling up - -### Policy & Governance fixes - -Focus on boundaries the agent needs to know: - -- **CODEOWNERS** — agents should know who owns what before making changes -- **Security policy** — agents need to know not to file public security issues -- Agent-aware **.gitignore** entries — prevent agent config files from being - committed accidentally - -### Build & Dev Environment fixes - -Focus on reproducibility: - -- **Dependency lockfile** if one doesn't exist — agents can't work with - non-deterministic installs -- **Tool version pinning** — prevents "works on my machine" failures -- **Single-command setup** — document or script the full bootstrap - -## Output format - -Present proposals like this: - -``` -# Agent Onboarding Proposals: {repo name} - -Ranked by impact. Implementing all of these would improve: -Agent Instructions (+4), Feedback Loops (+2), Policy & Governance (+1) - -1. **Create AGENTS.md** — Agent Instructions - - Include build commands from Makefile, test commands from CI, project structure - - Path: `./AGENTS.md` - - Right now agents have no way to learn this repo's conventions, banned - patterns, or how to build/test — they'll guess and get it wrong. - -2. **Add pre-commit hooks** — Feedback Loops - - Configure with ruff (already in pyproject.toml) and mypy - - Path: `./.pre-commit-config.yaml` - - Agents currently don't find out about lint/type errors until CI runs. - Pre-commit hooks catch these in seconds instead of minutes. - -3. **Add .env.example** — Agent Instructions, Build & Dev Environment - - Document the 3 env vars referenced in docker-compose.yml - - Path: `./.env.example` - - Agents can't start the dev server without knowing which env vars to set. - They'll either skip setup or hallucinate values. - -... - -Ready to implement? Reply with "all" or specify which proposals to apply. -``` diff --git a/plugins/onboarding/skills/improve-agent-readiness/references/criteria.md b/plugins/onboarding/skills/improve-agent-readiness/references/criteria.md deleted file mode 120000 index e04318e1a..000000000 --- a/plugins/onboarding/skills/improve-agent-readiness/references/criteria.md +++ /dev/null @@ -1 +0,0 @@ -../../../references/criteria.md \ No newline at end of file diff --git a/plugins/onboarding/skills/setup-agents-md/README.md b/plugins/onboarding/skills/setup-agents-md/README.md deleted file mode 100644 index 76a954549..000000000 --- a/plugins/onboarding/skills/setup-agents-md/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# Generate AGENTS.md - -Generate a high-quality, repo-specific AGENTS.md file that tells AI agents how to work effectively in a repository. - -## Triggers - -This skill is activated by the following keywords: - -- `setup-agents-md` - -## What This Does - -Reads the actual repository — Makefiles, CI configs, package.json scripts, linter configs, directory structure — and produces an AGENTS.md with real commands, real paths, and real conventions. Never generates generic boilerplate. - -Sections are included only when relevant: project overview, build/test/lint commands, project structure, coding standards, testing setup, and guardrails for things the agent must not do. diff --git a/plugins/onboarding/skills/setup-agents-md/SKILL.md b/plugins/onboarding/skills/setup-agents-md/SKILL.md deleted file mode 100644 index c0d583477..000000000 --- a/plugins/onboarding/skills/setup-agents-md/SKILL.md +++ /dev/null @@ -1,150 +0,0 @@ ---- -name: setup-agents-md -description: Generate a high-quality, repo-specific AGENTS.md file that tells AI agents how to work effectively in a repository. Reads the actual repo to extract commands, structure, conventions, and guardrails — never generates generic boilerplate. Use when a user wants to create or improve their AGENTS.md, or after a readiness report identifies a missing agent instruction file. -triggers: -- setup-agents-md -- agents-md ---- - -# Generate AGENTS.md - -Create a repo-specific AGENTS.md that gives AI agents the context they need to -work effectively. Every section should reference real commands, real paths, and -real conventions from the repository — not generic advice. - -## Why this matters - -An AGENTS.md is the single highest-impact addition for agent readiness. It -directly addresses features across multiple pillars: - -- **Agent Instructions**: agent instruction file, README with build/run/test, - contributing guide, environment variable documentation -- **Feedback Loops**: test run documentation — agents need exact commands -- **Policy & Governance**: guardrails the agent must follow - -Without it, agents guess at build commands, miss project conventions, run the -wrong test suite, and don't know what's dangerous. The best AGENTS.md files -share the same core pattern: real commands, clear structure, explicit boundaries. - -## How to run - -### Step 0: Check for an existing AGENTS.md - -Look for an existing `AGENTS.md` (or `.agents/AGENTS.md`) in the repo root. -If one exists, **do not rewrite it from scratch**. Instead, read the repo -(Step 1), compare what you find against what's already documented, and suggest -specific additions or changes. Present the suggestions to the user and let them -decide what to incorporate. - -If no file exists, proceed to create one. - -### Step 1: Read the repo - -Before writing anything, gather the actual information. Check these sources: - -**Commands** (most important — agents need to know how to build, test, lint): -- `Makefile` / `justfile` / `Taskfile.yml` — look for build/test/lint/format targets -- `package.json` `scripts` — npm/yarn/pnpm run targets -- `pyproject.toml` `[tool.prek]` / `[tool.pytest]` — Python tooling config -- `.github/workflows/*.yml` — CI steps reveal the real commands -- `Cargo.toml` — Rust build/test commands -- `build.gradle` / `pom.xml` — Java/Kotlin build commands -- `Rakefile` — Ruby task definitions -- `docker-compose.yml` — service orchestration commands - -**Project structure**: -- Top-level directory listing — what's in each major directory -- Monorepo indicators: workspace configs, multiple package.json/Cargo.toml/pyproject.toml -- Source vs test layout (where does code live, where do tests live) - -**Conventions**: -- Existing linter/formatter configs (.eslintrc, .prettierrc, rustfmt.toml, .rubocop.yml, ruff.toml) -- CONTRIBUTING.md — often contains coding standards -- Existing README — architecture descriptions, setup instructions -- `.editorconfig` — indentation/style basics - -**Guardrails**: -- Database configs — identify destructive commands to warn about -- CI enforcement — what must pass before merge -- Secrets/env patterns — `.env.example`, vault configs -- Branch protection or merge requirements - -### Step 2: Write the AGENTS.md - -Use this structure. Every section is optional — include only what's relevant to -this repo. A 30-line file with real commands beats a 200-line file with generic -advice. - -```markdown -# AGENTS.md - -## Project overview - -One or two sentences: what this project is, what language/framework, and the -high-level architecture (monorepo? client-server? library?). - -## Commands - -Organized by category. Use the exact commands from the repo — copy from -Makefile/CI/package.json, don't invent them. - -### Build -### Test -### Lint & format - -## Project structure - -What's in each top-level directory. Focus on what an agent needs to navigate -the codebase — not an exhaustive tree. - -## Coding standards - -Language-specific conventions that aren't captured by linter config. Things -like: naming patterns, import ordering preferences, test file location -conventions, preferred patterns over anti-patterns. - -## Testing - -Where tests live, how they're organized, how to run a single test vs the full -suite, any test database setup needed. - -## Guardrails - -Things the agent must NOT do. Destructive commands, files that shouldn't be -edited by hand, operations that require human approval. -``` - -### Key principles - -**Be specific, not generic.** Don't write "run the linter before committing" — -write `uv run ruff check --fix `. Don't write "follow the project's -coding standards" — write "use `snake_case` for variables, no `assert` in -production code." - -**Commands are king.** If the agent only reads one section, it should be -Commands. Every command block should be copy-pasteable. - -**Link, don't repeat.** If there's a detailed CONTRIBUTING.md or architecture -doc, link to it rather than duplicating the content. The AGENTS.md is an index -and quick reference, not a manual. - -**Include dangerous operations.** If `make db-reset` destroys the dev database, -say so. If `git push -f` to main is forbidden, say so. Agents are literal — -they need explicit guardrails. - -**Keep it maintainable.** A short, accurate AGENTS.md is better than a long one -that drifts out of date. Reference CI configs and Makefiles by path so a human -(or agent) can update the AGENTS.md when the underlying commands change. - -### What to leave out - -- Generic software engineering advice ("write clean code", "use meaningful names") -- Process documentation that belongs in CONTRIBUTING.md -- Full API documentation that belongs in doc comments or a docs site -- Operational runbooks that belong in an ops directory - -### Monorepo considerations - -If the repo is a monorepo, the root AGENTS.md should cover repo-wide commands -and conventions. Consider sub-directory AGENTS.md files only for packages with -substantially different commands or conventions, and link to them from the root. diff --git a/plugins/onboarding/skills/setup-openhands/README.md b/plugins/onboarding/skills/setup-openhands/README.md deleted file mode 100644 index 2d1700d95..000000000 --- a/plugins/onboarding/skills/setup-openhands/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# Set Up OpenHands - -Configure a repository for effective use with OpenHands in one pass. - -## Triggers - -This skill is activated by the following keywords: - -- `setup-openhands` -- `set up openhands` -- `configure openhands for this repo` - -## What This Does - -Walks through four steps to make a repo OpenHands-ready: - -1. **AGENTS.md** — generates a root-level agent instruction file with real commands and conventions from the repo -2. **`.openhands/setup.sh`** — creates a bootstrap script that installs dependencies and sets up the environment at the start of every session -3. **`.openhands/pre-commit.sh`** — creates a pre-commit script that mirrors CI checks so the agent gets fast feedback before pushing -4. **PR review workflow** — adds a GitHub Actions workflow for automated code review on pull requests diff --git a/plugins/onboarding/skills/setup-openhands/SKILL.md b/plugins/onboarding/skills/setup-openhands/SKILL.md deleted file mode 100644 index 6021a8c83..000000000 --- a/plugins/onboarding/skills/setup-openhands/SKILL.md +++ /dev/null @@ -1,56 +0,0 @@ ---- -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 diff --git a/plugins/onboarding/skills/setup-pr-review/README.md b/plugins/onboarding/skills/setup-pr-review/README.md deleted file mode 100644 index db911b1a2..000000000 --- a/plugins/onboarding/skills/setup-pr-review/README.md +++ /dev/null @@ -1,23 +0,0 @@ -# Set Up PR Review - -Add automated AI code review to a GitHub repository. - -## Triggers - -This skill is activated by the following keywords: - -- `setup-pr-review` -- `set up pr review` -- `add code review workflow` -- `openhands pr review` - -## What This Does - -Creates a `.github/workflows/pr-review.yml` file that triggers an OpenHands agent to review pull requests and post inline comments. Walks you through configuration options: - -- **Review style** — `roasted` (blunt, Torvalds-style) or `standard` (balanced) -- **When to trigger** — on-demand (label or reviewer request) or automatic (every PR) -- **Which model** — any litellm-supported model, with optional A/B testing -- **Evidence requirement** — optionally require proof-of-work in PR descriptions - -You'll need to add an `LLM_API_KEY` secret to your repository settings — the skill tells you exactly where. diff --git a/plugins/onboarding/skills/setup-pr-review/SKILL.md b/plugins/onboarding/skills/setup-pr-review/SKILL.md deleted file mode 100644 index fb45219d5..000000000 --- a/plugins/onboarding/skills/setup-pr-review/SKILL.md +++ /dev/null @@ -1,72 +0,0 @@ ---- -name: setup-pr-review -description: Set up the OpenHands automated PR review workflow in a GitHub repository. Creates the workflow file and asks the user for configuration preferences. Use when a user wants AI code review on their pull requests. -triggers: -- setup-pr-review -- set up pr review -- add code review workflow -- openhands pr review ---- - -# Set Up OpenHands PR Review - -Add the PR review workflow to a GitHub repository so an OpenHands agent can -review pull requests and post inline comments. - -**Docs**: https://docs.all-hands.dev/sdk/guides/github-workflows/pr-review - -## Step 1: Create the workflow file - -Create `.github/workflows/pr-review.yml` in the target repo. Fetch the latest -example from https://docs.all-hands.dev/sdk/guides/github-workflows/pr-review -and use it as the starting template. The workflow calls the -`OpenHands/extensions/plugins/pr-review` composite action directly. - -## Step 2: Configure the LLM - -Ask the user whether they are using the **OpenHands app** (app.all-hands.dev) -or their **own LLM provider** (e.g. Anthropic, OpenAI directly). - -### OpenHands app (default) - -OpenHands app users already have access to an LLM API key through the -OpenHands litellm proxy. Tell them: - -> Go to https://app.all-hands.dev → Account → API Keys → OpenHands LLM Key, and copy your key. -> Then add it as a GitHub repository secret: -> Settings → Secrets and variables → Actions → New repository secret. -> Name it `LLM_API_KEY`. - -Set these inputs in the workflow `with:` block: -- `llm-model: litellm_proxy/claude-sonnet-4-5-20250929` -- `llm-base-url: https://llm-proxy.app.all-hands.dev` - -### Own LLM provider - -If the user has their own API key (e.g. from Anthropic or OpenAI), tell them -to add it as a repository secret named `LLM_API_KEY` using the same path -above. Leave `llm-base-url` unset and set `llm-model` to the provider-prefixed -model name (e.g. `anthropic/claude-sonnet-4-5-20250929`). - -**You cannot create secrets — the user must do it manually.** Do not ask for -the key value. Just tell them where to put it. - -## Step 3: Ask the user for preferences - -Present these options and apply any requested changes to the workflow file: - -**Review style** (default: `roasted`) -- `roasted` — Linus Torvalds-style, blunt, focuses on data structures and - simplicity. -- `standard` — balanced, covers style/readability/security. - -**When to trigger** (default: on-demand only) -- On-demand: add `review-this` label or request `openhands-agent` as reviewer. -- Automatic: review every new PR. Add `opened` and `ready_for_review` to - `on.pull_request.types` and matching conditions to the `if:` block. - -After applying these, ask the user if they want to explore additional options -(model selection, evidence requirements, custom review skills, observability). -If yes, walk them through it — use the docs as a reference: -https://docs.all-hands.dev/sdk/guides/github-workflows/pr-review -If not, you're done. diff --git a/skills/init/SKILL.md b/skills/init/SKILL.md index c0e065258..3a0f6a39d 100644 --- a/skills/init/SKILL.md +++ b/skills/init/SKILL.md @@ -51,3 +51,8 @@ Never overwrite an existing file silently. If the target file already exists, as - Only include information that’s broadly useful for future tasks (avoid one-off issue details). - If the repo already contains nested `AGENTS.md` files, briefly mention that more deeply nested files override broader ones within their directory tree. + +## See also + +For deeper onboarding workflows (readiness assessment, full setup, PR review +automation), see the **onboarding** skill. diff --git a/skills/onboarding/README.md b/skills/onboarding/README.md new file mode 100644 index 000000000..0359174dc --- /dev/null +++ b/skills/onboarding/README.md @@ -0,0 +1,31 @@ +# Onboarding Skill + +Comprehensive workflows to make a repository ready for AI-assisted development. + +## Triggers + +| Trigger | What it does | +|---------|-------------| +| `setup-agents-md` | Deep, thorough AGENTS.md from real repo analysis | +| `setup-openhands` | Full setup: AGENTS.md + bootstrap scripts + PR review | +| `agent-readiness-report` | 74-feature readiness assessment across 5 pillars | +| `improve-agent-readiness` | Propose & implement highest-impact fixes | +| `setup-pr-review` | Add automated PR review workflow | + +For a quick `AGENTS.md` scaffold, use the **init** skill (`/init`). + +## Readiness Assessment + +The `agent-readiness-report` workflow scores a repository across five pillars: + +1. **Agent Instructions** — AGENTS.md, style guides, naming conventions +2. **Build Environment** — one-command build/test, dependency management +3. **Feedback Loops** — linting, type-checking, test coverage +4. **CI/CD Workflows** — automated checks, review automation +5. **Policy & Governance** — security policies, contribution guidelines + +See `references/criteria.md` for the full 74-feature checklist. + +## Credits + +Based on Calvin Smith's onboarding plugin for OpenHands. diff --git a/skills/onboarding/SKILL.md b/skills/onboarding/SKILL.md new file mode 100644 index 000000000..1c4a2ff69 --- /dev/null +++ b/skills/onboarding/SKILL.md @@ -0,0 +1,38 @@ +--- +name: onboarding +description: >- + Full repository onboarding for AI agents — deep AGENTS.md generation, + readiness assessment, and automated setup workflows. +triggers: +- setup-openhands +- setup-agents-md +- agent-readiness-report +- improve-agent-readiness +- setup-pr-review +--- + +# Repository Onboarding + +> Based on Calvin Smith's onboarding plugin — comprehensive workflows for +> making a repository ready for AI-assisted development. + +For a quick `AGENTS.md` scaffold, use the **init** skill (`/init`). + +## Workflows + +Read the linked reference file for the triggered workflow: + +| Trigger | What it does | Details | +|---------|-------------|---------| +| `setup-agents-md` | Deep AGENTS.md from real repo analysis | `references/workflow-setup-agents-md.md` | +| `setup-openhands` | Full setup: AGENTS.md + bootstrap scripts + PR review | `references/workflow-setup-openhands.md` | +| `agent-readiness-report` | 74-feature readiness assessment across 5 pillars | `references/workflow-readiness-report.md` | +| `improve-agent-readiness` | Propose & implement highest-impact fixes | `references/workflow-improve-readiness.md` | +| `setup-pr-review` | Add automated PR review workflow | `references/workflow-setup-pr-review.md` | + +## References + +All paths are relative to this skill's directory (`skills/onboarding/`): + +- Readiness criteria (74 features, 5 pillars): `references/criteria.md` +- Scanner scripts for automated signal gathering: `scripts/scan_*.sh` diff --git a/plugins/onboarding/references/criteria.md b/skills/onboarding/references/criteria.md similarity index 100% rename from plugins/onboarding/references/criteria.md rename to skills/onboarding/references/criteria.md diff --git a/skills/onboarding/references/workflow-improve-readiness.md b/skills/onboarding/references/workflow-improve-readiness.md new file mode 100644 index 000000000..a49ccb4da --- /dev/null +++ b/skills/onboarding/references/workflow-improve-readiness.md @@ -0,0 +1,35 @@ +# Improve Agent Readiness — `improve-agent-readiness` + +Take a readiness report and turn its gaps into concrete, repo-appropriate fixes. + +## Prerequisites + +This expects an agent readiness report to already exist — either from running +`agent-readiness-report` or provided by the user. + +## Step 1: Read the report + +Identify every **✗** (missing) feature across all five pillars. + +## Step 2: Propose high-impact fixes + +Pick the **5–10 changes that would help agents the most**, ranked by impact: + +1. Things that unblock agents from working at all (AGENTS.md, build commands, + bootstrap scripts, dev environment setup) +2. Things that give agents faster feedback (pre-commit hooks, test docs, PR templates) +3. Things that improve quality or process (CI caching, label automation) +4. Things that improve governance or compliance (SECURITY.md, CODEOWNERS) + +Proposals should fit the specific repo — look at languages, frameworks, tools, +and existing conventions. + +## Step 3: Implement on request + +When the user approves fixes, implement them, then update the readiness report +to reflect the new state. Follow these rules: + +- **Don't generate boilerplate** — content should be specific to this repo +- **Match existing style** — if the repo uses tabs, use tabs +- **Don't over-generate** — concise and accurate beats long and generic +- **Commit atomically** — one commit per logical fix diff --git a/skills/onboarding/references/workflow-readiness-report.md b/skills/onboarding/references/workflow-readiness-report.md new file mode 100644 index 000000000..97fd6ca7f --- /dev/null +++ b/skills/onboarding/references/workflow-readiness-report.md @@ -0,0 +1,53 @@ +# Agent Readiness Report — `agent-readiness-report` + +Evaluate how well a repository supports autonomous AI-assisted development +across five pillars covering 74 features. + +## Five Pillars + +| Pillar | Question | Features | +|--------|----------|----------| +| **Agent Instructions** | Does the agent know what to do? | 18 | +| **Feedback Loops** | Does the agent know if it's right? | 16 | +| **Workflows & Automation** | Does the process support agent work? | 15 | +| **Policy & Governance** | Does the agent know the rules? | 13 | +| **Build & Dev Environment** | Can the agent build and run the project? | 12 | + +See `criteria.md` in this directory for the full list with descriptions and evidence. + +## How to run + +### Step 1: Run the scanner scripts + +The scanner scripts live in this skill's `scripts/` directory. Set `SKILL_DIR` +to the absolute path of the `skills/onboarding` directory, then run: + +```bash +# Portable (works on macOS and Linux): +SKILL_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" +for s in "$SKILL_DIR"/scripts/scan_*.sh; do bash "$s" /path/to/repo; echo; done +``` + +The scripts find files and patterns but do not evaluate quality. Many features +require reading the actual files to assess. + +### Step 2: Evaluate each feature + +Walk through `criteria.md` pillar by pillar. Mark each feature: +**✓** (present), **✗** (missing), or **—** (not applicable). + +### Step 3: Write the report + +``` +# Agent Readiness Report: {repo name} + +## Summary +- Features present: X / 74 +- Strongest pillar: {pillar} +- Weakest pillar: {pillar} + +## Pillar 1 · Agent Instructions (X / 18) +✓ Agent instruction file — AGENTS.md at root +✗ Multi-model support — only Cursor configured +... +``` diff --git a/skills/onboarding/references/workflow-setup-agents-md.md b/skills/onboarding/references/workflow-setup-agents-md.md new file mode 100644 index 000000000..8ddaa347e --- /dev/null +++ b/skills/onboarding/references/workflow-setup-agents-md.md @@ -0,0 +1,70 @@ +# Deep AGENTS.md — `setup-agents-md` + +Generate a thorough, high-quality AGENTS.md by extracting real commands, +structure, conventions, and guardrails from the repository. + +## Why this matters + +An AGENTS.md is the single highest-impact addition for agent readiness. Without +it, agents guess at build commands, miss project conventions, run the wrong test +suite, and don't know what's dangerous. + +## Step 0: Check for an existing AGENTS.md + +Look for an existing `AGENTS.md` (or `.agents/AGENTS.md`) in the repo root. +If one exists, **do not rewrite it from scratch**. Instead, read the repo, +compare what you find against what's already documented, and suggest specific +additions or changes. Present the suggestions to the user and let them decide. + +## Step 1: Read the repo + +Before writing anything, gather the actual information: + +**Commands** (most important — agents need to know how to build, test, lint): +- `Makefile` / `justfile` / `Taskfile.yml` — build/test/lint/format targets +- `package.json` `scripts` — npm/yarn/pnpm run targets +- `pyproject.toml` — Python tooling config +- `.github/workflows/*.yml` — CI steps reveal the real commands +- `Cargo.toml`, `build.gradle` / `pom.xml`, `Rakefile`, `docker-compose.yml` + +**Project structure**: top-level directory listing, monorepo indicators, source vs test layout. + +**Conventions**: linter/formatter configs, CONTRIBUTING.md, existing README, `.editorconfig`. + +**Guardrails**: database configs (destructive commands), CI enforcement, secrets/env patterns, branch protection. + +## Step 2: Write the AGENTS.md + +Use this structure (include only what's relevant): + +```markdown +# AGENTS.md + +## Project overview +One or two sentences: what this project is, language/framework, high-level architecture. + +## Commands +### Build +### Test +### Lint & format + +## Project structure +What's in each top-level directory. + +## Coding standards +Language-specific conventions not captured by linter config. + +## Testing +Where tests live, how to run single test vs full suite, test DB setup. + +## Guardrails +Things the agent must NOT do. Destructive commands, files not to edit by hand. +``` + +## Key principles + +- **Be specific, not generic.** Write `uv run ruff check --fix `, not "run the linter." +- **Commands are king.** Every command block should be copy-pasteable. +- **Link, don't repeat.** Reference CONTRIBUTING.md or architecture docs by path. +- **Include dangerous operations.** If `make db-reset` destroys the dev database, say so. +- **Keep it maintainable.** Short and accurate beats long and generic. diff --git a/skills/onboarding/references/workflow-setup-openhands.md b/skills/onboarding/references/workflow-setup-openhands.md new file mode 100644 index 000000000..ee489ccda --- /dev/null +++ b/skills/onboarding/references/workflow-setup-openhands.md @@ -0,0 +1,45 @@ +# Full Setup — `setup-openhands` + +Fully configure a repository for OpenHands: AGENTS.md, bootstrap scripts, +and PR review workflow. + +## Step 1: Create AGENTS.md + +Run the deep `setup-agents-md` workflow (see `workflow-setup-agents-md.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 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 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 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 a pre-commit script that runs before every commit OpenHands makes. +Mirror the lint and test commands from CI. Exit non-zero on failure so the +agent gets immediate feedback instead of waiting for CI. + +**Docs**: https://docs.openhands.dev/openhands/usage/customization/repository#pre-commit-script + +## Step 4: Set up PR review + +Run the `setup-pr-review` workflow (see `workflow-setup-pr-review.md`) 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 diff --git a/skills/onboarding/references/workflow-setup-pr-review.md b/skills/onboarding/references/workflow-setup-pr-review.md new file mode 100644 index 000000000..4fb5012fa --- /dev/null +++ b/skills/onboarding/references/workflow-setup-pr-review.md @@ -0,0 +1,30 @@ +# Set Up PR Review — `setup-pr-review` + +Add the OpenHands PR review workflow to a GitHub repository so an agent can +review pull requests and post inline comments. + +**Docs**: https://docs.all-hands.dev/sdk/guides/github-workflows/pr-review + +## Step 1: Create the workflow file + +Create `.github/workflows/pr-review.yml`. Fetch the latest example from the +docs and use it as the starting template. + +## Step 2: Configure the LLM + +Ask the user whether they use the **OpenHands app** or their **own LLM provider**. + +**OpenHands app**: Tell them to get an LLM key from +https://app.all-hands.dev → Account → API Keys → OpenHands LLM Key, add it as +a GitHub secret named `LLM_API_KEY`. Set `llm-model: litellm_proxy/claude-sonnet-4-5-20250929` +and `llm-base-url: https://llm-proxy.app.all-hands.dev`. + +**Own LLM provider**: Add their API key as `LLM_API_KEY` secret. Set `llm-model` +to the provider-prefixed model name (e.g. `anthropic/claude-sonnet-4-5-20250929`). + +**You cannot create secrets — the user must do it manually.** + +## Step 3: Ask the user for preferences + +- **Review style**: `roasted` (blunt, Torvalds-style) or `standard` (balanced) +- **When to trigger**: on-demand (add `review-this` label or request reviewer) or automatic (every new PR) diff --git a/plugins/onboarding/skills/agent-readiness-report/scripts/scan_agent_instructions.sh b/skills/onboarding/scripts/scan_agent_instructions.sh similarity index 100% rename from plugins/onboarding/skills/agent-readiness-report/scripts/scan_agent_instructions.sh rename to skills/onboarding/scripts/scan_agent_instructions.sh diff --git a/plugins/onboarding/skills/agent-readiness-report/scripts/scan_build_env.sh b/skills/onboarding/scripts/scan_build_env.sh similarity index 100% rename from plugins/onboarding/skills/agent-readiness-report/scripts/scan_build_env.sh rename to skills/onboarding/scripts/scan_build_env.sh diff --git a/plugins/onboarding/skills/agent-readiness-report/scripts/scan_feedback_loops.sh b/skills/onboarding/scripts/scan_feedback_loops.sh similarity index 100% rename from plugins/onboarding/skills/agent-readiness-report/scripts/scan_feedback_loops.sh rename to skills/onboarding/scripts/scan_feedback_loops.sh diff --git a/plugins/onboarding/skills/agent-readiness-report/scripts/scan_policy.sh b/skills/onboarding/scripts/scan_policy.sh similarity index 100% rename from plugins/onboarding/skills/agent-readiness-report/scripts/scan_policy.sh rename to skills/onboarding/scripts/scan_policy.sh diff --git a/plugins/onboarding/skills/agent-readiness-report/scripts/scan_workflows.sh b/skills/onboarding/scripts/scan_workflows.sh similarity index 100% rename from plugins/onboarding/skills/agent-readiness-report/scripts/scan_workflows.sh rename to skills/onboarding/scripts/scan_workflows.sh