publish

publish is a skill for Claude Code from DefaultPerson/agent-setup. It costs 19 tokens per session (364 once invoked), scanned A, original, MIT.

A workflow for publishing a code repository on GitHub and configuring it. GitHub is a service for hosting and collaborating on code.

In plain words
What is it for?
It is for creating or updating a GitHub repository, choosing its owner and visibility, adding a license and topics, configuring GitHub Pages, Dependabot, continuous integration, and a README.
Why use it?
It gathers the setup work—repository creation or updates, visibility, licensing, documentation, automation, and hosting—in one process. It can also detect an existing GitHub setup.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Good fit It is for creating or updating a GitHub repository, choosing its owner and visibility, adding a license and topics, configuring GitHub Pages, Dependabot, continuous integration, and a README.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/defaultperson/agent-setup/publish
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.

Any agent
npx skills add DefaultPerson/agent-setup --skill publish
Clone the repo
git clone --depth 1 https://github.com/DefaultPerson/agent-setup

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 publish

README.md
[![agentmods](https://agentmods.dev/badge/skills/defaultperson/agent-setup/publish/github.svg)](https://agentmods.dev/skills/defaultperson/agent-setup/publish)
Your own site
<a href="https://agentmods.dev/skills/defaultperson/agent-setup/publish"><img src="https://agentmods.dev/badge/skills/defaultperson/agent-setup/publish/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 publish

Your own site · 80×15
<a href="https://agentmods.dev/skills/defaultperson/agent-setup/publish"><img src="https://agentmods.dev/badge/skills/defaultperson/agent-setup/publish.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 364 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.00019 $0.00364
Opus 5.5 $0.00008 $0.00146
Sonnet 5.5 $0.00004 $0.00073
Haiku 4.5 $0.00002 $0.00036

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

Security

Grade A, and why

publish 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 2mo 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/publish/SKILL.md · 27 lines

What it actually says

State

  • Origin: !git remote get-url origin 2>/dev/null || echo "no origin"
  • Branch: !git branch --show-current 2>/dev/null || echo "not a git repository"
  • GitHub: !gh repo view --json nameWithOwner,visibility,description --jq '"\(.nameWithOwner) (\(.visibility)) — \(.description)"' 2>/dev/null || echo "not on GitHub yet"

Goal

Create the GitHub repository for this directory, or bring an existing one up to date, with gh.

Before changing anything, ask up front — in as few AskUserQuestion calls as possible, showing current values for an existing repository: owner (personal account or one of gh api user/orgs), visibility, description (suggest one from the README), license, GitHub Pages (MkDocs Material), Dependabot, CI workflow, .gitignore, README scaffold.

Then apply only what was chosen:

  • Take the repository name from the directory and topics from the detected stack and the README.
  • Match CI, Dependabot ecosystems and .gitignore templates (gh api gitignore/templates/<Name>) to the stack actually in the repository. Scan untracked files for anything that should be ignored and confirm before adding it.
  • Never overwrite a non-empty README; merge into an existing .gitignore only after asking.
  • Commit and push what you generate.

Finish with the repository URL and a list of what changed.

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. 2mo ago Changed · -75 lines · -31 tokens per session 9c93e1689b41
  2. 3mo ago First seen · 102 lines · 50 tokens per session scan A 0f52bb8ad59d

Subscribe to this mod's changes

publish is a skill published in the GitHub repository DefaultPerson/agent-setup (11 stars, last pushed 1mo ago), licensed MIT. It adds 19 tokens to every session and 364 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-30.

Related

publish compared with skills from other repositories

publish next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
publishDefaultPerson/agent-setupSkill111mo agoMITA19Claude Code
carryonao92265/claude-code-playbookSkill1318d agoMITA180Claude Code
bark-notifyRUIIIOVO/claude-code-bark-notifySkill42mo agoMITA79Claude Code
bark-notify-setupRUIIIOVO/claude-code-bark-notifySkill42mo agoMITB58Claude Code
Dotfilesdanielmiessler/LifeOSSkill21k17d agoMITA125Claude Code, Codex
python-releaseComposioHQ/composioSkill31ktodayMITA53Claude Code, Codex
about-thinkrailJetBrains/thinkrailSkill8.6ktodayApache-2.0A153Claude Code, Codex