get-latest-version

get-latest-version is a cursor rule for coding agents from jasonChen0604/codebase-to-portfolio. It costs 53 tokens per session (449 once invoked), scanned A, original, MIT.

A small helper that reads the Version column in a Markdown project list and finds the highest version number. It is designed for other skills to call, not for direct use.

In plain words
What is it for?
Use it when another automated task needs the current project-document version or needs to know that no version is available.
Why use it?
It removes the need to manually check which project-document version is newest.

Cursor rule

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 rules/jasonchen0604/codebase-to-portfolio/get-latest-version
Clone the repo
git clone --depth 1 https://github.com/jasonChen0604/codebase-to-portfolio

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 get-latest-version

README.md
[![agentmods](https://agentmods.dev/badge/rules/jasonchen0604/codebase-to-portfolio/get-latest-version.svg)](https://agentmods.dev/rules/jasonchen0604/codebase-to-portfolio/get-latest-version)
Your own site
<a href="https://agentmods.dev/rules/jasonchen0604/codebase-to-portfolio/get-latest-version"><img src="https://agentmods.dev/badge/rules/jasonchen0604/codebase-to-portfolio/get-latest-version.svg" alt="Measured on agentmods" height="20"></a>
Per session 53 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 449 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.00053 $0.00449
Opus 5 $0.00026 $0.00225
Sonnet 5 $0.00011 $0.00090
Haiku 4.5 $0.00005 $0.00045

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

Security

Grade A, and why

get-latest-version 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 3d 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.

adapters/cursor/get-latest-version.mdc · 50 lines

What it actually says

Get Latest Version Skill

Goal

Read projects-list.md in the current working directory, scan all non- values in the "Version" column, and return the maximum version number.

Execution Steps

Step 1: Read projects-list.md

Use the Read tool to read projects-list.md in the current working directory.

  • If the file does not exist, output none and stop.

Step 2: Parse the "Version" column

Extract the "Version" column value from each row in the table:

  • Table is Markdown format; version is the 8th column (index 7)
  • Skip the header row (contains the word Version) and separator rows (contain ---)
  • Skip values that are (em dash), - (hyphen), or blank

Step 3: Compare to find the maximum version

Perform semantic version comparison on all collected version numbers:

  • Format is "X.Y" — compare major version (X) first, then minor version (Y), both as numbers
  • Return the maximum value as the "latest version"

Step 4: Output result

Output just the version string, e.g.:

2.0

If all version fields are , output:

none

How to call (reference for other skills)

In other skills, describe the call like this:

Run the /get-latest-version skill to get the version string for use in downstream filtering logic.

Notes

  • This skill is read-only — it does not modify any files
  • Version comparison is numeric: 2.0 > 1.9, and minor versions also compared as numbers
  • is an em dash (U+2014) — distinguish from hyphen -
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. 3d ago First seen · 50 lines · 53 tokens per session scan A ba49b4e57ee3

Subscribe to this mod's changes

get-latest-version is a cursor rule published in the GitHub repository jasonChen0604/codebase-to-portfolio (2 stars, last pushed 1mo ago), licensed MIT. It adds 53 tokens to every session and 449 once invoked, about $0.0003 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-31.