shapa-upgrade

shapa-upgrade is a skill for Claude Code, Codex from Roukh/shapa-llm. It costs 67 tokens per session (1,543 once invoked), scanned A, original, MIT.

A tool that updates shapa wiki pages to the format expected by the installed version of shapa. It is used when an upgrade check finds wikis written in an older format.

In plain words
What is it for?
Use it after installing or upgrading shapa, or when its checks report outdated wikis.
Why use it?
It prevents wiki pages from falling behind changes in the tool's supported format.

Skill for Claude CodeCodex

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

Good fit Use it after installing or upgrading shapa, or when its checks report outdated wikis.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/roukh/shapa-llm/shapa-upgrade
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 Roukh/shapa-llm --skill shapa-upgrade
Clone the repo
git clone --depth 1 https://github.com/Roukh/shapa-llm

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/roukh/shapa-llm/shapa-upgrade"><img src="https://agentmods.dev/badge/skills/roukh/shapa-llm/shapa-upgrade.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,543 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.00067 $0.01543
Opus 5.5 $0.00027 $0.00617
Sonnet 5.5 $0.00013 $0.00309
Haiku 4.5 $0.00007 $0.00154

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

Security

Grade A, and why

shapa-upgrade 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 1mo 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.

shapa/assets/skills/shapa-upgrade/SKILL.md · 111 lines

How it starts

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

shapa-upgrade

Every shapa update can change what a conformant wiki looks like. shapa upgrade applies the mechanical part itself and hands back a per-wiki work list of judgment items. This skill dispatches one agent per behind wiki to finish that list, then proves everything is current.

1. Find the wikis that are behind

shapa upgrade --all --check --json

Read behind (paths) and, per wiki in wikis, mechanical (pending migrations - format 3 adds gitattributes and memory, the session-note conversion), counters (per note, the legacy uses:/last_used: frontmatter lines the upgrade deletes) and work (judgment items: code, message, files - format 3 adds MEMLOG: malformed memory-log lines that need hand repair). steps says what each mechanical migration changes. Nothing behind means you are done.

Format 4 adds a restructure pass per wiki. When session context opens with <shapa-action>, dispatch one dedicated agent per named wiki whose whole prompt is the output of shapa upgrade --reconfigure-prompt <wiki>; it does the mechanical upgrade itself and ends with --mark-reconfigured.

Format 4 adds the database step: memory/rule/issue notes become rows in shapa.db (the note id kept as the row's alias), checklist.md sections become features with their open items as jobs, open ideas.md entries and operator-sourced memory-log records become memories, and agenda.md, ideas.md, checklist.md and memory/ are removed. Reference notes, arch/ and research/ stay files. After it, shapa row list and shapa ledger show what moved; commit shapa.db on the default branch with the upgrade.

2. Dispatch one agent per behind wiki

Run them in parallel, one per wiki path. Use a subagent when this session may write to that wiki's repo. When the harness write guard is scoped to the session's cwd, start a headless session inside that repo instead:

cd <repo containing the wiki> && claude -p "<the brief below, with the wiki path>"

Read the full file on GitHub · 111 lines

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. 1mo ago Changed · +14 lines 26726e08b67d
  2. 1mo ago First seen · 97 lines · 67 tokens per session scan A de35bb359d62

Subscribe to this mod's changes

shapa-upgrade is a skill published in the GitHub repository Roukh/shapa-llm (2 stars, last pushed 8d ago), licensed MIT. It adds 67 tokens to every session and 1,543 once invoked, about $0.0003 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.

Related

shapa-upgrade compared with skills from other repositories

shapa-upgrade next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
shapa-upgradeRoukh/shapa-llmSkill28d agoMITA67Claude Code, Codex
mnemonmnemon-dev/mnemonSkill7527d agoApache-2.0A25Claude Code, Codex
mnemonmnemon-dev/mnemonSkill7527d agoApache-2.0A29Claude Code, Codex
mnemonmnemon-dev/mnemonSkill7527d agoApache-2.0A25Claude Code, Codex
mnemonmnemon-dev/mnemonSkill7527d agoApache-2.0A25Claude Code, Codex
mnemonmnemon-dev/mnemonSkill7527d agoApache-2.0A30Claude Code, Codex
mnemonmnemon-dev/mnemonSkill7527d agoApache-2.0A68Claude Code, Codex