agentleFS
tiankonglantiankonglan/TomeWiki/docs/SKILL.md

docs

Skill7 starsChanged 3 months agoMITView on GitHub

本文给*人*看:克隆模板之后,怎样用自带 skill 把「Example Game」换成自己的站。 给 Agent 执行的步骤在: 三份随仓库走,不用再装 marketplace skill。手工改配置见 QUICKSTART.md。 第一轮只做*站身份*,不做内容生产: 跑完你得到的是「看起来像这个游戏的空壳」,攻略和资料库还要自己填。 在对话里用自然语言即可。skill 的 description 里带了「建站 / 快速接入 / 改成自己的站 / Example Game」,Agent 应能自己选中。 信息越全,第一轮越少 TODO:: 主题只能是:tactical(默认)/ pixel / neon / aurora / sakura。含义见 THEMES.md。 完整白名单在 skill 的 references/07-checklist.md。概要: *不要*让 Agent 为了「好看一点」去改 src/app/** 或 template-contract.json。那是扩大范围,第一轮不做。 Agent 结束时应做到: 若新 logo 不出现,删掉 .next 再 pnpm dev(Next 会缓存 public/ 里的旧图)。 仍是 Example Game、或首页链到不存在的路径,把 pnpm validate:site 的报错贴回对话即可。 改流程时 .claude/skills/、.cursor/skills/ 与 .agents/skills/ 必须一起改,保持字节级相同,否则 Cursor、Claude Code 和 Codex 行为会漂。

  • Reads credentials
  • Installs packages

165 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use import-memory, perf and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • amirbironSkill

    import-memory

    Import a memory export from another AI assistant into Claude's memory — conversationally, additively, and with the content treated as data.

    Also in 3 projects that use this

  • MicrosoftSkill

    perf

    Speed and memory performance rules for Rust crates, the Node addon, webui-framework, and webui-delivery.

    Also in 4 projects that use this

  • diego-tobalinaSkill

    build-fix

    Fix build and compilation errors systematically. Run when build fails.

    Also in 3 projects that use this

  • JkudjoSkill

    incident

    Production incident response — structured triage, hypothesis tree, safe remediation, incident record

    Also in 4 projects that use this

  • vbrevikSkill

    work

    Use when the user says 'plan', 'todo', 'copy plan', 'append plan', 'resume plan', 'priorities', or 'what's next'.

    Also in 7 projects that use this

  • mbwsimsSkill

    impact

    This skill should be used when the user asks to "check the impact", "what will break if I change this", "blast radius", "impact analysis", "what depends on this", "who imports this", "is it safe to change this", mentions "/impact", or wants to understand the consequences of modifying a specific file or function before making changes.

    Also in 3 projects that use this

The file

Files
SKILL.md

Agent Skill:第一轮建站

本文给人看:克隆模板之后,怎样用自带 skill 把「Example Game」换成自己的站。

给 Agent 执行的步骤在:

  • .claude/skills/tomtwiki-quick-start/SKILL.md(Claude Code)
  • .cursor/skills/tomtwiki-quick-start/SKILL.md(Cursor)
  • .agents/skills/tomtwiki-quick-start/SKILL.md(Codex)

三份随仓库走,不用再装 marketplace skill。手工改配置见 QUICKSTART.md。

它做什么

第一轮只做站身份,不做内容生产:

会改不会改
站名、域名、游戏名、免责声明路由、组件、src/app/**
首页文案(积木结构不变)登录、数据库、支付
SEO title / description / keywordscontent/guides/、content/entities/ 里的种子正文
主题预置 + 品牌色分类文件夹 slug
logo / favicon / OG 图编造 Steam ID、官宣口吻

跑完你得到的是「看起来像这个游戏的空壳」,攻略和资料库还要自己填。

环境

  • Node.js 24、pnpm 10.34.5(与 CI 一致)
  • Cursor、Claude Code 或 Codex 打开的是克隆后的仓库根目录(能看见 .claude/skills/ / .agents/skills/)
git clone https://github.com/tiankonglan/tomtwiki.git my-game-wiki
cd my-game-wiki
pnpm install

怎么唤起

在对话里用自然语言即可。skill 的 description 里带了「建站 / 快速接入 / 改成自己的站 / Example Game」,Agent 应能自己选中。

没被选中时:

  • Cursor:/ 或 @ 技能列表里找 tomtwiki-quick-start
  • Claude Code:/tomtwiki-quick-start
  • Codex:$tomtwiki-quick-start

提示词模板

最少只要游戏名和域名:

把这个模板改成《Hades II》的非官方攻略站。
域名 hades2.wiki。

信息越全,第一轮越少 TODO::

把这个模板改成《Hades II》的非官方粉丝攻略站。

- 域名:hades2.wiki
- 简称:Hades 2
- 一句话:构筑、Boss 机制、热更新对照表
- 品牌色:#C45C26
- 主题:tactical
- 当前版本:1.0
- 状态:Early Access(可留空)
- Steam App ID:1145350(没有就不要编)
- 发行商:Supergiant Games(免责声明用)
- 不要加登录或数据库

主题只能是:tactical(默认)/ pixel / neon / aurora / sakura。含义见 THEMES.md。

你需要准备什么

字段必须?说明
游戏全名是
域名是只写 hostname,不要 https://
简称、tagline、版本否有默认
品牌色、主题否未给则按品类猜,可事后改
Steam ID否禁止猜测
logo / 方形 emblem否没有则跑仓库自带 scripts/gen-brand-assets.mjs
Key art、实机截图、预告片 URL否Key art 用 cover-split,干净实机截图用 gameplay-panel,预告片用 video-center
分析 ID否没给就留空

第一轮会动哪些文件

完整白名单在 skill 的 references/07-checklist.md。概要:

  • .env、wrangler.jsonc(Worker 名)
  • src/generated/game-config.ts、homepage.ts、site-locales.ts 等生成配置
  • src/config/locale/messages/en/common.json
  • src/components/site/brand.css、主题入口 CSS/字体
  • public/logo.png、favicon.png、og-image.png

不要让 Agent 为了「好看一点」去改 src/app/** 或 template-contract.json。那是扩大范围,第一轮不做。

怎样算成功

Agent 结束时应做到:

  1. pnpm validate:site 通过
  2. pnpm build 通过
  3. pnpm dev 打开后,顶栏/标题不再是 Example Game;logo 不是模板默认图

若新 logo 不出现,删掉 .next 再 pnpm dev(Next 会缓存 public/ 里的旧图)。

仍是 Example Game、或首页链到不存在的路径,把 pnpm validate:site 的报错贴回对话即可。

第一轮之后

  • 攻略:content/guides/<分类>/*.mdx(分类须已在 src/config/guides.ts 登记)
  • 资料:content/entities/<种类>/*.json,见 ENTITIES.md
  • 多语言:见 QUICKSTART.md 第 7 节,并删掉 // scaffold-default:en-only
  • 部署:pnpm cf:deploy 或 Vercel;自定义域名在 Cloudflare 绑定
  • 上线前扫一遍 PITFALLS.md

维护这三份 skill

改流程时 .claude/skills/、.cursor/skills/ 与 .agents/skills/ 必须一起改,保持字节级相同,否则 Cursor、Claude Code 和 Codex 行为会漂。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.