Context upgrade
Lightweight durable context for AI coding agents: 4 files, 9 rules, companion skills, and scripts that let agents self-iterate inside your workflow.
npx -y skills add lifan-builds/context-harness --skill context-upgradeAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Plan, implement, validate, and deploy context-harness source upgrades, local fleet refreshes, installed skill deployments, or explicit current-v3 layout repairs. Use when the user asks to upgrade context-harness itself, repair stale or partial context files, package lessons from an upgrade, or verify deployment targets.
SKILL.md
5.5 KB, ~1.1k tokens by cl100k_base, as published. Nobody here has run it
Context Upgrade
Upgrade and layout-repair work is a controlled operator workflow. It must be invoked explicitly by the user when context-harness itself has an update, a local fleet refresh is requested, installed copies need validation, or a current-v3 layout needs repair. Do not invoke implicitly just because a repo contains context-harness files.
Prefer model-led edits, explicit verification, and conservative deployment over broad rewrites.
Start
- Read the target repo's
NOW.md, then relevantCONTEXT.mdsections, especially## Operating Constraints,## Workflow,## Relationships, and## Learned Patterns. - Read
PLAN.mdwhen it contains migration findings, decisions, skipped repos, or previous verification output. - Identify the upgrade scope:
- canonical source repo only
- one target project
- local project fleet refresh
- installed skill deployment targets
- current-v3 layout repair
- Inspect the current worktree before edits. Treat unrelated changes as user work and do not revert them.
Upgrade Principles
- Keep
AGENTS.mdsmall: activation contract plus generatedCONTEXT.mdindex. Do not duplicate durable context there. - Preserve project-specific context. Replace only stale harness boilerplate, schema markers, generated index blocks, and runtime scripts that are meant to be managed.
- Prefer model-led edits over blanket migration scripts when local conventions may matter. Use scripts for detection, dry runs, refreshes, and repeatable mechanical changes.
- Include dirty target repos in fleet refreshes, but classify candidate paths, preserve unrelated work byte-for-byte, and record conflicts instead of forcing overwrites. Never reset, restore, clean, stash, commit, or push user work.
- Keep the preferred skill set small. Add or split a skill only when the invocation intent is genuinely different from existing skills.
- Modify canonical skill source in this repository. Treat installed copies and symlinked deployments as outputs unless the user explicitly asks for a local override.
- Route task-local findings and decisions to
PLAN.md; durable upgrade lessons toCONTEXT.md; closeout state toNOW.md.
Source Upgrade
When changing context-harness itself:
- Define the user-visible behavior and compatibility target before editing.
- Update the canonical skill files, templates, scripts, README text, and tests that directly support the behavior.
- Keep the supported layout current-v3 only unless the user explicitly chooses a new schema.
- If
CONTEXT.mdchanged, run:
node scripts/context-index.js update
- Verify source changes with:
tests/run-all.sh
node scripts/context-index.js check
Project Layout Repair
Use this only when the user explicitly asks to repair or refresh an existing
context-harness project. context-init is only for repositories with no
context-harness layout.
For a single repo or fleet refresh:
- Inspect the current files and
git statusfirst. Treat unrelated changes as user work. - Preserve project-specific context. Replace only stale harness boilerplate, schema markers, generated index blocks, and runtime scripts that are meant to be managed.
- For partial or custom contexts, make model-led edits instead of forcing a generated layout.
- Refresh generated indexes and local runtime scripts when the repair requires it.
- Re-run
node scripts/context-index.js checkin representative targets.
Fleet Refresh Guardrails
For local fleet refreshes, inspect every target's status and include dirty repos
under managed-file boundaries. Capture pre/post state, preserve unrelated dirty
paths, and record managed local conflicts rather than overwriting them. Refresh
only managed harness boilerplate/runtime, generated indexes, and unambiguous
schema markers. Run node scripts/context-index.js update and
node scripts/context-index.js check in each updated target, keep a
machine-readable release ledger of changed/unchanged/failed targets, and do not
let fleet work replace a target project's product task.
Deployment
After canonical source changes that should affect local harnesses:
- Deploy through the user's normal deployment layer. In this repo, local deployment is usually via agent-nexus:
nexus sync --yes
nexus doctor
- Verify representative installed copies or symlinks when frontmatter, invocability, hook behavior, or skill routing changed.
- Tell the user when IDEs or agent hosts need restarting to pick up new frontmatter or skill metadata.
Closeout
Before finishing:
- Summarize source files changed, target projects repaired/refreshed, skipped repos, and any deployment targets updated.
- Record remaining fleet cleanup or unsupported targets in
PLAN.md. - Promote only durable lessons to
CONTEXT.md. - Update
NOW.mdwith current focus, blockers, next step, timestamp, and touched files. - If the update made future catch-up materially easier through consolidation,
use
context-maintainDream/Compact rules and log only actual edits.
Never store raw transcripts, secrets, raw API/web output, or bulky migration logs in context files.
What ships with it: 1 file
282 B alongside SKILL.md
agents/
- openai.yaml282 B
Gives 0 of the 12 instructions most ship operate skills give in ~1.1k tokens
Counted across 779 of the 1,178 authors here whose files we hold, read 2026-08-07
- Document a rollback plan before deploymentin 41 of 779, across 22 files
- Update the changelogin 21 of 779, across 19 files
- Run the test suitein 20 of 779
- Create an annotated git tagin 20 of 779
- Clean up feature flags after full rolloutin 18 of 779, across 10 files
- Verify deployment health after launchin 18 of 779, across 10 files
- Test both feature flag statesin 17 of 779, across 9 files
- Verify the working tree is cleanin 17 of 779
- Make database migrations backward-compatiblein 16 of 779, across 8 files
- Set up error monitoring before launchin 15 of 779, across 7 files
- Monitor metrics at each rollout stagein 14 of 779, across 5 files
- Create a GitHub releasein 14 of 779
Said here and by no other author read
- preserve project-specific context during edits
- prefer model-led edits over blanket migration scripts
- modify canonical skill source for updates
- update generated indexes if context files changed
- check representative targets after repairs
- keep a machine-readable release ledger for fleet refreshes
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.