update-starbase

update-starbase is a skill for Claude Code, Codex from canonical/copilot-collections. It costs 43 tokens per session (2,878 once invoked), scanned A, original, Apache-2.0.

A workflow for synchronising shared Starbase project files into a repository. It adds the Starbase remote, fetches its branch, creates a work branch when needed, and merges the shared changes.

In plain words
What is it for?
Use it to update common.mk and related Starcraft build or CI conventions from Starbase. It also identifies changed and conflicted files during the merge.
Why use it?
Updating shared build and continuous-integration rules manually can be error-prone, especially when branches conflict. This workflow reports whether the merge succeeded, needs conflict resolution, or has nothing new to apply.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions AGENTS.md.

Good fit Use it to update common.mk and related Starcraft build or CI conventions from Starbase. It also identifies changed and conflicted files during the merge.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/canonical/copilot-collections/update-starbase
About the project

Canonical Copilot Collections is a repository for organizing and distributing GitHub Copilot instructions, prompts, agents, and skills across Canonical repositories. Teams configure repositories to subscribe to shared collections, such as Python, documentation, or Juju development guidance, and keep those assets synchronized.

canonical/copilot-collections · 31 stars · on GitHub

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 canonical/copilot-collections --skill update-starbase
Clone the repo
git clone --depth 1 https://github.com/canonical/copilot-collections

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 update-starbase

README.md
[![agentmods](https://agentmods.dev/badge/skills/canonical/copilot-collections/update-starbase/github.svg)](https://agentmods.dev/skills/canonical/copilot-collections/update-starbase)
Your own site
<a href="https://agentmods.dev/skills/canonical/copilot-collections/update-starbase"><img src="https://agentmods.dev/badge/skills/canonical/copilot-collections/update-starbase/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 update-starbase

Your own site · 80×15
<a href="https://agentmods.dev/skills/canonical/copilot-collections/update-starbase"><img src="https://agentmods.dev/badge/skills/canonical/copilot-collections/update-starbase.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,878 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.00043 $0.02878
Opus 5.5 $0.00017 $0.01151
Sonnet 5.5 $0.00009 $0.00576
Haiku 4.5 $0.00004 $0.00288

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

Security

Grade A, and why

update-starbase 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 13d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/prepare_merge.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.

groups/starcraft/skills/update-starbase/SKILL.md · 246 lines

How it starts

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

Update Starbase

Phase 1: Merge Starbase

Run the preparation script from the root of the child repository:

bash <path-to-skill>/scripts/prepare_merge.sh [BRANCH_SUFFIX]
  • BRANCH_SUFFIX is optional; defaults to today's date (work/update-starbase-YYYY-MM-DD).
  • The script handles steps 1–6: safe-state check, remote setup, fetch, work-branch creation, merge, and conflict detection.
  • It prints a compact STATUS=... block (BRANCH, BASE, CHANGED_FILES, and — when relevant — CONFLICTED_FILES and PLACEHOLDER_WARNINGS) for one of four STATUS values, then continue with the matching step below:
    • STATUS=clean (exit 0): merge succeeded with no conflicts. Continue to Phase 2.
    • STATUS=conflicted (exit non-zero): merge stopped with conflicts. Resolve each file in CONFLICTED_FILES per references/file_ownership.md, then git add the resolved files and git merge --continue before continuing to Phase 2.
    • STATUS=already-up-to-date (exit 0): starbase/main has no commits that aren't already in the branch. No work branch was created — there is nothing to sync or open a PR for. Stop here and report this to the user.
    • STATUS=failed (exit non-zero): git merge failed for a reason other than an ordinary conflict (e.g. untracked files that would be overwritten, a failing merge hook). The merge was aborted; fix the underlying issue from the git output above the status block, then re-run the script.

If the script cannot be run, follow references/manual_merge_steps.md instead.

Report one of: merge-clean, merge-conflicted (with the conflicted file list), already-up-to-date, or merge-failed.

Conflict resolution

When resolving merge conflicts, consult references/file_ownership.md for the complete ownership map and decision rules, including:

  • Conflict rule 1 – File ownership map (always take starbase, always take child, and mixed-ownership rules by file/section).
  • Conflict rule 1b – Files that must be deleted; check every merge, clean or conflicted, since these deletions never raise a conflict.
  • Conflict rule 2 – Python type annotation modernisation (when to apply X | Y, tuple[X, Y], etc., and Python version caveats).
  • Conflict rule 3 – AGENTS template handling (library vs. application repositories).

Read the full file on GitHub · 246 lines

Files

What ships with it

7 files 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. 13d ago First seen · 246 lines · 43 tokens per session scan A 4e7e9c4c3441

Subscribe to this mod's changes

update-starbase is a skill published in the GitHub repository canonical/copilot-collections (31 stars, last pushed 2d ago), licensed Apache-2.0. It adds 43 tokens to every session and 2,878 once invoked, about $0.0002 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-10-03.