agentleFS
datafusion-contribdatafusion-contrib/datafusion-skills/skills/install-datafusion/SKILL.md

install-datafusion

Skill14 starsChanged 8 months agoApache-2.0View on GitHub

Install or update datafusion-cli. Supports installation via cargo install, Homebrew, or pre-built binaries. Checks the current version and offers to upgrade if outdated.

  • Pipes a download into a shell
  • Installs packages

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If found, check the version:

    line 21
  2. Very specific:

    If --update is in the arguments and datafusion-cli is installed → update mode

    line 29
  3. Distinctive:

    If datafusion-cli is not installed → install mode

    line 30
  4. Very specific:

    If installed and no --update → report the current version and stop

    line 31
  5. Very specific:

    If neither brew nor pre-built binaries are suitable:

    line 75

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

You are helping the user install or update datafusion-cli.

Arguments: $@

Step 1 — Check if datafusion-cli is already installed

command -v datafusion-cli

If found, check the version:

datafusion-cli --version 2>&1 | head -1

Step 2 — Determine the action

  • If --update is in the arguments and datafusion-cli is installed → update mode
  • If datafusion-cli is not installed → install mode
  • If installed and no --update → report the current version and stop

Step 3 — Install or update

Detect the platform and offer the appropriate method:

macOS

Option 1 — Homebrew (recommended if brew is available):

brew install datafusion

Or for update:

brew upgrade datafusion

Option 2 — cargo install (works on all platforms):

cargo install datafusion-cli

Linux

Option 1 — cargo install (recommended):

cargo install datafusion-cli

Option 2 — Download pre-built binary from GitHub releases:

LATEST=$(curl -fsSL https://api.github.com/repos/apache/datafusion/releases/latest | grep -oP '"tag_name": "\K[^"]+')
curl -fsSL "https://github.com/apache/datafusion/releases/download/${LATEST}/datafusion-cli-${LATEST}-x86_64-unknown-linux-gnu.tar.gz" | tar xz
sudo mv datafusion-cli /usr/local/bin/

All platforms — cargo install

If neither brew nor pre-built binaries are suitable:

cargo install datafusion-cli

For update via cargo:

cargo install datafusion-cli --force

Note: cargo install requires a Rust toolchain. If cargo is not found, suggest installing Rust first via rustup:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Step 4 — Verify

datafusion-cli --version

Report success with the installed version.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.