Credentials. Your provider API key lives in a local .env file, so restrict it with chmod 600 and keep it out of shell history and version control.
Remote script. If you use the curl-piped installer, review the script first, since it downloads and runs code on your machine.
Who it is forA developer using Claude Code on a large skill library who keeps losing time picking which procedure fits the current request.
The problemA big skill library makes choosing a procedure a task of its own, and a plausible but unsuitable skill can waste context and steer the agent wrong.
The outcomeClaude Code hooks request a recommendation for the current session, and failed hook calls fall back quietly without blocking the agent.
What you need first
- Linux or macOS with a local filesystem that supports Unix permissions
- Your own credential for a Jev-compatible provider, such as TypeSafe_API_KEY for TypeSafe.ai or Cloudflare account settings
- Rust toolchain for a source build, or the installer's prerequisites: Bash, Python 3, curl, and sha256sum or shasum
- Explicit consent to send selected session context over the network for live ranking
Steps
- Install
srfrom your checkout withcargo install --locked --path . --bin sr, or use the installer described in the README. - Create a
.envfile from the example, runchmod 600 .env, add your own TypeSafe API key, and export the values withset -a,. ./.env, andset +a. - Preview the Claude hook settings change with
sr install-hook claude. - Apply the hook change with
sr install-hook claude --apply. - Check a live ranking for the selected session with
sr rank --allow-network.
Prompt for your agent
Using the Dicklesworthstone/skillranker repo, preview the Claude Code hook change with `sr install-hook claude` for the project at <project path>, then apply it only after I confirm. Expected output: the proposed settings diff, then a confirmation that the hook was applied. Verify that `sr doctor --json` reports the hook as configured and that my TYPESAFE_API_KEY is set without printing its value.
Caveat. Fresh rankings need your own provider credential and network consent, and the README says the recommendation is advisory, so the agent still decides what to consult.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for Dicklesworthstone/skillranker and "Suggest the right agent skill for each Claude Code step"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer