← Back to Skills Marketplace
allinaigc

Dirs Submit

by AllInAIGC · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ suspicious
95
Downloads
0
Stars
1
Active Installs
3
Versions
Install in OpenClaw
/install dirs-submit
Description
CLI tool for the `ship` command wrapping aidirs.org and backlinkdirs.com submission APIs. Use when the user needs to login, submit a URL, preview site metada...
README (SKILL.md)

dirs-submit

Use ship to login, submit URLs, preview metadata, check versions, and self-update.

Structure

  • Read references/config.md when you need config shape or token storage details.
  • Read references/api.md when you need request endpoints or payload examples.
  • Read files under examples/ when you need concrete success/error output examples.

Workflow

1. Login — 浏览器授权

提交 URL 需要订阅计划。

ship login

可选指定站点:

ship login --site aidirs.org
ship login --site backlinkdirs.com

流程:

  1. 选择站点(或通过 --site 指定)
  2. 自动打开浏览器进入登录页
  3. 用户在浏览器完成登录
  4. CLI 在本地启动 localhost 回调接收 token
  5. token 写入本地配置

成功输出:

✅ Login successful

2. Token / Config 存储规则

配置文件路径:

~/.config/ship/config.json

结构是按站点分开存

{
  "currentSite": "aidirs.org",
  "sites": {
    "aidirs.org": {
      "token": "xxx",
      "baseUrl": "https://aidirs.org"
    },
    "backlinkdirs.com": {
      "token": "yyy",
      "baseUrl": "https://backlinkdirs.com"
    }
  }
}

规则:

  • 同一个站点再次登录,会覆盖该站点旧 token
  • 不同站点互不覆盖
  • currentSite 指向最后一次登录的站点
  • 不传 --site 时,CLI 默认使用 currentSite

3. Submit — 提交 URL

ship submit \x3Curl>

示例:

ship submit https://example.com
ship submit https://example.com --site aidirs.org
ship submit https://example.com --site backlinkdirs.com
ship submit https://example.com --json
ship submit https://example.com --quiet

内部调用:

POST /api/submit
Authorization: Bearer \x3Ctoken>
Content-Type: application/json

{ "link": "https://example.com" }

4. Fetch — 预览元数据

ship fetch \x3Curl>

示例:

ship fetch https://example.com
ship fetch https://example.com --site aidirs.org
ship fetch https://example.com --json

调用 POST /api/fetch-website,不创建提交记录。

5. Version / Update

ship version
ship version --latest
ship version --json
ship self-update
ship self-update --json

说明:

  • version --latest 会检查 GitHub latest release
  • self-update 会下载当前平台对应的 release asset 并替换本地可执行文件
  • Windows 当前不做自动覆盖更新,会提示用户手动下载最新版本

Result Interpretation

Skill 执行 CLI 后,应根据输出向用户自然语言转述:

  • 成功提交 / 成功 fetch → 直接告知成功
  • 401 → 告知 token 无效,建议重新运行 ship login
  • 402 或返回 upgradeUrl → 告知用户需要订阅,并附升级链接
  • 400 → 直接转述具体错误
  • 网络超时 / 网络错误 → 告知稍后重试

常见错误

状态码/情况 含义 Skill 应告知用户
400 URL 参数错误、重复站点等 直接告知具体错误原因
401 Token 无效或未授权 提示重新运行 ship login
402 需要订阅计划 友好提示订阅,并附 upgradeUrl
500 服务器错误 告知稍后重试
timeout/network 网络超时或请求失败 告知网络问题并建议重试

Environment / Config Reference

来源 说明
配置文件 ~/.config/ship/config.json 本地存储多站点 token
环境变量 DIRS_TOKEN Bearer Token(备用)
环境变量 DIRS_BASE_URL API Base URL(备用)
CLI 参数 --site 显式切换站点

环境变量仍兼容,但优先推荐使用 ship login 写入配置。

Examples

ship login --site aidirs.org
ship submit https://example.com --site aidirs.org
ship fetch https://example.com --site backlinkdirs.com --json
ship version --latest
ship self-update
Usage Guidance
This skill appears to do what it says: it wraps the ship CLI to log in (browser OAuth), store tokens in ~/.config/ship/config.json, submit/fetch URLs, and self-update from GitHub releases. Before installing or using it, inspect any install script (the README suggests curl | bash from raw.githubusercontent.com) and the release assets the tool downloads for updates. Be aware the tool will store bearer tokens on disk and can replace its own executable during self-update — if you run the installer or self-update, ensure the source repo and releases are trustworthy. If you are uncomfortable, run ship commands manually after reviewing the install.sh, or create a dedicated environment/user account and revoke tokens if you later suspect misuse.
Capability Analysis
Type: OpenClaw Skill Name: dirs-submit Version: 1.0.2 The skill manages a CLI tool ('ship') that utilizes high-risk patterns, including installation via 'curl | bash' and a 'self-update' command that downloads and replaces local executables from a remote GitHub repository (RobinWM/ship-cli). While these features are common for CLI tools, they represent significant attack surfaces for remote code execution and supply chain attacks, especially as the 'SKILL.md' explicitly directs the AI agent to execute these commands without providing verification mechanisms.
Capability Assessment
Purpose & Capability
The skill claims to wrap two directory submission APIs and the instructions only reference the ship CLI, the two sites (aidirs.org and backlinkdirs.com), local token storage, and API endpoints for submit/fetch. There are no unrelated credentials, binaries, or paths requested.
Instruction Scope
SKILL.md directs the agent to run the ship CLI, open a browser for OAuth-style login, start a localhost callback to receive tokens, and read/write ~/.config/ship/config.json. It also instructs checking GitHub releases and performing self-update downloads. These actions are within scope for a CLI that logs in, stores tokens, submits URLs, previews metadata, and self-updates — but reading/writing the token config and fetching remote release assets are notable behaviors the user should be aware of.
Install Mechanism
The registry entry has no formal install spec (instruction-only), but README suggests installing via a curl | bash installer hosted on raw.githubusercontent.com and README/self-update behavior relies on GitHub release assets. Fetching scripts or binaries from GitHub releases is common, but it is a network-download install method (moderate risk). There is no evidence of obscure or malicious hosts in the provided text.
Credentials
No required environment variables are declared. The skill documents optional fallbacks (DIRS_TOKEN and DIRS_BASE_URL) which are appropriate for a CLI that can use either stored tokens or env-provided token/base URL. The only config path is ~/.config/ship/config.json where tokens are stored; this is proportionate to the stated purpose.
Persistence & Privilege
always:false (normal). The CLI will persist tokens to ~/.config/ship/config.json and supports a self-update that replaces the local executable with a downloaded release asset. Persisting its own config is expected; self-updating (replacing the binary) is functionally coherent but raises the usual caution: downloaded update code executes with the user's privileges.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install dirs-submit
  3. After installation, invoke the skill by name or use /dirs-submit
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
Repository sync release
v1.0.1
Repository sync release
v1.0.0
Initial release of dirs-submit: A CLI tool for submitting URLs to aidirs.org and backlinkdirs.com. - Supports browser-based login and per-site token storage. - Provides commands for URL submission, metadata fetching, version checks, and self-update. - Handles authentication, error codes, and result interpretation with clear user guidance. - Stores config and tokens locally by site; falls back to environment variables if needed. - Compatible with both aidirs.org and backlinkdirs.com APIs.
Metadata
Slug dirs-submit
Version 1.0.2
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 3
Frequently Asked Questions

What is Dirs Submit?

CLI tool for the `ship` command wrapping aidirs.org and backlinkdirs.com submission APIs. Use when the user needs to login, submit a URL, preview site metada... It is an AI Agent Skill for Claude Code / OpenClaw, with 95 downloads so far.

How do I install Dirs Submit?

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

Is Dirs Submit free?

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

Which platforms does Dirs Submit support?

Dirs Submit is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Dirs Submit?

It is built and maintained by AllInAIGC (@allinaigc); the current version is v1.0.2.

💬 Comments