360 Secure SkillHub
360 安全技能中心

get-tldr

通过捆绑的 get_tldr.py 脚本,把用户提供的 URL 提交给 get-tldr.com 摘要 API,取回 JSON 中的 summary 字段并仅做可读性格式化后返回,不再次摘要或改写内容。API 密钥来自本地配置文件、环境变量或 .env。

itobey
itobey
热度 96.40
最近更新 2026-05-11 15:51:18
分类:效率依赖:代码执行 / 第三方 API / 读写文件应用场景:摘要总结

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add get-tldr
Metadata
name
get-tldr
description
Provide the summary returned by the get-tldr.com summarize API without further summarization; the skill should format the API output for readability but must not change its content.

get-tldr

Quick, deterministic skill to summarize the content of a link using the get-tldr.com API.

Usage pattern (for the agent):

  • Trigger when the user says something like: "get-tldr " or "get-tldr" followed by a URL.
  • The skill will call the bundled script get_tldr.py with the URL as the single argument.
  • IMPORTANT: The API response is already a summary; the skill must NOT further summarize or alter the content — only take the value of the "summary" element of the json and format it for readability. Take the entire summary property, do not omit anything.
  • IMPORTANT: If the summary element of the response json from the API already is formatted in markdown, just return the formatted markdown. Do not omit anything and do not change the text. Make sure its not wrapped in a code block and if so remove the wrapping code block, so that it correctly renders as markdown, but not as a code block.

Files included:

  • get_tldr.py — small Python script (located in the skill folder) that posts {"input": ""} to https://www.get-tldr.com/api/v1/summarize using the required X-API-Key header and prints the JSON response to stdout. The script reads the API key and an optional logfile path from ~/.config/get-tldr/config.json (preferred), or falls back to the GET_TLDR_API_KEY environment variable or a .env file in the skill folder. If no logfile is configured the script defaults to ~/.config/get-tldr/skill.log.

Notes for maintainers:

  • Create the config file at ~/.config/get-tldr/config.json with the following structure (JSON):
{
  "api_token": "<your_key_here>",
  "logfile": "/path/to/logfile.log"
}
  • The script will use the "api_token" field from the config. If the config file is missing the script falls back to the GET_TLDR_API_KEY environment variable or a .env file in the skill folder.
  • IMPORTANT: Do not summarize the API response again; the skill should only format the response for readability and must not alter the content.