abilityai/trinity-skills/work-loop
Claude Code and agent skill by abilityai/trinity-skills
- community
Checking that the SKILL.md file is still in the repository.
Autonomous work loop — pick one backlog issue, execute it, close it, exit. Re-invoked by scheduler for the next.
Install
npx vskill@latest install abilityai/trinity-skills/work-loopSKILL.md
Work Loop
ℹ️ First, set expectations: before anything else, print one short line with this skill's version and its most recent change — the top entry ofmetadata.changelogabove — e.g.work-loop vX.Y — recent: <summary>. Then proceed.
Autonomous skill that picks one issue from the backlog, executes it, and exits. The scheduler re-invokes it for the next issue — one issue per context window.
Purpose
Run on a schedule (or manually) to autonomously advance the agent's task backlog. Each invocation handles exactly one issue, keeping context focused and noise-free. The cron handles iteration; this skill handles execution.
State Dependencies
| Source | Location | Read | Write | Description | |
|---|---|---|---|---|---|
| GitHub Issues | Current repo | Yes | Yes | Task backlog | |
| GitHub Labels | status:, priority:, skill:* | Yes | Yes | Track status and route by skill | |
| Agent Skills | .claude/skills/ | Yes | No | Available capabilities | |
| CLAUDE.md | ./CLAUDE.md | Yes | No | Agent identity and guidelines |
Prerequisites
ghCLI authenticated- Repository has required labels (status:todo, status:in-progress, priority:*)
- Agent has skills to handle the types of issues in backlog
Process
Step 1: Check for In-Progress Work
If an issue is in-progress:
- This is the current task
- Parse the issue body for requirements
- Continue working on it (skip to Step 3)
If no in-progress work, proceed to Step 2.
Step 2: Pick Next Task
Find highest priority todo:
If no tasks found:
- Log: "Backlog empty. Work loop complete."
- Exit successfully
If task found:
- Move to in-progress:
``bash gh issue edit $NUMBER --remove-label "status:todo" --add-label "status:in-progress" gh issue comment $NUMBER --body "Starting work on this issue." ``
Step 3: Execute Task
Parse the issue body to understand requirements. The issue should contain:
- Clear description of what needs to be done
- Acceptance criteria (if applicable)
- Any relevant context
Determine execution approach:
Check for a skill:* label on the issue first:
- `skill:*` label present: This issue requires modifying or creating a skill file — it needs human input via
/sprint. Mark it blocked:
``bash gh issue edit $NUMBER --remove-label "status:in-progress" --add-label "status:blocked" gh issue comment $NUMBER --body "Blocked: skill development issue — requires human sprint (/sprint #$NUMBER)" `` Continue to the next issue.
- No skill label (project-level): Determine approach:
- Skill invocation: If the issue references a specific skill (e.g., "run /groom" or "run /roadmap"), invoke that skill
- Direct execution: If the task is clear and doesn't require wizard tools, execute directly
- Sub-agent delegation: For complex research or analysis tasks, spawn an Agent
Add progress comments as work proceeds:
Handle blockers: If the task cannot be completed:
- Add blocker comment explaining why
- Move to blocked status:
``bash gh issue edit $NUMBER --remove-label "status:in-progress" --add-label "status:blocked" gh issue comment $NUMBER --body "Blocked: $REASON" ``
- Continue to next task
Step 4: Complete Task
When task is done:
Outputs
- Issues processed (moved from todo → done)
- Progress comments on each issue
- Completion summaries on closed issues
- Blocked issues flagged with reasons
Error Recovery
| Error | Recovery | |
|---|---|---|
gh not authenticated | Log error, exit — user must run ! gh auth login | |
| Issue update fails | Log error, exit | |
| Task execution fails | Mark issue as blocked with error details, exit | |
| Network failure | Retry once, then log and exit |
Completion Checklist
- [ ] Checked for in-progress work
- [ ] Picked next task by priority
- [ ] Added progress comments
- [ ] Closed completed issue with summary
- [ ] Logged final status
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/work-loop/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/abilityai/trinity-skills/work-loop)