Agent skill

Deploy Steward

by SethGammon in SethGammon/Citadel

Mainline deploy steward. An agent skill from SethGammon/Citadel.

MITAuto-check passedAgent Workflows

Install Deploy Steward

skills CLI
$ npx skills add SethGammon/Citadel --skill deploy-steward -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install SethGammon/Citadel deploy-steward --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/SethGammon/Citadel.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/deploy-steward .claude/skills/deploy-steward && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
deploy-steward
GitHub stars
922
Token cost
~1.7k tokens
SKILL.md length
737 words
Files
1
Skills in repo
48
Repo updated
First seen
Licence
MIT

At a glance

Mainline deploy steward. An agent skill from SethGammon/Citadel.

  • Works in 4 steps: Build the Queue → Acquire the Steward Lease → Process One Mainline Candidate at a Time → …
  • Agent Workflows work in your project
  • SKILL.md covers When to Use, Required Inputs, Invocation Forms and Protocol, plus 5 more sections
  • Calls node and gh; reaches github.com

What it does

Deploy Steward is an agent skill from SethGammon/Citadel. Mainline deploy steward. Consumes ready PRs, owns a lease on mainline landing, refreshes PR state, updates stale branches, waits for CI and deploy gates, merges or queues one candidate at a time, and opens repair tasks for failures.

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows. The repository describes itself as: The operating layer for Claude Code + OpenAI Codex: persistent project memory, intent routing, safety hooks, cost telemetry, and parallel agent fleets. The licence is MIT.

When your agent uses it

  • Agent Workflows work in your project

Example prompts

  • “/deploy-steward”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Build the Queue
  2. Acquire the Steward Lease
  3. Process One Mainline Candidate at a Time
  4. Deploy

What it can do on your machine

Read from SKILL.md and the folder at commit e41ff1d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • node
    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Deploy Steward loads about 1.7k tokens when it runs. Until then it costs about 62 tokens; SKILL.md has 737 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~62
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from SethGammon/Citadel at commit e41ff1d, republished under its MIT licence (© SethGammon). 737 words, ~1,673 tokens.

Download SKILL.mdSave it as .claude/skills/deploy-steward/SKILL.md (or your agent's skills folder).
name
deploy-steward
description
Mainline deploy steward. Consumes ready PRs, owns a lease on mainline landing, refreshes PR state, updates stale branches, waits for CI and deploy gates, merges or queues one candidate at a time, and opens repair tasks for failures.
license
MIT
user-invocable
true
auto-trigger
false
trigger_keywords
deploy steward, deploy queue, merge steward, mainline steward, land prs, land PRs, deploy prs, deploy PRs, merge queue, release train
effort
high
last-updated
2026-06-20

/deploy-steward - Mainline Deploy Steward

You are the deploy steward. You serialize mainline landing for parallel agent work. Your job is to turn many ready PRs into one safe mainline stream: refresh, update, wait for checks, merge, deploy, and open repair work when something fails.

When to Use

Use this when the user asks to:

  • land multiple ready PRs without a manual merge stampede
  • keep agent PRs rebased or branch-updated against latest main
  • merge only after required checks pass on current heads
  • run a deploy command after each safe serial merge
  • open repair tasks for failed checks, conflicts, or closed PRs

Do not use this for code review quality findings; use /review. Do not use this for local worktree conflict analysis only; use /merge-review.

Required Inputs

The steward can start from either source:

  • .planning/pr-readiness/*.md reports generated by node scripts/pr-ready.js
  • explicit GitHub PR URLs passed with --enqueue-pr

If .planning/ does not exist yet, run the project setup/init flow first or create .planning/pr-readiness/ before scanning. Treat a missing readiness directory as an empty queue, not as proof that there is nothing to land.

The runtime requires:

  • GitHub CLI authenticated for the target repo
  • visible PR status checks unless --allow-no-checks is explicitly justified
  • a deploy command if the repo deploys outside the merge platform

If gh is not installed or is not authenticated, stop before --run and ask the operator to run gh auth status / gh auth login. Do not substitute raw tokens or ad hoc curl commands inside the steward.

Invocation Forms

bash
node scripts/deploy-steward.js --scan
node scripts/deploy-steward.js --scan --run
node scripts/deploy-steward.js --run --deploy-command "npm run deploy"
node scripts/deploy-steward.js --enqueue-pr https://github.com/OWNER/REPO/pull/123 --run
node scripts/deploy-steward.js --run --merge-mode merge-queue

Use --dry-run before first live use on a repo:

bash
node scripts/deploy-steward.js --scan --run --dry-run

Protocol

Phase 1 - Build the Queue

Run:

bash
node scripts/deploy-steward.js --scan

This reads .planning/pr-readiness, writes .planning/deploy-steward/queue.jsonl, and records each candidate as ready, blocked, or already terminal.

For ad hoc PRs:

bash
node scripts/deploy-steward.js --enqueue-pr <url>
Phase 2 - Acquire the Steward Lease

The run command acquires .planning/deploy-steward/lease.lock and mirrors the lease to .planning/deploy-steward/lease.json. If another steward has an active lease, stop instead of racing main.

Use --force-lease only after confirming the old holder is dead.

Phase 3 - Process One Mainline Candidate at a Time

Run:

bash
node scripts/deploy-steward.js --run

For each processable queue item, the steward:

  1. Refreshes live PR state with gh pr view.
  2. Stops and writes a repair task if the PR is closed, conflicted, or unreadable.
  3. Updates the branch against its base when GitHub reports it is behind.
  4. Waits when checks are pending.
  5. Opens a repair task when checks fail.
  6. Merges with gh pr merge --<method> --match-head-commit <sha> when checks pass.
  7. Runs the optional deploy command after a successful serial merge.

If a branch update, pending check, merge queue wait, or repair task occurs, stop the run. Rerun after the external state advances.

Show full SKILL.md (301 more words)Show less
Phase 4 - Deploy

For serial landing, pass the project deploy command:

bash
node scripts/deploy-steward.js --run --deploy-command "npm run deploy"

If the repo uses GitHub merge queue, prefer:

bash
node scripts/deploy-steward.js --run --merge-mode merge-queue

In merge-queue mode, the steward queues one PR with GitHub and marks it landing. Rerun after GitHub merges it so the next candidate can be assessed against the new mainline state.

State Files

  • .planning/deploy-steward/queue.jsonl - durable landing queue
  • .planning/deploy-steward/lease.json - active steward lease mirror
  • .planning/deploy-steward/runs/latest.md - latest steward report
  • .planning/intake/*deploy-steward*.md - generated repair tasks

Safety Rules

  • Never let multiple steward runs merge into the same target at once.
  • Never merge without a current PR refresh.
  • Never merge a PR with failing or pending checks.
  • Never merge a conflicted PR; create repair work instead.
  • Never force-push a contributor branch from the steward.
  • Use --allow-no-checks only when the repo truly has no CI.
  • Use --require-fresh-readiness when local readiness reports must remain the source of truth; otherwise live GitHub checks are authoritative after branch refreshes.

Fringe Cases

  • No .planning/ directory: stop setup and initialize Citadel state before writing queue or repair files.
  • No readiness reports: report an empty queue; accept explicit --enqueue-pr URLs if the operator wants to seed the queue manually.
  • gh unavailable or unauthenticated: do not run; surface the authentication problem and keep the queue unchanged.
  • PR already merged: mark the queue item landed and continue to the next candidate.
  • PR closed without merge: create a repair intake task and stop.
  • Branch is behind base: update the PR branch, mark it waiting for checks, and stop until CI reruns.
  • Checks fail: create a repair intake task and stop.
  • Checks pending: keep the item queued and stop until the external state advances.
  • Merge conflict or dirty merge state: create repair work; never merge or force-push from the steward.

Quality Gates

  • node scripts/test-deploy-steward.js
  • node scripts/skill-lint.js deploy-steward
  • node scripts/test-routing-sync.js
  • node scripts/test-all.js

Exit Protocol

Return the steward report and a handoff:

text
---HANDOFF---
- Queue: <N> candidates in .planning/deploy-steward/queue.jsonl
- Last action: merged | updated-branch | waiting-for-checks | repair-needed | idle
- Report: .planning/deploy-steward/runs/latest.md
- Repair task: <path or none>
---

© SethGammon, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/deploy-steward of SethGammon/Citadel.

Open the folder on GitHubat commit e41ff1d

Compare with similar skills

Deploy Steward next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Deploy Steward compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Deploy Steward this skillSethGammon/Citadel922—~1.7kAutomated safety check: PassMIT
MCP Server Builderanthropics/skills180k64 repos~2.3kAutomated safety check: PassApache-2.0
Hook Development for Claude Code Pluginsanthropics/claude-plugins-official38k11 repos~4.1kAutomated safety check: NotesApache-2.0
Using Superpowersfarm-fe/farm5.6k35 repos~1.4kAutomated safety check: PassMIT
Executing Plans Inlineobra/superpowers296k2 repos~5.1kAutomated safety check: PassMIT
Claude Code Agent Developmentanthropics/claude-plugins-official38k8 repos~2.8kAutomated safety check: PassApache-2.0

Similar skills

  • MCP Server Builder

    anthropics/skills

    Official

    Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.

    180k GitHub starsUsed in 64 repos~2.3k tokens
    Agent WorkflowsAuto-check passed
  • Hook Development for Claude Code Plugins

    anthropics/claude-plugins-official

    Official

    Explains how to write Claude Code plugin hooks, both prompt-based checks and bash commands, for events such as PreToolUse, Stop and SessionStart.

    38k GitHub starsUsed in 11 repos~4.1k tokens
    Agent WorkflowsAuto-check: notes
  • Using Superpowers

    farm-fe/farm

    A skill your agent uses when starting any conversation - establishes how to find and use skills, requiring Skill tool invocation before ANY response including clarifying questions

    5.6k GitHub starsUsed in 35 repos~1.4k tokens
    Agent WorkflowsAuto-check passed
  • Executing Plans Inline

    obra/superpowers

    Has the agent carry out an implementation plan itself, task by task in the current session, keeping a ledger, proving each step with a test and ending with one whole-branch review.

    296k GitHub starsUsed in 2 repos~5.1k tokens
    Agent WorkflowsAuto-check passed
  • Claude Code Agent Development

    anthropics/claude-plugins-official

    Official

    Explains how to write agents for Claude Code plugins: the markdown file with YAML frontmatter, trigger descriptions, model and color settings, and system prompt design.

    38k GitHub starsUsed in 8 repos~2.8k tokens
    Agent WorkflowsAuto-check passed
  • Skill Creator

    Azure/azqr

    Official

    Create new skills, modify and improve existing skills, and measure skill performance.

    795 GitHub starsUsed in 89 repos~8.2k tokens
    Agent WorkflowsAuto-check passed

More from SethGammon/Citadel

All 48 skills in this repo
  • Create Skill

    SethGammon/Citadel

    Creates new skills from the user's repeating patterns. An agent skill from SethGammon/Citadel.

    922 GitHub stars~1.9k tokensUpdated 6 days ago
    Auto-check passed
  • Houseclean

    SethGammon/Citadel

    Cross-drive storage audit and cleanup. An agent skill from SethGammon/Citadel.

    922 GitHub stars~2.2k tokensUpdated 6 days ago
    Auto-check passed
  • Loop

    SethGammon/Citadel

    Bounded foreground repetition for the current session. An agent skill from SethGammon/Citadel.

    922 GitHub stars~1.4k tokensUpdated 6 days ago
    Auto-check passed
  • Triage

    SethGammon/Citadel

    GitHub issue and PR investigator. An agent skill from SethGammon/Citadel.

    922 GitHub stars~2.7k tokensUpdated 6 days ago
    Auto-check passed
  • Watch

    SethGammon/Citadel

    File sentinel that monitors the working directory for changes and marker comments, then auto-triggers appropriate skills.

    922 GitHub stars~2.9k tokensUpdated 6 days ago
    Auto-check passed
  • Archon

    SethGammon/Citadel

    Autonomous multi-session campaign agent. An agent skill from SethGammon/Citadel.

    922 GitHub stars~5.4k tokensUpdated 6 days ago
    Auto-check passed

Categories

Questions about Deploy Steward

What does Deploy Steward do?

Mainline deploy steward. An agent skill from SethGammon/Citadel. Deploy Steward is an agent skill from SethGammon/Citadel. Mainline deploy steward.

When should I use Deploy Steward?

Deploy Steward fits situations like: agent Workflows work in your project.

How do I install Deploy Steward in Claude Code?

Run `npx skills add SethGammon/Citadel --skill deploy-steward -a claude-code`. Or copy the skill folder (skills/deploy-steward in SethGammon/Citadel) into .claude/skills/deploy-steward in your project. Claude Code loads it when a task matches its description.

How do I install Deploy Steward in Codex?

Run `npx skills add SethGammon/Citadel --skill deploy-steward -a codex`. Or copy the skill folder (skills/deploy-steward in SethGammon/Citadel) into .agents/skills/deploy-steward in your project. Codex loads it when a task matches its description.

Can I use Deploy Steward in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add SethGammon/Citadel --skill deploy-steward -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/deploy-steward, .gemini/skills/deploy-steward, .github/skills/deploy-steward and .opencode/skills/deploy-steward in your project.

What does Deploy Steward need to run?

Going by SKILL.md and its folder, Deploy Steward needs the command-line tools its instructions call (node and gh).

Does Deploy Steward access the network?

SKILL.md names 1 domain. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Deploy Steward safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Deploy Steward use?

Deploy Steward is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Deploy Steward use?

About 1.7k tokens (SKILL.md is roughly 6.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Deploy Steward?

Skills that share tags, products or a category with Deploy Steward: MCP Server Builder (anthropics/skills, 180k stars), Hook Development for Claude Code Plugins (anthropics/claude-plugins-official, 38k stars), Using Superpowers (farm-fe/farm, 5.6k stars) and Executing Plans Inline (obra/superpowers, 296k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Deploy Steward?

SethGammon (a GitHub user) maintains it in SethGammon/Citadel, which has 922 GitHub stars. The repository holds 48 skills in this directory. The repository was last updated on October 1, 2026.

Source: SethGammon/Citadel on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.