danieldekay/ai-ops/lean-ctx-agents-upgrade
- community
Checking that the SKILL.md file is still in the repository.
Upgrade any repo's AGENTS.md (or equivalent agent instruction file) with the canonical lean-ctx block: ctx_* tool preference, explicit ctx_share push/pull usage, ctx_session value= (not content=) gotcha, signed handoff routing, and the subagent CLI/project-root caveat. Use when a repo lacks lean-ctx guidance or its AGENTS.md name-drops ctx_share/ctx_session without usage instructions.
Install
npx vskill@latest install danieldekay/ai-ops/lean-ctx-agents-upgradeSKILL.md
When to Use
Use when a repository's AGENTS.md / CLAUDE.md / instructions.md needs the lean-ctx block added or corrected: no lean-ctx section, a name-drop of ctx_share/ctx_session without usage, or a ctx_session content= bug.
Canonical Block (insert verbatim into AGENTS.md)
Adapt only the last line's canonical wiki path to the machine; leave the rest repo-agnostic.
Procedure
- Read the repo's existing AGENTS.md (and any LEAN-CTX.md / harness adapters) to find the lean-ctx section or confirm it's missing.
- Insert or replace the lean-ctx section with the Canonical Block. Keep it repo-agnostic; do not fold repo-specific rules into it.
- If a LEAN-CTX.md exists, make it a reference-only pointer to the canonical wiki skill — do not vendor rules there.
- Verify no
ctx_session(action=..., content=)remains (grep -rn 'ctx_session.*content='). - Optionally run
ctx_rules syncin the repo root, then grep again to confirm thevalue=form survived.
Pitfalls
ctx_sessionwrites usevalue=, NOTcontent=—content=is only a valid alias onctx_knowledge(action=remember).- Never run
lean-ctx knowledge consolidate(or--all) after cleaning the knowledge store — it re-imports the session diary as new facts (measured 2026-09-27: 0 facts → 7 immediately). Leave lifecycle to decay; drive bulk removals via python subprocess from the JSON export. ctx_sharemoves cache-entry refs (path+hash), not file bytes, and has no freshness guarantee — re-read changed files.- Pi subagents do NOT get
ctx_*MCP tools; they must use thelean-ctxCLI andcdinto the project root first (CLI writes bind to the daemon session root, not cwd). - Do not instruct subagents to call
ctx_share/ctx_sessionas MCP tools — give the CLI spelling. rules.tomlis lean-ctx-generated;ctx_rules syncmay regenerate it from an upstream template, so re-grep after sync.- Keep the block a pointer to the canonical wiki, not a full rule copy — avoid drift.
Verification
grep -rn 'ctx_session.*content=' <repo>returns nothing.- AGENTS.md contains the explicit
ctx_sharepush/pull example and thevalue=note. - The subagent caveat (CLI + cd project root) is present.
- The canonical wiki pointer is intact in LEAN-CTX.md.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/lean-ctx-agents-upgrade/SKILL.md
Popularity
- Repository stars
- 1
- Repository forks
- 2
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/danieldekay/ai-ops/lean-ctx-agents-upgrade)