Command Palette

Search for a command to run...

Назад к скиллам
скилл № 38700

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от 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

  1. The reviewer reads the whole diff, not a summary: git diff origin/develop...HEAD. It ends with Read: <base>..<sha> and REVIEW: PASS or REVIEW: BLOCK — <n> critical (devsecops: SECURITY: PASS|FAIL). Keep each reviewer's <sha>; for a reviewer whose output has no Read: line, keep the HEAD you gave it.
  2. 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 last Read: line and reads only git diff <sha>..HEAD. If that command fails (unknown or collected SHA), it reads the full git diff origin/develop...HEAD again.
  3. 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> equals git rev-parse HEAD.
  4. After two blocked rounds, `t
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

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), без исполняемых скриптов.

Похожие скиллы

Сравнить work с