upgrade-project

upgrade-project is a skill for Claude Code, Codex from friedbotstudio/baseline. It costs 122 tokens per session (3,259 once invoked), scanned C, original, Apache-2.0.

A guided procedure for reconciling project files after a baseline upgrade finds local customisations. It compares the old version, the new version, and the project's current file before producing a reconciled result.

In plain words
What is it for?
Use it after a baseline upgrade pauses for manual merging of customised configuration, instructions, or workflow files.
Why use it?
It helps preserve intentional local changes while incorporating updates from the newer baseline.

Skill for Claude CodeCodex

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/friedbotstudio/baseline/upgrade-project
Any agent
npx skills add friedbotstudio/baseline --skill upgrade-project
Clone the repo
git clone --depth 1 https://github.com/friedbotstudio/baseline

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 upgrade-project

README.md
[![agentmods](https://agentmods.dev/badge/skills/friedbotstudio/baseline/upgrade-project.svg)](https://agentmods.dev/skills/friedbotstudio/baseline/upgrade-project)
Your own site
<a href="https://agentmods.dev/skills/friedbotstudio/baseline/upgrade-project"><img src="https://agentmods.dev/badge/skills/friedbotstudio/baseline/upgrade-project.svg" alt="Measured on agentmods" height="20"></a>
Per session 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,259 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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 $0.00122 $0.03259
Opus 5 $0.00061 $0.01630
Sonnet 5 $0.00024 $0.00652
Haiku 4.5 $0.00012 $0.00326

Measured yesterday against content hash 884e47dd265e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

upgrade-project scanned grade C with 1 finding 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 yesterday.

The scan reads SKILL.md. This mod also ships 1 executable file (marker.mjs), 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

6. **Finalize the stage.** When every entry's status is `RECONCILED`, delete the stage directory (`rm -rf .claude/state/upgrade/<ts>/`). Report per-file status to the user.
.claude/skills/upgrade-project/SKILL.md · 159 lines

How it starts

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

/upgrade-project — semantic-merge reconciliation for baseline files

You are reconciling files that create-baseline upgrade decided required semantic merge rather than mechanical merge. The CLI has already detected per-file customization, classified each file as tier 3 (SEMANTIC) at build time, and staged the three states (BASE / INCOMING / LOCAL) for you to reason about in main context. This skill is the only sanctioned way to drive that staged state to RECONCILED.

This skill is maintenance work, not a workflow phase. It is invoked reactively whenever the upgrade CLI prints the "run /upgrade-project to reconcile" pointer. It does not appear in .claude/state/workflow.json, does not require /triage, and does not trigger consent gates.

When to use

  • The user just ran npx @friedbotstudio/create-baseline upgrade <target> and the CLI exited 5 with a "Pending semantic-merge stage at " message.
  • The user types /upgrade-project or asks "reconcile the staged files".
  • A previous /upgrade-project invocation hit a NEEDS_USER_INPUT fallback, the user provided direction, and you re-invoke to pick up where you left off.

Inputs (read from disk)

For each stage directory under .claude/state/upgrade/:

  • manifest.json — the stage manifest the CLI wrote. Schema:
    {
      "stage_version": 1,
      "slug": "upgrade-flow-rework",
      "created_at": "2026-05-20T14:49:00.000Z",
      "baseline_version_from": "0.4.0",
      "baseline_version_to": "0.5.0",
      "files": [
        {
          "rel": "docs/init/seed.md",
          "base_sha256": "<hex>" | null,
          "incoming_sha256": "<hex>",
          "local_sha256": "<hex>",
          "status": "PENDING"
        }
      ]
    }
    
    base_sha256 is the per-entry classification discriminator: a 64-hex string means the CLI staged a recoverable BASE (three-way reconciliation); the JSON value null means BASE was unrecoverable when the user picked Merge on the tier-1 prompt (two-way reconciliation). See tier1-merge-option spec §Design pick 1A.
  • For each entry, the staged artifacts are:
    • <rel>.baseline-incoming — the INCOMING content. Always present.
    • <rel>.baseline-base — the BASE content. Present iff base_sha256 is a string; absent for BASE-less entries.
    • The LOCAL file remains at its real path inside the target tree (untouched by the CLI).

Read the full file on GitHub · 159 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. yesterday First seen · 159 lines · 122 tokens per session scan C 884e47dd265e

Subscribe to this mod's changes

upgrade-project is a skill published in the GitHub repository friedbotstudio/baseline (14 stars, last pushed yesterday), licensed Apache-2.0. It adds 122 tokens to every session and 3,259 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

dispatching-parallel-agents

The parallel fan-out primitive. Routed to by any skill or command that splits work across independent units and dispatches an agent per unit — subagent-driven-development, /sprint, parallel /review. It owns the dispatch/collect/funnel discipline: bound concurrency, isolate units, collect every result, dedupe overlap…

arbiterForge/codeArbiter · 113 tokens

finishing-a-development-branch

The terminal step of /feature and /sprint. Routed to once commit-gate has cleared, to decide the branch's fate — merge via PR, open a PR, or discard. Direct merge to the default branch is forbidden; every change lands through a PR. Under /sprint the skill auto-selects "open PR" and surfaces the merge decision to the…

arbiterForge/codeArbiter · 83 tokens

ca-chore

Sanctioned lane for non-behavioral work — docs-only edits, dependency bumps, reverts. Type-scaled gates; no TDD demanded of prose.

arbiterForge/codeArbiter · 38 tokens

ca-metrics

Read-only 3-metric governance glance — override rate, small-lane rate, sprint low-confidence ratio — each with a trend arrow vs. the prior 20-commit window.

arbiterForge/codeArbiter · 41 tokens

ca-task

The sanctioned task-board mutator — add a queued task, start one (flips to in-progress and stamps the date, minting a dotted ID on pick-up), or mark an in-progress task done. The only blessed write to open-tasks.md.

arbiterForge/codeArbiter · 55 tokens

ca-audit

Assemble the governance record for a range — commits, overrides, ADRs, sprint auto-decisions, open questions, checkpoint findings — into one dated audit packet. Read-only.

arbiterForge/codeArbiter · 40 tokens