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.
npx agentmods add rules/jasonchen0604/codebase-to-portfolio/get-latest-versiongit clone --depth 1 https://github.com/jasonChen0604/codebase-to-portfolioWrote 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.
[](https://agentmods.dev/rules/jasonchen0604/codebase-to-portfolio/get-latest-version)<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>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.
| Model | Per session | Once 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 |
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.
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
noneand 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-
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.
- 3d ago First seen · 50 lines · 53 tokens per session scan A ba49b4e57ee3
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.
Other cursor rules, from other repositories
the-loop
If .the-loop/config.yaml exists in this repository, the-loop is initialized here. Operating rules: plan → execute → self/critic-review → escalate. Read .the-loop/config.yaml and follow the the-loop skill before working any ticket. If the file does not exist, the-loop is not initialized — ignore this rule (or run…
cursor
You are working on the checkout service. Preserve transaction integrity and auditability.
frontend-architecture
Vite + React SPA architecture - directory layout, providers, bundle splitting. Tailwind styling in tailwind.mdc.
lean
Answer densely. Cut filler, keep all technical signal.
orchestrator-main
Rules for the main orchestrator agent in multi-agent workflows.
react_hooks
React Hooks best practices for frontend package.