Tizhuang Studio logo

Tizhuang Studio

Community
weishao2
tizhuang-studio

题庄题库工作台。在 Agent 中找真实题目、保存本地题库、按知识点和章节分类、导入 PDF、核对编辑、组卷导出 Word、备份迁移;Agent 与网页共用题库和组卷篮,不依赖 Obsidian。用户指定题庄 2.0、工作台或在 Agent 中保存组卷时使用;两个既有技能仍独立使用。

Overview

Publisherweishao2
Repositorytizhuang-agent-skills
Skill nametizhuang-studio
Stars
38
Forks
7
Bundled files
75
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.

  • 75 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by weishao2 on GitHub. Read the source before you install it.

Installation

Install the Tizhuang Studio 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/weishao2/tizhuang-agent-skills/tree/main/skills/tizhuang-studio
  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/weishao2/tizhuang-agent-skills.git /tmp/tizhuang-agent-skills
mkdir -p .claude/skills
cp -r /tmp/tizhuang-agent-skills/skills/tizhuang-studio .claude/skills/tizhuang-studio
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Tizhuang Studio 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 Tizhuang Studio 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 Tizhuang Studio 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.

题庄 · 题库工作台

这是题庄主推的本地题库技能,替代旧 Obsidian 版的新安装入口。旧版保留历史下载,不再更新;不自动覆盖或转换旧题库。在线找题,本机保存备课工作区。UI 沿用题庄插件的交互,不需要 Obsidian。支持知识点/教材目录、标签、分类、编辑、核对、PDF Agent 分题、共享组卷、Word 双版、打印稿和备份迁移;不含云端私有题库或跨设备自动同步。

自动安装与更新

从官方完整包解压后运行:

text
python scripts/install.py --target <当前Agent的skills目录>/tizhuang-studio --workspace <独立题库目录>

安装器自动创建独立 .venv、安装依赖并运行 doctor;同内容跳过,旧版先备份再更新,新版不降级。程序目录与题库目录必须分开,更新不删除未知文件,不改两个旧 Skill。Python 缺失时先安装官方 Python 3.10+。体检未成功不能说安装完成。然后运行下方启动命令;更新运行中的服务前先保存工作,不能杀掉不属于这个工作区的服务。详细安装见 references/install.md。

启动

  1. 确定一个专用于此技能的工作目录,沿用用户已打开的工作台目录,不另建第二个篮子。不要使用或改写用户现有 Obsidian 题库。
  2. 找到 Python 3.10+,执行 python scripts/studio.py --workspace <绝对工作目录> doctor。缺依赖时,在本技能独立 .venv 安装 scripts/requirements.txt;再次体检通过再汇报可用。不改两个既有技能、全局 Python 或它们的环境。
  3. 如工作目录已有 session.json,先用 state 验证服务可用。成功则复用其地址;否则运行 serve --port 4186(端口占用则选空闲端口)。只监听 127.0.0.1。Windows 后台启动使用 Start-Process -WindowStyle Hidden,日志存新工作目录外;不要停止不属于本技能的进程。
  4. 把服务返回的本机链接打开给用户。用户可在“连接题庄”输入 Key;也可在启动环境中提供 QUESTION_SERVICE_LICENSE。不要让用户把 Key 贴到聊天里,不打印、打包或写入脚本。界面输入的 Key 只在服务内存保存,重启后重填。

Windows 可直接执行 scripts/start.ps1 -Workspace <绝对工作目录> -Python <已体检解释器> -Port 4186,会优先复用已有工作台,或在后台启动新服务。独立环境首次配置可用 python -m venv .venv,再用 .venv/Scripts/python.exe -m pip install -r scripts/requirements.txt。

工作目录内的 session.json 含本机会话凭据,不上传;studio.sqlite3、raw/、Assets/ 和 exports/ 是老师的数据。更新技能仅替换程序文件,保留整个工作目录。

Agent 通过 MCP 取题

客户端已经连接题庄 MCP 时,优先读 MCP 取题入库流程,通过其 OAuth 或 API Key 连接取题,再用 import-mcp 保存到当前工作区,可同时加入共享组卷篮。认证由客户端管理,不复制凭据到页面,不调用 fetch 重取同一批题。页面直接取题仍使用自己的 API Key。

Agent 与界面共用状态

本地题库、知识树/教材树、标签分类、题目编辑、核对、备份与迁移:先读 题库工作流。PDF 原页识别、独立配图、可编辑分题入库:先读 PDF 工作流。页面和 Agent 共用这些能力,不要另建第二套存储。核对必须由老师完成,Agent 不得自行确认。

所有命令从这个技能目录运行,下方 python 替换成体检通过的解释器绝对路径。命令输出 JSON;向老师用正常中文汇报。

text
python scripts/studio.py --workspace <目录> state
python scripts/studio.py --workspace <目录> search --keyword 反比例函数 --limit 10
python scripts/studio.py --workspace <目录> show --ids <题号> <题号>
python scripts/studio.py --workspace <目录> meta subjects
python scripts/studio.py --workspace <目录> meta phases
python scripts/studio.py --workspace <目录> meta knowledge-points --params '{"subject_id":2,"phase_id":2,"limit":5000}'
python scripts/studio.py --workspace <目录> quota
python scripts/studio.py --workspace <目录> command --json @<操作文件.json>

search 只搜索当前已获取题目,不会扣费。新题可通过客户端 MCP 取回后 import-mcp 保存,或通过页面 Key 调用 fetch。show 返回题干、答案、解析和配图路径;读原题再选择,不编造答案或改写题意。页面 meta knowledge-points/chapters 使用受保护目录接口,按账户既有“学段 × 学科”名额开通,不绕过目录额度。

每次修改先读 state.revision,再生成一次性的 request_id(UUID)。操作 JSON 示例:

json
{"action":"add","ids":["123","456"],"revision":4,"request_id":"<新UUID>"}
action其余字段用途
fetchsubject_id, phase_id, count(1–20), 可选 knowledge_tree_id 或 edition_id+chapter_id, grade_id, keyword, offset获取真实题目;先查目录确认 ID
addids 字符串数组加入篮子,自动去重
removeid从本卷移除,保留题目
moveid, position移到第几题,从 1 起
scoreid, score分值 0–1000,最多两位小数
settingstitle, duration_minutes, answer_space_mm(可传部分)改标题、时长、留白
export无已核对题目从同一快照生成 Word 双版及 HTML 打印稿
retry-prepareid重新加载已取回题目的图片与公式,不重新取题
demo无用户需要演示时加载缓存真实题,明确标记为示例

command 自动标记操作者为 Agent。网页每 1.8 秒同步。不要直接改 SQLite、session 或前端存储来绕过接口。遇到版本冲突,重新读取并理解最新篮子,再应用仍符合用户意图的修改;不能盲目覆盖。网络超时后先查 state/额度,同一个 request_id 不会重复执行,但新的取题请求可能再次扣额。

章节和知识点互斥,也可都不选。学科、学段必填;未选具体节点时按该学段知识树根节点限定范围。不擅自放宽范围找题。用户已明确要求取题即可直接取,不增加“确认扣额度”弹窗。失败不自动重复请求。

导出前 show 检查所选题目及分值。原题没答案应说明,不代造答案。Word 中 LaTeX / MathML 转为可编辑公式;上游本身是图片的公式仍是图片,不声称全部可编辑。带合并单元格的复杂表格目前会停止导出并说明原因。导出成功后从 state.exports 返回下载链接;旧稿保持生成时快照。

开发与验证

运行 python -m unittest discover -s tests -v。发布前还需用真实 Key 在网页执行一次受保护目录和取题验收,分别验证 Word 双版、Agent 同步、窄屏、重启恢复和空白安装。测试用假 API 的结果不能表述为线上付费取题已验证。

复用来源及当前边界见 references/implementation.md。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

and 15 more files.

Frequently asked questions

What does the Tizhuang Studio AI skill do?

题庄题库工作台。在 Agent 中找真实题目、保存本地题库、按知识点和章节分类、导入 PDF、核对编辑、组卷导出 Word、备份迁移;Agent 与网页共用题库和组卷篮,不依赖 Obsidian。用户指定题庄 2.0、工作台或在 Agent 中保存组卷时使用;两个既有技能仍独立使用。

Why use Tizhuang Studio on TypingMind?

Because you install it once and use it with any model. Tizhuang Studio 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 Tizhuang Studio in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/weishao2/tizhuang-agent-skills/tree/main/skills/tizhuang-studio. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Tizhuang Studio?

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 Tizhuang Studio?

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

Is the Tizhuang Studio AI skill free?

Yes. It is published on GitHub by weishao2 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 👇