plugins/onboarding/skills/setup-agents-md/SKILL.md
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.
npx skillsauth add openhands/extensions setup-agents-mdInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
An AGENTS.md is the single highest-impact addition for agent readiness. It directly addresses features across multiple pillars:
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.
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.
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 targetspackage.json scripts — npm/yarn/pnpm run targetspyproject.toml [tool.prek] / [tool.pytest] — Python tooling config.github/workflows/*.yml — CI steps reveal the real commandsCargo.toml — Rust build/test commandsbuild.gradle / pom.xml — Java/Kotlin build commandsRakefile — Ruby task definitionsdocker-compose.yml — service orchestration commandsProject structure:
Conventions:
.editorconfig — indentation/style basicsGuardrails:
.env.example, vault configsUse 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.
# 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.
Be specific, not generic. Don't write "run the linter before committing" —
write uv run ruff check --fix <file>. 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.
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.
tools
Create an automation that reviews GitHub pull requests when a configurable trigger label is applied. Polls GitHub deterministically, starts one OpenHands review conversation per label event, inspects full repository and PR context, and posts the final review comment back to GitHub.
tools
This skill should be used when the user asks to "monitor a Slack channel", "watch Slack for messages", "create a Slack bot that responds to mentions", "set up an OpenHands Slack integration", "trigger OpenHands from Slack", "respond to @openhands in Slack", or "poll Slack channels for a trigger phrase". Guides the user through creating a cron automation that watches up to 10 Slack channels and starts an OpenHands conversation whenever a configurable trigger phrase is detected.
tools
Reference skill for the OpenHands Software Agent SDK - the Python framework for building AI agents that write software. Use when you need to build agents with the SDK, create custom tools, configure LLMs, manage conversations, delegate to sub-agents, or deploy agents locally or remotely.
tools
This skill should be used when the user asks to "monitor a GitHub repository", "watch GitHub for issues or PRs", "respond to @OpenHands mentions on GitHub", "set up an OpenHands GitHub integration", "trigger OpenHands from a GitHub comment", or "poll a GitHub repo for a trigger phrase". Guides the user through creating a cron automation that polls a single repository and starts an OpenHands conversation whenever a configurable trigger phrase is detected in an issue or PR comment.