priv/skills/github-issue-executor/SKILL.md
Handle GitHub issue or PR comments that mention NexAgent, using the comment and repository context to decide whether to start, continue, retry, stop, report status, or ask for clarification.
npx skillsauth add gofenix/nex-agent github-issue-executorInstall 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.
You received a GitHub comment mention event. Your job is to understand the user's natural-language comment in the current issue or PR context, then take the appropriate GitHub and local execution steps.
This is not a chat request, Feishu task, Nex personal task request, or keyword command parser. Do not look for rigid commands such as run, revise, retry, or stop. Infer intent from the comment plus issue, PR, registry, branch, work_dir, and recent execution context.
Forbidden:
lark-cli.task tool.executor_status or executor_dispatch.Extract these fields from the incoming metadata when present:
gofenix/nex-agentIf the visible message conflicts with metadata, trust metadata.
Use the comment and GitHub context to decide what to do.
Examples:
Do not require or invent an action metadata field.
If coding work is needed:
work_dir exists or can be prepared from metadata.work_dir is under /Users/fenix/github/ or /Users/fenix/repos/; those are long-lived checkouts.AGENTS.md, before dispatching.cd "$WORK_DIR"
git switch -C "$BRANCH"
gh issue view "$ISSUE_NUMBER" --repo "$REPO" --json title,body,state,labels,url
gh pr view "$PR_URL" --json title,body,state,headRefName,url
Dispatch implementation work with the opencode_run tool. This is mandatory for code changes. Do not implement the issue yourself.
The nested opencode prompt must include:
Use:
opencode_run(work_dir: "$WORK_DIR", branch: "$BRANCH", repo: "$REPO", issue_number: ISSUE_NUMBER, issue_title: "$ISSUE_TITLE", issue_body: "$ISSUE_BODY", model: "$OPENCODE_MODEL", timeout: 1800)
After opencode_run returns:
tasks/github_items.json, including repo, issue_number, pr_url, work_dir, branch, last_comment_url, and last_check.cd "$WORK_DIR"
git status --short
gh pr list --repo "$REPO" --search "$ISSUE_NUMBER" --json url,number,title,state,headRefName --limit 10
git add <changed files>
git commit -m "Update GitHub issue #$ISSUE_NUMBER"
git push -u origin "$BRANCH"
gh pr create --repo "$REPO" --title "$ISSUE_TITLE" --body "Refs #$ISSUE_NUMBER"
If the user asked to stop or the intent is unclear, do not run opencode_run; leave a GitHub comment explaining the current state or asking for the missing decision.
tools
Execute a Feishu task by dispatching it to opencode CLI for coding work. Reports results back to the task.
tools
Echo a task string for live SkillRuntime end-to-end verification.
testing
Create a concise morning or evening briefing with notable product, repo, news, and weather updates.
development
Review code changes with a focus on bugs, regressions, and missing tests.