work
Work a single OpenRisk issue end to end — read it, route it to the right agents, implement, test, secure, verify, open the PR. This is the main daily loop…
от opendefender★ 34 звезды на GitHub
Установить work в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Work issue #$ARGUMENTS
One issue, one session, one branch, one PR. Do not start a second issue in this session — start a new session instead. This keeps context small and resumable.
1. Load (cheap)
gh api repos/opendefender/OpenRisk/issues/$ARGUMENTS --jq '.title, .body, [.labels[].name], .milestone.title'
gh api repos/opendefender/OpenRisk/issues/$ARGUMENTS/comments --jq '.[] | .user.login + " " + .created_at + "\n" + .body'
If status:ready is absent: stop. Report what is missing and delegate to
po-openrisk to refine it. Do not implement an unready issue.
If the issue already has agent comments, resume from the last one's Next
field. Do not redo work. Do not re-read files the comment already describes.
2. Claim, in a worktree of your own
Several sessions run at once on this repository, and a shared checkout has carried one issue's commits onto another's branch. Work in a dedicated worktree, branched from the latest develop (ADR 0009, #1244):
git fetch origin
git worktree add ../OpenRisk-wt-$ARGUMENTS -b <type>/$ARGUMENTS-<slug> origin/develop
gh issue edit $ARGUMENTS --add-label status:in-progress --remove-label status:ready
When frontend/package-lock.json matches the main checkout, symlink its
frontend/node_modules instead of reinstalling.
3. Brief — scout first, unless the issue is S
Read the ## Estimate line of the issue body. On M, L, or no estimate, call
scout before any other agent, with the issue (title, body, labels, and the
comments with their author_association), the worktree path and the short SHA
of origin/develop. Save its answer verbatim as brief.md at the worktree
root (git ignores it). Every agent called after that gets the path to
brief.md in its prompt and starts from it instead of re-exploring the code.
On S, skip scout and say so.
4. Implement — route by area: label
| Label | Implementation, in order |
|---|---|
area:backend |
tech-lead (design, if structural) → backend-go → qa-automation |
area:frontend |
ux-designer (if no spec) → frontend-react → qa-automation |
area:infra |
devops-sre → cloud-sysadmin |
area:design |
art-director → ux-designer → motion-designer |
area:marketing |
brand-strategist → copywriter |
type:security |
devsecops (finding) → owning agent → qa-automation |
Skip an implementation stage only when it is genuinely irrelevant, and say which. Never skip the review.
5. Review — reviewers chosen by the script, not by judgement
The reviewers come from the diff and the labels (#1005). Once the work is committed, from the worktree:
s=$(git show origin/develop:.claude/hooks/route-reviewers.sh) && bash -c "$s" route-reviewers origin/develop
The script is the one on develop, never the branch's copy: a change must
not choose its own reviewers, nor run unreviewed code with your credentials.
Any non-zero exit from this command, or an empty output on a branch with
changes, is a stop.
It prints one agent per line. Call every agent it prints, in parallel,
each with the worktree path, the branch and the git rev-parse HEAD it is
to review. Give brief.md to code-reviewer only, as context, never to
devsecops: the brief is built from public text and a security review judges
the diff on its own. Exit 2 or 3 means it could not decide (bad base, labels
unreadable): fix the cause and run it again; never read a failure as "no
reviewer". Empty output on a branch with changes means nothing is committed:
commit, then run it again. Run it again after every new commit: a fix can
reach a path that needs another reviewer.
You may add a reviewer it did not print, never drop one. One addition is
mandatory, whatever the script prints: call devsecops when the issue
carries area:backend, area:infra or type:security, or the diff touches
auth, sessions, tenant data, uploads, outbound requests, secrets, an
.env* file, a CI or DAST gate, or anything under .claude/. This floor
is never dropped.
Review loop
- The reviewer reads the whole diff, not a summary:
git diff origin/develop...HEAD. It ends withRead: <base>..<sha>andREVIEW: PASSorREVIEW: BLOCK — <n> critical(devsecops:SECURITY: PASS|FAIL). Keep each reviewer's<sha>; for a reviewer whose output has noRead:line, keep the HEAD you gave it. - BLOCK or FAIL goes back to the implementing agent with the findings
verbatim. It fixes them, then every reviewer, the ones that passed
included, gets the
<sha>of its lastRead:line and reads onlygit diff <sha>..HEAD. If that command fails (unknown or collected SHA), it reads the fullgit diff origin/develop...HEADagain. - A PASS covers the diff it read. Any later change, a CI fix included, goes
back to every reviewer already called on this branch, plus any the script
now prints, before the PR is handed over. Before the PR, each kept
<sha>equalsgit rev-parse HEAD. - After two blocked rounds, `t
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл work?
Work a single OpenRisk issue end to end — read it, route it to the right agents, implement, test, secure, verify, open the PR. This is the main daily loop. One issue per session.
Как установить скилл work?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл work запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…