fix(site): 详情页排版居中 + star 数更新 233k + 页脚加 X/Twitter

- styles.css: .doc 容器补 margin:0 auto + 左右 24px 内边距,修复 skill
  详情页正文紧贴左边缘、右侧大片空白的排版问题
- build.mjs / README: 上游 star 数 159k+ → 233k+(实际 233,268)
- build.mjs: 页脚生态区新增 X / Twitter(https://x.com/jnMetaCode)

验证:重建 42 页;.doc 居中边距生效;无 159k 残留;X/Twitter 入页脚。
This commit is contained in:
AI不止语
2026-06-20 05:47:50 +08:00
parent 48fc58f41e
commit ceb92f3536
3 changed files with 12 additions and 12 deletions

View File

@@ -12,7 +12,7 @@
🌐 **简体中文** | [English (upstream)](https://github.com/obra/superpowers)
> 🦸 **superpowers159k+ ⭐)完整汉化 + 4 个中国原创 skills** — 让 Claude Code / Copilot CLI / Hermes Agent / Cursor / Windsurf / Kiro / Gemini CLI / Qoder 等 **18 款 AI 编程工具**真正会干活。从头脑风暴到代码审查,从 TDD 到调试,每个 skill 都是经过实战验证的工作方法论。
> 🦸 **superpowers233k+ ⭐)完整汉化 + 4 个中国原创 skills** — 让 Claude Code / Copilot CLI / Hermes Agent / Cursor / Windsurf / Kiro / Gemini CLI / Qoder 等 **18 款 AI 编程工具**真正会干活。从头脑风暴到代码审查,从 TDD 到调试,每个 skill 都是经过实战验证的工作方法论。
Chinese community edition of [superpowers](https://github.com/obra/superpowers) — 20 skills across 18 AI coding tools, including full translations and China-specific development skills.
@@ -49,7 +49,7 @@ Chinese community edition of [superpowers](https://github.com/obra/superpowers)
## 这是什么?
[superpowers](https://github.com/obra/superpowers) 是目前最火的 AI 编程 skills 框架(159k+ stars为 AI 编程工具提供**系统化的工作方法论**。
[superpowers](https://github.com/obra/superpowers) 是目前最火的 AI 编程 skills 框架(233k+ stars为 AI 编程工具提供**系统化的工作方法论**。
**superpowers-zh** 在完整翻译的基础上,新增了面向中国开发者的特色 skills。
@@ -84,7 +84,7 @@ AI在开始实现之前我需要了解几个关键问题
| 维度 | superpowers英文上游 | superpowers-zh中文增强版 |
|------|----------------------|---------------------------|
| ⭐ Star 数 | 159k+ | — |
| ⭐ Star 数 | 233k+ | — |
| 📦 Skills 总数 | 14 | **20**14 翻译 + 4 国产原创 + 2 上游历史保留) |
| 🌐 语言 | 英文 | 中文(技术术语保留英文) |
| 🤖 **支持工具** | **6 款**Claude Code / Cursor / Codex / OpenCode / Copilot CLI / Gemini CLI | **18 款**:上述 6 款 + Hermes Agent / Trae / Kiro / Qwen Code通义灵码/ OpenClaw / Claw Code / Antigravity / DeerFlow / VS Code / Windsurf / Aider / Qoder |

View File

@@ -99,9 +99,9 @@ const T = {
zh: {
htmlLang: 'zh-CN',
title: 'superpowers-zh · AI 编程超能力中文增强版',
desc: 'superpowers159k+ ⭐)完整汉化 + 4 个中国原创 skills一条 npx 命令为 18 款 AI 编程工具装上系统化工作方法论。',
desc: 'superpowers233k+ ⭐)完整汉化 + 4 个中国原创 skills一条 npx 命令为 18 款 AI 编程工具装上系统化工作方法论。',
nav: { why: '特性', install: '安装', skills: 'Skills', tools: '支持工具', faq: 'FAQ', github: 'GitHub ↗' },
heroBadge: 'superpowers 159k+ ⭐ · 完整汉化 + 中国原创',
heroBadge: 'superpowers 233k+ ⭐ · 完整汉化 + 中国原创',
heroH1: '给你的 AI 编程工具<br>装上<span class="grad">真正会干活</span>的超能力',
heroLead: '{n} 个经过实战验证的工作方法论 skill —— 从头脑风暴到 TDD从系统化调试到代码审查。<br>一条命令,自动识别项目里的工具并安装。',
heroBtn1: '查看安装命令', heroBtn2: 'GitHub 源码',
@@ -140,7 +140,7 @@ const T = {
footCols: [
{ h: '产品', links: [['特性', '#why'], ['Skills', '#skills'], ['支持工具', '#tools'], ['FAQ', '#faq']] },
{ h: '资源', links: [['GitHub', 'https://github.com/jnMetaCode/superpowers-zh'], ['npm', 'https://www.npmjs.com/package/superpowers-zh'], ['方法论三卷书', 'https://book.aibuzhiyu.com/']] },
{ h: '生态', links: [['aiOlaOla · 从零学会 AI 编程', 'https://aiolaola.com/'], ['公众号 AI不止语', 'https://aiolaola.com/'], ['姐妹项目', 'https://github.com/jnMetaCode']] },
{ h: '生态', links: [['aiOlaOla · 从零学会 AI 编程', 'https://aiolaola.com/'], ['X / Twitter', 'https://x.com/jnMetaCode'], ['公众号 AI不止语', 'https://aiolaola.com/'], ['姐妹项目', 'https://github.com/jnMetaCode']] },
{ h: '社区', links: [['提交 Issue', 'https://github.com/jnMetaCode/superpowers-zh/issues'], ['贡献指南', 'https://github.com/jnMetaCode/superpowers-zh/blob/main/CLAUDE.md'], ['联系邮箱', 'mailto:jnMetaCode@qq.com']] },
],
footTag: 'AI 编程超能力 · 中文增强版 · MIT License',
@@ -154,7 +154,7 @@ const T = {
{ icon: '🔌', t: '18 款工具通用', d: '一套 skillClaude Code / Cursor / Codex / Gemini CLI / Windsurf… 全适配,换工具不用换习惯。' },
{ icon: '⚡', t: '一条命令安装', d: 'npx superpowers-zh 自动识别项目里用的是哪款工具并安装,零配置,装完重启即生效。' },
{ icon: '🇨🇳', t: '中国原创 Skills', d: '中文代码审查话术、中文提交规范、中文文档排版、国内 Git 平台Gitee/Coding/极狐)配置 —— 上游没有。' },
{ icon: '📖', t: '完整汉化上游', d: '同步 obra/superpowers159k+ ⭐),核心 skill 全部中文母语化,不是机翻,是逐条校准。' },
{ icon: '📖', t: '完整汉化上游', d: '同步 obra/superpowers233k+ ⭐),核心 skill 全部中文母语化,不是机翻,是逐条校准。' },
{ icon: '🔓', t: '零依赖 · MIT 开源', d: '纯 Markdown skill不引入任何外部依赖、不联网、不上传代码按需触发零运行时开销。' },
],
pipeline: [
@@ -183,9 +183,9 @@ const T = {
en: {
htmlLang: 'en',
title: 'superpowers-zh · Battle-tested AI coding skills (CN-enhanced)',
desc: 'Full Chinese localization of superpowers (159k+ ⭐) plus 4 China-native skills. One npx command installs systematic workflow methodology into 18 AI coding tools.',
desc: 'Full Chinese localization of superpowers (233k+ ⭐) plus 4 China-native skills. One npx command installs systematic workflow methodology into 18 AI coding tools.',
nav: { why: 'Features', install: 'Install', skills: 'Skills', tools: 'Tools', faq: 'FAQ', github: 'GitHub ↗' },
heroBadge: 'superpowers 159k+ ⭐ · Full CN localization + China-native skills',
heroBadge: 'superpowers 233k+ ⭐ · Full CN localization + China-native skills',
heroH1: 'Give your AI coding tools<br>superpowers that <span class="grad">actually ship</span>',
heroLead: '{n} battle-tested workflow skills — from brainstorming to TDD, systematic debugging to code review.<br>One command auto-detects your tool and installs.',
heroBtn1: 'Get the command', heroBtn2: 'GitHub',
@@ -224,7 +224,7 @@ const T = {
footCols: [
{ h: 'Product', links: [['Features', '#why'], ['Skills', '#skills'], ['Tools', '#tools'], ['FAQ', '#faq']] },
{ h: 'Resources', links: [['GitHub', 'https://github.com/jnMetaCode/superpowers-zh'], ['npm', 'https://www.npmjs.com/package/superpowers-zh'], ['Methodology book', 'https://book.aibuzhiyu.com/']] },
{ h: 'Ecosystem', links: [['aiOlaOla', 'https://aiolaola.com/'], ['Sister projects', 'https://github.com/jnMetaCode']] },
{ h: 'Ecosystem', links: [['aiOlaOla', 'https://aiolaola.com/'], ['X / Twitter', 'https://x.com/jnMetaCode'], ['Sister projects', 'https://github.com/jnMetaCode']] },
{ h: 'Community', links: [['Open an Issue', 'https://github.com/jnMetaCode/superpowers-zh/issues'], ['Contributing', 'https://github.com/jnMetaCode/superpowers-zh/blob/main/CLAUDE.md'], ['Contact', 'mailto:jnMetaCode@qq.com']] },
],
footTag: 'AI coding superpowers · Chinese-enhanced · MIT License',
@@ -238,7 +238,7 @@ const T = {
{ icon: '🔌', t: 'Works in 18 tools', d: 'One skill set for Claude Code / Cursor / Codex / Gemini CLI / Windsurf and more. Switch tools, keep your habits.' },
{ icon: '⚡', t: 'One-command install', d: 'npx superpowers-zh auto-detects your tool and installs. Zero config; restart to take effect.' },
{ icon: '🇨🇳', t: 'China-native skills', d: 'Chinese code-review phrasing, commit conventions, doc typography, and domestic Git platforms (Gitee/Coding/JiHu) — not in upstream.' },
{ icon: '📖', t: 'Fully localized upstream', d: 'Tracks obra/superpowers (159k+ ⭐); every core skill localized into native Chinese — calibrated, not machine-translated.' },
{ icon: '📖', t: 'Fully localized upstream', d: 'Tracks obra/superpowers (233k+ ⭐); every core skill localized into native Chinese — calibrated, not machine-translated.' },
{ icon: '🔓', t: 'Zero-dep · MIT', d: 'Pure Markdown skills. No external deps, no network, no code upload. Triggered on demand with zero runtime cost.' },
],
pipeline: [

View File

@@ -396,7 +396,7 @@ a.card:hover .card-more { color: var(--accent); }
.foot-col a:hover { color: var(--accent-2); }
/* ========== Skill 详情(操作文档)页 ========== */
.doc { max-width: 820px; padding-top: 36px; }
.doc { max-width: 820px; margin: 0 auto; padding: 36px 24px 0; }
.doc-back { display: inline-block; font-size: 14px; color: var(--text-dim); margin: 8px 0 24px; transition: color .2s; }
.doc-back:hover { color: var(--accent-2); }
.doc-head { border-bottom: 1px solid var(--border-soft); padding-bottom: 28px; margin-bottom: 8px; }