/alexandru-skills:external-researchfrom alexandru-skills
Researches external evidence: documentation, public repos at specific refs, archives, and published dependency artifacts (JARs, POMs, dependency graphs) with a persistent Git/Maven cache. Use for library docs, upstream source, or dependency metadata.
Ships in alexandru-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Choose the smallest reliable approach by accuracy, token cost, request cost, and elapsed time. Reassess only when evidence is missing or unreliable; do not repeat equivalent retrieval without a concrete reason or inspect related repositories/dependencies unless needed.
Options, cheapest to most expensive:
glob, grep, read, and shell filters for local inspection.gh and az read-only subcommands for GitHub and Azure queries.webfetch for a known URL.websearch when no URL is known (tool or skill, whatever is available).git ls-remote for refs, then cached Git clones for source and history.Rules:
gh or az subcommands; report the limitation.webfetch and cite its URL; no task directory is needed. If content is empty, stale, or incomplete, switch only to a source likely to supply the missing evidence.$HOME/.agents/librarian/ as a persistent cache across runs, sessions, and harnesses. Create it when needed; do not use the session directory or mktemp for research caching.$HOME/.agents/librarian/repos/<organization>/<project-name>/; the organization/project-name layout is mandatory, for example typelevel/cats-effect or anomalyco/opencode. Keep Maven repositories below $HOME/.agents/librarian/maven/<library-key>/.git -C <base-clone> remote get-url origin with the requested URL. If the URL differs, report the exact <base-clone> path and stop; do not overwrite it, reclone it, or select another cache destination.For each organization/project-name path, the permanent base clone is named main and checks out the repository's default branch; requested refs belong in sibling worktrees.
For https://github.com/typelevel/cats-effect/ at tag v3.7.0, follow these steps exactly:
Default to shallow, ref-scoped clones and fetches. Deepen the existing cache only when history is needed. Set a timeout of at least 10 minutes from the first attempt; run long transfers in the background.
Create the persistent repository directory:
mkdir -p "$HOME/.agents/librarian/repos"
mkdir -p "$HOME/.agents/librarian/repos/typelevel/cats-effect"
Check whether $HOME/.agents/librarian/repos/typelevel/cats-effect/main already exists. If it does, inspect its remote and worktree list; do not run git clone again. If it does not, shallow-clone the default branch:
git clone --depth 1 --single-branch https://github.com/typelevel/cats-effect/ "$HOME/.agents/librarian/repos/typelevel/cats-effect/main"
Check whether v3.7.0 is already available in the base clone and whether $HOME/.agents/librarian/repos/typelevel/cats-effect/v3.7.0 is already registered by git worktree list --porcelain. If that worktree exists, reuse it without fetching or adding another one.
If the tag is missing, fetch only that tag. Do not fetch the repository on every repeated request:
git -C "$HOME/.agents/librarian/repos/typelevel/cats-effect/main" fetch --depth 1 origin "refs/tags/v3.7.0:refs/tags/v3.7.0"
If the tag is available but its worktree is missing, create the sibling worktree and inspect it:
git -C "$HOME/.agents/librarian/repos/typelevel/cats-effect/main" worktree add "$HOME/.agents/librarian/repos/typelevel/cats-effect/v3.7.0" v3.7.0
# Inspect with glob, grep, read, or git -C "$HOME/.agents/librarian/repos/typelevel/cats-effect/v3.7.0" ...
This is equivalent to running git worktree add ../v3.7.0 v3.7.0 from the main worktree, but absolute paths avoid dependence on Bash's current directory.
For a branch, use the same process. Single-branch clones do not track other branches, so when the remote-tracking ref is absent, fetch it with git -C "$HOME/.agents/librarian/repos/typelevel/cats-effect/main" fetch --depth 1 origin "refs/heads/<branch>:refs/remotes/origin/<branch>". Then add a sibling worktree. If a local branch must be created from a remote-tracking branch, use git worktree add -b "<branch>" "<absolute-worktree-path>" "origin/<branch>".
If a requested path exists but is not a registered worktree, or its remote does not match, do not overwrite it. Report the exact path and stop; do not select another cache destination.
Do not use git checkout or switch the base clone's branch to inspect a ref. Do not run git worktree remove, git worktree prune, git reset, git clean, or any command that changes source files. Do not push or change a remote.
If cloning, fetching, or adding a worktree fails, report the exact error. Do not retry with a different destination or reclone the same repository.
cats-effect, and use $HOME/.agents/librarian/maven/cats-effect/ as Maven's persistent local repository. Inspect the exact coordinate's files there before resolving it. Do not use the default ~/.m2/repository as the download destination.-Dtransitive=false; do not create a synthetic project. For a transitive graph or effective resolution, create a request directory below the library cache, write a POM there, and invoke Maven with -f <absolute-pom-path>.$HOME/.agents/librarian/maven/<library-key>/requests/<request-key>/. Reuse an existing request with the same coordinate and repository definitions instead of resolving it again.For example, to inspect the Cats-Effect 3.7.0 source JAR:
mkdir -p "$HOME/.agents/librarian/maven/cats-effect"
mvn -B dependency:get -Dartifact=org.typelevel:cats-effect_3:3.7.0:jar:sources -Dtransitive=false "-Dmaven.repo.local=$HOME/.agents/librarian/maven/cats-effect"
jar tf "$HOME/.agents/librarian/maven/cats-effect/org/typelevel/cats-effect_3/3.7.0/cats-effect_3-3.7.0-sources.jar"
If the exact JAR already exists, skip mvn and inspect it directly. Use the same cache for the binary JAR, POM, and javadoc classifier. If mvn -v fails, report that Maven is unavailable and do not attempt this workflow.
For a graph, use a persistent request directory rather than a disposable task directory:
mkdir -p "$HOME/.agents/librarian/maven/cats-effect/requests/3.7.0-graph"
cat > "$HOME/.agents/librarian/maven/cats-effect/requests/3.7.0-graph/pom.xml" <<'EOF'
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>agents.research</groupId>
<artifactId>cats-effect-evidence</artifactId>
<version>1.0.0</version>
<dependencies>
<dependency>
<groupId>org.typelevel</groupId>
<artifactId>cats-effect_3</artifactId>
<version>3.7.0</version>
</dependency>
</dependencies>
</project>
EOF
mvn -B -q -f "$HOME/.agents/librarian/maven/cats-effect/requests/3.7.0-graph/pom.xml" dependency:tree -Dverbose -DoutputType=text "-DoutputFile=$HOME/.agents/librarian/maven/cats-effect/requests/3.7.0-graph/tree.txt" "-Dmaven.repo.local=$HOME/.agents/librarian/maven/cats-effect"
Inspect the persistent output and resolved files before responding.
Cite URLs, artifact coordinates, Git refs, and repository-relative paths/line ranges. Separate verified facts from inference and state uncertainty.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alexandru/skills --plugin alexandru-skills18 skills in this plugin
/akka-streamsScala reactive streaming with Akka Streams and Pekko Streams. Use for dataflow and reactive programming patterns, testing stream components, and understanding when NOT to use streams (prefer plain functions for transformations and I/O)./arrow-resourceKotlin + Arrow Resource lifecycle discipline with `Resource`, `ResourceScope`, `resourceScope`, and context parameters. Use for safe acquisition/release of files, streams, DB pools/connections, HTTP clients, background scopes, or multipart parts; preventing resource leaks and use-after-close bugs; designing companion `Resource` builders; using `arrow-autoclose` when only synchronous `AutoCloseable` cleanup is possible; composing resources with typed errors, cancellation, or parallel acquisition./Other plugins' skills for the same job