用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Abilityai/abilities --skill work-loop命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Generate an agent-specific `/update-dashboard` skill that keeps `dashboard.yaml` current for Trinity. Analyzes the agent's purpose and data sources, proposes metrics, gets user approval, then scaffolds a schedulable skill.
Modify an existing playbook based on conversation context or explicit instructions. Use when user wants to update, fix, extend, or refine a playbook they already have.
Create a new skill or playbook. Guides through requirements gathering and generates the appropriate template based on complexity.
基于 SOC 职业分类
正在显示 SKILL.md
| name | work-loop |
| description | Autonomous work loop — pick one backlog issue, execute it, close it, exit. Re-invoked by scheduler for the next. |
| allowed-tools | Bash, Read, Write, Edit, Glob, Grep, Agent, Skill |
| automation | autonomous |
| schedule | 0 9 * * * |
| user-invocable | true |
| metadata | {"version":"1.3","created":"2026-04-14T00:00:00.000Z","updated":"2026-05-03T00:00:00.000Z","author":"Ability.ai","changelog":["1.3: Add Single-Task Rule — each invocation handles exactly one issue per context window","1.2: Adopt the issue-driven development workflow — picks one backlog issue, executes it, closes it, and exits for the scheduler to re-invoke","1.1: Add error handling and prerequisite checks"]} |
ℹ️ First, set expectations: before anything else, print one short line with this skill's version and its most recent change — the top entry of
metadata.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.
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.
| 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 |
gh CLI authenticatedgh issue list --label "status:in-progress" --state open --json number,title,body,labels --limit 1
If an issue is in-progress:
If no in-progress work, proceed to Step 2.
Find highest priority todo:
# P0 first
gh issue list --label "priority:p0" --label "status:todo" --state open --json number,title,body,labels --limit 1
# Then P1
gh issue list --label "priority:p1" --label "status:todo" --state open --json number,title,body,labels --limit 1
# Then P2
gh issue list --label "priority:p2" --label "status:todo" --state open --json number,title,body,labels --limit 1
# Then any todo
gh issue list --label "status:todo" --state open --json number,title,body,labels --limit 1
If no tasks found:
If task found:
gh issue edit $NUMBER --remove-label "status:todo" --add-label "status:in-progress"
gh issue comment $NUMBER --body "Starting work on this issue."
Parse the issue body to understand requirements. The issue should contain:
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:
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:
Add progress comments as work proceeds:
gh issue comment $NUMBER --body "Progress: $UPDATE"
Handle blockers: If the task cannot be completed:
gh issue edit $NUMBER --remove-label "status:in-progress" --add-label "status:blocked"
gh issue comment $NUMBER --body "Blocked: $REASON"
When task is done:
gh issue comment $NUMBER --body "## Completed
$SUMMARY_OF_WORK_DONE
---
*Completed by agent work-loop*"
gh issue edit $NUMBER --remove-label "status:in-progress" --add-label "status:done"
gh issue close $NUMBER --reason completed
| 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 |