Agent skill
github-workflow
Install and operate a full GitHub issue-to-merge workflow for any repository using event-driven and cron missions. Handles issue planning, PR monitoring, CI fixing, staging review, and post-merge learning.
Install this agent skill to your Project
npx add-skill https://github.com/nearai/ironclaw/tree/staging/skills/github-workflow
SKILL.md
GitHub Workflow Automation
Install and maintain a complete issue-to-merge workflow for any GitHub repository. Maps GitHub webhook events and cron schedules into automated missions for planning, implementation, review, CI fixing, staging validation, and post-merge learning.
Workflow
- Gather project parameters from
projects/<owner>-<repo>/project.mdor ask the user. - Verify runtime prerequisites.
- Install or update mission set from templates.
- Run a dry test with
event_emit. - Monitor outcomes and tune prompts/filters.
Parameters
Read these from the project file in workspace, or collect from the user:
repository:owner/repo(required)maintainers: GitHub handles allowed to trigger implement/replan actionsstaging_branch: defaultstaging(or null if no staging workflow)main_branch: defaultmainbatch_interval_hours: default8
Prerequisites
Before installing missions, verify:
- GitHub skill authenticated (for issue/PR/comment/status operations).
- GitHub webhook delivery configured to
POST /webhook/tools/github. - Webhook HMAC secret configured in the secrets store as
github_webhook_secret. - Events can also be emitted via
event_emittool for testing.
Install Procedure
- Open
workflow-routines.md. - For each template block:
- Replace placeholders (
{{repository}},{{maintainers}}, branch names) - Namespace mission names with the repo slug (e.g.
wf-issue-plan-nearai-ironclaw) - Call
mission_createwithname,goal(the prompt), andcadence(cron expression orevent:<pattern>)
- Replace placeholders (
- If a mission already exists (check
mission_list), update rather than duplicate. - If
staging_branchis null, skipwf-staging-batch-review. - Write installation status to
projects/<owner>-<repo>/project.md. - Confirm install with
mission_list.
Mission Set
Install these missions per repository:
wf-issue-plan-<slug>: onissue.openedorissue.reopened, generate implementation plan comment.wf-maintainer-gate-<slug>: on maintainer comments, decide update-plan vs start implementation.wf-pr-monitor-<slug>: on PR open/sync/review-comment/review, address feedback and refresh branch.wf-ci-fix-<slug>: on CI status/check failures, apply fixes and push updates.wf-staging-review-<slug>: every N hours, review ready PRs, merge into staging, run batch correctness analysis, fix findings, then merge staging to main.wf-learning-<slug>: on merged PRs, extract mistakes/lessons and write to shared memory.
Event Filters
Use top-level filters for stability:
repository_name(e.g.,owner/repo)sender_login,comment_authorissue_number,pr_numberci_status,ci_conclusionreview_state,pr_merged
Operating Rules
- All implementation work on non-main branches.
- PR loop must resolve both human and AI review comments.
- On conflicts with origin/main, refresh branch before continuing.
- Staging-batch is the only path for bulk correctness verification before mainline merge.
- Memory update runs only after successful merge.
Validation
After install, run:
event_emitwith a syntheticissue.openedpayload for the target repo.- Confirm at least one mission fired.
- Check corresponding mission status.
- Confirm no unrelated missions fired.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
mintlify
Build and maintain documentation sites with Mintlify. Use when creating docs pages, configuring navigation, adding components, or setting up API references.
product-prioritization
Product strategy and feature prioritization — score features by user demand evidence, effort (human vs AI-assisted), strategic alignment, and market signal. Anti-sycophantic forcing questions to cut through opinion.
qa-review
QA review for code changes — test coverage analysis, edge case identification, test plan generation, regression detection, test health tracking over time.
commit
Generate git commit messages from staged changes
content-creator-assistant
Commitment tracking tuned for content creators — content pipeline stages, trend expiration, cross-platform cascades, heavy idea parking.
trader-assistant
Commitment tracking tuned for financial traders — real-time alerts, position-aware relevance, decision journaling with outcome tracking.
Didn't find tool you were looking for?