用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/fabioc-aloha/Alex_Skill_Mall --skill github-wiki-flat命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | github-wiki-flat |
| description | GitHub Wiki has a flat namespace — no real folders, sidebar ordering tricks, link gotchas |
| lastReviewed | 2026-04-30T00:00:00.000Z |
Category: GitHub Time Saved: 1-2 hours debugging broken links Battle-tested: Yes — wiki publishing automation
You organize your wiki source files in a nice folder structure:
wiki/
getting-started/
installation.md
configuration.md
api/
endpoints.md
authentication.md
You push to GitHub Wiki. All your internal links break. Pages appear at root level with mangled names.
GitHub Wiki has no folder hierarchy. Every page renders at the wiki root. Folders in your source become part of the page name (with dashes).
wiki/getting-started/installation.md
→ renders at: /wiki/getting-started-installation
wiki/api/endpoints.md
→ renders at: /wiki/api-endpoints
Source: docs/guide/setup.md
URL: github.com/user/repo/wiki/guide-setup
NOT: github.com/user/repo/wiki/guide/setup ❌
<!-- In wiki/getting-started/installation.md -->
<!-- ❌ WRONG — relative path -->
See [configuration](./configuration.md)
<!-- ✅ CORRECT — flat wiki name -->
See [configuration](getting-started-configuration)
<!-- ❌ WRONG — assumes hierarchy -->
See [endpoints](../api/endpoints.md)
<!-- ✅ CORRECT — flat wiki name -->
See [endpoints](api-endpoints)
The sidebar defines your navigation. All links in _Sidebar.md must use flat names:
<!-- _Sidebar.md -->
**Getting Started**
- [Installation](getting-started-installation)
- [Configuration](getting-started-configuration)
**API Reference**
- [Endpoints](api-endpoints)
- [Authentication](api-authentication)
If you maintain wiki source in a folder structure, automate link rewriting on publish:
function rewriteWikiLinks(content, sourceDir) {
// Convert relative paths to flat wiki names
return content.replace(
/\[([^\]]+)\]\(\.?\/?([^)]+)\.md\)/g,
(match, text, path) => {
// ./sibling.md → folder-sibling
// ../other/page.md → other-page
const flatName = path
.replace(/^\.\.?\/?/, '')
.replace(/\//g, '-');
return `[${text}](${flatName})`;
}
);
}
Links to source code from wiki need full repo URLs:
<!-- ❌ WRONG — wiki-relative path -->
See [source](../src/index.ts)
<!-- ✅ CORRECT — full GitHub URL -->
See [source](https://github.com/user/repo/blob/main/src/index.ts)
| Link Type | Source | Wiki Target |
|---|---|---|
| Same folder | ./sibling.md | folder-sibling |
| Cross folder | ../api/page.md | api-page |
| Source code | ../../src/file.ts | Full GitHub blob URL |
github-readme-override — File hierarchy gotchas