Tavern Helper Frontend logo

Tavern Helper Frontend

Community
yukk4159-bit
tavern-helper-frontend

如果 `xxx` 文件夹中既有 `index.ts` 文件也有 `index.html` 文件, 则它是一个酒馆助手前端界面. 前端界面以无沙盒 iframe 的形式在酒馆消息楼层中前台显示, 有一个内嵌在消息楼层中的界面, 你可以在其中添加静态内容、样式、脚本等. 酒馆消息楼层中的文本原本只支持静态内容、不支持执行代码 (`<script>` 部分会被删除), 前端界面则补足了这一点, 并可以通过酒馆助手接口做到操作酒馆变量、开关世界书条目等功能. 当涉及酒馆助手前端界面、需要制作伴随消息楼层的界面或者涉及这些功能时, 你应该参考本 skill.

Overview

Publisheryukk4159-bit
Repositorycharcard-workshop
Skill nametavern-helper-frontend
Stars
37
Forks
3
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by yukk4159-bit on GitHub. Read the source before you install it.

Installation

Install the Tavern Helper Frontend AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/yukk4159-bit/charcard-workshop/tree/main/skills/tavern-helper-frontend
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/yukk4159-bit/charcard-workshop.git /tmp/charcard-workshop
mkdir -p .claude/skills
cp -r /tmp/charcard-workshop/skills/tavern-helper-frontend .claude/skills/tavern-helper-frontend
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Tavern Helper Frontend in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Tavern Helper Frontend on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Tavern Helper Frontend is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

前端界面

如果 src/xxx 文件夹中既有 index.ts 文件也有 index.html 文件, 则它是一个前端界面项目.

前端界面以无沙盒 iframe 的形式在酒馆消息楼层中前台显示, 有一个自己的界面, 你可以在其中添加静态内容、样式、脚本等.

index.html 中应该写什么

前端界面的 index.html 仅可填写静态 <body> 内容, 不得引用项目中其他文件, 所有非内嵌样式、代码、额外的外部依赖都应通过 Typescript 文件导入. 具体来说:

html
<head>
  <!-- 保留一个什么都没有的 <head> 标签, webpack 打包时会在这里插入样式、脚本等 -->
</head>
<body>
  <!-- 这里写 <div>、<span> 等静态内容, 也可以只写 <div id="app"></div> 交给 vue 来渲染 -->
</body>
  • 禁止在 index.html 中用 <link rel="stylesheet" href="./index.css"> 导入样式, 而应该
    • (优先) 设计 vue 组件, 在 vue 组件中用 <style lang="scss"> 书写.
    • 或在 Typescript 文件中用 import './index.css' 导入, 这样导入的样式将会经过打包最小化后插入到 <head> 部分;
  • 禁止在 index.html 中用 <script src="./index.ts"> 来引用 index.ts 或其他本地脚本. index.ts 及它导入的文件会由 webpack 直接加入到最终打包好的 dist/**/index.html 中.
  • 在 index.html 中填入 <img> 标签时, 禁止使用 src="" 占位. 要么引用实际的图片, 要么不要有这个属性, 否则会导致 webpack 打包错误.

图标使用

你可以任意使用 fontawesome 的免费图标.

iframe 适配要求

  • 当对前端界面高度进行调整时, 禁止使用 vh 单位等会受宿主高度影响的单位, 而是使用 width 和 aspect-ratio 来让高度根据宽度动态调整.
  • 避免使用会强制撑高父容器的元素 (如 min-height、overflow: auto).
  • 页面必须有外部支撑, 主体内容不能使用 position: absolute 等会脱离文档流的样式.
  • 页面整体应适配容器宽度,不产生横向滚动条.
  • 如果样式更适合卡片形状,则不要有背景颜色,除非用户有明确要求.

Frequently asked questions

What does the Tavern Helper Frontend AI skill do?

如果 `xxx` 文件夹中既有 `index.ts` 文件也有 `index.html` 文件, 则它是一个酒馆助手前端界面. 前端界面以无沙盒 iframe 的形式在酒馆消息楼层中前台显示, 有一个内嵌在消息楼层中的界面, 你可以在其中添加静态内容、样式、脚本等. 酒馆消息楼层中的文本原本只支持静态内容、不支持执行代码 (`<script>` 部分会被删除), 前端界面则补足了这一点, 并可以通过酒馆助手接口做到操作酒馆变量、开关世界书条目等功能. 当涉及酒馆助手前端界面、需要制作伴随消息楼层的界面或者涉及这些功能时, 你应该参考本 skill.

Why use Tavern Helper Frontend on TypingMind?

Because you install it once and use it with any model. Tavern Helper Frontend is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Tavern Helper Frontend in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/yukk4159-bit/charcard-workshop/tree/main/skills/tavern-helper-frontend. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Tavern Helper Frontend?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Tavern Helper Frontend?

As many as you like. As long as a model supports skills, you can use Tavern Helper Frontend with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Tavern Helper Frontend AI skill free?

Yes. It is published on GitHub by yukk4159-bit under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇