AGENT SKILL

backlog

Collects open issues with the `backlog.mjs` engine, orders them by dependency graph (reusing drive's dependency-notation SSOT) and fixed-vocabulary priority rules, and presents start candidates output in drive argument format (e.g. `#12,#15 ->

License 许可
MIT
所属仓库
ozzy-labs/skills
最近更新
2026-07-13
Stars
★ 0
Forks
0

01 前言 Front Matter

description
Collects open issues with the `backlog.mjs` engine, orders them by dependency graph (reusing drive's dependency-notation SSOT) and fixed-vocabulary priority rules, and presents start candidates output in drive argument format (e.g. `#12,#15 ->
allowed-tools
Bash, Read, AskUserQuestion, SlashCommand
argument-hint
[--repo owner/repo] [--label <filter>] [--limit N] [--drive[=N] | --auto]
disable-model-invocation
true

02 资源文件 1

03 SKILL.md 正文

backlog

Read .agents/skills/backlog/SKILL.md and follow its workflow steps.

Important: All determinism (issue collection / dependency extraction / priority sorting / auto-ok gating / drive argument formatting) is handled by the bundled backlog.mjs engine. The SSOT for dependency notation is drive (drive-plan.mjs), which the engine imports and reuses. The SKILL confines itself to the judgment layer: "call the engine, present its output as-is, and confirm launching drive via the policy gate." Claude does not create priority ordering on its own judgment.

Claude Code-specific additions

Running the engine

node ~/.claude/skills/backlog/backlog.mjs [--repo owner/repo] [--label <filter>] [--limit N] [--drive[=N] | --auto]

For dogfooding (within this repo), it's <repo>/.claude/skills/backlog/backlog.mjs. Output is formatted text (structured JSON with --json). Pass the user's input through as the arguments.

  • --repo owner/repo: if omitted, the engine extracts it from git remote get-url origin
  • --label <filter>: label filter passed to gh issue list
  • --limit N: collection limit (default 20)
  • --drive[=N]: hands off the top N + dependency closure to drive (omit N for all candidates)
  • --auto: goes to drive without confirmation. However, only targets issues labeled auto-ok (HATL)

Candidate selection and launching drive (policy's externally-visible gate = batch-confirm)

Launching drive is an externally-visible action. Look up the gate with policy-read.mjs --action=drive-launch --class=externally-visible --repo-root="$PWD" (user-scope: ~/.claude/skills/policy/policy-read.mjs; dogfood: <repo>/.claude/skills/policy/policy-read.mjs). Confirm according to the gate.

present mode (default) — neither --drive nor --auto:

  1. Present the engine output (priority-ordered candidate table + drive_args) as-is.
  2. Use AskUserQuestion (multiSelect: true) to have the user select the candidates to start on (candidates are handoff.selected). Do not enumerate Y/n as text.
  3. Present the drive arguments corresponding to the selected subset (including the dependency closure) and confirm whether to launch:
    • "Launch drive" → launch /drive <drive_args> via SlashCommand
    • "Just output the arguments" → display drive_args and end

drive mode — --drive[=N]:

  1. Present the top N + dependency closure selected by the engine (handoff.selected / handoff.drive_args).
  2. With gate=batch-confirm (default), confirm the drive arguments to be launched just once via AskUserQuestion as a batch (do not set answers):
    • "Launch" → launch /drive <drive_args> via SlashCommand
    • "Cancel" → end
  3. If the gate is tightened to ask, confirm the drive arguments one at a time (one wave at a time).

auto mode — --auto:

  1. Present the handoff set the engine narrowed down to only auto-ok-labeled issues (handoff.selected), and the exclusion breakdown (excluded_no_label / excluded_unapproved_dep).
  2. Since the auto-ok label functions as standing approval (a boundary condition), no individual confirmation is done. With gate=batch-confirm (default), present the handoff set once and launch /drive <drive_args> via SlashCommand.
  3. If the handoff set is empty (0 issues with auto-ok), do not launch drive; report that fact and end.
  4. Only when the gate is tightened to ask does --auto also fail-safe escalate to individual confirmation.

Integration with scheduled execution

Launching in the form /backlog --auto --limit 3 from schedule (cron routine) or /loop closes the loop of "attach auto-ok and it gets consumed automatically" (ADR-0028 R5). Since AskUserQuestion cannot be inserted during scheduled execution, --auto's auto-ok gating and the policy gate become the sole boundary (the human sets the boundary solely by applying the label).

Completion report and next-action suggestions

End once the candidate presentation / launched drive arguments / auto exclusion breakdown have been displayed. After launching drive, defer to its own report. Do not suggest next actions.

04 同仓库更多 Skills

ozzy-labs
ozzy-labs/skills

verify

An integrated skill that runs the combined validation of build / typecheck / test / lint in one shot. The `verify.mjs` engine auto-discovers validation commands via a discovery chain (AGENTS.md's 「検証」 section → package.json scripts → justfile/Makefile/lefthook → language heuristics), executes them serially with their source attached, and returns a result summary. If a higher-priority stage produces a hit, only that stage is executed (no crossing stages).

★ 0
ozzy-labs
ozzy-labs/skills

usage-guard

Monitors Claude Code's Usage Limit (5-hour = Current / weekly = Weekly), pauses work when it exceeds 95%, and automatically resumes once the reset restores headroom. Bundles an engine form that a caller such as drive Reads at a checkpoint, and a standalone form, `/usage-guard "<continuation command>"`, that guards arbitrary work. Claude-only (depends on the OAuth usage-rate endpoint + ScheduleWakeup).

★ 0
ozzy-labs
ozzy-labs/skills

topics

Selects GitHub topic candidates by having the `topics.mjs` engine perform constraint validation, popularity measurement, broad+narrow / singular-plural comparison, and hardcoded ozzy-labs conventions, then applies them via `gh repo edit --add-topic` following the policy's `externally-visible` gate (default batch-confirm). Scope is limited to use within ozzy-labs.

★ 0
ozzy-labs
ozzy-labs/skills

skill-observability

Defines the skill observability event contract (event.schema.json) and emit substrate (obs-emit.mjs). The SSOT for the measurement layer of the skill improvement loop. Referenced by other skills and hooks.

★ 0
ozzy-labs
ozzy-labs/skills

skill-metrics

Aggregates the local observability event log (~/.agents/observability/events.jsonl) and presents, read-only, per-skill invocation counts and notable events (fallback / HITL rejection / loop cap reached / abort). Fires on "show me the skill metrics," "aggregate the observability results," "which skills get used the most?" Does not send anything.

★ 0
ozzy-labs
ozzy-labs/skills

ship

Runs verification, commit, and PR creation all at once. An integrated pipeline that runs verify (build + type + test + lint) → commit → PR creation in sequence against the changes.

★ 0