safe-output-target-deferral

safe-output-target-deferral is a skill for Claude Code, Codex from github/gh-aw. It costs 23 tokens per session (893 once invoked), scanned A, original, MIT.

A coding rule for safely handling output targets that are not resolved yet. It explains when to delay authorization and how to preserve each handler's existing behavior.

In plain words
What is it for?
Use it when changing temporary target resolution, authorization checks, or handlers that write to safe outputs.
Why use it?
It prevents a target from being authorized or changed before its identity is known. It also avoids treating unsupported fields or unrelated text as targets.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/check-instruction-prefixes.py .github/skills/safe-output-target-deferral/SKILL.md.

Good fit Use it when changing temporary target resolution, authorization checks, or handlers that write to safe outputs.

Compare 6 skills from other repositories ↓
About the project

GitHub Agentic Workflows is a GitHub CLI extension that lets developers define AI-assisted repository automation in Markdown and run it through GitHub Actions. It is intended for tasks requiring interpretation or reasoning, such as issue triage, pull-request review, CI investigation, documentation maintenance, and dependency analysis. The catalogue entries provide skills and agents for working with these workflows.

github/gh-aw · 5,748 stars · on GitHub · gh.io

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/github/gh-aw
agentmods
npx agentmods add skills/github/gh-aw/safe-output-target-deferral

Made for: Claude Code, Codex.

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 safe-output-target-deferral

README.md
[![agentmods](https://agentmods.dev/badge/skills/github/gh-aw/safe-output-target-deferral/github.svg)](https://agentmods.dev/skills/github/gh-aw/safe-output-target-deferral)
Your own site
<a href="https://agentmods.dev/skills/github/gh-aw/safe-output-target-deferral"><img src="https://agentmods.dev/badge/skills/github/gh-aw/safe-output-target-deferral/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 safe-output-target-deferral

Your own site · 80×15
<a href="https://agentmods.dev/skills/github/gh-aw/safe-output-target-deferral"><img src="https://agentmods.dev/badge/skills/github/gh-aw/safe-output-target-deferral.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 893 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.00023 $0.00893
Opus 5.5 $0.00009 $0.00357
Sonnet 5.5 $0.00005 $0.00179
Haiku 4.5 $0.00002 $0.00089

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

Security

Grade A, and why

safe-output-target-deferral 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 10d 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.

.github/skills/safe-output-target-deferral/SKILL.md · 80 lines

How it starts

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

Safe-output target deferral

Use when changing temporary target resolution or authorization for any safe output. Apply the checks below to each affected handler; do not assume every handler accepts the issue resolver's forms.

Contract

  • An accepted unresolved target must defer before an authority request or consuming decision. After production, bind the resolved invocation and obtain one decision; mutate only the authorized target.
  • Reuse the handler's existing resolver. resolveIssueNumber accepts case-insensitive aw_ prefixes, optional #, surrounding whitespace and matching quotes. resolveNumberFromTemporaryId does not accept quotes. Both use the existing 3-12 character alphanumeric/underscore ID validation.
  • Check only supported target fields. Do not infer targets from arbitrary strings, suffixes, output-producing temporary_id/output_id, or unrelated identities. Preserve invalid-input behavior, numeric targets, configured selection, staging, builtin exemptions and terminal unresolved reporting.
  • Keep the authorization snapshot deep-frozen. Handlers receive an independent, initially data-equivalent mutable message copy and snapshot-backed resolutions. Newly created IDs may be published for later invocations. Preserve per-call cache refreshes and mutation-during-authority-wait protection.
  • Preserve the protocol, declaration/input/policy hashes, scope.binding, invocation identity and replay behavior. Do not authorize a replacement after an authorized handler defers, move all preparation before authorization, or use a writable message copy to expand or redirect the bound operation.

Procedure

  1. Inspect current HEAD and existing coverage before editing. Read actions/setup/js/safe_output_handler_manager.cjs, actions/setup/js/temporary_id.cjs and the affected native handler's target resolution. Load the developer skill for repository validation gates.
  2. Trace every supported target alias to its actual resolver. For issue/PR targets include label operations, comments, updates, closing, sub-issue links, milestone/agent assignment, issue type/fields and project content. Discussions use their own number resolver. Other native handlers, project/artifact references, custom executors and queue/Claim adapters require separate evidence; do not extend their accepted forms by inference.
  3. Reproduce consumer-before-producer ordering with an unprotected fake producer, fake authority and recording GitHub client. Keep expected repo/number literal, independent of the resolver. Record authority calls and mutations when the producer runs; assert those observations outside handlers, since manager error handling can catch assertions thrown inside a fake producer.
  4. Share existing recognition, not another quote/whitespace/case regex. Apply the manager guard across the existing supported target fields; leave raw batch identity and the snapshot-backed map unchanged.
  5. Cover accepted variants and aliases without a Cartesian matrix; verify zero authority calls/mutations before production, exactly one decision and the expected mutation afterward, permanent nonresolution, malformed IDs and unrelated identities. For other handlers, distinguish guard-only coverage from real authorization-to-effect coverage.
  6. Correct directly conflicting specification wording and nearby comments. Do not claim universal native-handler, adapter or custom-executor guarantees.

Read the full file on GitHub · 80 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. 10d ago First seen · 80 lines · 23 tokens per session scan A 9a87f957228d

Subscribe to this mod's changes

safe-output-target-deferral is a skill published in the GitHub repository github/gh-aw (5,748 stars, last pushed today), licensed MIT. It adds 23 tokens to every session and 893 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-11-21.

Related

safe-output-target-deferral compared with skills from other repositories

safe-output-target-deferral next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
safe-output-target-deferralgithub/gh-awSkill5.7ktodayMITA23Claude Code, Codex
watch-prjustincampbell/gh-watchSkill41mo agoMITA48Claude Code
watch-tagjustincampbell/gh-watchSkill41mo agoMITA62Claude Code
watch-branchjustincampbell/gh-watchSkill41mo agoMITA45Claude Code
watch-commitjustincampbell/gh-watchSkill41mo agoMITA48Claude Code
c-githubdaxaur/openpawSkill1836mo agoMITA48Claude Code, Codex
update-architecture-docsAlexSkrypnyk/scaffoldSkill11yesterdayGPL-3.0A46Claude Code