From 2ef2e448251ba3a3f532f6dc4b0cfa5c5234788e Mon Sep 17 00:00:00 2001 From: openhands Date: Thu, 16 Apr 2026 15:36:32 +0000 Subject: [PATCH 1/7] feat: bundle onboarding plugin into init skill MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Merge Calvin Smith's onboarding plugin into the init skill, creating a comprehensive repository initialization and onboarding skill. The init skill now covers: - Quick AGENTS.md scaffold (/init) — original functionality - Deep AGENTS.md generation (setup-agents-md) — from onboarding - Full OpenHands setup (setup-openhands) — AGENTS.md + scripts + PR review - Agent readiness report (agent-readiness-report) — 74-feature assessment - Improve agent readiness (improve-agent-readiness) — propose & implement fixes - Set up PR review (setup-pr-review) — automated PR review workflow Changes: - Enhanced init SKILL.md with all onboarding workflows as sections - Moved references/criteria.md (74 readiness features) into init/references/ - Moved scanner scripts (5 shell scripts) into init/scripts/ - Updated init README.md to document all capabilities - Updated marketplace JSON: removed onboarding entry, updated init entry - Removed plugins/onboarding/ directory - Regenerated command files via sync_extensions.py All triggers preserved: /init, setup-openhands, setup-agents-md, agent-readiness-report, improve-agent-readiness, setup-pr-review Co-authored-by: openhands --- README.md | 7 +- marketplaces/openhands-extensions.json | 27 +- plugins/onboarding/.claude-plugin | 1 - plugins/onboarding/.codex-plugin | 1 - plugins/onboarding/.plugin/plugin.json | 20 -- plugins/onboarding/README.md | 30 -- .../skills/agent-readiness-report/README.md | 23 -- .../skills/agent-readiness-report/SKILL.md | 122 -------- .../references/criteria.md | 1 - .../skills/improve-agent-readiness/README.md | 19 -- .../skills/improve-agent-readiness/SKILL.md | 167 ----------- .../references/criteria.md | 1 - .../skills/setup-agents-md/README.md | 15 - .../skills/setup-agents-md/SKILL.md | 150 ---------- .../skills/setup-openhands/README.md | 20 -- .../skills/setup-openhands/SKILL.md | 56 ---- .../skills/setup-pr-review/README.md | 23 -- .../skills/setup-pr-review/SKILL.md | 72 ----- skills/init/README.md | 60 +++- skills/init/SKILL.md | 281 +++++++++++++++++- skills/init/commands/init.md | 2 +- .../init}/references/criteria.md | 0 .../init}/scripts/scan_agent_instructions.sh | 0 .../init}/scripts/scan_build_env.sh | 0 .../init}/scripts/scan_feedback_loops.sh | 0 .../init}/scripts/scan_policy.sh | 0 .../init}/scripts/scan_workflows.sh | 0 27 files changed, 336 insertions(+), 762 deletions(-) delete mode 120000 plugins/onboarding/.claude-plugin delete mode 120000 plugins/onboarding/.codex-plugin delete mode 100644 plugins/onboarding/.plugin/plugin.json delete mode 100644 plugins/onboarding/README.md delete mode 100644 plugins/onboarding/skills/agent-readiness-report/README.md delete mode 100644 plugins/onboarding/skills/agent-readiness-report/SKILL.md delete mode 120000 plugins/onboarding/skills/agent-readiness-report/references/criteria.md delete mode 100644 plugins/onboarding/skills/improve-agent-readiness/README.md delete mode 100644 plugins/onboarding/skills/improve-agent-readiness/SKILL.md delete mode 120000 plugins/onboarding/skills/improve-agent-readiness/references/criteria.md delete mode 100644 plugins/onboarding/skills/setup-agents-md/README.md delete mode 100644 plugins/onboarding/skills/setup-agents-md/SKILL.md delete mode 100644 plugins/onboarding/skills/setup-openhands/README.md delete mode 100644 plugins/onboarding/skills/setup-openhands/SKILL.md delete mode 100644 plugins/onboarding/skills/setup-pr-review/README.md delete mode 100644 plugins/onboarding/skills/setup-pr-review/SKILL.md rename {plugins/onboarding => skills/init}/references/criteria.md (100%) rename {plugins/onboarding/skills/agent-readiness-report => skills/init}/scripts/scan_agent_instructions.sh (100%) rename {plugins/onboarding/skills/agent-readiness-report => skills/init}/scripts/scan_build_env.sh (100%) rename {plugins/onboarding/skills/agent-readiness-report => skills/init}/scripts/scan_feedback_loops.sh (100%) rename {plugins/onboarding/skills/agent-readiness-report => skills/init}/scripts/scan_policy.sh (100%) rename {plugins/onboarding/skills/agent-readiness-report => skills/init}/scripts/scan_workflows.sh (100%) diff --git a/README.md b/README.md index dcaaef250..df4a19279 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 **46 extensions** (37 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. -**42 extensions** (35 skills, 7 plugins) +**41 extensions** (35 skills, 6 plugins) | Name | Type | Description | Commands | |------|------|-------------|----------| @@ -112,7 +112,7 @@ Official skills and plugins for OpenHands — the open-source AI software engine | github | skill | Interact with GitHub repositories, pull requests, issues, and workflows using the GITHUB_TOKEN environment variable a... | — | | github-pr-review | skill | Post structured PR reviews to GitHub with inline comments/suggestions in a single API call. | `/github-pr-review` | | gitlab | skill | Interact with GitLab repositories, merge requests, and APIs using the GITLAB_TOKEN environment variable. Use when wor... | — | -| init | skill | Scaffold an AGENTS.md contributor guide for a repository or subdirectory. | `/init` | +| init | skill | Initialize and onboard a repository for AI-assisted development. Quick AGENTS.md scaffold, full OpenHands setup with ... | `/init` | | jupyter | skill | Read, modify, execute, and convert Jupyter notebooks programmatically. Use when working with .ipynb files for data sc... | — | | kubernetes | skill | Set up and manage local Kubernetes clusters using KIND (Kubernetes IN Docker). Use when testing Kubernetes applicatio... | — | | learn-from-code-review | skill | Distill code review feedback from GitHub PRs into reusable skills and guidelines. Use when users ask to learn from co... | `/learn-from-reviews` | @@ -120,7 +120,6 @@ 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... | — | | 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 d171feae2..b619158d9 100644 --- a/marketplaces/openhands-extensions.json +++ b/marketplaces/openhands-extensions.json @@ -248,14 +248,17 @@ { "name": "init", "source": "./skills/init", - "description": "Scaffold an AGENTS.md contributor guide for a repository or subdirectory.", - "category": "documentation", + "description": "Initialize and onboard a repository for AI-assisted development. Quick AGENTS.md scaffold, full OpenHands setup with bootstrap scripts and PR review, agent readiness assessment across 74 features, and improvement workflows.", + "category": "productivity", "keywords": [ "agents", "agents-md", - "documentation", - "guidelines", - "init" + "init", + "onboarding", + "readiness", + "setup", + "agent-readiness", + "assessment" ] }, { @@ -343,19 +346,7 @@ "packages" ] }, - { - "name": "onboarding", - "source": "./plugins/onboarding", - "description": "Assess repository agent-readiness across five pillars, propose high-impact fixes, and generate repo-specific AGENTS.md files.", - "category": "productivity", - "keywords": [ - "onboarding", - "readiness", - "agents-md", - "agent-readiness", - "assessment" - ] - }, + { "name": "openhands-api", "source": "./skills/openhands-api", 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/README.md b/skills/init/README.md index 4be65d10f..d3b17ef4c 100644 --- a/skills/init/README.md +++ b/skills/init/README.md @@ -1,12 +1,56 @@ -# `/init` skill +# init -This skill helps an agent generate an `AGENTS.md` file (a concise contributor/repo-guidelines doc for AI-assisted development). +Initialize and onboard a repository for AI-assisted development — from a quick +AGENTS.md scaffold to a full OpenHands setup with readiness assessment. -## Usage +## Triggers -- `/init` → create `AGENTS.md` at the repository root. -- `/init ` → create `AGENTS.md` scoped to the given path: - - If `` is a directory, the file is written to `/AGENTS.md`. - - If `` ends with `.md`, it is treated as the output file path. +This skill is activated by: -The generated document follows a short, repo-specific template (structure, commands, style, testing, PR conventions) and avoids overwriting any existing `AGENTS.md` without confirmation. +- `/init` — quick AGENTS.md scaffold +- `setup-openhands` — full repository setup (AGENTS.md + scripts + PR review) +- `setup-agents-md` — deep, thorough AGENTS.md generation +- `agent-readiness-report` — evaluate agent readiness across 74 features +- `improve-agent-readiness` — propose and implement readiness improvements +- `setup-pr-review` — add automated PR review workflow + +## What's Included + +### Quick Start (`/init`) + +Scaffold a concise, repo-specific `AGENTS.md` at the root or a subdirectory. + +### Deep AGENTS.md (`setup-agents-md`) + +Generate a thorough AGENTS.md that extracts real commands, structure, +conventions, and guardrails from the repository. The single highest-impact +addition for agent readiness. + +### Full Setup (`setup-openhands`) + +Complete repository configuration for OpenHands: +1. Create `AGENTS.md` (via `setup-agents-md`) +2. Create `.openhands/setup.sh` bootstrap script +3. Create `.openhands/pre-commit.sh` pre-commit script +4. Set up automated PR review workflow + +### Agent Readiness Report (`agent-readiness-report`) + +Evaluate a repository across five pillars (Agent Instructions, Feedback Loops, +Workflows & Automation, Policy & Governance, Build & Dev Environment) covering +74 features. Includes scanner scripts for automated signal gathering. + +### Improve Agent Readiness (`improve-agent-readiness`) + +Take a readiness report and propose the 5–10 highest-impact fixes, ranked by +how directly they help agents complete coding tasks. Implements approved fixes. + +### Set Up PR Review (`setup-pr-review`) + +Add the OpenHands automated PR review workflow to a GitHub repository. + +## Origins + +This skill incorporates the former `onboarding` plugin (by Calvin Smith), +combining its agent readiness assessment, AGENTS.md generation, and OpenHands +setup workflows with the original `/init` quick scaffold. diff --git a/skills/init/SKILL.md b/skills/init/SKILL.md index c0e065258..e6d4e6c99 100644 --- a/skills/init/SKILL.md +++ b/skills/init/SKILL.md @@ -1,24 +1,39 @@ --- name: init -description: Create an AGENTS.md contributor guide for a repository (or a subdirectory) following a concise, repo-specific template. Use when the user runs /init. +description: >- + Initialize and onboard a repository for AI-assisted development. Quick mode + (/init): scaffold an AGENTS.md contributor guide. Full setup + (setup-openhands): create AGENTS.md, bootstrap scripts, and PR review + workflow. Also includes agent readiness assessment and improvement workflows. triggers: - /init +- setup-openhands +- setup-agents-md +- agent-readiness-report +- improve-agent-readiness +- setup-pr-review --- -# Initialize `AGENTS.md` +# Repository Initialization & Onboarding -Use this skill when the user asks to scaffold an `AGENTS.md` file (project guidelines for AI agents) for the current repository. +This skill covers the full spectrum of getting a repository ready for AI agents, +from a quick AGENTS.md scaffold to a comprehensive agent-readiness assessment. -## Target path rules +## Quick Start — `/init` + +Use `/init` when you just need an `AGENTS.md` file fast. + +### Target path rules - `/init`: create `AGENTS.md` at the repository root. - `/init `: create `AGENTS.md` scoped to ``. - If `` is a directory, write `/AGENTS.md`. - If `` ends with `.md`, treat it as the full output file path. -Never overwrite an existing file silently. If the target file already exists, ask the user whether to (a) keep it, (b) edit it, or (c) replace it. +Never overwrite an existing file silently. If the target file already exists, +ask the user whether to (a) keep it, (b) edit it, or (c) replace it. -## Workflow +### Quick init workflow 1. **Inspect the repo to tailor the guide** - Skim top-level structure (`ls`, `find -maxdepth 2`). @@ -30,7 +45,7 @@ Never overwrite an existing file silently. If the target file already exists, as 3. **Create the file** at the target location. -## `AGENTS.md` spec (inspired by Codex `/init`) +### `AGENTS.md` spec - Title the document: `# Repository Guidelines`. - Use Markdown headings (`##`) to organize sections. @@ -38,7 +53,7 @@ Never overwrite an existing file silently. If the target file already exists, as - Keep explanations short, direct, and specific to the repo. - Prefer concrete examples (commands, directory paths, naming patterns). -### Recommended sections (adapt as needed) +#### Recommended sections (adapt as needed) - Project Structure & Module Organization - Build, Test, and Development Commands @@ -47,7 +62,253 @@ Never overwrite an existing file silently. If the target file already exists, as - Commit & Pull Request Guidelines - Optional: Security & Configuration Tips, Architecture Overview, Agent-specific instructions -## Content guidelines +### Content guidelines -- Only include information that’s broadly useful for future tasks (avoid one-off issue details). +- 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. + +--- + +## Deep AGENTS.md — `setup-agents-md` + +Use this when you want a thorough, high-quality AGENTS.md that extracts 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. + +--- + +## Full Setup — `setup-openhands` + +Use this when you want to fully configure a repository for OpenHands, including +AGENTS.md, bootstrap scripts, and PR review workflow. + +### Step 1: Create AGENTS.md + +Run the deep `setup-agents-md` workflow above 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 below 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 + +--- + +## Set Up PR Review — `setup-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`. 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) + +--- + +## 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 `references/criteria.md` for the full list with descriptions and evidence. + +### How to run + +#### Step 1: Run the scanner scripts + +```bash +for s in 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 `references/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 +... +``` + +--- + +## 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 + +## References + +- Agent readiness criteria (74 features): `references/criteria.md` diff --git a/skills/init/commands/init.md b/skills/init/commands/init.md index 06ec9b1e8..7fbae9113 100644 --- a/skills/init/commands/init.md +++ b/skills/init/commands/init.md @@ -1,6 +1,6 @@ --- # auto-generated by sync_extensions.py -description: Create an AGENTS.md contributor guide for a repository (or a subdirectory) following a concise, repo-specific template. Use when the user runs /init. +description: Initialize and onboard a repository for AI-assisted development. Quick mode (/init): scaffold an AGENTS.md contributor guide. Full setup (setup-openhands): create AGENTS.md, bootstrap scripts, and PR review workflow. Also includes agent readiness assessment and improvement workflows. --- Read and follow the complete instructions in the SKILL.md file located in this skill's directory. diff --git a/plugins/onboarding/references/criteria.md b/skills/init/references/criteria.md similarity index 100% rename from plugins/onboarding/references/criteria.md rename to skills/init/references/criteria.md diff --git a/plugins/onboarding/skills/agent-readiness-report/scripts/scan_agent_instructions.sh b/skills/init/scripts/scan_agent_instructions.sh similarity index 100% rename from plugins/onboarding/skills/agent-readiness-report/scripts/scan_agent_instructions.sh rename to skills/init/scripts/scan_agent_instructions.sh diff --git a/plugins/onboarding/skills/agent-readiness-report/scripts/scan_build_env.sh b/skills/init/scripts/scan_build_env.sh similarity index 100% rename from plugins/onboarding/skills/agent-readiness-report/scripts/scan_build_env.sh rename to skills/init/scripts/scan_build_env.sh diff --git a/plugins/onboarding/skills/agent-readiness-report/scripts/scan_feedback_loops.sh b/skills/init/scripts/scan_feedback_loops.sh similarity index 100% rename from plugins/onboarding/skills/agent-readiness-report/scripts/scan_feedback_loops.sh rename to skills/init/scripts/scan_feedback_loops.sh diff --git a/plugins/onboarding/skills/agent-readiness-report/scripts/scan_policy.sh b/skills/init/scripts/scan_policy.sh similarity index 100% rename from plugins/onboarding/skills/agent-readiness-report/scripts/scan_policy.sh rename to skills/init/scripts/scan_policy.sh diff --git a/plugins/onboarding/skills/agent-readiness-report/scripts/scan_workflows.sh b/skills/init/scripts/scan_workflows.sh similarity index 100% rename from plugins/onboarding/skills/agent-readiness-report/scripts/scan_workflows.sh rename to skills/init/scripts/scan_workflows.sh From b81bd74f5258d8a5da098ea1bf6b9efa46b70c47 Mon Sep 17 00:00:00 2001 From: openhands Date: Thu, 16 Apr 2026 20:43:16 +0000 Subject: [PATCH 2/7] =?UTF-8?q?refactor:=20apply=20progressive=20disclosur?= =?UTF-8?q?e=20=E2=80=94=20split=20SKILL.md=20into=20lean=20catalog=20+=20?= =?UTF-8?q?reference=20workflows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Address review feedback: - Slim SKILL.md from 314 lines to 45 (concise catalog/router) - Move each workflow's detailed instructions to references/workflow-*.md - Fix frontmatter description (concise, under 20 words) - Add Calvin Smith attribution in SKILL.md - Follows progressive disclosure: agent sees catalog first, reads details only when needed Co-authored-by: openhands --- skills/init/SKILL.md | 315 ++---------------- skills/init/commands/init.md | 2 +- .../references/workflow-improve-readiness.md | 35 ++ skills/init/references/workflow-init.md | 47 +++ .../references/workflow-readiness-report.md | 48 +++ .../references/workflow-setup-agents-md.md | 70 ++++ .../references/workflow-setup-openhands.md | 45 +++ .../references/workflow-setup-pr-review.md | 30 ++ 8 files changed, 299 insertions(+), 293 deletions(-) create mode 100644 skills/init/references/workflow-improve-readiness.md create mode 100644 skills/init/references/workflow-init.md create mode 100644 skills/init/references/workflow-readiness-report.md create mode 100644 skills/init/references/workflow-setup-agents-md.md create mode 100644 skills/init/references/workflow-setup-openhands.md create mode 100644 skills/init/references/workflow-setup-pr-review.md diff --git a/skills/init/SKILL.md b/skills/init/SKILL.md index e6d4e6c99..33245bbf2 100644 --- a/skills/init/SKILL.md +++ b/skills/init/SKILL.md @@ -1,10 +1,8 @@ --- name: init description: >- - Initialize and onboard a repository for AI-assisted development. Quick mode - (/init): scaffold an AGENTS.md contributor guide. Full setup - (setup-openhands): create AGENTS.md, bootstrap scripts, and PR review - workflow. Also includes agent readiness assessment and improvement workflows. + Scaffold an AGENTS.md contributor guide or run a full repository onboarding + for AI-assisted development. triggers: - /init - setup-openhands @@ -16,299 +14,32 @@ triggers: # Repository Initialization & Onboarding -This skill covers the full spectrum of getting a repository ready for AI agents, -from a quick AGENTS.md scaffold to a comprehensive agent-readiness assessment. +Get a repository ready for AI agents — from a quick AGENTS.md scaffold to a +full readiness assessment. Each workflow is documented in its own reference +file; read only the one you need. -## Quick Start — `/init` +> The deep AGENTS.md generation, readiness assessment, and full-setup workflows +> originated from Calvin Smith's onboarding plugin. -Use `/init` when you just need an `AGENTS.md` file fast. +## Workflows -### Target path rules +| Trigger | What it does | Details | +|---------|-------------|---------| +| `/init` | Quick AGENTS.md scaffold (200–400 words) | `references/workflow-init.md` | +| `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` | -- `/init`: create `AGENTS.md` at the repository root. -- `/init `: create `AGENTS.md` scoped to ``. - - If `` is a directory, write `/AGENTS.md`. - - If `` ends with `.md`, treat it as the full output file path. +## How to choose -Never overwrite an existing file silently. If the target file already exists, -ask the user whether to (a) keep it, (b) edit it, or (c) replace it. - -### Quick init workflow - -1. **Inspect the repo to tailor the guide** - - Skim top-level structure (`ls`, `find -maxdepth 2`). - - Read the primary docs (`README*`, `CONTRIBUTING*`, `DEVELOPMENT*`, `Makefile`). - - Identify build tooling and common commands (`pyproject.toml`, `package.json`, CI configs). - - Locate tests and how they are run (`tests/`, workflow YAMLs, task runners). - -2. **Write a concise `AGENTS.md`** using the spec below. - -3. **Create the file** at the target location. - -### `AGENTS.md` spec - -- Title the document: `# Repository Guidelines`. -- Use Markdown headings (`##`) to organize sections. -- Keep it concise: **200–400 words**. -- Keep explanations short, direct, and specific to the repo. -- Prefer concrete examples (commands, directory paths, naming patterns). - -#### Recommended sections (adapt as needed) - -- Project Structure & Module Organization -- Build, Test, and Development Commands -- Coding Style & Naming Conventions -- Testing Guidelines -- Commit & Pull Request Guidelines -- Optional: Security & Configuration Tips, Architecture Overview, Agent-specific instructions - -### Content guidelines - -- 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. - ---- - -## Deep AGENTS.md — `setup-agents-md` - -Use this when you want a thorough, high-quality AGENTS.md that extracts 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. - ---- - -## Full Setup — `setup-openhands` - -Use this when you want to fully configure a repository for OpenHands, including -AGENTS.md, bootstrap scripts, and PR review workflow. - -### Step 1: Create AGENTS.md - -Run the deep `setup-agents-md` workflow above 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 below 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 - ---- - -## Set Up PR Review — `setup-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`. 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) - ---- - -## 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 `references/criteria.md` for the full list with descriptions and evidence. - -### How to run - -#### Step 1: Run the scanner scripts - -```bash -for s in 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 `references/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 -... -``` - ---- - -## 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 +- **Just need an AGENTS.md?** → `/init` (fast) or `setup-agents-md` (thorough). +- **Setting up a repo from scratch?** → `setup-openhands` does everything. +- **Want a score?** → `agent-readiness-report`, then `improve-agent-readiness`. +- **Only need PR review?** → `setup-pr-review`. ## References -- Agent readiness criteria (74 features): `references/criteria.md` +- Readiness criteria (74 features, 5 pillars): `references/criteria.md` +- Scanner scripts for automated signal gathering: `scripts/scan_*.sh` diff --git a/skills/init/commands/init.md b/skills/init/commands/init.md index 7fbae9113..45e43496f 100644 --- a/skills/init/commands/init.md +++ b/skills/init/commands/init.md @@ -1,6 +1,6 @@ --- # auto-generated by sync_extensions.py -description: Initialize and onboard a repository for AI-assisted development. Quick mode (/init): scaffold an AGENTS.md contributor guide. Full setup (setup-openhands): create AGENTS.md, bootstrap scripts, and PR review workflow. Also includes agent readiness assessment and improvement workflows. +description: Scaffold an AGENTS.md contributor guide or run a full repository onboarding for AI-assisted development. --- Read and follow the complete instructions in the SKILL.md file located in this skill's directory. diff --git a/skills/init/references/workflow-improve-readiness.md b/skills/init/references/workflow-improve-readiness.md new file mode 100644 index 000000000..a49ccb4da --- /dev/null +++ b/skills/init/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/init/references/workflow-init.md b/skills/init/references/workflow-init.md new file mode 100644 index 000000000..f02f191ed --- /dev/null +++ b/skills/init/references/workflow-init.md @@ -0,0 +1,47 @@ +# Quick Init — `/init` + +Scaffold a concise, repo-specific `AGENTS.md`. + +## Target path rules + +- `/init`: create `AGENTS.md` at the repository root. +- `/init `: create `AGENTS.md` scoped to ``. + - If `` is a directory, write `/AGENTS.md`. + - If `` ends with `.md`, treat it as the full output file path. + +Never overwrite an existing file silently. If the target file already exists, +ask the user whether to (a) keep it, (b) edit it, or (c) replace it. + +## Workflow + +1. **Inspect the repo to tailor the guide** + - Skim top-level structure (`ls`, `find -maxdepth 2`). + - Read the primary docs (`README*`, `CONTRIBUTING*`, `DEVELOPMENT*`, `Makefile`). + - Identify build tooling and common commands (`pyproject.toml`, `package.json`, CI configs). + - Locate tests and how they are run (`tests/`, workflow YAMLs, task runners). + +2. **Write a concise `AGENTS.md`** using the spec below. + +3. **Create the file** at the target location. + +## `AGENTS.md` spec + +- Title the document: `# Repository Guidelines`. +- Use Markdown headings (`##`) to organize sections. +- Keep it concise: **200–400 words**. +- Keep explanations short, direct, and specific to the repo. +- Prefer concrete examples (commands, directory paths, naming patterns). + +### Recommended sections (adapt as needed) + +- Project Structure & Module Organization +- Build, Test, and Development Commands +- Coding Style & Naming Conventions +- Testing Guidelines +- Commit & Pull Request Guidelines +- Optional: Security & Configuration Tips, Architecture Overview, Agent-specific instructions + +## Content guidelines + +- 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. diff --git a/skills/init/references/workflow-readiness-report.md b/skills/init/references/workflow-readiness-report.md new file mode 100644 index 000000000..d3cd0e7a7 --- /dev/null +++ b/skills/init/references/workflow-readiness-report.md @@ -0,0 +1,48 @@ +# 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 + +```bash +for s in 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/init/references/workflow-setup-agents-md.md b/skills/init/references/workflow-setup-agents-md.md new file mode 100644 index 000000000..8ddaa347e --- /dev/null +++ b/skills/init/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/init/references/workflow-setup-openhands.md b/skills/init/references/workflow-setup-openhands.md new file mode 100644 index 000000000..ee489ccda --- /dev/null +++ b/skills/init/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/init/references/workflow-setup-pr-review.md b/skills/init/references/workflow-setup-pr-review.md new file mode 100644 index 000000000..4fb5012fa --- /dev/null +++ b/skills/init/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) From 67dbec2f4ba6342e0e3314dcbd1b978dbf36920c Mon Sep 17 00:00:00 2001 From: openhands Date: Thu, 16 Apr 2026 20:53:21 +0000 Subject: [PATCH 3/7] fix: add deprecated onboarding alias, fix script paths, trim marketplace description Address second round of review feedback: - Add deprecated 'onboarding' marketplace entry pointing to init (migration path) - Fix scanner script paths with explicit skill-directory resolution - Make init marketplace description match concise SKILL.md frontmatter - Add path-resolution note in SKILL.md references section Co-authored-by: openhands --- README.md | 7 ++++--- marketplaces/openhands-extensions.json | 17 +++++++++++++++-- skills/init/SKILL.md | 2 ++ .../references/workflow-readiness-report.md | 6 +++++- 4 files changed, 26 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index df4a19279..b841aca24 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** (37 skills, 8 plugins). +This repository contains **2 marketplace(s)** with **46 extensions** (38 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** (35 skills, 6 plugins) +**42 extensions** (36 skills, 6 plugins) | Name | Type | Description | Commands | |------|------|-------------|----------| @@ -112,7 +112,7 @@ Official skills and plugins for OpenHands — the open-source AI software engine | github | skill | Interact with GitHub repositories, pull requests, issues, and workflows using the GITHUB_TOKEN environment variable a... | — | | github-pr-review | skill | Post structured PR reviews to GitHub with inline comments/suggestions in a single API call. | `/github-pr-review` | | gitlab | skill | Interact with GitLab repositories, merge requests, and APIs using the GITLAB_TOKEN environment variable. Use when wor... | — | -| init | skill | Initialize and onboard a repository for AI-assisted development. Quick AGENTS.md scaffold, full OpenHands setup with ... | `/init` | +| init | skill | Scaffold an AGENTS.md contributor guide or run a full repository onboarding for AI-assisted development. | `/init` | | jupyter | skill | Read, modify, execute, and convert Jupyter notebooks programmatically. Use when working with .ipynb files for data sc... | — | | kubernetes | skill | Set up and manage local Kubernetes clusters using KIND (Kubernetes IN Docker). Use when testing Kubernetes applicatio... | — | | learn-from-code-review | skill | Distill code review feedback from GitHub PRs into reusable skills and guidelines. Use when users ask to learn from co... | `/learn-from-reviews` | @@ -120,6 +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 | skill | DEPRECATED: Merged into the init skill. Use init instead for agent readiness assessment, AGENTS.md generation, and fu... | `/init` | | 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 b619158d9..8e1239cdc 100644 --- a/marketplaces/openhands-extensions.json +++ b/marketplaces/openhands-extensions.json @@ -248,7 +248,7 @@ { "name": "init", "source": "./skills/init", - "description": "Initialize and onboard a repository for AI-assisted development. Quick AGENTS.md scaffold, full OpenHands setup with bootstrap scripts and PR review, agent readiness assessment across 74 features, and improvement workflows.", + "description": "Scaffold an AGENTS.md contributor guide or run a full repository onboarding for AI-assisted development.", "category": "productivity", "keywords": [ "agents", @@ -346,7 +346,20 @@ "packages" ] }, - + { + "name": "onboarding", + "source": "./skills/init", + "description": "DEPRECATED: Merged into the init skill. Use init instead for agent readiness assessment, AGENTS.md generation, and full OpenHands setup.", + "category": "productivity", + "keywords": [ + "onboarding", + "readiness", + "agents-md", + "agent-readiness", + "assessment", + "deprecated" + ] + }, { "name": "openhands-api", "source": "./skills/openhands-api", diff --git a/skills/init/SKILL.md b/skills/init/SKILL.md index 33245bbf2..d65c59575 100644 --- a/skills/init/SKILL.md +++ b/skills/init/SKILL.md @@ -41,5 +41,7 @@ file; read only the one you need. ## References +All paths below are relative to this skill's directory (`skills/init/`): + - Readiness criteria (74 features, 5 pillars): `references/criteria.md` - Scanner scripts for automated signal gathering: `scripts/scan_*.sh` diff --git a/skills/init/references/workflow-readiness-report.md b/skills/init/references/workflow-readiness-report.md index d3cd0e7a7..557830e3f 100644 --- a/skills/init/references/workflow-readiness-report.md +++ b/skills/init/references/workflow-readiness-report.md @@ -19,8 +19,12 @@ See `criteria.md` in this directory for the full list with descriptions and evid ### 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/init` directory, then run: + ```bash -for s in scripts/scan_*.sh; do bash "$s" /path/to/repo; echo; done +SKILL_DIR="$(dirname "$(dirname "$(readlink -f "$0")")")" # or set manually +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 From 60e8cd89820c85cbaad1e0efdd0f35ddf29e747c Mon Sep 17 00:00:00 2001 From: openhands Date: Thu, 16 Apr 2026 20:59:50 +0000 Subject: [PATCH 4/7] fix: inline /init workflow, fix macOS readlink portability - Inline the /init quick scaffold directly in SKILL.md (no extra file hop) - Fix readlink -f to portable cd+pwd for macOS compatibility - Move attribution to top of SKILL.md for prominence - Keep deeper workflows as reference files (progressive disclosure) Co-authored-by: openhands --- skills/init/SKILL.md | 33 +++++++++++-------- .../references/workflow-readiness-report.md | 3 +- 2 files changed, 21 insertions(+), 15 deletions(-) diff --git a/skills/init/SKILL.md b/skills/init/SKILL.md index d65c59575..af48a9cda 100644 --- a/skills/init/SKILL.md +++ b/skills/init/SKILL.md @@ -14,34 +14,39 @@ triggers: # Repository Initialization & Onboarding -Get a repository ready for AI agents — from a quick AGENTS.md scaffold to a -full readiness assessment. Each workflow is documented in its own reference -file; read only the one you need. - > The deep AGENTS.md generation, readiness assessment, and full-setup workflows > originated from Calvin Smith's onboarding plugin. -## Workflows +## `/init` — Quick AGENTS.md Scaffold + +Use `/init` when you just need an `AGENTS.md` file fast. + +- `/init`: create at repo root. `/init `: create scoped to ``. +- Never overwrite silently — ask the user first. + +**Workflow:** + +1. Skim repo structure, README, CONTRIBUTING, build files, CI configs. +2. Write a 200–400 word `AGENTS.md` titled `# Repository Guidelines`. +3. Sections: Project Structure, Build/Test/Dev Commands, Coding Style, + Testing Guidelines, Commit & PR Guidelines. Adapt as needed. +4. Be specific to the repo. Prefer concrete commands and paths. + +## Other Workflows + +For deeper onboarding, read the linked reference file: | Trigger | What it does | Details | |---------|-------------|---------| -| `/init` | Quick AGENTS.md scaffold (200–400 words) | `references/workflow-init.md` | | `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` | -## How to choose - -- **Just need an AGENTS.md?** → `/init` (fast) or `setup-agents-md` (thorough). -- **Setting up a repo from scratch?** → `setup-openhands` does everything. -- **Want a score?** → `agent-readiness-report`, then `improve-agent-readiness`. -- **Only need PR review?** → `setup-pr-review`. - ## References -All paths below are relative to this skill's directory (`skills/init/`): +All paths are relative to this skill's directory (`skills/init/`): - Readiness criteria (74 features, 5 pillars): `references/criteria.md` - Scanner scripts for automated signal gathering: `scripts/scan_*.sh` diff --git a/skills/init/references/workflow-readiness-report.md b/skills/init/references/workflow-readiness-report.md index 557830e3f..cdb361b06 100644 --- a/skills/init/references/workflow-readiness-report.md +++ b/skills/init/references/workflow-readiness-report.md @@ -23,7 +23,8 @@ The scanner scripts live in this skill's `scripts/` directory. Set `SKILL_DIR` to the absolute path of the `skills/init` directory, then run: ```bash -SKILL_DIR="$(dirname "$(dirname "$(readlink -f "$0")")")" # or set manually +# 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 ``` From 7cd0928655dc091b92886a7f6fe2fbf4a30ded90 Mon Sep 17 00:00:00 2001 From: openhands Date: Sun, 19 Apr 2026 15:56:48 +0000 Subject: [PATCH 5/7] refactor: split into composable init + onboarding skills Address reviewer feedback about six-trigger mega-skill violating the 'minimal, composable skills' guideline: - init skill: single /init trigger for quick AGENTS.md scaffold - onboarding skill: 5 triggers for deep setup, readiness assessment, and automation workflows (based on Calvin Smith's onboarding plugin) Each skill is focused on one domain, follows progressive disclosure, and cross-references the other. The onboarding marketplace entry now points to a real skill instead of a deprecated redirect. All 150 tests pass, sync_extensions.py --check clean. Co-authored-by: openhands --- README.md | 4 +- marketplaces/openhands-extensions.json | 15 ++-- skills/init/README.md | 60 +++------------ skills/init/SKILL.md | 77 +++++++++++-------- skills/init/commands/init.md | 2 +- skills/init/references/workflow-init.md | 47 ----------- skills/onboarding/README.md | 31 ++++++++ skills/onboarding/SKILL.md | 38 +++++++++ .../references/criteria.md | 0 .../references/workflow-improve-readiness.md | 0 .../references/workflow-readiness-report.md | 2 +- .../references/workflow-setup-agents-md.md | 0 .../references/workflow-setup-openhands.md | 0 .../references/workflow-setup-pr-review.md | 0 .../scripts/scan_agent_instructions.sh | 0 .../scripts/scan_build_env.sh | 0 .../scripts/scan_feedback_loops.sh | 0 .../scripts/scan_policy.sh | 0 .../scripts/scan_workflows.sh | 0 19 files changed, 133 insertions(+), 143 deletions(-) delete mode 100644 skills/init/references/workflow-init.md create mode 100644 skills/onboarding/README.md create mode 100644 skills/onboarding/SKILL.md rename skills/{init => onboarding}/references/criteria.md (100%) rename skills/{init => onboarding}/references/workflow-improve-readiness.md (100%) rename skills/{init => onboarding}/references/workflow-readiness-report.md (95%) rename skills/{init => onboarding}/references/workflow-setup-agents-md.md (100%) rename skills/{init => onboarding}/references/workflow-setup-openhands.md (100%) rename skills/{init => onboarding}/references/workflow-setup-pr-review.md (100%) rename skills/{init => onboarding}/scripts/scan_agent_instructions.sh (100%) rename skills/{init => onboarding}/scripts/scan_build_env.sh (100%) rename skills/{init => onboarding}/scripts/scan_feedback_loops.sh (100%) rename skills/{init => onboarding}/scripts/scan_policy.sh (100%) rename skills/{init => onboarding}/scripts/scan_workflows.sh (100%) diff --git a/README.md b/README.md index ac93f7df5..e99332ff5 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,7 @@ Official skills and plugins for OpenHands — the open-source AI software engine | github | skill | Interact with GitHub repositories, pull requests, issues, and workflows using the GITHUB_TOKEN environment variable a... | — | | github-pr-review | skill | Post structured PR reviews to GitHub with inline comments/suggestions in a single API call. | `/github-pr-review` | | gitlab | skill | Interact with GitLab repositories, merge requests, and APIs using the GITLAB_TOKEN environment variable. Use when wor... | — | -| init | skill | Scaffold an AGENTS.md contributor guide or run a full repository onboarding for AI-assisted development. | `/init` | +| init | skill | Scaffold an AGENTS.md contributor guide for any repository. | `/init` | | iterate | skill | Iterate on a GitHub pull request — drive it through CI, code review, and QA until merge-ready. Monitors state, fixes ... | `/iterate`, `/verify`, `/babysit` | | jupyter | skill | Read, modify, execute, and convert Jupyter notebooks programmatically. Use when working with .ipynb files for data sc... | — | | kubernetes | skill | Set up and manage local Kubernetes clusters using KIND (Kubernetes IN Docker). Use when testing Kubernetes applicatio... | — | @@ -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 | skill | DEPRECATED: Merged into the init skill. Use init instead for agent readiness assessment, AGENTS.md generation, and fu... | `/init` | +| 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 b4cf03441..497d5c59f 100644 --- a/marketplaces/openhands-extensions.json +++ b/marketplaces/openhands-extensions.json @@ -235,17 +235,12 @@ { "name": "init", "source": "./skills/init", - "description": "Scaffold an AGENTS.md contributor guide or run a full repository onboarding for AI-assisted development.", + "description": "Scaffold an AGENTS.md contributor guide for any repository.", "category": "productivity", "keywords": [ "agents", "agents-md", - "init", - "onboarding", - "readiness", - "setup", - "agent-readiness", - "assessment" + "init" ] }, { @@ -335,8 +330,8 @@ }, { "name": "onboarding", - "source": "./skills/init", - "description": "DEPRECATED: Merged into the init skill. Use init instead for agent readiness assessment, AGENTS.md generation, and full OpenHands setup.", + "source": "./skills/onboarding", + "description": "Full repository onboarding for AI agents — deep AGENTS.md generation, readiness assessment, and automated setup workflows.", "category": "productivity", "keywords": [ "onboarding", @@ -344,7 +339,7 @@ "agents-md", "agent-readiness", "assessment", - "deprecated" + "setup" ] }, { diff --git a/skills/init/README.md b/skills/init/README.md index d3b17ef4c..2c0d81f8d 100644 --- a/skills/init/README.md +++ b/skills/init/README.md @@ -1,56 +1,20 @@ # init -Initialize and onboard a repository for AI-assisted development — from a quick -AGENTS.md scaffold to a full OpenHands setup with readiness assessment. +Scaffold a concise, repo-specific `AGENTS.md` contributor guide for any +repository. -## Triggers +## Trigger -This skill is activated by: +- `/init` — create `AGENTS.md` at the repository root +- `/init ` — create `AGENTS.md` scoped to a subdirectory -- `/init` — quick AGENTS.md scaffold -- `setup-openhands` — full repository setup (AGENTS.md + scripts + PR review) -- `setup-agents-md` — deep, thorough AGENTS.md generation -- `agent-readiness-report` — evaluate agent readiness across 74 features -- `improve-agent-readiness` — propose and implement readiness improvements -- `setup-pr-review` — add automated PR review workflow +## What it does -## What's Included +1. Inspects the repo (structure, README, build files, CI configs) +2. Writes a 200–400 word `AGENTS.md` titled "Repository Guidelines" +3. Creates the file, asking before overwriting -### Quick Start (`/init`) +## See also -Scaffold a concise, repo-specific `AGENTS.md` at the root or a subdirectory. - -### Deep AGENTS.md (`setup-agents-md`) - -Generate a thorough AGENTS.md that extracts real commands, structure, -conventions, and guardrails from the repository. The single highest-impact -addition for agent readiness. - -### Full Setup (`setup-openhands`) - -Complete repository configuration for OpenHands: -1. Create `AGENTS.md` (via `setup-agents-md`) -2. Create `.openhands/setup.sh` bootstrap script -3. Create `.openhands/pre-commit.sh` pre-commit script -4. Set up automated PR review workflow - -### Agent Readiness Report (`agent-readiness-report`) - -Evaluate a repository across five pillars (Agent Instructions, Feedback Loops, -Workflows & Automation, Policy & Governance, Build & Dev Environment) covering -74 features. Includes scanner scripts for automated signal gathering. - -### Improve Agent Readiness (`improve-agent-readiness`) - -Take a readiness report and propose the 5–10 highest-impact fixes, ranked by -how directly they help agents complete coding tasks. Implements approved fixes. - -### Set Up PR Review (`setup-pr-review`) - -Add the OpenHands automated PR review workflow to a GitHub repository. - -## Origins - -This skill incorporates the former `onboarding` plugin (by Calvin Smith), -combining its agent readiness assessment, AGENTS.md generation, and OpenHands -setup workflows with the original `/init` quick scaffold. +For deeper onboarding workflows (readiness assessment, full OpenHands setup, +PR review automation), see the **onboarding** skill. diff --git a/skills/init/SKILL.md b/skills/init/SKILL.md index af48a9cda..4b7c46290 100644 --- a/skills/init/SKILL.md +++ b/skills/init/SKILL.md @@ -1,52 +1,61 @@ --- name: init -description: >- - Scaffold an AGENTS.md contributor guide or run a full repository onboarding - for AI-assisted development. +description: Scaffold an AGENTS.md contributor guide for any repository. triggers: - /init -- setup-openhands -- setup-agents-md -- agent-readiness-report -- improve-agent-readiness -- setup-pr-review --- -# Repository Initialization & Onboarding +# Initialize `AGENTS.md` -> The deep AGENTS.md generation, readiness assessment, and full-setup workflows -> originated from Calvin Smith's onboarding plugin. +Use `/init` to quickly scaffold an `AGENTS.md` file (project guidelines for +AI agents) for the current repository. -## `/init` — Quick AGENTS.md Scaffold +## Target path rules -Use `/init` when you just need an `AGENTS.md` file fast. +- `/init`: create `AGENTS.md` at the repository root. +- `/init `: create `AGENTS.md` scoped to ``. + - If `` is a directory, write `/AGENTS.md`. + - If `` ends with `.md`, treat it as the full output file path. -- `/init`: create at repo root. `/init `: create scoped to ``. -- Never overwrite silently — ask the user first. +Never overwrite an existing file silently. If the target file already exists, +ask the user whether to (a) keep it, (b) edit it, or (c) replace it. -**Workflow:** +## Workflow -1. Skim repo structure, README, CONTRIBUTING, build files, CI configs. -2. Write a 200–400 word `AGENTS.md` titled `# Repository Guidelines`. -3. Sections: Project Structure, Build/Test/Dev Commands, Coding Style, - Testing Guidelines, Commit & PR Guidelines. Adapt as needed. -4. Be specific to the repo. Prefer concrete commands and paths. +1. **Inspect the repo to tailor the guide** + - Skim top-level structure (`ls`, `find -maxdepth 2`). + - Read the primary docs (`README*`, `CONTRIBUTING*`, `DEVELOPMENT*`, `Makefile`). + - Identify build tooling and common commands (`pyproject.toml`, `package.json`, CI configs). + - Locate tests and how they are run (`tests/`, workflow YAMLs, task runners). -## Other Workflows +2. **Write a concise `AGENTS.md`** using the spec below. -For deeper onboarding, read the linked reference file: +3. **Create the file** at the target location. -| 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` | +## `AGENTS.md` spec -## References +- Title the document: `# Repository Guidelines`. +- Use Markdown headings (`##`) to organize sections. +- Keep it concise: **200–400 words**. +- Keep explanations short, direct, and specific to the repo. +- Prefer concrete examples (commands, directory paths, naming patterns). -All paths are relative to this skill's directory (`skills/init/`): +### Recommended sections (adapt as needed) -- Readiness criteria (74 features, 5 pillars): `references/criteria.md` -- Scanner scripts for automated signal gathering: `scripts/scan_*.sh` +- Project Structure & Module Organization +- Build, Test, and Development Commands +- Coding Style & Naming Conventions +- Testing Guidelines +- Commit & Pull Request Guidelines +- Optional: Security & Configuration Tips, Architecture Overview, Agent-specific instructions + +## Content guidelines + +- Only include information that's broadly useful for future tasks. +- 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/init/commands/init.md b/skills/init/commands/init.md index 45e43496f..a415b7d5c 100644 --- a/skills/init/commands/init.md +++ b/skills/init/commands/init.md @@ -1,6 +1,6 @@ --- # auto-generated by sync_extensions.py -description: Scaffold an AGENTS.md contributor guide or run a full repository onboarding for AI-assisted development. +description: Scaffold an AGENTS.md contributor guide for any repository. --- Read and follow the complete instructions in the SKILL.md file located in this skill's directory. diff --git a/skills/init/references/workflow-init.md b/skills/init/references/workflow-init.md deleted file mode 100644 index f02f191ed..000000000 --- a/skills/init/references/workflow-init.md +++ /dev/null @@ -1,47 +0,0 @@ -# Quick Init — `/init` - -Scaffold a concise, repo-specific `AGENTS.md`. - -## Target path rules - -- `/init`: create `AGENTS.md` at the repository root. -- `/init `: create `AGENTS.md` scoped to ``. - - If `` is a directory, write `/AGENTS.md`. - - If `` ends with `.md`, treat it as the full output file path. - -Never overwrite an existing file silently. If the target file already exists, -ask the user whether to (a) keep it, (b) edit it, or (c) replace it. - -## Workflow - -1. **Inspect the repo to tailor the guide** - - Skim top-level structure (`ls`, `find -maxdepth 2`). - - Read the primary docs (`README*`, `CONTRIBUTING*`, `DEVELOPMENT*`, `Makefile`). - - Identify build tooling and common commands (`pyproject.toml`, `package.json`, CI configs). - - Locate tests and how they are run (`tests/`, workflow YAMLs, task runners). - -2. **Write a concise `AGENTS.md`** using the spec below. - -3. **Create the file** at the target location. - -## `AGENTS.md` spec - -- Title the document: `# Repository Guidelines`. -- Use Markdown headings (`##`) to organize sections. -- Keep it concise: **200–400 words**. -- Keep explanations short, direct, and specific to the repo. -- Prefer concrete examples (commands, directory paths, naming patterns). - -### Recommended sections (adapt as needed) - -- Project Structure & Module Organization -- Build, Test, and Development Commands -- Coding Style & Naming Conventions -- Testing Guidelines -- Commit & Pull Request Guidelines -- Optional: Security & Configuration Tips, Architecture Overview, Agent-specific instructions - -## Content guidelines - -- 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. 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/skills/init/references/criteria.md b/skills/onboarding/references/criteria.md similarity index 100% rename from skills/init/references/criteria.md rename to skills/onboarding/references/criteria.md diff --git a/skills/init/references/workflow-improve-readiness.md b/skills/onboarding/references/workflow-improve-readiness.md similarity index 100% rename from skills/init/references/workflow-improve-readiness.md rename to skills/onboarding/references/workflow-improve-readiness.md diff --git a/skills/init/references/workflow-readiness-report.md b/skills/onboarding/references/workflow-readiness-report.md similarity index 95% rename from skills/init/references/workflow-readiness-report.md rename to skills/onboarding/references/workflow-readiness-report.md index cdb361b06..97fd6ca7f 100644 --- a/skills/init/references/workflow-readiness-report.md +++ b/skills/onboarding/references/workflow-readiness-report.md @@ -20,7 +20,7 @@ See `criteria.md` in this directory for the full list with descriptions and evid ### 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/init` directory, then run: +to the absolute path of the `skills/onboarding` directory, then run: ```bash # Portable (works on macOS and Linux): diff --git a/skills/init/references/workflow-setup-agents-md.md b/skills/onboarding/references/workflow-setup-agents-md.md similarity index 100% rename from skills/init/references/workflow-setup-agents-md.md rename to skills/onboarding/references/workflow-setup-agents-md.md diff --git a/skills/init/references/workflow-setup-openhands.md b/skills/onboarding/references/workflow-setup-openhands.md similarity index 100% rename from skills/init/references/workflow-setup-openhands.md rename to skills/onboarding/references/workflow-setup-openhands.md diff --git a/skills/init/references/workflow-setup-pr-review.md b/skills/onboarding/references/workflow-setup-pr-review.md similarity index 100% rename from skills/init/references/workflow-setup-pr-review.md rename to skills/onboarding/references/workflow-setup-pr-review.md diff --git a/skills/init/scripts/scan_agent_instructions.sh b/skills/onboarding/scripts/scan_agent_instructions.sh similarity index 100% rename from skills/init/scripts/scan_agent_instructions.sh rename to skills/onboarding/scripts/scan_agent_instructions.sh diff --git a/skills/init/scripts/scan_build_env.sh b/skills/onboarding/scripts/scan_build_env.sh similarity index 100% rename from skills/init/scripts/scan_build_env.sh rename to skills/onboarding/scripts/scan_build_env.sh diff --git a/skills/init/scripts/scan_feedback_loops.sh b/skills/onboarding/scripts/scan_feedback_loops.sh similarity index 100% rename from skills/init/scripts/scan_feedback_loops.sh rename to skills/onboarding/scripts/scan_feedback_loops.sh diff --git a/skills/init/scripts/scan_policy.sh b/skills/onboarding/scripts/scan_policy.sh similarity index 100% rename from skills/init/scripts/scan_policy.sh rename to skills/onboarding/scripts/scan_policy.sh diff --git a/skills/init/scripts/scan_workflows.sh b/skills/onboarding/scripts/scan_workflows.sh similarity index 100% rename from skills/init/scripts/scan_workflows.sh rename to skills/onboarding/scripts/scan_workflows.sh From abd5ce2838ef57411e30cf7a8170fd89e16c11e4 Mon Sep 17 00:00:00 2001 From: openhands Date: Sun, 19 Apr 2026 16:03:46 +0000 Subject: [PATCH 6/7] fix: teach github-pr-review skill to use APPROVE event for clean reviews MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The review bot always submitted COMMENTED even for 🟢 Good taste ratings because the skill template defaulted to event: COMMENT. Add guidance on when to use APPROVE vs REQUEST_CHANGES vs COMMENT so the bot submits the correct GitHub review state. Co-authored-by: openhands --- skills/github-pr-review/SKILL.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/skills/github-pr-review/SKILL.md b/skills/github-pr-review/SKILL.md index 349665c1a..213692149 100644 --- a/skills/github-pr-review/SKILL.md +++ b/skills/github-pr-review/SKILL.md @@ -62,6 +62,12 @@ gh api -X POST repos/{owner}/{repo}/pulls/{pr_number}/reviews --input /tmp/revie | `side` | `RIGHT` for new/added lines, `LEFT` for deleted lines | | `body` | Comment text with priority label | +### Choosing the `event` value + +- **`APPROVE`** — Use when the code is good and has no blocking issues (e.g., taste rating is 🟢 Good taste). You can still include non-blocking inline comments with an APPROVE event. +- **`REQUEST_CHANGES`** — Use when there are critical or important issues that must be fixed before merging (🔴 Critical or 🟠 Important issues present). +- **`COMMENT`** — Use when you have feedback but are not explicitly approving or requesting changes (e.g., taste rating is 🟡 Acceptable with non-blocking suggestions). + ### Multi-Line Comments For comments spanning multiple lines, add `start_line` to specify the range: @@ -146,4 +152,5 @@ curl -X POST \ 5. Mark pragmatic trade-offs as 🟢 **Acceptable** - don't block PRs for out-of-scope improvements 6. Use suggestion syntax for concrete code changes 7. Keep the review body brief (details go in inline comments) -8. If no issues: post a short message +8. If no issues: use `"event": "APPROVE"` and post a short message +9. Match the `event` to the severity of findings (see "Choosing the `event` value") From 651be081838b6dfed9d578bdf3a2d49239fb4d4d Mon Sep 17 00:00:00 2001 From: openhands Date: Mon, 20 Apr 2026 17:37:50 +0000 Subject: [PATCH 7/7] fix: revert unrelated changes to github-pr-review and cosmetic init edits - Revert skills/github-pr-review/SKILL.md to main (APPROVE event guidance was unrelated) - Revert cosmetic rewording of skills/init/ description, README, and commands - Revert unnecessary init marketplace entry changes (category, keywords, description) - Keep only the 'See also' cross-reference addition in skills/init/SKILL.md - Regenerate README catalog via sync_extensions.py Co-authored-by: openhands --- README.md | 2 +- marketplaces/openhands-extensions.json | 6 ++++-- skills/github-pr-review/SKILL.md | 9 +-------- skills/init/README.md | 24 ++++++++---------------- skills/init/SKILL.md | 15 ++++++--------- skills/init/commands/init.md | 2 +- 6 files changed, 21 insertions(+), 37 deletions(-) diff --git a/README.md b/README.md index e99332ff5..7a499ef88 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,7 @@ Official skills and plugins for OpenHands — the open-source AI software engine | github | skill | Interact with GitHub repositories, pull requests, issues, and workflows using the GITHUB_TOKEN environment variable a... | — | | github-pr-review | skill | Post structured PR reviews to GitHub with inline comments/suggestions in a single API call. | `/github-pr-review` | | gitlab | skill | Interact with GitLab repositories, merge requests, and APIs using the GITLAB_TOKEN environment variable. Use when wor... | — | -| init | skill | Scaffold an AGENTS.md contributor guide for any repository. | `/init` | +| init | skill | Scaffold an AGENTS.md contributor guide for a repository or subdirectory. | `/init` | | iterate | skill | Iterate on a GitHub pull request — drive it through CI, code review, and QA until merge-ready. Monitors state, fixes ... | `/iterate`, `/verify`, `/babysit` | | jupyter | skill | Read, modify, execute, and convert Jupyter notebooks programmatically. Use when working with .ipynb files for data sc... | — | | kubernetes | skill | Set up and manage local Kubernetes clusters using KIND (Kubernetes IN Docker). Use when testing Kubernetes applicatio... | — | diff --git a/marketplaces/openhands-extensions.json b/marketplaces/openhands-extensions.json index 497d5c59f..72e3915e9 100644 --- a/marketplaces/openhands-extensions.json +++ b/marketplaces/openhands-extensions.json @@ -235,11 +235,13 @@ { "name": "init", "source": "./skills/init", - "description": "Scaffold an AGENTS.md contributor guide for any repository.", - "category": "productivity", + "description": "Scaffold an AGENTS.md contributor guide for a repository or subdirectory.", + "category": "documentation", "keywords": [ "agents", "agents-md", + "documentation", + "guidelines", "init" ] }, diff --git a/skills/github-pr-review/SKILL.md b/skills/github-pr-review/SKILL.md index 213692149..349665c1a 100644 --- a/skills/github-pr-review/SKILL.md +++ b/skills/github-pr-review/SKILL.md @@ -62,12 +62,6 @@ gh api -X POST repos/{owner}/{repo}/pulls/{pr_number}/reviews --input /tmp/revie | `side` | `RIGHT` for new/added lines, `LEFT` for deleted lines | | `body` | Comment text with priority label | -### Choosing the `event` value - -- **`APPROVE`** — Use when the code is good and has no blocking issues (e.g., taste rating is 🟢 Good taste). You can still include non-blocking inline comments with an APPROVE event. -- **`REQUEST_CHANGES`** — Use when there are critical or important issues that must be fixed before merging (🔴 Critical or 🟠 Important issues present). -- **`COMMENT`** — Use when you have feedback but are not explicitly approving or requesting changes (e.g., taste rating is 🟡 Acceptable with non-blocking suggestions). - ### Multi-Line Comments For comments spanning multiple lines, add `start_line` to specify the range: @@ -152,5 +146,4 @@ curl -X POST \ 5. Mark pragmatic trade-offs as 🟢 **Acceptable** - don't block PRs for out-of-scope improvements 6. Use suggestion syntax for concrete code changes 7. Keep the review body brief (details go in inline comments) -8. If no issues: use `"event": "APPROVE"` and post a short message -9. Match the `event` to the severity of findings (see "Choosing the `event` value") +8. If no issues: post a short message diff --git a/skills/init/README.md b/skills/init/README.md index 2c0d81f8d..4be65d10f 100644 --- a/skills/init/README.md +++ b/skills/init/README.md @@ -1,20 +1,12 @@ -# init +# `/init` skill -Scaffold a concise, repo-specific `AGENTS.md` contributor guide for any -repository. +This skill helps an agent generate an `AGENTS.md` file (a concise contributor/repo-guidelines doc for AI-assisted development). -## Trigger +## Usage -- `/init` — create `AGENTS.md` at the repository root -- `/init ` — create `AGENTS.md` scoped to a subdirectory +- `/init` → create `AGENTS.md` at the repository root. +- `/init ` → create `AGENTS.md` scoped to the given path: + - If `` is a directory, the file is written to `/AGENTS.md`. + - If `` ends with `.md`, it is treated as the output file path. -## What it does - -1. Inspects the repo (structure, README, build files, CI configs) -2. Writes a 200–400 word `AGENTS.md` titled "Repository Guidelines" -3. Creates the file, asking before overwriting - -## See also - -For deeper onboarding workflows (readiness assessment, full OpenHands setup, -PR review automation), see the **onboarding** skill. +The generated document follows a short, repo-specific template (structure, commands, style, testing, PR conventions) and avoids overwriting any existing `AGENTS.md` without confirmation. diff --git a/skills/init/SKILL.md b/skills/init/SKILL.md index 4b7c46290..3a0f6a39d 100644 --- a/skills/init/SKILL.md +++ b/skills/init/SKILL.md @@ -1,14 +1,13 @@ --- name: init -description: Scaffold an AGENTS.md contributor guide for any repository. +description: Create an AGENTS.md contributor guide for a repository (or a subdirectory) following a concise, repo-specific template. Use when the user runs /init. triggers: - /init --- # Initialize `AGENTS.md` -Use `/init` to quickly scaffold an `AGENTS.md` file (project guidelines for -AI agents) for the current repository. +Use this skill when the user asks to scaffold an `AGENTS.md` file (project guidelines for AI agents) for the current repository. ## Target path rules @@ -17,8 +16,7 @@ AI agents) for the current repository. - If `` is a directory, write `/AGENTS.md`. - If `` ends with `.md`, treat it as the full output file path. -Never overwrite an existing file silently. If the target file already exists, -ask the user whether to (a) keep it, (b) edit it, or (c) replace it. +Never overwrite an existing file silently. If the target file already exists, ask the user whether to (a) keep it, (b) edit it, or (c) replace it. ## Workflow @@ -32,7 +30,7 @@ ask the user whether to (a) keep it, (b) edit it, or (c) replace it. 3. **Create the file** at the target location. -## `AGENTS.md` spec +## `AGENTS.md` spec (inspired by Codex `/init`) - Title the document: `# Repository Guidelines`. - Use Markdown headings (`##`) to organize sections. @@ -51,9 +49,8 @@ ask the user whether to (a) keep it, (b) edit it, or (c) replace it. ## Content guidelines -- Only include information that's broadly useful for future tasks. -- If the repo already contains nested `AGENTS.md` files, briefly mention that - more deeply nested files override broader ones within their directory tree. +- 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 diff --git a/skills/init/commands/init.md b/skills/init/commands/init.md index a415b7d5c..06ec9b1e8 100644 --- a/skills/init/commands/init.md +++ b/skills/init/commands/init.md @@ -1,6 +1,6 @@ --- # auto-generated by sync_extensions.py -description: Scaffold an AGENTS.md contributor guide for any repository. +description: Create an AGENTS.md contributor guide for a repository (or a subdirectory) following a concise, repo-specific template. Use when the user runs /init. --- Read and follow the complete instructions in the SKILL.md file located in this skill's directory.