一键导入
markdown
Markdown Formatting Standards guidance for Fortress Rollback. Use when Markdown formatting, markdownlint configuration.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Markdown Formatting Standards guidance for Fortress Rollback. Use when Markdown formatting, markdownlint configuration.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Crate Publishing guidance for Fortress Rollback. Use when Publishing to crates.io, version bumps, release checklist.
Changelog Practices guidance for Fortress Rollback. Use when Writing CHANGELOG entries, deciding what to document.
Design Decision Log Pattern guidance for Fortress Rollback. Use when Architectural decisions, design alternatives, superseding prior choices.
Repository-wide engineering policy and project context for Fortress Rollback. Use when implementing, diagnosing, reviewing, testing, documenting, or releasing changes in this repository.
GitHub Actions Best Practices guidance for Fortress Rollback. Use when Writing GitHub Actions workflows, CI debugging, actionlint, caching.
Workspace Organization guidance for Fortress Rollback. Use when Organizing workspace, splitting crates, module structure decisions.
| name | markdown |
| description | Markdown Formatting Standards guidance for Fortress Rollback. Use when Markdown formatting, markdownlint configuration. |
npx markdownlint "**/*.md" --config .markdownlint.json # Check
npx markdownlint --fix "**/*.md" --config .markdownlint.json # Auto-fix
python3 scripts/docs/check-wiki-consistency.py # Wiki links
python3 scripts/docs/check-links.py # Link validation
WRONG:
#No space after hash
## Two spaces after hash
CORRECT:
# Single space after hash
## Single space after hash
| Rule | Fix |
|---|---|
MD018: No space after # | Add single space |
MD019: Multiple spaces after # | Use exactly one space |
| Skipped heading levels | Use sequential levels (# then ## then ###) |
WRONG:
[ Text with leading space](url)
[Text with trailing space ](url)
[](url)
CORRECT:
[Text](url)
[Descriptive link text](url)
Spaces inside link brackets cause rendering issues. Common cause: icon removal left trailing space -- update regex to include \s*.
Pipe | inside backticks in table cells MUST be escaped as \|. The table parser runs before inline code evaluation:
WRONG (MD056 "Too many columns"):
| `-workers <n|auto>` | Worker threads |
CORRECT:
| `-workers <n\|auto>` | Worker threads |
For fragment links (#anchor), anchors are generated by:
(), [], most punctuation/ becomes --~ removed| Heading | Anchor |
|---|---|
## Quick Start | #quick-start |
## LAN / Local Network (~20ms RTT) | #lan--local-network-20ms-rtt |
## P2P Session (peer-to-peer) | #p2p-session-peer-to-peer |
Common MD051 mistake: #web-wasm-integration should be #web--wasm-integration (double hyphen for slash).
| Content | Fence |
|---|---|
| Compilable Rust | ```rust |
| Pseudo-code/patterns | ```text |
| Shell commands | ```bash |
| Config files | ```toml, ```yaml, ```json |
Using ```rust for non-compilable pseudo-code confuses users who copy-paste.
Links resolve from the directory containing the file:
| From | To Root | Syntax |
|---|---|---|
Root (/) | (already there) | (docs/user-guide.md) |
docs/ | ../ | (../README.md) |
.agents/skills/<name>/ | ../../../ | (../../../README.md) |
Common mistake: a repository-root path without enough ../ segments resolves
inside the skill directory. From any SKILL.md, use ../../../ to reach the root
or ../other-skill/SKILL.md to link to a sibling skill.
When removing MkDocs icons, consume trailing whitespace to prevent malformed links:
# WRONG: leaves space in [Text]
re.sub(r":octicons-[a-z0-9-]+:", "", content)
# CORRECT: clean removal
re.sub(r":octicons-[a-z0-9-]+:\s*", "", content)
Rules are in .markdownlint.json at the repository root. Pre-commit hooks run markdownlint with --fix on staged files.
npx markdownlint '<file>' --config .markdownlint.json passespython3 scripts/docs/check-links.py -- no broken linksrg 'old-filename\.md' to find referencing files