with one click
related-articles-frontmatter
Convert a related-links section (## 相关 /
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Convert a related-links section (## 相关 /
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | related-articles-frontmatter |
| description | Convert a related-links section (## 相关 / |
relatedArticles frontmatterMove a hand-written related-links section out of a markdown body and into a
relatedArticles frontmatter array. The RelatedArticles.vue
component reads that array and auto-renders a styled "相关文章" block in the
doc-footer-before slot (registered in index.ts),
so the body section becomes redundant and must be deleted.
The input is a single markdown file under docs/ (e.g. docs/zhHans/interview-prepare/beware-of-fake-job-scams.md).
If no path was given, ask the user for one before continuing.
The frontmatter array follows relatedArticlesTypes.ts:
relatedArticles:
- title: <link text>
href: <site-absolute path or external URL>
# category: <optional — external source label only>
title and href are required; category is optional (the component groups
entries by category; categories with a single entry collapse into "其他").
## 相关, ## 相关文章, ## Related, ## Related Articles (match the heading
text, not just the level). The section runs from that heading to the next
heading or end of file.- [text](href) or numbered
1 [text](href)). For each markdown link, title = link text, href = link target.
relatedArticles entry — leave it in the body and tell the user, or ask how
to handle it. Don't drop content silently.href to a site-absolute, locale-aware path:
docs/<locale>/:
zhHans is the default locale served at root / (no prefix); en is
served under /en/../foo.md, ../bar/) resolve against the current page's
directory URL. Example: from docs/zhHans/interview-prepare/background-check/index.md,
./american-data-bank.md → /interview-prepare/background-check/american-data-bank
and ../behavior-question/ → /interview-prepare/behavior-question/./ are site-absolute — keep as-is.http(s)://) — keep verbatim..md, so drop .md for cleanliness but keep
trailing slashes on directory/index links.category for internal cross-links. Only add it when the link is an
external source with a meaningful label (e.g. category: 流程指南 for a
logbook.atomeocean.com guide link — see
docs/zhHans/guide/interview-experience-utils/contributing.md).relatedArticles: after the
existing keys, before the closing ---.relatedArticles already exists, merge the new entries in (don't
duplicate existing hrefs) — ask the user if unsure.<RelatedArticles /> tag in the body. A few older
pages placed the tag manually before the doc-footer-before slot hook existed
(PR #776); with the slot registered, an explicit tag renders the block twice.RelatedArticles.vue, so no component tag or import is needed. Suggest
npm run docs:dev to preview the "相关文章" block above the footer, and
optionally npm run docs:build to catch dead links.Locate existing content in docs/zhHans for a topic and list every related file path; when nothing relevant exists, recommend the best file path to create following project conventions. Use before writing or editing a doc, when asked where something lives, where to put a new page, or "is there already a doc about X".
Generate or update the `description` frontmatter field for a markdown article under docs/. Use when the user asks to generate, write, or update the description/meta description of a markdown file in this VitePress site.
Turn rough ideas/notes into a new skeleton markdown article under docs/zhHans/. First runs the find-docs search to list existing related pages to extend (or recommend a new file path when nothing matches), then scaffolds a skeleton .md with frontmatter, an H1, and the ideas organized into section headings with TODO markers. Use when the user has new ideas/notes/a draft topic and wants to start a new docs article.
Turn an external web link (RedNote/小红书 note, 一亩三分地 thread, forum post, article) into a Chinese markdown article under docs/zhHans/ that preserves the source's original content and cites it via <ReferenceSource>. Use when the user gives a URL and asks for a docs article/topic/case writeup — if the URL is missing, ask for it. For interview experiences (面经), use the web-source-to-interview skill instead.
Turn a shared interview experience (面经) from a web link (RedNote/小红书, 一亩三分地, forum thread) or pasted text into an interview-experience page pair — the markdown under docs/zhHans/interview-experience/<company>/ plus its matching JSON under docs/assets/json/interview-experience/<company>/. Use when the user gives a 面经/interview writeup and asks to add it to the site. For non-interview sources use web-source-to-article instead.
Create an English mirror under docs/en/ of a Chinese article or folder under docs/zhHans/. Use when the user asks to translate, mirror, port, or create an English version of a markdown file or folder in this VitePress site. Accepts a single .md path or a folder path.