fetch-linuxdo-post

A tool for retrieving the full text and comments of a linux.do forum post, including which comments reply to others. It uses the browser's logged-in session and can return threaded or fallback comment data.

In plain words
What is it for?
For reading a linux.do topic, its author and content, comment details, timestamps, and reply relationships.
Why use it?
It avoids manually collecting the main post, comments, and discussion structure from the forum.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/castor6/tactus/fetch-linuxdo-post
Any agent
npx skills add Castor6/tactus --skill fetch-linuxdo-post
Clone the repo
git clone --depth 1 https://github.com/Castor6/tactus

Made for: Claude Code, Codex.

Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,770 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00034 $0.01770
Opus 5 $0.00017 $0.00885
Sonnet 5 $0.00007 $0.00354
Haiku 4.5 $0.00003 $0.00177

Measured 2d ago against content hash 2dab1e3a3902, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

fetch-linuxdo-post scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/fetch-post.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

resources/tactus_skills/fetch-linuxdo-post/SKILL.md · 184 lines

How it starts

The opening of the file, as written. The whole thing — 184 lines — stays where its author put it; the contents beside it link to each section on GitHub.

使用说明

通过 API 请求获取 linux.do 论坛帖子的正文和评论区内容,支持解析评论之间的回复关系。

前置条件

脚本需要在 linux.do 页面上执行,浏览器会自动携带用户的登录 cookie。

脚本参数

通过 arguments 传入,脚本中通过 __args__ 获取:

参数 类型 必填 说明
topicId number/string 帖子 ID

调用示例

{ 
  "skill_name": "fetch-linuxdo-post", 
  "script_path": "scripts/fetch-post.js",
  "arguments": { "topicId": 12345 }
}

返回值

返回值有两种模式,取决于 JSON API 是否可用:

模式一:threads(讨论串模式,JSON API 正常)
{
  "success": true,
  "mode": "threads",
  "topic": {
    "id": 12345,
    "title": "帖子标题"
  },
  "mainPost": {
    "author": "作者名",
    "content": "帖子正文内容",
    "createdAt": "2026-01-15 16:14:29"
  },
  "threads": [
    [
      {
        "postNumber": 2,
        "author": "评论者",
        "content": "评论内容",
        "createdAt": "2026-01-15 16:14:55",
        "replyTo": 1
      },
      {
        "postNumber": 5,
        "author": "回复者",
        "content": "回复内容",
        "createdAt": "2026-01-15 16:15:30",
        "replyTo": 2
      }
    ]
  ],
  "totalPosts": 10,
  "threadsCount": 3,
  "message": "成功获取帖子内容,共 10 条帖子(含主帖),3 个讨论串"
}
模式二:comments(原始评论模式,JSON API 异常时降级)
{
  "success": true,
  "mode": "comments",
  "topic": {
    "id": 12345,
    "title": null
  },
  "mainPost": {
    "author": "作者名",
    "content": "帖子正文内容",
    "createdAt": "2026-01-15 16:14:29"
  },
  "comments": [
    {
      "postNumber": 2,
      "author": "评论者",
      "content": "评论内容",
      "createdAt": "2026-01-15 16:14:55"
    }
  ],
  "totalPosts": 10,
  "commentsCount": 9,
  "message": "成功获取帖子内容(降级模式),共 10 条帖子(含主帖),9 条评论"
}

数据结构说明

  • mode: 返回模式,threadscomments
  • mainPost: 帖子正文(1楼)
  • threads: 讨论串数组,每个讨论串是按楼层排序的评论数组(仅 threads 模式)
  • comments: 原始评论列表,按楼层排序(仅 comments 模式)
  • replyTo: 回复的目标楼层(仅 threads 模式有此字段)

使用流程

  1. 激活此 skill
  2. 传入帖子 ID 执行 scripts/fetch-post.js
  3. 获取结构化的帖子内容和评论数据
  4. 可用于后续的内容总结、分析等操作

Read the full file on GitHub · 184 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 184 lines · 34 tokens per session scan A 2dab1e3a3902

Subscribe to this mod's changes

fetch-linuxdo-post is a skill published in the GitHub repository Castor6/tactus (378 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 34 tokens to every session and 1,770 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

dingtalk_channel_connect

Use a headed browser to automatically complete DingTalk channel integration for QwenPaw. Applicable when the user mentions DingTalk, developer console, Client ID, Client Secret, bot, Stream mode, binding or configuring a channel. Supports pausing when a login page is detected and resuming after the user logs in.

agentscope-ai/QwenPaw · 69 tokens

browser_cdp

当用户明确希望连接到已运行的 Chrome 浏览器、扫描本地 CDP 端口、显式指定 cdpport,或让多个 agent / 工具共享同一个浏览器时,使用本 skill。browser 默认不开放调试端口;仅当用户明确希望其他本地工具附加时才显式传入 cdpport。.

agentscope-ai/QwenPaw · 85 tokens

browser_visible

当用户需要控制 browser 的浏览器启动方式时,使用本 skill。browser 默认由 Playwright 直接管理、不开放调试端口(需让其他本地工具附加时显式传 cdpport);headed 控制是否显示窗口,privatemode 保留用于兼容、不再改变默认行为,browserargs 传入额外的 Chromium 启动参数,executablepath 指定自定义浏览器可执行文件路径。.

agentscope-ai/QwenPaw · 108 tokens

browser_visible

Use this skill when the user needs to control the browser launch mode for browser. By default browser is managed by Playwright and opens no debugging port (pass an explicit cdpport to let another local tool attach); headed controls whether the window is visible, and privatemode is kept for backward compatibility and…

agentscope-ai/QwenPaw · 75 tokens

claude-in-chrome

Automates your Chrome browser to interact with web pages - clicking elements, filling forms, capturing screenshots, reading console logs, and navigating sites. Opens pages in new tabs within your existing Chrome session. Requires site-level permissions before executing (configured in the extension).

asgeirtj/system_prompts_leaks · 57 tokens

ego-browser

Skill "ego-browser" from citrolabs/ego-lite, covering ego-browser, quick start, common helpers, task spaces and control handoff.

citrolabs/ego-lite · 210 tokens