Look up the latest version of any package using deps.dev API. Use this skill when checking package versions, updating dependencies, adding new packages to a project, or when the user asks about the current version of a library.
View on GitHubSelect agents to install to:
npx add-skill https://github.com/trancong12102/ccc/blob/main/core/skills/deps-dev/SKILL.md -a claude-code --skill deps-devInstallation paths:
.claude/skills/deps-dev/# Latest Package Version Lookup
Query the deps.dev API to get the latest stable version of open source packages.
## API Quick Reference
| Endpoint | Purpose |
| -------- | ------- |
| `GET /v3/systems/{system}/packages/{name}` | Get package info with all versions |
| `GET /v3/systems/{system}/packages/{name}/versions/{version}` | Get specific version details |
## Supported Ecosystems
| Ecosystem | System ID | Example Package |
| --------- | --------- | --------------- |
| npm | `NPM` | `express`, `@types/node` |
| PyPI | `PYPI` | `requests`, `django` |
| Go | `GO` | `github.com/gin-gonic/gin` |
| Cargo | `CARGO` | `serde`, `tokio` |
| Maven | `MAVEN` | `org.apache.logging.log4j:log4j-core` |
| NuGet | `NUGET` | `Newtonsoft.Json` |
| RubyGems | `RUBYGEMS` | `rails`, `rake` |
## Usage
### Get Package Info (includes all versions)
```bash
# npm package
curl -s "https://api.deps.dev/v3/systems/NPM/packages/express"
# Scoped npm package (URL-encode @ and /)
curl -s "https://api.deps.dev/v3/systems/NPM/packages/%40types%2Fnode"
# PyPI package
curl -s "https://api.deps.dev/v3/systems/PYPI/packages/requests"
# Go module (URL-encode /)
curl -s "https://api.deps.dev/v3/systems/GO/packages/github.com%2Fgin-gonic%2Fgin"
# Cargo crate
curl -s "https://api.deps.dev/v3/systems/CARGO/packages/serde"
# Maven artifact (use : separator, URL-encode)
curl -s "https://api.deps.dev/v3/systems/MAVEN/packages/org.springframework%3Aspring-core"
```
### Get Specific Version Details
```bash
curl -s "https://api.deps.dev/v3/systems/NPM/packages/express/versions/5.0.0"
```
## Workflow
Think step-by-step:
1. **Identify the ecosystem** from context:
- `package.json` or `node_modules` → NPM
- `requirements.txt`, `pyproject.toml`, `setup.py` → PYPI
- `go.mod`, `go.sum` → GO
- `Cargo.toml` → CARGO
- `pom.xml`, `build.gradle` → MAVEN
- `*.csproj`, `packages.config` → NUGET
- `Gemfile` → RUBYGEMS
- If unclear, ask the user
2. **Query the API** with curl (URL-en