OPOS: Skill for Claude Code

.claude/skills/task-register/SKILL.md

task-register is a skill for Claude Code from Koroqe/OPOS. It costs 24 tokens per session (2,528 once invoked), scanned A, original, MIT.

A task-starting command that opens a GitHub issue and records its number locally for future updates.

In plain words
What is it for?
Use it at the beginning of new work to provide an issue title, responsible departments, and optionally a plan file or goal.
Why use it?
It gives a new task a central tracking record and prevents starting another task when one is already active.

Skill for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: reads .claude/ paths; mentions CLAUDE.md; names the AskUserQuestion tool.

This is Koroqe/OPOS's own configuration. It tells Claude Code how to work on OPOS itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything OPOS configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node .claude/skills/lease/lease.mjs acquire --key "issue:<repo>#$ISSUE_NUM" --intent "<title>".

View source ↗ Koroqe/OPOS
Reuse

Borrowing it

Nothing to install: this file belongs to Koroqe/OPOS. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Koroqe/OPOS/main/.claude/skills/task-register/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Koroqe/OPOS

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for task-register

README.md
[![agentmods](https://agentmods.dev/badge/skills/koroqe/opos/task-register/github.svg)](https://agentmods.dev/skills/koroqe/opos/task-register)
Your own site
<a href="https://agentmods.dev/skills/koroqe/opos/task-register"><img src="https://agentmods.dev/badge/skills/koroqe/opos/task-register/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for task-register

Your own site · 80×15
<a href="https://agentmods.dev/skills/koroqe/opos/task-register"><img src="https://agentmods.dev/badge/skills/koroqe/opos/task-register.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,528 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.02528
Opus 5.5 $0.00010 $0.01011
Sonnet 5.5 $0.00005 $0.00506
Haiku 4.5 $0.00002 $0.00253

Measured 27d ago against content hash 084dd094d8a8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

task-register scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 27d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/task-register/SKILL.md · 81 lines

How it starts

The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.

task-register

When to use

At the start of a NEW task — NOT a fix or continuation of in-flight work.

The steward invokes this itself; it is not a command the user is expected to type. When chief-of-staff goal-decomposition classifies an opening message as a NEW task, it runs this skill at Notice tier (do it, mention it) — see the steward's "Goal decomposition pattern" step 2. A user MAY still invoke /task-register "<title>" --depts <comma-list> [--plan-file <path>] [--goal "<text>"] directly, but nothing depends on them doing so.

Multi-active tasks are first-class (v0.7.0). An existing .claude/.current-task does NOT block a new registration — the pre-v0.7.0 refuse-guard was removed (see step 4); parallel sessions each open their own task without colliding.

Inputs may be gathered conversationally over multiple AskUserQuestion turns before the GitHub call — the skill doesn't require them all in one CLI invocation. In practice, the calling agent (chief-of-staff) often clarifies title, depts, and goal interactively before making the actual gh issue create call.

Inputs

  • title — short title for the GitHub issue (required).
  • depts — comma-separated department names; lowercased for label normalization (required).
  • plan_file — optional path to a plan file (e.g. under ~/.claude/plans/).
  • goal — optional one-paragraph goal. Default: prompt user inline.
  • quiet_label_creation — optional bool, default false. When true, suppress per-label warnings from steps 6-7 and emit a single summary line at the end instead ("Auto-created N labels: dept:engineering, dept:company, task").

Steps

  1. (Removed in v0.21.0 — do NOT invoke check-for-updates.) Update checks belong to the SessionStart updater (shared/scripts/opos-session-update.mjs), which runs once a day for free. Invoking the skill here cost ~5 model requests per lifecycle call, each re-reading the whole session context. Step numbering is kept so the references below stay valid.
  2. Resolve repo root: REPO_ROOT=$(git rev-parse --show-toplevel). All file paths in this skill are anchored to $REPO_ROOT.
  3. Read $REPO_ROOT/.claude/task-tracking.config.json. Validate repo is non-empty.
  4. Parse current active-task array. Read $REPO_ROOT/.claude/.current-task as a newline-delimited array of integers (v0.7.0 array semantics; v0.6.x single-task content parses as 1-element array — fully backwards-compatible). If file is absent or empty → CURRENT_TASKS = []. Apply defensive read-side filtering: drop any line that isn't pure digits (handles partial-write garbage from the rare intra-machine concurrent-register race documented in RISKS Risk 30; v0.8.x candidate is proper flock). Continue regardless of count — multi-active tasks are first-class as of v0.7.0; parallel Claude sessions can each open a fresh task without colliding. The pre-v0.7.0 "refuse if .current-task already exists" guard is REMOVED; the new duplicate check happens at step 10 against the candidate issue number after gh issue create.
  5. gh repo view <repo> --json visibility — if visibility is public, print a WARNING to stdout (do not block).
  6. Normalize each --depts value: trim whitespace and tr A-Z a-z (lowercase). For each normalized dept name, ensure label dept:<name> exists; create with gh label create dept:<name> --description "Auto-created by task-register" if missing. Warning behavior depends on quiet_label_creation: when false (default), print one warning line per created label AND record each in the history-entry body. When true, accumulate the created labels in a list and defer the announcement to step 11's summary; still record in the history-entry body.
  7. Ensure flat label task exists; create if missing (same warning behavior — per quiet_label_creation).
  8. Render the issue body from shared/templates/task-issue.md.tmpl, substituting {{TITLE}}, {{DEPARTMENTS}} (joined human-friendly list), {{INITIATED_BY}} (= chief-of-staff + ISO date), {{PLAN_LINK}}, {{GOAL}}. Leave the <!-- progress-log --> marker intact (it serves as an anchor for the optional v1 body-insertion approach; v0 uses comments).
  9. Create the issue and capture the URL from stdout. gh issue create does NOT support --json (only gh issue view / gh issue list do — this was a documented-but-wrong pattern in v0.1.x–v0.2.0 fixed in v0.3.0 after issue #6's task-register run hit the bug). The working pattern:
    URL=$(gh issue create --repo "$REPO" --title "$TITLE" --body-file /tmp/body.md \
           --label task $(printf -- '--label dept:%s ' "${DEPTS[@]}"))
    ISSUE_NUM=$(basename "$URL")
    
    Prefer --body-file over --body "$RENDERED" to avoid shell-quoting hell with multi-line bodies. The URL capture is the bare gh issue create stdout (one line, just the URL — stable across recent gh versions); basename parses the trailing /N segment. 9b. Take the lease on the new issue (v0.17.0). This is what makes the task visible as in progress to every other session, on every machine — .current-task never could:
    node .claude/skills/lease/lease.mjs acquire --key "issue:<repo>#$ISSUE_NUM" --intent "<title>"
    
    Handle the exit code exactly as in the lease skill's "Calling the lease from another skill" table: 0 proceed · 9 the company has not opted in to leases — print lease: not configured, gate skipped and proceed exactly as before · anything else STOP. The issue already exists at this point, so on a non-zero exit say so plainly ("issue #N created, but NOT leased: "), finish the remaining steps, and record outcome: partial. Exit 3 (stale clone) means run git pull --ff-only and re-acquire — never work on a task from a clone that is behind.

Read the full file on GitHub · 81 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 27d ago Changed · +7 lines 084dd094d8a8
  2. 1mo ago Changed · +4 lines 1b305c3ae343
  3. 1mo ago First seen · 70 lines · 24 tokens per session scan A 384447786e1f

Subscribe to this mod's changes

task-register is a skill published in the GitHub repository Koroqe/OPOS (4 stars, last pushed today), licensed MIT. It adds 24 tokens to every session and 2,528 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.