Token导航 LogoToken导航TokenDH.com
研究检索执行命令clawhub未标认证来源可访问clear审计通过

url-shortener-cliURL shortener CLI 搜索

Agent Skill

url-shortener-cli 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,651

周安装

190

GitHub Stars

公开资料未说明

下载量

1,505
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:url-shortener-cli(URL shortener CLI 搜索)
来源仓库:https://github.com/derick001/url-shortener-cli
安装命令:
openclaw skills install url-shortener-cli
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install url-shortener-cli

简介

url-shortener-cli 提供终端环境下的 URL 缩短与本地存储功能。

  • 支持自定义 slugs 与基础分析,适用于轻量级链接管理需求。
  • 通过 clawhub 安装后可用于命令行工具集成。url-shortener-cli 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 需确认本地 JSON 存储路径是否可写且容量受限。
  • 建议核实其是否支持 HTTPS 链接生成与访问统计导出。

SKILL.md

name
url-shortener-cli
description
Shorten URLs from terminal with custom slugs, local storage, and basic analytics. A self‑contained CLI that maps long URLs to short slugs using a local JSON file.
version
1.0.0
author
skill-factory
metadata
openclaw
requires
bins

URL Shortener CLI

What This Does

A local, self‑contained URL shortener that runs entirely on your machine. No external APIs, no internet required after setup.

Key features:

  • Shorten URLs – Generate short slugs for long URLs
  • Custom slugs – Use your own short codes
  • Expand slugs – Retrieve original URLs
  • Local storage – All mappings saved in a JSON file (~/.url-shortener/mappings.json)
  • Basic analytics – Track click counts and creation dates
  • Management – List, search, update, and delete mappings
  • Import/export – Backup and restore your URL database

How To Use

Shorten a URL:

./scripts/main.py shorten https://example.com/very/long/path

Shorten with custom slug:

./scripts/main.py shorten https://example.com --slug mypage

Expand a slug:

./scripts/main.py expand mypage

List all mappings:

./scripts/main.py list

Get detailed info for a slug:

./scripts/main.py info mypage

Delete a mapping:

./scripts/main.py delete mypage

Search URLs:

./scripts/main.py search "example"

Import/export:

./scripts/main.py export --file urls.json
./scripts/main.py import --file urls.json

Full command reference:

./scripts/main.py help

Commands

  • shorten: Create a new short URL

- url: The long URL to shorten (required) - --slug: Custom slug (optional, auto‑generated if omitted) - --description: Optional description - --tags: Comma‑separated tags for organization

  • expand: Get the original URL for a slug

- slug: The short slug (required)

  • list: List all mappings

- --sort: Sort by created, clicks, slug, url (default: created) - --reverse: Reverse sort order - --limit: Show only N entries - --json: Output as JSON

  • info: Show detailed information for a slug

- slug: The short slug (required) - --json: Output as JSON

  • delete: Delete a mapping

- slug: The short slug to delete (required) - --force: Skip confirmation

  • search: Search in URLs, descriptions, or tags

- query: Search term (required) - --field: Search field: url, description, tags, all (default: all)

  • export: Export mappings to a JSON file

- --file: Output file (default: urls-export.json)

  • import: Import mappings from a JSON file

- --file: Input file (required) - --overwrite: Replace existing mappings (default: merge)

  • stats: Show usage statistics

- --json: Output as JSON

  • cleanup: Remove old or unused mappings

- --older-than-days: Remove entries older than N days - --max-clicks: Remove entries with fewer than N clicks - --dry-run: Show what would be removed

Output Examples

Shorten a URL:

$ ./scripts/main.py shorten https://github.com/openclaw/openclaw
Shortened: https://github.com/openclaw/openclaw
Slug:      x7f9k2
Full command: ./scripts/main.py expand x7f9k2

List mappings:

Slug     URL                                     Clicks  Created
-------  --------------------------------------  ------  -------------------
x7f9k2   https://github.com/openclaw/openclaw    12      2026‑03‑18 10:30:00
mypage   https://example.com                     5       2026‑03‑17 14:22:00
docs     https://docs.openclaw.ai                42      2026‑03‑16 09:15:00

JSON output (with --json):

{
  "x7f9k2": {
    "url": "https://github.com/openclaw/openclaw",
    "slug": "x7f9k2",
    "clicks": 12,
    "created": "2026-03-18T10:30:00Z",
    "description": "OpenClaw GitHub repo",
    "tags": ["github", "openclaw"]
  }
}

Installation Notes

Requires Python 3.6+. No external dependencies. The tool creates a configuration directory at ~/.url-shortener/ and stores mappings in mappings.json.

Limitations

  • Local only – Mappings exist only on your machine; not shareable across devices
  • No public access – Shortened URLs only work on your own system
  • No expiration – Entries persist until manually deleted
  • No collision detection – Custom slugs must be unique (tool will warn)
  • Basic analytics – Only tracks click counts; no geographic or referrer data
  • No QR codes – Does not generate QR codes for shortened URLs
  • No API – Cannot be called by other applications (except via CLI)

Security Considerations

  • All data stored locally in plain JSON (no encryption)
  • No authentication required (any user on the system can access)
  • URLs are not validated for safety (may point to malicious sites)
  • No rate limiting or abuse protection
  • File permissions follow your user's default

Examples

Create a short link for documentation:

./scripts/main.py shorten https://docs.openclaw.ai --slug docs --description "OpenClaw documentation"

Get the most‑clicked links:

./scripts/main.py list --sort clicks --reverse --limit 5

Search for GitHub links:

./scripts/main.py search "github" --field url

Backup your URL database:

./scripts/main.py export --file url-backup-$(date +%Y%m%d).json

Clean up old entries (older than 30 days):

./scripts/main.py cleanup --older-than-days 30

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

89.15%
按下载量换算1,342

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install url-shortener-cli 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills