upgrade-examples

upgrade-examples is a skill for Claude Code, Codex from cocoindex-io/cocoindex. It costs 42 tokens per session (482 once invoked), scanned A, original, Apache-2.0.

A reusable skill for upgrading the CocoIndex package version in example Python projects. It updates matching version requirements in example `pyproject.toml` files and describes the related branch, verification, commit, push, and pull-request steps.

In plain words
What is it for?
Use it when changing the CocoIndex version across all example projects. It is intended for branch creation, bulk version replacement, verification, committing, pushing, and opening a pull request.
Why use it?
It avoids manually editing many dependency files and provides a repeatable upgrade procedure. It also includes checks for confirming that the intended version was applied.

Skill for Claude CodeCodex

About the project

CocoIndex is an incremental data-processing engine that keeps code, documents, messages, PDFs, and videos continuously updated as context for AI agents and language-model applications. Engineers use it to build declarative Python pipelines that process only changed data, and its catalogue skills help coding agents work with CocoIndex correctly.

cocoindex-io/cocoindex · 11,466 stars · on GitHub

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

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-examples

README.md
[![agentmods](https://agentmods.dev/badge/skills/cocoindex-io/cocoindex/upgrade-examples.svg)](https://agentmods.dev/skills/cocoindex-io/cocoindex/upgrade-examples)
Your own site
<a href="https://agentmods.dev/skills/cocoindex-io/cocoindex/upgrade-examples"><img src="https://agentmods.dev/badge/skills/cocoindex-io/cocoindex/upgrade-examples.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 482 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.00042 $0.00482
Opus 5 $0.00021 $0.00241
Sonnet 5 $0.00008 $0.00096
Haiku 4.5 $0.00004 $0.00048

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

Security

Grade A, and why

upgrade-examples 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 5d 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.

dev/agent-skills/upgrade-examples/SKILL.md · 64 lines

What it actually says

Upgrade Example Dependencies

Upgrade the cocoindex version in all example pyproject.toml files.

Usage

/upgrade-examples <version>

Example: /upgrade-examples 1.0.0a5

Instructions

To upgrade all example dependencies (replace VERSION with the actual version, e.g., 1.0.0a10):

  1. Create a new branch for the changes:
git checkout -b ex-dep-VERSION
  1. Run the following command to update all example pyproject.toml files.

Important: Use the literal version string directly in the sed command. Do not use shell variables as quoting issues can cause the version to be omitted.

find examples -name "pyproject.toml" -not -path "*/.venv/*" -exec grep -l "cocoindex" {} \; | xargs sed -i '' 's/cocoindex\([^>]*\)>=[0-9][0-9a-zA-Z.]*/cocoindex\1>=VERSION/g'
  1. Verify the changes show the correct version:
grep -r "cocoindex.*>=" examples --include="pyproject.toml" | grep -v ".venv"
  1. Commit and push the changes:
git add examples/*/pyproject.toml
git commit -m "chore: upgrade examples deps to cocoindex-VERSION"
git push -u origin ex-dep-VERSION
  1. Create a PR using the gh CLI and capture the PR URL from its output:
gh pr create --base v1 --title "chore: upgrade examples deps to cocoindex-VERSION" --body ""
  1. Switch back to the previous branch and delete the local branch:
git checkout v1
git branch -d ex-dep-VERSION
  1. Report the number of files updated and provide the PR link from the gh pr create output to the user.
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. 5d ago First seen · 64 lines · 42 tokens per session scan A fe57651cfdfd

Subscribe to this mod's changes

upgrade-examples is a skill published in the GitHub repository cocoindex-io/cocoindex (11,466 stars, last pushed today), licensed Apache-2.0. It adds 42 tokens to every session and 482 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

derivation-python

Write Estuary derivations in Python — async-generator transforms, Pydantic-typed source/output, optional persistent state, and dependency installation via uv. Use for ML/embeddings, async API calls, or any transform where SQL and TypeScript are awkward. Derivations add complexity and cost (and Python derivations…

estuary/agent-skills · 149 tokens

Python скрипт для очистки CSV и подготовки к импорту в PostgreSQL

Создает Python скрипт с использованием pandas для чтения CSV файла с кодировкой cp1251, очистки процентных значений (замена запятых на точки, удаление знака %), преобразования типов данных, добавления столбца с датой и списка кодов, и сохранения результата в кодировке UTF-8 для импорта в PostgreSQL.

ECNU-ICALK/AutoSkill · 96 tokens

Importazione XML in MS Access con mappatura dinamica dei tipi

Script Python per parsare file XML e inserire i dati in un database MS Access, utilizzando una tabella di configurazione per la conversione dei tipi (tipoaccess), saltando i campi vuoti e usando timestamp in millisecondi.

ECNU-ICALK/AutoSkill · 67 tokens

pandas

Expert data analysis and manipulation for customer support operations using pandas.

manutej/luxor-claude-marketplace · 14 tokens

accelerated-computing-cudf

Official NVIDIA-authored guidance for NVIDIA cuDF GPU DataFrames, pandas acceleration, dask-cuDF, ETL, joins, groupby, CSV/Parquet I/O, nullable semantics, and multi-GPU DataFrame workloads.

PracticalSwan/agent-skills · 56 tokens

matlab

Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

K-Dense-AI/scientific-agent-skills · 42 tokens