Agent skill

Tofu Frontend

by NiuTrans in 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.

MITAuto-check passedFrontend & Design

Install Tofu Frontend

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

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

GitHub CLI
$ gh skill install NiuTrans/ToFu tofu-frontend --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-frontend .claude/skills/tofu-frontend && 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-frontend
GitHub stars
148
Token cost
~213 tokens
SKILL.md length
64 words
Files
1
Repo updated
First seen
Licence
MIT

At a glance

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.

  • Frontend & Design work in your project
  • Calls npm

What it does

Tofu Frontend is an agent skill from 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.

Its SKILL.md is about 210 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 Frontend & Design. It works with npm. 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

  • Frontend & Design work in your project

Example prompts

  • “/tofu-frontend”

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:

    • npm

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

  • Network

    No URLs in SKILL.md. Its commands use npm, 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

Tofu Frontend loads about 213 tokens when it runs. Until then it costs about 53 tokens; SKILL.md has 64 words of instructions outside code blocks.

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

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). 64 words, ~213 tokens.

Download SKILL.mdSave it as .claude/skills/tofu-frontend/SKILL.md (or your agent's skills folder).
name
tofu-frontend
description
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.

Tofu frontend changes

Edit retained browser code in frontend/src/runtime/sections/ and styles in frontend/src/styles/{application,settings}/. The generated runtime frontend/src/runtime/app-runtime.js and everything under static/ are build outputs — change their source owners instead, then rebuild:

bash
npm run build:frontend

Domain map: docs/README.md; architecture: docs/ARCHITECTURE.md.

This package is instruction-only: it has no resource files. Paths named here 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-frontend of NiuTrans/ToFu.

Open the folder on GitHubat commit 079e58e

Compare with similar skills

Tofu Frontend 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 Frontend compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Tofu Frontend this skillNiuTrans/ToFu148—~213Automated safety check: PassMIT
GSAP for Reactgreensock/gsap-skills16k3 repos~1.6kAutomated safety check: PassMIT
Create Docsvictorgarciaesgi/nuxt-typed-router4132 repos~2.8kAutomated safety check: PassMIT
Sap Extension Creatorheshengtao/super-agent-party2.7k—~6kAutomated safety check: PassAGPL-3.0
Frontend Build Timing Auditopenops-cloud/openops1.1k—~2.3kAutomated safety check: PassCustom licence
Better Iconsdtsola/xiaoyaosearch1k2 repos~895Automated safety check: PassCustom licence

Similar skills

  • GSAP for React

    greensock/gsap-skills

    Shows how to run GSAP animations in React and Next.js with the useGSAP hook, refs, scoped selectors and automatic cleanup on unmount.

    16k GitHub starsUsed in 3 repos~1.6k tokens
    Frontend & DesignAuto-check passed
  • Create Docs

    victorgarciaesgi/nuxt-typed-router

    Create complete documentation sites for projects. An agent skill from victorgarciaesgi/nuxt-typed-router.

    413 GitHub starsUsed in 2 repos~2.8k tokens
    Frontend & DesignAuto-check passed
  • Sap Extension Creator

    heshengtao/super-agent-party

    Create Super Agent Party (SAP) extensions. An agent skill from heshengtao/super-agent-party.

    2.7k GitHub stars~6k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Frontend Build Timing Audit

    openops-cloud/openops

    Detects and diagnoses chunk-evaluation timing bugs in the Vite/rolldown production build of react-ui (works-in-dev / broken-in-build i18n regressions, missing UI labels, module-scope t()…

    1.1k GitHub stars~2.3k tokensUpdated 2 days ago
    Frontend & DesignAuto-check passed
  • Better Icons

    dtsola/xiaoyaosearch

    Searches more than 200 Iconify icon libraries and fetches icons as SVG from a command line tool or an MCP server.

    1k GitHub starsUsed in 2 repos~895 tokens
    Frontend & DesignAuto-check passed
  • Antigravity Manager

    Draculabo/AntigravityManager

    Comprehensive guide to Antigravity Manager architecture, workflows, and development.

    2.4k GitHub stars~793 tokensUpdated yesterday
    Frontend & DesignAuto-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 Debugging

    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.

    148 GitHub stars~283 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

Works with

Questions about Tofu Frontend

What does Tofu Frontend do?

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. Tofu Frontend is an agent skill from NiuTrans/ToFu.js.

When should I use Tofu Frontend?

Tofu Frontend fits situations like: frontend & Design work in your project.

How do I install Tofu Frontend in Claude Code?

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

How do I install Tofu Frontend in Codex?

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

Can I use Tofu Frontend 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-frontend -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-frontend, .gemini/skills/tofu-frontend, .github/skills/tofu-frontend and .opencode/skills/tofu-frontend in your project.

What does Tofu Frontend need to run?

Going by SKILL.md and its folder, Tofu Frontend needs the command-line tools its instructions call (npm).

Does Tofu Frontend access the network?

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

Is Tofu Frontend 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 Frontend use?

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

About 213 tokens (SKILL.md is roughly 852 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 Frontend?

Skills that share tags, products or a category with Tofu Frontend: GSAP for React (greensock/gsap-skills, 16k stars), Create Docs (victorgarciaesgi/nuxt-typed-router, 413 stars), Sap Extension Creator (heshengtao/super-agent-party, 2.7k stars) and Frontend Build Timing Audit (openops-cloud/openops, 1.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Tofu Frontend?

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.