AGENT SKILL

lessons-triage

Consumes the session lessons queue (~/.agents/lessons/queue.jsonl), extracts lessons about User Skills from the transcript, and files only the approved ones as issues to ozzy-labs/skills. Fires on "organize the lessons," "consume the lessons," "session retrospective."

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

01 前言 Front Matter

description
Consumes the session lessons queue (~/.agents/lessons/queue.jsonl), extracts lessons about User Skills from the transcript, and files only the approved ones as issues to ozzy-labs/skills. Fires on "organize the lessons," "consume the lessons," "session retrospective."
allowed-tools
Bash, Read, Grep, Glob, AskUserQuestion
disable-model-invocation
true

03 SKILL.md 正文

lessons-triage

Read .agents/skills/lessons-triage/SKILL.md and follow the workflow steps.

Claude Code-specific additions

How to read the transcript

  • Claude Code's transcript is at ~/.claude/projects/<project-slug>/<session_id>.jsonl (1 line = 1 event, JSONL)
  • Traces of skill invocations can be identified via the Skill tool's tool_use events, or the <command-name> tag
  • For a large transcript, use Grep to narrow down to skill-related event lines, then Read the surrounding context

Determining past triage sessions (outcome: self)

Since the currently running session hasn't fired SessionEnd yet, it doesn't exist in the queue. The prefilter's self determination target is a session in which lessons-triage was run in the past, identified via an execution marker in the transcript:

  • The <command-name>lessons-triage</command-name> tag (a trace of /lessons-triage being invoked)
  • A Skill tool invocation event for lessons-triage

Any session whose transcript contains either of these is treated as outcome: self and made a discard candidate (identifiable via Grep).

HITL approval (policy's externally-visible gate = batch-confirm)

The batch confirmation in step 4 is done via AskUserQuestion (do not set the answers parameter). With gate=batch-confirm (default), present all lessons as the options of a single question, and use multiSelect: true to have the user select as a batch which lessons to file. If the number of lessons exceeds the option limit for a single question, it's fine to split across multiple rounds, but treat all of them as "one batch-confirmation round" — do not revert to per-lesson sequential approval. Only run gh issue create for the selected lessons; discard the unselected ones.

Only fall back to per-lesson confirmation (file / file with edits / discard) when gate=ask (tightened by policy).

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.

律师与法务Skill与智能体开发
★ 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.

Skill与智能体开发
★ 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