← Back to Skills Marketplace
parinll

Bit URL Shortener

by Parin Lai · GitHub ↗ · v1.0.5 · MIT-0
cross-platform ⚠ suspicious
275
Downloads
0
Stars
0
Active Installs
6
Versions
Install in OpenClaw
/install bit
Description
Explain bit-cli skill purpose, installation, required setup, and troubleshooting.
README (SKILL.md)

Bit CLI Skill (Documentation-Only)

Skill Purpose And Trigger Scenarios

  • Purpose: Provide a usage entry point for the Bit URL Shortener CLI (bit) to create, query, update, delete short links, and view click data.
  • Trigger scenarios:
  • The user mentions needs like "short URL", "bit-cli", or commands such as bit create/list/get/update/delete/clicks.
  • The user wants to run Bit API operations with OpenClaw.
  • The user needs to verify Bit API availability (for example, a health check).

Installation (GitHub)

  • Install source: https://github.com/ParinLL/bit-cli
  • Install from GitHub:
git clone https://github.com/ParinLL/bit-cli.git
cd bit-cli
go build -o bit .
sudo mv bit /usr/local/bin/
  • Review the repository before building from source.

Required Environment Variables / Permissions

  • Required environment variables:
  • BIT_API_KEY (required): Bit API authentication key.
  • BIT_API_URL (optional): Bit API base URL, default http://localhost:4000.
  • Permission requirements:
  • The bit executable must be callable from PATH.
  • Installing to /usr/local/bin with sudo mv requires administrator privileges.
  • If the target API is remote, network connectivity to that API is required.

Using The bit Binary

  • Verify installation:
which bit
bit ping
  • Configure API access before running commands:
export BIT_API_URL="http://localhost:4000"
export BIT_API_KEY="your-api-key"
  • Command format:

  • bit \x3Ccommand> [arguments] [flags]

  • Main commands and when to use them:

  • bit ping

  • Use for a quick API health check before other operations.

  • bit create \x3Curl>

  • Creates a short link for the target URL.

  • bit list [--limit N] [--cursor X]

  • Lists links with optional pagination for large datasets.

  • bit get \x3Cid>

  • Retrieves one link and recent click details.

  • bit update \x3Cid> \x3Cnew-url>

  • Replaces the destination URL for an existing short link.

  • bit delete \x3Cid>

  • Removes the short link by ID.

  • bit clicks \x3Cid> [--limit N] [--cursor X]

  • Shows click history for a link, with optional pagination.

  • Typical workflow:

# 1) Confirm service is reachable
bit ping

# 2) Create a short link
bit create https://example.com/docs

# 3) List links to find the new ID
bit list --limit 20

# 4) Inspect one link
bit get 1

# 5) Check click records
bit clicks 1 --limit 50

# 6) Update destination if needed
bit update 1 https://example.com/new-docs

# 7) Delete when no longer needed
bit delete 1
  • Practical tips:
  • Start with bit ping whenever requests fail unexpectedly.
  • Use list/get to confirm IDs before update or delete.
  • Keep BIT_API_KEY in environment variables, not in command history or shared scripts.

Common Troubleshooting

  • bit: command not found
  • Cause: The CLI is not installed or not in PATH.
  • Fix: Rebuild with go build and verify which bit returns a valid path.
  • 401 Unauthorized / 403 Forbidden
  • Cause: BIT_API_KEY is missing or invalid.
  • Fix: Reset BIT_API_KEY and confirm the key is still valid on the server.
  • connection refused / timeout
  • Cause: BIT_API_URL is incorrect, the Bit service is not running, or the network is unreachable.
  • Fix: Run bit ping first, then verify API service status and URL.
  • Command succeeds but data is unexpected
  • Cause: The target ID does not exist, data was deleted, or the update payload format is incorrect.
  • Fix: Validate current state with bit list or bit get \x3Cid>, then retry.
Usage Guidance
This skill is documentation-only for a CLI named 'bit' and is largely coherent, but check a few things before you install or use it: - Inspect the upstream repository (github.com/ParinLL/bit-cli) yourself before building. The SKILL.md even recommends reviewing the repo first. - The docs mention an optional BIT_API_URL (default http://localhost:4000) but the skill metadata only declares BIT_API_KEY — be aware of this mismatch and set BIT_API_URL explicitly if you need a remote service. - Building and installing to /usr/local/bin uses sudo (administrator privileges). Prefer installing to a user-local bin (~/bin) or use 'go install' into your Go bin directory if you want to avoid running commands as root. - Treat BIT_API_KEY like any secret: do not store it in shared scripts or commit it to source control; consider least-privilege API keys and rotation. - Verify the Go module and GitHub owner are trustworthy before running 'go build' or 'go install'. If you cannot verify the source, consider obtaining a prebuilt binary from a trusted release channel or avoiding installation. Given these checks, the skill appears to do what it claims and does not contain instructions that access unrelated credentials or system areas.
Capability Analysis
Type: OpenClaw Skill Name: bit Version: 1.0.5 The skill provides instructions and metadata to install and operate a URL shortener CLI from a GitHub repository (github.com/ParinLL/bit-cli). It is classified as suspicious because it requires high-risk capabilities, specifically sudo privileges for binary installation and network access for API interactions, alongside the management of a sensitive BIT_API_KEY. While these features are plausibly needed for the tool's stated purpose in SKILL.md, they represent a significant attack surface within the OpenClaw environment.
Capability Assessment
Purpose & Capability
Name/description (Bit URL Shortener / bit-cli docs) align with the declared needs: a 'bit' binary and an API key. The declared Go install module (github.com/ParinLL/bit-cli) and the listed binaries (bit, go, git) are appropriate for building and using a CLI.
Instruction Scope
SKILL.md is documentation-only and instructs building from GitHub, setting BIT_API_KEY, and optionally BIT_API_URL. It does not request access to unrelated files or secrets. Minor issue: BIT_API_URL is described as an optional env var in the docs but is not listed in the skill's declared required env variables (metadata only lists BIT_API_KEY).
Install Mechanism
Install uses the Go module path (go build/go install) and the repo on GitHub; this is a normal public source install path. No downloads from untrusted/personal IPs or archive extracts are present. The SKILL.md also suggests building from source and reviewing the repo first.
Credentials
Only BIT_API_KEY is declared as required and is appropriate for an API client. The documentation mentions an optional BIT_API_URL but that variable is not listed in the metadata fields; this mismatch should be corrected. The skill metadata also requires 'sudo' as a binary, which is not strictly necessary for using the CLI (only for moving a built binary into /usr/local/bin during installation) — note the elevated privilege implied by that install step.
Persistence & Privilege
The skill does not request always: true or any persistent elevated privileges. It is user-invocable and allows autonomous model invocation (platform default), which is expected for a skill. There is no indication it tries to modify other skills or system-wide settings.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install bit
  3. After installation, invoke the skill by name or use /bit
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.5
Simplify GitHub installation section and expand detailed binary usage guidance in English
v1.0.4
Translate SKILL.md to English and add OpenClaw install spec metadata
v1.0.3
Update minimal SKILL.md: add install prerequisites in metadata, switch clone to HTTPS, and add no-sudo install option
v1.0.2
Publish minimal package containing only SKILL.md
v1.0.1
- Added detailed installation instructions for building and installing the CLI, including Docker and Docker Compose options. - Included links to original GitHub sources and documentation for both the CLI and upstream Bit server. - No changes to commands, environment variables, or usage examples.
v1.0.0
- Initial release of the bit skill. - Manage Bit URL shortener links: create, list, get, update, and delete short links. - View click analytics for shortened links. - Requires BIT_API_KEY environment variable for authentication. - Provides comprehensive CLI command support for Bit URL management.
Metadata
Slug bit
Version 1.0.5
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 6
Frequently Asked Questions

What is Bit URL Shortener?

Explain bit-cli skill purpose, installation, required setup, and troubleshooting. It is an AI Agent Skill for Claude Code / OpenClaw, with 275 downloads so far.

How do I install Bit URL Shortener?

Run "/install bit" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Bit URL Shortener free?

Yes, Bit URL Shortener is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Bit URL Shortener support?

Bit URL Shortener is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Bit URL Shortener?

It is built and maintained by Parin Lai (@parinll); the current version is v1.0.5.

💬 Comments