Agent skill

Tofu Debugging

by NiuTrans in NiuTrans/ToFu

Debug a Tofu conversation or task by conversation ID — inspect the sidecar transcript, storage lineage, and app logs with debug/inspectconversation.py before touching the database.

MITAuto-check passedDevelopment

Install Tofu Debugging

skills CLI
$ npx skills add NiuTrans/ToFu --skill tofu-debugging -a claude-code

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

GitHub CLI
$ gh skill install NiuTrans/ToFu tofu-debugging --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/NiuTrans/ToFu.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/tofu-debugging .claude/skills/tofu-debugging && 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
tofu-debugging
GitHub stars
148
Token cost
~283 tokens
SKILL.md length
110 words
Files
1
Repo updated
First seen
Licence
MIT

At a glance

Debug a Tofu conversation or task by conversation ID — inspect the sidecar transcript, storage lineage, and app logs with debug/inspectconversation.py before touching the database.

  • Tasks that involve Debugging
  • Calls python3

What it does

Tofu Debugging is an agent skill from NiuTrans/ToFu. Debug a Tofu conversation or task by conversation ID — inspect the sidecar transcript, storage lineage, and app logs with debug/inspectconversation.py before touching the database.

Its SKILL.md is about 280 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Debugging. The repository describes itself as: Self-hosted AI assistant with tool use, multi-agent orchestration, coding copilot and a lightweight Flask + vanilla JS stack. The licence is MIT.

When your agent uses it

  • Tasks that involve Debugging

Example prompts

  • “/tofu-debugging”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 079e58e. 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

    Shell commands in SKILL.md call:

    • python3

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

  • Network

    No URLs in SKILL.md.

    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

Tofu Debugging loads about 283 tokens when it runs. Until then it costs about 49 tokens; SKILL.md has 110 words of instructions outside code blocks.

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

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); files beside SKILL.md are not scanned.

SKILL.md

The full file from NiuTrans/ToFu at commit 079e58e, republished under its MIT licence (© NiuTrans). 110 words, ~283 tokens.

Download SKILL.mdSave it as .claude/skills/tofu-debugging/SKILL.md (or your agent's skills folder).
name
tofu-debugging
description
Debug a Tofu conversation or task by conversation ID — inspect the sidecar transcript, storage lineage, and app logs with debug/inspect_conversation.py before touching the database.

Debugging Tofu conversations

For a conversation ID, the first command is always:

bash
python3 debug/inspect_conversation.py <conversation_id>

Do not hand-query SQLite or guess table names. With no source flags the inspector follows the configured storage backend: SQLite deployments resolve the live Sidecar/fastpath authority; tofudb deployments auto-discover the running application's loopback API (configured PORT, default 15000) and read the transcript through the v4 conversation endpoints, exactly like the service renders it. Storage facts and flags are documented in the root AGENTS.md and docs/STORAGE.md.

This package is instruction-only: it has no resource files. Paths named here (debug/inspect_conversation.py, docs/STORAGE.md, logs under logs/) are workspace files — open them with ordinary file tools such as read_files and grep_search, not read_skill_resource.

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

Files

Just SKILL.md in .agents/skills/tofu-debugging of NiuTrans/ToFu.

Open the folder on GitHubat commit 079e58e

Compare with similar skills

Tofu Debugging 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.

Tofu Debugging compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Tofu Debugging this skillNiuTrans/ToFu148—~283Automated safety check: PassMIT
Trellis Session Insightmindfold-ai/Trellis15k4 repos~1.7kAutomated safety check: PassAGPL-3.0
Native Data FetchingCherryHQ/cherry-studio-app4k6 repos~2.9kAutomated safety check: NotesMIT
Debugging Executionsn8n-io/n8n207k—~2.6kAutomated safety check: PassCustom licence
Aoti Debugpytorch/pytorch104k1 repos~1.7kAutomated safety check: PassCustom licence
Herdr Throwaway Reproductionherdrdev/herdr43k—~2.4kAutomated safety check: PassApache-2.0

Similar skills

  • Trellis Session Insight

    mindfold-ai/Trellis

    Reach into past AI conversation history through the trellis mem CLI.

    15k GitHub starsUsed in 4 repos~1.7k tokens
    DevelopmentAuto-check passed
  • Native Data Fetching

    CherryHQ/cherry-studio-app

    A skill your agent uses when implementing or debugging ANY network request, API call, or data fetching.

    4k GitHub starsUsed in 6 repos~2.9k tokens
    DevelopmentAuto-check: notes
  • Official

    Debug failed or wrong-output workflow executions using executions tools.

    207k GitHub stars~2.6k tokensUpdated today
    DevelopmentAuto-check passed
  • Aoti Debug

    pytorch/pytorch

    Debug AOTInductor (AOTI) errors and crashes. An agent skill from pytorch/pytorch.

    104k GitHub starsUsed in 1 repo~1.7k tokens
    DevelopmentAuto-check passed
  • Runs a disposable, uniquely named Herdr session inside an existing one so runtime, pane, terminal or API bugs can be reproduced without touching the main session.

    43k GitHub stars~2.4k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Systematic Debugging

    ultralisp/ultralisp

    A skill your agent uses when encountering any bug, test failure, or unexpected behavior, before proposing fixes

    258 GitHub starsUsed in 52 repos~2.4k tokens
    DevelopmentAuto-check passed

More from NiuTrans/ToFu

  • Tofu Design System

    NiuTrans/ToFu

    Build NEW pages, features, or standalone project UIs (翻译项目/企业项目/新页面/新项目 UI, translation tools, enterprise apps, dashboards) on the Tofu design system — every control from frontend/src/ui factories…

    148 GitHub stars~620 tokensUpdated yesterday
    Auto-check passed
  • Tofu Frontend

    NiuTrans/ToFu

    Change the Tofu browser UI — edit retained sources under frontend/src/ and rebuild with npm run build:frontend, never editing generated bundles under static/ or frontend/src/runtime/app-runtime.js.

    148 GitHub stars~213 tokensUpdated yesterday
    Auto-check passed
  • Goal Coordinator

    NiuTrans/ToFu

    Coordinate one Tofu evolution goal through owner conversation, new materials, experimental reports, executor assignments and explicit update acknowledgements.

    148 GitHub stars~889 tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Tofu Debugging

What does Tofu Debugging do?

Debug a Tofu conversation or task by conversation ID — inspect the sidecar transcript, storage lineage, and app logs with debug/inspectconversation.py before touching the database. Tofu Debugging is an agent skill from NiuTrans/ToFu.py before touching the database.

When should I use Tofu Debugging?

Tofu Debugging fits situations like: tasks that involve Debugging.

How do I install Tofu Debugging in Claude Code?

Run `npx skills add NiuTrans/ToFu --skill tofu-debugging -a claude-code`. Or copy the skill folder (.agents/skills/tofu-debugging in NiuTrans/ToFu) into .claude/skills/tofu-debugging in your project. Claude Code loads it when a task matches its description.

How do I install Tofu Debugging in Codex?

Run `npx skills add NiuTrans/ToFu --skill tofu-debugging -a codex`. Or copy the skill folder (.agents/skills/tofu-debugging in NiuTrans/ToFu) into .agents/skills/tofu-debugging in your project. Codex loads it when a task matches its description.

Can I use Tofu Debugging 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 NiuTrans/ToFu --skill tofu-debugging -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/tofu-debugging, .gemini/skills/tofu-debugging, .github/skills/tofu-debugging and .opencode/skills/tofu-debugging in your project.

What does Tofu Debugging need to run?

Going by SKILL.md and its folder, Tofu Debugging needs the command-line tools its instructions call (python3). Our summary lists: Python 3.

Does Tofu Debugging access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Tofu Debugging 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. Review the folder before installing.

What licence does Tofu Debugging use?

Tofu Debugging 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 Tofu Debugging use?

About 283 tokens (SKILL.md is roughly 1.1k 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 Tofu Debugging?

Skills that share tags, products or a category with Tofu Debugging: Trellis Session Insight (mindfold-ai/Trellis, 15k stars), Native Data Fetching (CherryHQ/cherry-studio-app, 4k stars), Debugging Executions (n8n-io/n8n, 207k stars) and Aoti Debug (pytorch/pytorch, 104k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Tofu Debugging?

NiuTrans (a GitHub organization) maintains it in NiuTrans/ToFu, which has 148 GitHub stars. The repository was last updated on October 10, 2026.

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