← 返回 Skills 市场
95
总下载
0
收藏
1
当前安装
3
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (SKILL.md)
dirs-submit
Use ship to login, submit URLs, preview metadata, check versions, and self-update.
Structure
- Read
references/config.mdwhen you need config shape or token storage details. - Read
references/api.mdwhen 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
流程:
- 选择站点(或通过
--site指定) - 自动打开浏览器进入登录页
- 用户在浏览器完成登录
- CLI 在本地启动 localhost 回调接收 token
- 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 releaseself-update会下载当前平台对应的 release asset 并替换本地可执行文件- Windows 当前不做自动覆盖更新,会提示用户手动下载最新版本
Result Interpretation
Skill 执行 CLI 后,应根据输出向用户自然语言转述:
- 成功提交 / 成功 fetch → 直接告知成功
401→ 告知 token 无效,建议重新运行ship login402或返回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
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install dirs-submit - 安装完成后,直接呼叫该 Skill 的名称或使用
/dirs-submit触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
常见问题
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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 95 次。
如何安装 Dirs Submit?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install dirs-submit」即可一键安装,无需额外配置。
Dirs Submit 是免费的吗?
是的,Dirs Submit 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Dirs Submit 支持哪些平台?
Dirs Submit 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Dirs Submit?
由 AllInAIGC(@allinaigc)开发并维护,当前版本 v1.0.2。
推荐 Skills