Agent skill

Tbtools

by xuzhougeng in xuzhougeng/wispterm

A skill your agent uses when the user asks about TBtools, TBtools-II, TBtools RPC API, TBtools CLI, or bioinformatics operations available through TBtools such as sequence manipulation, BLAST…

MITAuto-check passedResearch & Science

Install Tbtools

skills CLI
$ npx skills add xuzhougeng/wispterm --skill tbtools -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install xuzhougeng/wispterm tbtools --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/xuzhougeng/wispterm.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/skills/tbtools .claude/skills/tbtools && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
tbtools
GitHub stars
443
Token cost
~2.3k tokens
SKILL.md length
488 words
Files
2 (incl. scripts)
Skills in repo
4
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when the user asks about TBtools, TBtools-II, TBtools RPC API, TBtools CLI, or bioinformatics operations available through TBtools such as sequence manipulation, BLAST…

  • Works in 6 steps: Create deterministic workspace folders… → Call system.listMethods and… → Prefer a matching *.validateParams or… → …
  • The user asks about TBtools
  • SKILL.md covers Overview, Setup, RPC Server and RPC Helper, plus 5 more sections
  • Runs PowerShell scripts from its folder; calls java, curl and python3

What it does

Tbtools is an agent skill from xuzhougeng/wispterm. Use when the user asks about TBtools, TBtools-II, TBtools RPC API, TBtools CLI, or bioinformatics operations available through TBtools such as sequence manipulation, BLAST, GFF/GTF/GXF processing, expression tables, heatmaps, trees, MCScanX, DIAMOND, HMMER, MUSCLE, and IQ-TREE.

Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts.

It sits in Research & Science, covering Bioinformatics. It works with macOS, Bash, PowerShell and Linux. The repository describes itself as: A cross-platform terminal workspace for remote development and AI agent workflows, powered by libghostty-vt. The licence is MIT.

When your agent uses it

  • The user asks about TBtools
  • TBtools RPC API
  • Bioinformatics operations available through TBtools such as sequence manipulation
  • GFF/GTF/GXF processing

Example prompts

  • “/tbtools”

Requirements

  • Python 3
  • PowerShell

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Create deterministic workspace folders and pass absolute host-local file paths. RPC bodies carry paths, not file content.
  2. Call system.listMethods and system.describeMethod for candidate methods. Use system.toolsJson when many method schemas are needed.
  3. Prefer a matching *.validateParams or *.validateInput before *.process when available.
  4. Treat validation failures carefully: validate methods may return result.ok = false / validated = false with structured errors instead of a…
  5. For long BLAST, tree, heatmap, NCBI, or large file jobs, raise client timeout and reduce concurrency.
  6. If JSON-RPC error -32603 has error.data.reason = rpc pool busy, back off and retry with lower concurrency.

What it can do on your machine

Read from SKILL.md and the folder at commit 4168f80. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (PowerShell), which the agent can run.

    Shell commands in SKILL.md call:

    • java
    • curl
    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use curl, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Tbtools loads about 2.3k tokens when it runs. Until then it costs about 72 tokens; SKILL.md has 488 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~72
When it runs · the whole SKILL.md, loaded when a task matches
~2.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from xuzhougeng/wispterm at commit 4168f80, republished under its MIT licence (© xuzhougeng). 488 words, ~2,331 tokens.

Download SKILL.mdSave it as .claude/skills/tbtools/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
tbtools
description
Use when the user asks about TBtools, TBtools-II, TBtools RPC API, TBtools CLI, or bioinformatics operations available through TBtools such as sequence manipulation, BLAST, GFF/GTF/GXF processing, expression tables, heatmaps, trees, MCScanX, DIAMOND, HMMER, MUSCLE, and IQ-TREE.

TBtools

Overview

TBtools-II is a Java-based bioinformatics toolkit that runs on Windows and macOS. Prefer TBtools' own bundled Java/RPC/CLI tools. Do not introduce Python, R, Conda, or other dependencies unless the user explicitly asks.

Honor TBTOOLS_HOME or TBTOOLS_JAR if set; fall back to the platform default.

Setup

Windows (PowerShell)
powershell
$TbtoolsHome = if ($env:TBTOOLS_HOME) { $env:TBTOOLS_HOME } else { "C:\Program Files\TBtools" }
$TbtoolsJar = if ($env:TBTOOLS_JAR) { $env:TBTOOLS_JAR } else { Join-Path $TbtoolsHome "TBtools_JRE1.6.jar" }
$env:Path = "$(Join-Path $TbtoolsHome 'bin');$env:Path"

Test-Path $TbtoolsJar
java -version
macOS / Linux (bash)
bash
TBTOOLS_HOME="${TBTOOLS_HOME:-/Applications/TBtools-II}"
TBTOOLS_JAR="${TBTOOLS_JAR:-$(find "$TBTOOLS_HOME" -name 'TBtools*.jar' -maxdepth 4 2>/dev/null | head -1)}"
export PATH="$TBTOOLS_HOME/bin:$PATH"

[ -f "$TBTOOLS_JAR" ] && echo "jar: $TBTOOLS_JAR" || echo "TBtools jar not found — set TBTOOLS_JAR"
java -version

Use bin/ (bin\ on Windows) tools directly when the task is a standard external tool workflow:

bash
blastn -query query.fa -db db_prefix -out results.tsv -outfmt 6
muscle -in input.fa -out aligned.fa
iqtree -s aligned.fa -m MFP -bb 1000 -nt AUTO
diamond blastp -d proteins.dmnd -q query.fa -o matches.tsv

RPC Server

Windows (PowerShell)
powershell
.\scripts\start_rpc_server.ps1 -Background

Direct form:

powershell
java -cp $TbtoolsJar biocjava.rpc.RpcServer
macOS / Linux (bash)
bash
java -cp "$TBTOOLS_JAR" biocjava.rpc.RpcServer &

Default URLs:

PurposeURL
Health checkhttp://127.0.0.1:8765/health
JSON-RPChttp://127.0.0.1:8765/rpc

rpcPort is configurable in TBtools config. rpcBindAddress is normalized to loopback only (127.0.0.1 or ::1); do not expose the RPC server on 0.0.0.0.

RPC Helper

Windows (PowerShell)
powershell
function Invoke-TBtoolsRpc {
    param(
        [Parameter(Mandatory=$true)][string]$Method,
        [hashtable]$Params = @{},
        [string]$Uri = "http://127.0.0.1:8765/rpc",
        [int]$TimeoutSec = 600
    )

    $body = @{
        jsonrpc = "2.0"
        method = $Method
        params = $Params
        id = [guid]::NewGuid().ToString()
    } | ConvertTo-Json -Depth 50

    $response = Invoke-RestMethod -Method Post -Uri $Uri -ContentType "application/json" -Body $body -TimeoutSec $TimeoutSec
    if ($null -ne $response.error) {
        $reason = if ($response.error.data -and $response.error.data.reason) { " ($($response.error.data.reason))" } else { "" }
        throw "TBtools RPC error $($response.error.code): $($response.error.message)$reason"
    }
    return $response.result
}
macOS / Linux (bash + curl)
bash
tbtools_rpc() {
    local method="$1"
    local params="${2:-{}}"
    local uri="${TBTOOLS_RPC_URI:-http://127.0.0.1:8765/rpc}"
    curl -s --max-time 600 -X POST "$uri" \
        -H "Content-Type: application/json" \
        -d "{\"jsonrpc\":\"2.0\",\"method\":\"$method\",\"params\":$params,\"id\":\"1\"}"
}

Discovery:

bash
# Windows
Invoke-WebRequest -UseBasicParsing http://127.0.0.1:8765/health
Invoke-TBtoolsRpc -Method system.ping
$methods = (Invoke-TBtoolsRpc -Method system.listMethods).methods
$methods | Where-Object { $_ -like "*Fasta*" }
Invoke-TBtoolsRpc -Method system.describeMethod -Params @{ method = "FastaStat.process" }
Invoke-TBtoolsRpc -Method system.toolsJson

# macOS / Linux
curl -s http://127.0.0.1:8765/health
tbtools_rpc system.ping
tbtools_rpc system.listMethods | python3 -c "import sys,json; [print(m) for m in json.load(sys.stdin)['result']['methods']]"
tbtools_rpc system.describeMethod '{"method":"FastaStat.process"}'

RPC Workflow

  1. Create deterministic workspace folders and pass absolute host-local file paths. RPC bodies carry paths, not file content.
  2. Call system.listMethods and system.describeMethod for candidate methods. Use system.toolsJson when many method schemas are needed.
  3. Prefer a matching *.validateParams or *.validateInput before *.process when available.
  4. Treat validation failures carefully: validate methods may return result.ok = false / validated = false with structured errors instead of a JSON-RPC error.
  5. For long BLAST, tree, heatmap, NCBI, or large file jobs, raise client timeout and reduce concurrency.
  6. If JSON-RPC error -32603 has error.data.reason = rpc pool busy, back off and retry with lower concurrency.

RPC Protocol Notes

TopicContract
RequestHTTP POST /rpc, JSON-RPC 2.0 object with method, params, id
BatchJSON array of request objects; response array is in order and omits notifications
Empty batchHTTP 200 with body []
HealthGET /health returns HTTP 200 body OK
Successresult object, usually at least ok: true
ErrorsHTTP 200 with error.code, error.message, optional error.data

Common error codes: -32700 parse error, -32600 invalid request, -32601 method not found, -32602 invalid params, -32603 internal error, -32000 timeout.

Show full SKILL.md (187 more words)Show less

Common RPC Methods

AreaMethods
Sequence filesFastaStat.process, FastaSeqManipulator.process, AmazingFastaExtract.process, FastaExtract.process, FastxExtract.process, FastxIndex.process, FastaIDTools.*
FASTA conversionFastaToTable.process, TableToFasta.process, CdsToProtein.process, FastaMerge.process, FastaSplitByCount.process, FastaSplitAsOneSeq.process
AnnotationGXFFix.process, GffCdsPhase.process, GxfSeqExtract.process, GxfFilter.process, GffFeatureExtract.process, GtfFeatureExtract.process, GxfStat.process
TablesTableTools.transpose, TableTools.mergeByKeyMulti, TableTools.selectRows, TableTools.selectColumnsByList, TableTools.groupAggregate, TableRowManipulator.process
ExpressionExpressionFpkmToTpm.process, ExpressionRpkm.process, ExpressionTpm.process, ExpressionTau.process, ExpressionCorrMatrix.process, GeneExpFilter.process, GenePairCorr.process
Alignment and treesBlastCompareTwoSeqSet.process, BlastXmlToTable.process, ReciprocalBlast.process, OneStepBuildATree.process, TrimMsaSimple.process, TrimMsaGblocks.process, BlatAlign.process
Visualization and miscAmazingHeatMap.process, MemeSuiteXmlToTab.process, PlantCareClassify.process, SendEmail.process, TodoList.*

Examples

FASTA statistics (Windows PowerShell):

powershell
Invoke-TBtoolsRpc -Method FastaStat.process -Params @{
    inputPath = "D:/data/genome.fa"
    outputPath = "D:/data/out/genome_stat.xls"
    options = @{ getLengthOnly = $false }
}

FASTA statistics (macOS / Linux bash):

bash
tbtools_rpc FastaStat.process \
  '{"inputPath":"/data/genome.fa","outputPath":"/data/out/genome_stat.xls","options":{"getLengthOnly":false}}'

Extract FASTA records with a prewritten ID list (Windows PowerShell):

powershell
Invoke-TBtoolsRpc -Method AmazingFastaExtract.process -Params @{
    inputPath = "D:/data/genome.fa"
    idListPath = "D:/data/ids.txt"
    outputPath = "D:/data/out/extracted.fa"
    options = @{
        usePattern = $false
        caseInsensitive = $true
        dontTreatSpaceAsColSep = $false
        wholeWordMatch = $false
    }
}

Validate then run a tree pipeline (Windows PowerShell):

powershell
$params = @{
    inputPath = "D:/data/sequences.fa"
    outputPath = "D:/data/out/tree"
    options = @{ ultraFastBS = $true; bbTime = 5000; model = "Auto"; threads = 2 }
}
$check = Invoke-TBtoolsRpc -Method OneStepBuildATree.validateParams -Params $params
if ($check.ok -eq $false -or $check.validated -eq $false) { $check.errors; throw "TBtools validation failed" }
Invoke-TBtoolsRpc -Method OneStepBuildATree.process -Params $params -TimeoutSec 7200

Validate then run a tree pipeline (macOS / Linux bash):

bash
tbtools_rpc OneStepBuildATree.validateParams \
  '{"inputPath":"/data/sequences.fa","outputPath":"/data/out/tree","options":{"ultraFastBS":true,"bbTime":5000,"model":"Auto","threads":2}}'
tbtools_rpc OneStepBuildATree.process \
  '{"inputPath":"/data/sequences.fa","outputPath":"/data/out/tree","options":{"ultraFastBS":true,"bbTime":5000,"model":"Auto","threads":2}}'

Operating Rules

  • Detect the platform first: use PowerShell helpers on Windows, bash + curl on macOS/Linux.
  • Use TBtools bundled bin/ tools before suggesting external installs.
  • Keep stderr/error details visible for external tools and RPC errors.
  • Do not assume a method exists from memory; discover it through system.listMethods.
  • Do not assume system.listMethods returns a raw array; the canonical result is an object with methods.
  • Do not use Python helpers for normal TBtools work in this environment.
  • Use forward-slash paths (/data/...) in RPC calls even on Windows — TBtools accepts them.

© xuzhougeng, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (scripts) in plugins/skills/tbtools of xuzhougeng/wispterm.

  • SKILL.md
  • scripts/start_rpc_server.ps1

Open the folder on GitHubat commit 4168f80

Compare with similar skills

Tbtools next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Tbtools compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Tbtools this skillxuzhougeng/wispterm443—~2.3kAutomated safety check: PassMIT
UvBiFangKNT/mtga1.2k—~541Automated safety check: PassAGPL-3.0
Oh My PoshJanDeDobbeleer/oh-my-posh24k—~319Automated safety check: PassMIT
Image Manipulation Image Magickgithub/awesome-copilot40k1 repos~1.7kAutomated safety check: NotesMIT
Tapd Iteration InitTencentBlueKing/bk-bcs841—~1.3kAutomated safety check: PassCustom licence
RmuxHelvesec/rmux2.7k—~1.3kAutomated safety check: PassCustom licence

Similar skills

  • Uv

    BiFangKNT/mtga

    在 Windows/macOS/Linux 上使用 uv 执行 Python 运行、依赖同步、锁文件管理、Python 版本管理与工具命令(uv run、uv sync、uv lock、uv python、uv tool)。当任务涉及“用 uv 运行脚本/命令”“临时依赖(--with)”“锁文件一致性(--locked/--frozen)”“跨平台…

    1.2k GitHub stars~541 tokensUpdated 3 mo ago
    Auto-check passed
  • Oh My Posh

    JanDeDobbeleer/oh-my-posh

    Install, configure, or troubleshoot Oh My Posh/ohmyposh: shell init, themes, segments, Nerd Font icons, and prompt setup on PowerShell, zsh, bash, or fish.

    24k GitHub stars~319 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Image Manipulation Image Magick

    github/awesome-copilot

    Official

    Process and manipulate images using ImageMagick. An agent skill from github/awesome-copilot.

    40k GitHub starsUsed in 1 repo~1.7k tokens
    Data & AnalyticsAuto-check: notes
  • Tapd Iteration Init

    TencentBlueKing/bk-bcs

    迭代执行流水线启动器。分三个阶段执行:信息检查(验证 git 环境、获取迭代信息、 解析迭代分支)→ 恢复检测(已有状态文件时判定恢复策略)→ 新流程初始化(创建分支、 迭代目录和 iteration-state.json)。

    841 GitHub stars~1.3k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Rmux

    Helvesec/rmux

    Guide for using RMUX with Claude Code, including the tmux-compatible CLI, agent automation waits, the typed SDK, browser web-share, and the rmux claude launcher.

    2.7k GitHub stars~1.3k tokensUpdated 2 mo ago
    Auto-check passed
  • Environment Setup

    Norman-bury/research-writing-skill

    A skill your agent uses when Python environment setup is needed for data visualization or conda installation is required

    3.4k GitHub stars~840 tokensUpdated 4 mo ago
    Data & AnalyticsAuto-check passed

More from xuzhougeng/wispterm

  • Inspect Computer Config

    xuzhougeng/wispterm

    A skill your agent uses when the user asks to inspect, summarize, audit, compare, or troubleshoot this computer's hardware, operating system, CPU, memory, GPU, disk, or local runtime configuration.

    443 GitHub stars~479 tokensUpdated 4 days ago
    Auto-check passed
  • Wispterm Diagnostics

    xuzhougeng/wispterm

    A skill your agent uses when a user wants to report, troubleshoot, or collect context for a WispTerm issue, including crashes, rendering/DPI glitches, high CPU, keyboard/input bugs…

    443 GitHub stars~3.1k tokensUpdated 4 days ago
    Auto-check passed
  • Wispterm Notify Setup

    xuzhougeng/wispterm

    A skill your agent uses when the user wants to install, repair, or re-apply WispTerm notification reminders (Claude Code Stop + Notification, and Codex turn-complete) in a local…

    443 GitHub stars~1.3k tokensUpdated 4 days ago
    Auto-check passed

Questions about Tbtools

What does Tbtools do?

A skill your agent uses when the user asks about TBtools, TBtools-II, TBtools RPC API, TBtools CLI, or bioinformatics operations available through TBtools such as sequence manipulation, BLAST…. Tbtools is an agent skill from xuzhougeng/wispterm. Use when the user asks about TBtools, TBtools-II, TBtools RPC API, TBtools CLI, or bioinformatics operations available through TBtools such as sequence manipulation, BLAST, GFF/GTF/GXF processing, expression tables, heatmaps, trees, MCScanX, DIAMOND, HMMER, MUSCLE, and IQ-TREE.

When should I use Tbtools?

Tbtools fits situations like: the user asks about TBtools; TBtools RPC API; bioinformatics operations available through TBtools such as sequence manipulation; GFF/GTF/GXF processing.

How do I install Tbtools in Claude Code?

Run `npx skills add xuzhougeng/wispterm --skill tbtools -a claude-code`. Or copy the skill folder (plugins/skills/tbtools in xuzhougeng/wispterm) into .claude/skills/tbtools in your project. Claude Code loads it when a task matches its description.

How do I install Tbtools in Codex?

Run `npx skills add xuzhougeng/wispterm --skill tbtools -a codex`. Or copy the skill folder (plugins/skills/tbtools in xuzhougeng/wispterm) into .agents/skills/tbtools in your project. Codex loads it when a task matches its description.

Can I use Tbtools in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add xuzhougeng/wispterm --skill tbtools -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/tbtools, .gemini/skills/tbtools, .github/skills/tbtools and .opencode/skills/tbtools in your project.

What does Tbtools need to run?

Going by SKILL.md and its folder, Tbtools needs PowerShell for the scripts in its folder and the command-line tools its instructions call (java, curl and python3). Our summary lists: Python 3; PowerShell.

Does Tbtools access the network?

SKILL.md contains no URLs. Its commands use curl, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Tbtools safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Tbtools use?

Tbtools is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Tbtools use?

About 2.3k tokens (SKILL.md is roughly 9.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Tbtools?

Skills that share tags, products or a category with Tbtools: Uv (BiFangKNT/mtga, 1.2k stars), Oh My Posh (JanDeDobbeleer/oh-my-posh, 24k stars), Image Manipulation Image Magick (github/awesome-copilot, 40k stars) and Tapd Iteration Init (TencentBlueKing/bk-bcs, 841 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Tbtools?

xuzhougeng (a GitHub user) maintains it in xuzhougeng/wispterm, which has 443 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 6, 2026.

Source: xuzhougeng/wispterm on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.