feat(skills): opt-in paper editorial theme for web-design and Markdown/multilingual RAG guidance for penguin-sdk (#133)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -590,7 +590,7 @@ export const en: Strings = {
|
||||
|
||||
## Index page
|
||||
- \`index.html\` at the root: a card grid listing all 10 games (name + one-line mechanic + controls), each card opening its game.
|
||||
- One design language shared with every game, following the web-design skill; dark/light themes via \`<html data-theme>\` remembered in localStorage; responsive, single column on phones.
|
||||
- One design language shared with every game, following the web-design skill.
|
||||
|
||||
## Wrap-up
|
||||
- Review as a whole: the 10 mechanics really are distinct, the styling is consistent, and every index link resolves.
|
||||
@@ -622,7 +622,7 @@ export const en: Strings = {
|
||||
- Keyboard shortcuts: Space play/pause, ← → previous/next, ↑ ↓ volume
|
||||
|
||||
## Design
|
||||
Penguin visual style (see the web-design skill), dark/light themes via <html data-theme>, dark by default, remembered in localStorage. Responsive: on phones the sidebar becomes a horizontally scrolling top bar.
|
||||
Penguin visual style (see the web-design skill), dark by default. On phones the sidebar becomes a horizontally scrolling top bar.
|
||||
|
||||
When done, open index.html in a browser and self-test once.`,
|
||||
},
|
||||
@@ -635,12 +635,7 @@ When done, open index.html in a browser and self-test once.`,
|
||||
"the app acts as a Claude Code configuration expert, answering Claude Code questions " +
|
||||
"with retrieval-augmented replies and clickable citations that reveal the matched " +
|
||||
"original text chunk and link to the real documents; " +
|
||||
"give it a beautiful web chat UI following the web-design skill, with a few example questions in the empty state. " +
|
||||
"Pay particular attention to matching the question's language against the corpus: the docs are English, " +
|
||||
"while questions will often be Chinese. With a lexical retriever such as BM25, a Chinese query MUST be " +
|
||||
"converted to English first (translate it, or extract English keywords) before it reaches the index — " +
|
||||
"otherwise not a single Chinese term matches the English index and retrieval silently degrades to nothing. " +
|
||||
"Mixed Chinese/English questions must retrieve correctly too, and the answer should follow the language of the question. " +
|
||||
"give it a beautiful web chat UI following the web-design skill. " +
|
||||
"When done, run the app and self-test one Chinese question and one English question, confirming both retrieve " +
|
||||
"the right English documents and stream their answers, then tell me how to access it.",
|
||||
},
|
||||
|
||||
@@ -574,7 +574,7 @@ export const zh = {
|
||||
|
||||
## 索引首页
|
||||
- 根目录 \`index.html\`:卡片网格列出全部 10 个游戏(名称 + 一句话玩法 + 操作方式),点击进入对应游戏。
|
||||
- 与所有游戏共用一套设计语言,遵循 web-design 技能;深色 / 浅色主题(\`<html data-theme>\`)并用 localStorage 记忆;响应式,手机端单列。
|
||||
- 与所有游戏共用一套设计语言,遵循 web-design 技能。
|
||||
|
||||
## 收尾
|
||||
- 统一验收:10 个游戏玩法确实不重复、风格一致,索引页的链接全部可达。
|
||||
@@ -606,7 +606,7 @@ export const zh = {
|
||||
- 键盘快捷键:空格播放暂停、← → 切歌、↑ ↓ 调音量
|
||||
|
||||
## 设计
|
||||
Penguin 视觉风格(见 web-design 技能),深色/浅色主题(<html data-theme>),默认深色,localStorage 记忆。响应式:手机端侧边栏变为顶部横向滚动。
|
||||
Penguin 视觉风格(见 web-design 技能),默认深色。手机端侧边栏变为顶部横向滚动。
|
||||
|
||||
完成后在浏览器打开 index.html 自测一次。`,
|
||||
},
|
||||
@@ -618,11 +618,7 @@ Penguin 视觉风格(见 web-design 技能),深色/浅色主题(<html da
|
||||
"克隆仓库并整理语料,建立检索索引;应用化身 Claude Code 配置专家," +
|
||||
"检索增强回答 Claude Code 相关问题并标注可点击的来源引用——" +
|
||||
"引用要能展示命中的原文片段,并链接到真实文档;" +
|
||||
"按 web-design 技能提供美观的 Web 聊天界面,空态展示几个示例问题。" +
|
||||
"特别注意提问与语料的语言匹配:语料是英文,提问很可能是中文。" +
|
||||
"如果用 BM25 之类的词法检索,中文查询必须先转换成英文(翻译或抽取英文关键词)再进入检索," +
|
||||
"否则中文词在英文索引里一个都命不中,会静默退化成空召回;" +
|
||||
"中英混合提问同样要能正确召回,且回答语言跟随提问语言。" +
|
||||
"按 web-design 技能提供美观的 Web 聊天界面。" +
|
||||
"完成后运行应用,用一个中文问题和一个英文问题各自测一次," +
|
||||
"确认两者都检索到了正确的英文文档、流式回答正常,并告诉我访问方式。",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user