一键导入
cross-linker
Identify cross-linking opportunities in docs pages. Suggest inline links and "See Also" refs. Use when analyzing markdown for improved navigation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Identify cross-linking opportunities in docs pages. Suggest inline links and "See Also" refs. Use when analyzing markdown for improved navigation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Write a how-to guide for practitioners accomplishing a specific task with a ZIO library. Guides are goal-oriented and task-focused, not pedagogical. Use when writing step-by-step practical guides.
Write a tutorial for newcomers learning a topic in a ZIO library. Tutorials teach concepts step-by-step in a linear path for learning-oriented, not task-oriented, purposes. Use when writing comprehensive learning guides.
Reference for mdoc code block modifiers and Docusaurus admonitions used in ZIO documentation. Use when writing or reviewing documentation with Scala code examples.
Write reference documentation for a module containing multiple related data types. Use when documenting a cohesive domain model (e.g. http-model, resource-management) where types work together as a system.
Write reference documentation for a specific ZIO data type. Research the type, write comprehensive documentation with examples, verify mdoc compilation, and integrate into docs.
Integration checklist for new ZIO docs pages. Handles sidebar wiring, index.md linking, and compilation gate (mdoc + Docusaurus build). Cross-referencing is handled separately by the integrate workflow (Phase 2).
| name | cross-linker |
| description | Identify cross-linking opportunities in docs pages. Suggest inline links and "See Also" refs. Use when analyzing markdown for improved navigation. |
| tags | ["documentation","linking","cross-reference","zio","agent-skills"] |
Documentation cross-linking specialist. Identify where pages should link to each other.
Receive:
Phase 1: Verify Metadata (PRE-ENRICHED)
description, keywords, and sectionType in YAML frontmatterPhase 2: Identify Refs
Pick shortest phrase (1-5 words):
Rules:
search_page_content before finalizing:
Valid: "Exit" from "Exit value that the Scope is closed with" | "ZLayer" from "scoped resource into a ZLayer for..." Bad: "Exit value that the Scope" (too long) | "Using a Scope" from heading (use prose instead)
Format: - [Term](./path.md) — brief description
Description is REQUIRED. Always include 5-15 words explaining why the page is related.
Selection strategy:
Finding related pages:
forkScoped, FiberRef.make, ZIO.scoped suggest related pages
ZIO.acquireRelease → suggest resource management pagesHIGH – central to page (title/intro/headings), first mention, or adjacent pages (proximity = relevance)
MEDIUM – discussed in dedicated section or multiple times (non-adjacent pages only)
LOW – passing mention or tangential only (non-adjacent pages only)
Optional. Use to verify or find related pages. Most decisions from content + index alone.
search_pages - Query index by title/keywords/topic. Top 5 matches.
search_page_content - Find terms in page. Context snippets with line numbers. FOR ANCHOR VALIDATION.
validate_anchor - Check if anchor/heading exists. Returns available headings.
extract_page_structure - Get full heading structure (TOC).
get_adjacent_pages - All pages in same section. Good See Also candidates.
When tools fail or return no results:
Hard rules:
Quality first:
JSON only. No markdown/explanation.
{
"suggestions": [
{
"targetId": "id from index",
"targetTitle": "string",
"anchorText": "1-5 words, EXACT from doc",
"description": "REQUIRED for see_also; optional for inline",
"type": "inline | see_also",
"confidence": "high | medium | low",
"reasoning": "one sentence"
}
]
}
Note: See Also suggestions without descriptions will be skipped during processing.