Agent skill

Install Anserini Dev Env

by castorini in castorini/anserini

Set up and verify Anserini source-development environments. An agent skill from castorini/anserini.

Apache-2.0Auto-check passedTesting & QA

Install Install Anserini Dev Env

skills CLI
$ npx skills add castorini/anserini --skill install-anserini-dev-env -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install castorini/anserini install-anserini-dev-env --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/castorini/anserini.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/install-anserini-dev-env .claude/skills/install-anserini-dev-env && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
install-anserini-dev-env
GitHub stars
1.2k
Token cost
~1.1k tokens
SKILL.md length
504 words
Files
2
Skills in repo
4
Repo updated
First seen
Licence
Apache-2.0

At a glance

Set up and verify Anserini source-development environments. An agent skill from castorini/anserini.

  • Works in 4 steps: Verify requirements first → If Java is missing or not exactly 21,… → If Maven is missing or older than 3.9,… → …
  • Anserini build scripts
  • SKILL.md covers Overview, Workflow, Verification and Troubleshooting
  • Calls git, mvn and java

What it does

Install Anserini Dev Env is an agent skill from castorini/anserini. Set up and verify Anserini source-development environments. Use for JDK 21, Maven 3.9+, Anserini build scripts, smoke tests, and Java/Maven troubleshooting in castorini/anserini.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

It sits in Testing & QA, covering QA and bug reports. It works with Java. The repository describes itself as: Anserini is a Lucene toolkit for reproducible information retrieval research. The licence is Apache-2.0.

When your agent uses it

  • Anserini build scripts
  • Java/Maven troubleshooting in castorini/anserini

Example prompts

  • “/install-anserini-dev-env”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Verify requirements first
  2. If Java is missing or not exactly 21, select or install JDK 21 with the
  3. If Maven is missing or older than 3.9, update Maven using the host's package
  4. Clone the repository

What it can do on your machine

Read from SKILL.md and the folder at commit 1841646. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • mvn
    • java

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Install Anserini Dev Env loads about 1.1k tokens when it runs. Until then it costs about 51 tokens; SKILL.md has 504 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~51
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from castorini/anserini at commit 1841646, republished under its Apache-2.0 licence (© castorini). 504 words, ~1,132 tokens.

Download SKILL.mdSave it as .claude/skills/install-anserini-dev-env/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
install-anserini-dev-env
description
Set up and verify Anserini source-development environments. Use for JDK 21, Maven 3.9+, Anserini build scripts, smoke tests, and Java/Maven troubleshooting in castorini/anserini.
metadata.version
v0.2.1

Install Anserini Dev Env

Overview

Use this skill to prepare Anserini for source development, not just fatjar execution. Prefer normal Java tooling over Python-style virtual environments: pin/select JDK 21, use Maven 3.9+, then build with Anserini's scripts or Maven.

Do not assume a released fatjar is sufficient for source-development requests; use the checkout when local code, tests, or snapshots matter.

Workflow

  1. Verify requirements first:
    • Require java to report major version 21.
    • Require mvn to report version 3.9 or newer.
    • Check for git.
bash
java -version
mvn -v
git --version
  1. If Java is missing or not exactly 21, select or install JDK 21 with the user's existing version manager when possible:
    • Prefer mise, sdkman, asdf, or jenv if already present.
    • On macOS, Homebrew Temurin/OpenJDK 21 is acceptable when no Java version manager is in use.
    • Do not create a Python virtual environment for Java development.
  2. If Maven is missing or older than 3.9, update Maven using the host's package manager or version manager. Anserini does not currently rely on a checked-in Maven wrapper.
  3. Clone the repository:
bash
git clone https://github.com/castorini/anserini.git

If the user has already provided an empty destination directory and wants the checkout there, clone into the current directory:

bash
git clone https://github.com/castorini/anserini.git .
  1. Build from the repository root. Prefer Anserini's checked-in build scripts when present:
bash
bin/qbuild.sh

Use bin/qbuild.sh for a quick build; it skips tests and Javadocs.

After a successful quick build, expect the shaded artifact at target/anserini-*-fatjar.jar.

bash
bin/build.sh

Use bin/build.sh for a full build; it runs all tests and can take a while. While it runs, provide periodic progress updates. Track completed Surefire tests from Maven output or target/surefire-reports when possible, and report the final aggregate Tests run: N count when the build finishes.

If a script is unavailable or the user explicitly asks for Maven, use:

bash
mvn clean package
Show full SKILL.md (218 more words)Show less

Verification

After setup, re-run the explicit requirement checks. Then run the lightest verification that matches the user's goal: bin/qbuild.sh for a build-ready checkout, bin/build.sh for full validation, or targeted Maven tests for a code change. If dependency downloads fail because network access is sandboxed, rerun the build command with escalation instead of changing project files.

If a build was run, a concise final sanity check is:

bash
git status --short --branch --ignored
ls -lh target/*fatjar.jar

For a functional smoke test after a successful build, run the CACM prebuilt-index reproduction command:

bash
bin/run.sh io.anserini.search.SearchCollection \
  -index cacm \
  -topics cacm \
  -output run.cacm.bm25.txt \
  -hits 1000 \
  -bm25

Treat a successful run and generated run.cacm.bm25.txt file as proof that the checkout can execute Anserini search end to end. This command may download the small CACM prebuilt index and topics on first use, so skip it when the user only wants a local build check.

Then evaluate the run with Anserini's Java trec_eval wrapper:

bash
bin/run.sh io.anserini.eval.TrecEval \
  -c \
  -m map \
  -m P.30 \
  cacm \
  run.cacm.bm25.txt

Expected scores are:

text
map     all     0.3123
P_30    all     0.1942

To verify them mechanically:

bash
bin/run.sh io.anserini.eval.TrecEval \
  -c \
  -m map \
  -m P.30 \
  cacm \
  run.cacm.bm25.txt | tee eval.cacm.bm25.txt

grep -q $'map\tall\t0.3123' eval.cacm.bm25.txt
grep -q $'P_30\tall\t0.1942' eval.cacm.bm25.txt

For CLI examples after setup, use $anserini-cli.

Troubleshooting

  • If java -version and mvn -v disagree about Java versions, fix JAVA_HOME and PATH so Maven uses JDK 21.
  • On Windows, use WSL2 for Anserini builds.
  • Avoid commands that trigger large prebuilt index downloads unless the user explicitly asks for retrieval experiments; Anserini can download large indexes on demand.
  • Treat Anserini's current README as the source of truth for version requirements if it differs from this skill.

© castorini, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in .agents/skills/install-anserini-dev-env of castorini/anserini.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit 1841646

Compare with similar skills

Install Anserini Dev Env next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Install Anserini Dev Env compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Install Anserini Dev Env this skillcastorini/anserini1.2k—~1.1kAutomated safety check: PassApache-2.0
Spring Data Testingarangodb/spring-data116—~844Automated safety check: PassApache-2.0
Dev Workflowiflytek/skillhub5.2k—~1.7kAutomated safety check: NotesApache-2.0
Testing And CIiflytek/skillhub5.2k—~1.1kAutomated safety check: PassApache-2.0
Detecting Command Injection Patternsjeremylongshore/tons-of-skills-marketplace2.8k—~1.3kAutomated safety check: PassMIT
Detecting Eval Exec Usagejeremylongshore/tons-of-skills-marketplace2.8k—~1.1kAutomated safety check: PassMIT

Similar skills

  • Spring Data Testing

    arangodb/spring-data

    Write and run tests for arangodb/spring-data, select regression coverage, and reproduce CircleCI failures.

    116 GitHub stars~844 tokensUpdated 10 days ago
    Testing & QAAuto-check passed
  • Dev Workflow

    iflytek/skillhub

    The complete development workflow for SkillHub contributors including local dev, staging validation, testing, and PR creation.

    5.2k GitHub stars~1.7k tokensUpdated today
    Testing & QAAuto-check: notes
  • Testing And CI

    iflytek/skillhub

    Testing conventions, CI pipeline rules, and smoke test coverage for SkillHub.

    5.2k GitHub stars~1.1k tokensUpdated today
    Testing & QAAuto-check passed
  • Detecting Command Injection Patterns

    jeremylongshore/tons-of-skills-marketplace

    Scan a source tree for command-injection vulnerable patterns: shell=True calls in Python subprocess, os.system / os.popen with interpolated strings, Node childprocess.exec with template literals…

    2.8k GitHub stars~1.3k tokensUpdated today
    Testing & QAAuto-check passed
  • Detecting Eval Exec Usage

    jeremylongshore/tons-of-skills-marketplace

    Scan a source tree for dynamic-code-execution APIs that an attacker can hijack: Python eval / exec / compile, JavaScript eval / Function() / setTimeout(string), Ruby eval / instanceeval / classeval…

    2.8k GitHub stars~1.1k tokensUpdated today
    Testing & QAAuto-check passed
  • Plays an authorized Game Boy or Game Boy Color ROM in one persistent headless Coffee GB session, inspecting frames and keeping an action trace for replay or tests.

    1.2k GitHub stars~1.3k tokensUpdated 8 days ago
    Game DevelopmentAuto-check passed

More from castorini/anserini

  • Anserini CLI

    castorini/anserini

    Run Anserini command-line and REST workflows from either a built fatjar or an Anserini source checkout.

    1.2k GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Anserini Reproduction

    castorini/anserini

    Reproduce experimental results with Anserini. An agent skill from castorini/anserini.

    1.2k GitHub stars~1.8k tokensUpdated today
    Auto-check passed
  • Install Anserini Fatjar

    castorini/anserini

    Install and verify Anserini quickly by downloading the published fatjar from Maven Central instead of cloning or building the source repository.

    1.2k GitHub stars~1.3k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Install Anserini Dev Env

What does Install Anserini Dev Env do?

Set up and verify Anserini source-development environments. An agent skill from castorini/anserini. Install Anserini Dev Env is an agent skill from castorini/anserini. Set up and verify Anserini source-development environments.

When should I use Install Anserini Dev Env?

Install Anserini Dev Env fits situations like: anserini build scripts; java/Maven troubleshooting in castorini/anserini.

How do I install Install Anserini Dev Env in Claude Code?

Run `npx skills add castorini/anserini --skill install-anserini-dev-env -a claude-code`. Or copy the skill folder (.agents/skills/install-anserini-dev-env in castorini/anserini) into .claude/skills/install-anserini-dev-env in your project. Claude Code loads it when a task matches its description.

How do I install Install Anserini Dev Env in Codex?

Run `npx skills add castorini/anserini --skill install-anserini-dev-env -a codex`. Or copy the skill folder (.agents/skills/install-anserini-dev-env in castorini/anserini) into .agents/skills/install-anserini-dev-env in your project. Codex loads it when a task matches its description.

Can I use Install Anserini Dev Env in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add castorini/anserini --skill install-anserini-dev-env -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/install-anserini-dev-env, .gemini/skills/install-anserini-dev-env, .github/skills/install-anserini-dev-env and .opencode/skills/install-anserini-dev-env in your project.

What does Install Anserini Dev Env need to run?

Going by SKILL.md and its folder, Install Anserini Dev Env needs the command-line tools its instructions call (git, mvn and java). Our summary lists: Python 3.

Does Install Anserini Dev Env access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Install Anserini Dev Env safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Install Anserini Dev Env use?

Install Anserini Dev Env is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Install Anserini Dev Env use?

About 1.1k tokens (SKILL.md is roughly 4.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Install Anserini Dev Env?

Skills that share tags, products or a category with Install Anserini Dev Env: Spring Data Testing (arangodb/spring-data, 116 stars), Dev Workflow (iflytek/skillhub, 5.2k stars), Testing And CI (iflytek/skillhub, 5.2k stars) and Detecting Command Injection Patterns (jeremylongshore/tons-of-skills-marketplace, 2.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Install Anserini Dev Env?

castorini (a GitHub organization) maintains it in castorini/anserini, which has 1,197 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 9, 2026.

Source: castorini/anserini on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.