bat-adhoc
Run bot acceptance tests to validate MCP tools work correctly from a real AI agent's perspective. Use when testing PRs, detecting…
Implement a GitHub issue end-to-end — create a worktree branch, implement the feature with tests, create a draft PR, then iteratively resolve all CI failures and review comments until the PR is clean. Use when you need to fully implement a GitHub issue from start to merge-ready.
Claude Code
$ npx -y skills add homeassistant-ai/ha-mcp --skill issue-to-pr-resolver --agent claude-code
Codex
$ npx skills add homeassistant-ai/ha-mcp --skill issue-to-pr-resolver -a codex -y
Cursor
$ npx skills add homeassistant-ai/ha-mcp --skill issue-to-pr-resolver -a cursor -y
Gemini CLI
$ npx skills add homeassistant-ai/ha-mcp --skill issue-to-pr-resolver -a gemini-cli -y
GitHub Copilot
$ npx skills add homeassistant-ai/ha-mcp --skill issue-to-pr-resolver -a github-copilot -y
OpenCode
$ npx skills add homeassistant-ai/ha-mcp --skill issue-to-pr-resolver -a opencode -y
Windsurf
$ npx skills add homeassistant-ai/ha-mcp --skill issue-to-pr-resolver -a windsurf -y
name: issue-to-pr-resolver description: Implement a GitHub issue end-to-end — create a worktree branch, implement the feature with tests, create a draft PR, then iteratively resolve all CI failures and review comments until the PR is clean. Use when you need to fully implement a GitHub issue from start to merge-ready. Triggers on "implement issue", "resolve issue", "/issue-to-pr-resolver <number>". argument-hint: "<issue-number>" allowed-tools: Bash, Read, Edit, Write, Glob, Grep, WebFetch, WebSearch
Implement GitHub issue #$ARGUMENTS in `homeassistant-ai/ha-mcp` end-to-end.
**Read the issue:**
gh issue view "$ARGUMENTS" --repo homeassistant-ai/ha-mcp --json title,body,labels,comments,author
**Create a worktree from repo root:**
cd "$(git rev-parse --show-toplevel)" git checkout master && git pull origin master git worktree add "worktree/issue-$ARGUMENTS" -b "feature/issue-$ARGUMENTS" git -C "worktree/issue-$ARGUMENTS" submodule update --init --recursive cd "worktree/issue-$ARGUMENTS"
**Philosophy:** Work autonomously. Don't ask about every small decision. Fix unrelated test failures encountered. Document all choices for the final summary.
If a non-obvious choice has significant consequences, present the available options to the user and let them choose.
Write the PR body to `local/pr-body-$ARGUMENTS.md` first. `local/` is git-ignored, so a new worktree does not have it; create it with `mkdir -p local` if it does not exist. Build the body from `.github/pull_request_template.md`: keep its headings, put `Closes #$ARGUMENTS` and the description under `## What does this PR do?`, and delete `## Future improvements` unless the user has confirmed work to defer. Then push and create the PR:
git push -u origin "feature/issue-$ARGUMENTS" PR_NUMBER=$(gh pr create --draft \ --repo homeassistant-ai/ha-mcp \ --title "<descriptive title>" \ --body-file "local/pr-body-$ARGUMENTS.md" | grep -oE '[0-9]+$')
Wait for CI:
gh pr checks "$PR_NUMBER" --repo homeassistant-ai/ha-mcp --watch
Before marking ready (`gh pr ready`), update the PR description to reflect all changes made.
Repeat until all checks green and no unresolved threads:
**Check for issues:**
gh pr checks "$PR_NUMBER" --repo homeassistant-ai/ha-mcp
gh api repos/homeassistant-ai/ha-mcp/pulls/"$PR_NUMBER"/comments \
--jq '.[] | {id, path, line, author: .user.login, body}'
gh api graphql -F pr="$PR_NUMBER" -f query='query($pr: Int!) { repository(owner:"homeassistant-ai", name:"ha-mcp") { pullRequest(number:$pr) { reviewThreads(first:100) { nodes { id isResolved comments(first:1) { nodes { databaseId body } } } } } } }'**Resolve each comment (both steps required):**
# 1. Reply on the inline thread
gh api repos/homeassistant-ai/ha-mcp/pulls/"$PR_NUMBER"/comments/<COMMENT_ID>/replies \
-f body="✅ Fixed in [commit]. [explanation]"
# or: -f body="📝 Not addressing because [reason]."
# 2. Resolve the thread via GraphQL
gh api graphql -f query='mutation($threadId: ID!) { resolveReviewThread(input: {threadId: $threadId}) { thread { id isResolved } } }' \
-f threadId="<PRRT_...>"**After pushing fixes**, wait and re-check:
gh pr checks "$PR_NUMBER" --repo homeassistant-ai/ha-mcp --watch
Once all checks pass and all threads resolved:
gh pr comment "$PR_NUMBER" --repo homeassistant-ai/ha-mcp --body "## Implementation Summary **Choices Made:** - [key technical decisions with rationale] **Problems Encountered:** - [issues faced and how resolved] - [unrelated test failures fixed, if any] "
Report to user: PR number, status, key choices.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with Home Assistant. Using natural language, control smart home devices, query states, execute services and manage your automations.
Run bot acceptance tests to validate MCP tools work correctly from a real AI agent's perspective. Use when testing PRs, detecting…
Compare MCP tool behavior between target and baseline versions using pre-built and custom stories with diff-based triage.
Review a contribution PR for safety, quality, and readiness. Checks for security concerns, test coverage, size appropriateness,…
Find merged PR authors missing from README and update the contributors list after approval
Deep analysis of a single GitHub issue with codebase exploration, implementation planning, and architectural assessment. Use when…
Manage your own GitHub pull requests — check CI status, inline review comments, PR-level comments, resolve review threads, fix…
Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work. Also covers…
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling…