← Back to Skills Marketplace
taimeiti

Tmtpost News

by taimeiti · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
62
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install tmtpost-news
Description
获取7×24 财经科技新闻资讯和深度报道,聚焦财经、科技、商业、创投等领域的资讯报道和深度分析。支持热门文章、最新文章、最新快讯查询。当用户需要搜索财经、科技、商业、创投等领域热点资讯和深度报道时使用。
README (SKILL.md)

钛媒体文章订阅

通过 tmtpost-news-cli 获取钛媒体文章内容。

核心原则:基础设施(安装、更新、Key 配置)交给脚本处理;智能体只负责选择子命令和参数——始终先读 help,不要硬编码。

平台约定

平台 脚本运行方式 示例
macOS / Linux sh scripts/\x3Cname>.sh sh scripts/cli-state.sh
Windows bun scripts/\x3Cname>.ts bun scripts/cli-state.ts

Windows 需先确保 bun 可用。若不可用:powershell -c "irm bun.sh/install.ps1 | iex",安装后重启终端确认 bun --version

以下所有脚本调用均以 macOS / Linux 为例,Windows 将 .sh 替换为 .tssh 替换为 bun

CLI 命令本身不要依赖 cli-state 返回的模板字符串,直接根据 platform.cliPath 组装:

平台 CLI 命令模板
macOS / Linux "\x3CcliPath>" \x3Csubcommand> [args]
Windows PowerShell & "\x3CcliPath>" \x3Csubcommand> [args]

Phase 1:环境就绪

环境已就绪时直接跳到 Phase 2。

1. 状态检查

sh scripts/cli-state.sh

解析返回的 JSON,关注以下字段:

字段 含义
platform.cliPath CLI 完整路径,后续所有命令使用此路径
platform.cliSource global(用户已全局安装)/ local(技能目录下载)/ none(未找到)
cliExists CLI 是否存在
update.needUpdate 当前版本是否需要更新
update.error version 检查失败时的错误信息
apiKey.present API Key 是否已配置
apiKey.status configured / missing / error
apiKey.error apikey-get 执行异常或输出异常时的错误信息

2. 安装 CLI(cliExistsfalse 时)

cliSourceglobal 时跳过此步。

sh scripts/install-cli.sh

安装/更新完成后,重新执行 cli-state.sh,用最新的 apiKey.status 决定是否进入 Step 4。

3. 更新 CLI(update.needUpdatetrue,或 CLI 提示版本过旧时)

"\x3CcliPath>" update

Windows PowerShell 使用 & "\x3CcliPath>" update

始终使用 platform.cliPath 组装命令。若 update.error 不为空,先展示错误并让用户处理。

update 命令失败,或错误信息表明当前 CLI 不支持 update(如 unknown commandnot foundnot recognized),立即改为执行安装脚本覆盖:

sh scripts/install-cli.sh --force

Windows:

bun scripts/install-cli.ts --force

解析安装脚本返回的 JSON,并把后续命令切换到新返回的 platform.cliPath。只有覆盖安装也失败时,才引导用户参考 references/update-guide.md 手动处理。 安装/更新完成后,重新执行 cli-state.sh,用最新的 apiKey.status 决定是否进入 Step 4。

4. 配置 API Key(apiKey.status 不为 configured 时)

  • missing → 引导用户前往 https://www.tmtpost.com/exchange/appkey/skills 自行获取 API Key,不要执行 open / xdg-open / start 等命令自动打开浏览器
  • error → 展示 apiKey.error,让用户先处理(权限、网络、CLI 异常),处理后重试

设置 Key(命令前缀使用 platform.cliPath,KEY 是裸值不加引号):

"\x3CcliPath>" apikey-set KEY

Windows PowerShell 分别使用 & "\x3CcliPath>" apikey-set KEY& "\x3CcliPath>" apikey-get& "\x3CcliPath>" apikey-clear

验证:"\x3CcliPath>" apikey-get 清除(仅用户明确要求时):"\x3CcliPath>" apikey-clear

详见 references/env-setup-guide.md

Phase 2:获取文章

CLI 更新频繁,子命令和参数可能随版本变化。始终以当前 help 输出为准,不要假设或记忆任何子命令。

  1. 执行 help 使用 platform.cliPath 自行拼命令:macOS / Linux 为 "\x3CcliPath>" help,Windows PowerShell 为 & "\x3CcliPath>" help

  2. 理解意图,映射子命令

    • 单一请求(如"看热门文章")→ 映射到一个子命令
    • 复合请求(如"看热门文章和科技新闻")→ 拆解为多个意图,分别映射,依次调用
    • help 中无匹配子命令,如实告知用户当前不支持
  3. 执行并输出——按下方格式呈现结果

输出格式

单类型请求

1. **标题文字**

   来源:作者名称

   摘要内容……

   [查看原文](https://…)

2. **标题文字**

   来源:作者名称

   摘要内容……

   [查看原文](https://…)

**来源:钛媒体**

多类型请求

按类型分组,每组用二级标题标明类别:

## 热门文章

1. **标题文字**
   ...

2. **标题文字**
   ...

## 科技资讯

1. **标题文字**
   ...

2. **标题文字**
   ...

**来源:钛媒体**

通用规则

  • 标题序号. **标题**,序号从 1 开始,多类型时每组序号独立
  • 来源来源: 后跟 CLI 返回的作者名称;无该字段时省略
  • 摘要:来源下方紧跟;无摘要字段时省略
  • 原文链接:有链接则输出 [查看原文](URL),无则不输出
  • 其他有价值字段(发布时间、标签等)可在来源下方补充
  • 多条新闻间用空行分隔
  • **来源:钛媒体** 在所有内容末尾出现一次
  • 某个类型获取失败时,在该分组下说明原因,继续输出其余分组
  • 当输出的内容不完全符合用户的需求时,你需要帮用户过滤掉无用的新闻。

CLI 执行失败处理

CLI 命令失败后,立即停止,绝不通过 WebSearch 或其他方式获取新闻替代。

  1. CLI 返回非零退出码、超时或输出含权限/安全错误时,不要重试,不要换方式。
  2. 根据错误信息引导用户:
    • macOS Gatekeepercannot be openednot verified)→ 系统设置 → 隐私与安全性 → 「仍要打开」
    • 企业安全软件connection refused、防火墙拦截)→ 安全提示中点击「信任」/「允许」
    • 权限不足permission denied)→ chmod +x \x3CcliPath>
    • 其他 → 展示完整错误,请用户处理
  3. 用户确认操作完成后再重试。即使多次失败,也只能告知无法获取并说明原因,绝不回退到其他信息源。

References

Usage Guidance
Install only if you trust TMTPost and are comfortable letting the skill download, run, and later update a native CLI binary. Prefer reviewing the installer first, avoid using it in sensitive environments, and do not enter an API key unless you accept that the CLI will store and manage that credential.
Capability Tags
cryptorequires-sensitive-credentials
Capability Assessment
Purpose & Capability
The stated purpose is TMTPost news retrieval through a dedicated CLI, and the API key and CLI workflow are described in the skill instructions. The capability is coherent, but a native executable is a higher-impact mechanism for a news-reading skill.
Instruction Scope
The instructions direct the agent to run status checks, install the CLI when missing, update it when needed, and execute CLI subcommands. That is scoped to the news workflow, but installation and update execution are automatic rather than clearly gated by explicit user confirmation.
Install Mechanism
The shell installer downloads a platform-specific binary from pack.tmtpost.net, verifies it with checksums fetched from the same remote source, executes the downloaded temporary binary for a version check, and then writes it into the skill directory. The Windows TypeScript helper also contains an example.com download base, which is an incoherent placeholder for a publisher binary source.
Credentials
The skill uses PATH/global binary discovery, local executable permissions, network downloads, Bun on Windows, and a sensitive API key. These are not inherently malicious, but they are broad for a news retrieval integration and increase supply-chain and environment-hijack risk.
Persistence & Privilege
The skill persists or replaces a local executable in the skill directory and can use a globally installed executable. It also checks API key state through apikey-get; the script appears to return only presence/status, but it still probes credential configuration automatically.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install tmtpost-news
  3. After installation, invoke the skill by name or use /tmtpost-news
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
更新 API Key 获取地址为 https://www.tmtpost.com/exchange/appkey/skills
v1.0.0
tmtpost-news version 1.0.0 – Initial release - 支持获取7×24钛媒体财经、科技、商业、创投等领域的新闻资讯和深度报道。 - 提供热门文章、最新文章、快讯等内容的查询能力。 - 详细文档说明了 CLI 环境检测、安装、更新和 API Key 配置流程。 - 按用户需求映射 CLI 子命令、标准化输出格式,明确失败处理与用户引导规则。
Metadata
Slug tmtpost-news
Version 1.0.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is Tmtpost News?

获取7×24 财经科技新闻资讯和深度报道,聚焦财经、科技、商业、创投等领域的资讯报道和深度分析。支持热门文章、最新文章、最新快讯查询。当用户需要搜索财经、科技、商业、创投等领域热点资讯和深度报道时使用。 It is an AI Agent Skill for Claude Code / OpenClaw, with 62 downloads so far.

How do I install Tmtpost News?

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

Is Tmtpost News free?

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

Which platforms does Tmtpost News support?

Tmtpost News is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Tmtpost News?

It is built and maintained by taimeiti (@taimeiti); the current version is v1.0.1.

💬 Comments