context-upgrade

A guide for expanding an agent project’s context setup from a simpler level to a more complete one. It preserves existing instructions while adding the next layer of context, skills, or hooks when appropriate.

In plain words
What is it for?
Use it to inspect AGENTS.md files and related settings, choose an upgrade path, and transition from minimal context to fuller or layered project instructions.
Why use it?
It helps an agent keep project knowledge as the setup grows instead of losing existing guidance during reorganization.

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

Made for: Claude Code, Codex.

Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,094 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00037 $0.02094
Opus 5 $0.00018 $0.01047
Sonnet 5 $0.00007 $0.00419
Haiku 4.5 $0.00004 $0.00209

Measured 2d ago against content hash abbfd4697479, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

context-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 2d 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.

plugins/context-setup/skills/context-upgrade/SKILL.md · 171 lines

How it starts

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

DEPRECATION NOTICE: You are running context-setup from fending/context-engineering, which is no longer maintained. The active version is at ordovera/ordovera-plugins. To migrate, run:

  1. /plugin marketplace add ordovera/ordovera-plugins
  2. /plugin install context-setup@ordovera-plugins

Then remove the old marketplace: /plugin marketplace remove context-engineering

Print this notice to the user before proceeding with the skill.

Context Upgrade

Guide a transition from your current context level to the next one without losing existing content.

What This Skill Does

  1. Detect current level by reading existing context files:

    • No context files found -- equivalent to running scaffold
    • Single AGENTS.md under ~60 lines -- minimal level
    • Single AGENTS.md over ~60 lines -- full level
    • AGENTS.md + context/ directory or multiple AGENTS.md files -- cascading level
    • Check for .claude/skills/ and .claude/settings.json hooks to assess skills/hooks layers
  2. Identify the appropriate upgrade path based on current level and project signals.

  3. Execute the upgrade with the user's confirmation, preserving all existing content.

Upgrade Paths

No Context to Minimal

Equivalent to running /context-setup:context-scaffold at the minimal level. Generate AGENTS.md from project analysis with sections: project description, tech stack, commands, code standards, Do NOT. Create CLAUDE.md symlink.

Minimal to Full Single File

Read the existing AGENTS.md. Identify which full-level sections are missing. The full level adds these sections beyond minimal:

  • Project Structure -- directory layout with descriptions. Generate from filesystem scan.
  • Architecture -- application layers and data flow. Populate what's inferable from framework and directory conventions; bracket-placeholder the rest.
  • Auth and Permissions -- auth mechanism, session handling, roles. Populate from detected auth packages; bracket-placeholder specifics.
  • Data Model -- core models and relationships. Populate from schema files if present (Prisma, SQLAlchemy models, etc.); bracket-placeholder otherwise.
  • API Conventions -- URL structure, request/response format, error handling. Populate from detected route structure; bracket-placeholder conventions.

Read the full file on GitHub · 171 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. 2d ago First seen · 171 lines · 37 tokens per session scan A abbfd4697479

Subscribe to this mod's changes

context-upgrade is a skill published in the GitHub repository fending/context-engineering (11 stars, last pushed 5mo ago), licensed MIT. It adds 37 tokens to every session and 2,094 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories

ccc

This skill should be used when code search is needed (whether explicitly requested or as part of completing a task), when indexing the codebase after changes, or when the user asks about ccc, cocoindex-code, or the codebase index. Trigger phrases include 'search the codebase', 'find code related to', 'update the…

cocoindex-io/cocoindex-code · 80 tokens

feature-flags-audit

Audit and inventory all feature flags declared in the Packmind codebase. Use when the user asks to list, audit, review, or inventory feature flags, asks which flags are active, wants to know what a flag gates, or asks which flags are opened to a given domain/user. Produces a synthetic markdown table with each flag…

PackmindHub/packmind · 93 tokens

packmind-create-standard

Guide for creating coding standards via the Packmind CLI. This skill should be used when users want to create a new coding standard (or add rules to an existing standard) that captures team conventions, best practices, or coding guidelines for distribution to GitLab Duo.

PackmindHub/packmind · 57 tokens

create-run-e2e-tests

Guide for writing and running new Playwright end-to-end tests in the apps/e2e-tests/ directory of the Packmind monorepo. Use this skill whenever you add or modify a spec that drives the real frontend and API — for example testing a user flow, a new page/route, a feature behind a flag, or a UI behavior end-to-end.…

PackmindHub/packmind · 175 tokens

working-with-pm-design-kit

This skill provides guidance for using the Packmind UI component library (@packmind/ui). It should be used when building or modifying frontend UI with PM-prefixed components, working with Chakra UI in the Packmind codebase, or when questions arise about available components, theming, or layout patterns. Triggers on…

PackmindHub/packmind · 91 tokens

packmind-onboard

Complete automated onboarding: analyzes codebase, creates package, and generates standards & commands via CLI. Automatic package creation when none exist, user selection when packages are available.

PackmindHub/packmind · 38 tokens