Index of every page on this site: llms.txt
All skills
cocoindex-io avatar

/upgrade-examples

@90c98f4
by CocoIndexcocoindex-io/cocoindex12k stars
931
Run it yourself

This skill should be used when upgrading the cocoindex package version in all example pyproject.toml files. It uses regex-based sed commands to efficiently update version constraints across multiple files at once.

Use this Skill: https://skilld.dev/gh/cocoindex-io/cocoindex/upgrade-examples

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈58 tokens for metadata: the name and description. ≈386 when used: this file.

Description uses 2.9% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈232 characters, or 2.9%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts6mo3 checks · Risk SAFE
  • Gen Agent Trust Hub6mo

    The skill automates the process of upgrading the 'cocoindex' package version across project files using standard development tools like git, sed, and the GitHub CLI. It is functional and consistent with its stated purpose, though it involves direct interpolation of user input into shell commands.

  • Socket6mo

    No alerts

  • Snyk6mo

    Risk: LOW · No issues

Signed by skilld at 90c98f4. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 days ago.

Activeupdated 6 months ago

README badge

README badge for cocoindex-io/cocoindex/upgrade-examples