author-and-promote-skill

author-and-promote-skill is a skill for Claude Code, Codex from agenticdevops/aoh. It costs 51 tokens per session (835 once invoked), scanned A, original, MIT.

A process for publishing a locally drafted coding-agent skill into a shared, Git-hosted skill pack. A skill is a reusable set of instructions for an agent.

In plain words
What is it for?
Validating skill files, finding the configured destination, running the promotion command, and reviewing the resulting changes.
Why use it?
It checks the draft and staged changes before the skill is published to the target pack.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/agenticdevops/aoh/author-and-promote-skill
Any agent
npx skills add agenticdevops/aoh --skill author-and-promote-skill
Clone the repo
git clone --depth 1 https://github.com/agenticdevops/aoh

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 author-and-promote-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/agenticdevops/aoh/author-and-promote-skill.svg)](https://agentmods.dev/skills/agenticdevops/aoh/author-and-promote-skill)
Your own site
<a href="https://agentmods.dev/skills/agenticdevops/aoh/author-and-promote-skill"><img src="https://agentmods.dev/badge/skills/agenticdevops/aoh/author-and-promote-skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 835 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00051 $0.00835
Opus 5 $0.00026 $0.00417
Sonnet 5 $0.00010 $0.00167
Haiku 4.5 $0.00005 $0.00084

Measured 6d ago against content hash 36aa6ed9a5e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

author-and-promote-skill 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 6d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/promote.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

collections/core/aoh-authoring/skills/author-and-promote-skill/SKILL.md · 71 lines

How it starts

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

Author and Promote a Skill

Draft a skill locally, then promote it into a shared, git-hosted AOH pack using aoh skill promote (this pack ships a thin wrapper around it — see scripts/promote.sh). AOH never executes your skill or the promote itself in some hidden way — running the CLI from your own shell, with your own credentials, is the whole mechanism.

Process

  1. Confirm the draft validates standalone. Before promoting, check:

    • The skill lives in a directory whose name matches the name: field in its SKILL.md frontmatter (e.g. skills/my-skill/SKILL.md has name: my-skill).
    • The frontmatter has both name and a non-empty description.
    • Any scripts under scripts/ are executable (ls -l scripts/ should show x bits; if not, chmod +x scripts/*.sh).
  2. Identify the target pack. Promote publishes into a pack you've already configured by name in ~/.aoh/config.yaml. Read the file directly, or ask for one pack's entry with:

    aoh config get packs.<pack-name>
    

    This resolves the nested packs.<pack-name> key from the config's packs: {<name>: {repo: ...}} structure and prints that pack's configuration (e.g. its repo URL). If it prints (unset), the pack isn't configured yet — set it first with aoh config set packs.<pack-name> <repo-url> (promote requires a git-hosted pack; a local_path-only entry will be rejected).

  3. Run the promote script.

    Prerequisite: aoh must be on PATH. If you're outside this repo's venv, run the promote command directly via uv run aoh skill promote ... instead of the wrapper script.

    scripts/promote.sh <skill-name> --pack <pack-name>
    

    Add --from <draft-dir> if the draft isn't discoverable from the current directory's .claude/skills/<name> or .agents/skills/<name>. Add --pr to open a pull request instead of committing directly to the pack's default branch.

  4. Read the staged diff before it's pushed. The command prints the staged diff (git diff --cached) from inside a throwaway worktree before it announces success. Stop and ask the user if anything in that diff looks unexpected — an unrelated file, a change outside the new skill's directory, or content that shouldn't be shared.

Read the full file on GitHub · 71 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 71 lines · 51 tokens per session scan A 36aa6ed9a5e7

Subscribe to this mod's changes

author-and-promote-skill is a skill published in the GitHub repository agenticdevops/aoh (5 stars, last pushed 1mo ago), licensed MIT. It adds 51 tokens to every session and 835 once invoked, about $0.0003 per session on Opus 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.