返回 Skill 列表
extension
分类: 数据与分析需要 API Key

get-tldr

提供 get-tldr.com 汇总 API 返回的摘要,无需进一步汇总;该技能应格式化 API 输出以提高可读性,但不得更改其内容。

person作者: itobeyhubclawhub

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 <link>" 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": "<URL>"} 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.