Token导航 LogoToken导航

Agent Skill · 研究检索

markdown-crossref-validator(Markdown crossref validator 搜索)

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

markdown-crossref-validator 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 62,001。

总安装 343周安装 14GitHub Stars 公开资料未说明下载 111核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:markdown-crossref-validator(Markdown crossref validator 搜索)
来源仓库:https://github.com/prulloac/agent-skills
仓库路径:skills/markdown-crossref-validator
安装命令:
npx skills add https://github.com/prulloac/agent-skills --skill markdown-crossref-validator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/prulloac/agent-skills --skill markdown-crossref-validator

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

Markdown crossref validator 检查文档内部链接的有效性。识别损坏的内锚引用与缺失标题问题并提供修复建议。支持单文件或多文件交叉引用验证并生成详细报告。适用于维护大型文档系统的完整性与导航可靠性。

markdown-crossref-validator 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/markdown-crossref-validator

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/prulloac/agent-skills --skill markdown-crossre…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

markdown-crossref-validator 怎么安装?

在终端执行 npx skills add https://github.com/prulloac/agent-skills --skill markdown-crossref-validato…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

markdown-crossref-validator 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

markdown-crossref-validator 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

markdown-crossref-validator 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

markdown-crossref-validator 用的人多吗?

公开数据是累计安装 343 次,近一周安装 14 次,下载 111 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

markdown-crossref-validator 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
markdown-crossref-validator

Markdown crossref validator 搜索 · 本页

343—需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Markdown Cross-Reference Validator

When to use this skill

Use this skill when the user asks to validate or check cross-references in markdown files. This includes verifying that internal links (e.g., text) point to existing headings, and that file references (e.g., text) point to existing files.

Algorithm & Workflow

Phase 1: Document Preparation

  1. Identify target file(s): Determine which markdown file(s) to validate
  2. Read content: Load the full markdown document(s) into memory
  3. Establish base path: Determine the root directory for relative file references

Phase 2: Heading Extraction

  1. Scan for headings: Find all lines matching regex ^#+\s+(.*)$
  2. Build anchor map: For each heading:

- Extract heading text: # Introduction → Introduction - Convert to anchor ID: lowercase, replace spaces with hyphens, remove special chars - Store mapping: introduction → heading level (1-6)

  1. Handle special cases: Account for heading IDs, custom anchors using HTML comments
  2. Normalize anchors: Ensure consistent anchor formatting for comparison

Phase 3: Link Extraction

  1. Find all link patterns:

- Inline links: [text](url) using regex \[([^\]]+)\]\(([^)]+)\) - Reference links: [text][ref] using regex \[([^\]]+)\]\[([^\]]+)\] - Reference definitions: [ref]: url using regex ^\s*\[([^\]]+)\]:\s*(.+)$ - HTML links: <a href="url">text</a>

  1. Categorize links:

- Internal anchors: #heading-name - File references: path/to/file.md - Combined: path/to/file.md#section - External: http://..., https://... - Relative path: ../other.md

Phase 4: Link Validation

For Internal Anchor Links (#anchor)
  1. Extract anchor identifier
  2. Normalize anchor (lowercase, hyphenate)
  3. Check against anchor map from Phase 2
  4. Record as ✓ Valid or ✗ Broken
For File References (path/to/file.md)
  1. Resolve relative path from current document location
  2. Check file existence in project
  3. If file + anchor (path/to/file.md#section):

- Verify file exists - Parse target file for headings - Verify anchor exists in target file

  1. Record as ✓ Valid or ✗ Broken with reason
For External Links (http://, https://)
  1. Mark as external (scope: not validated for internal consistency)
  2. Optionally note for manual review

Phase 5: Issue Categorization

Classify all broken references by type:

  • Missing Heading: Anchor exists but no matching heading in file
  • Missing File: File reference path doesn't exist
  • Invalid Anchor in Target: File exists but referenced section doesn't
  • Malformed Reference: Link syntax is invalid or unparseable

Phase 6: Report Generation

  1. Create summary: Total links checked, valid count, broken count, broken percentage
  2. Group issues: Organize by file and issue type
  3. Provide context: Show the line number and actual link text
  4. Suggest fixes: Recommend corrected anchor names or file paths
  5. Verify output: Ensure report is complete and accurate

Validation & Verification

Validation Checklist

  • ✅ All markdown files are readable and parseable
  • ✅ All heading anchors are properly extracted and normalized
  • ✅ All link patterns (inline, reference, HTML) are detected
  • ✅ Internal anchor references are validated
  • ✅ File references exist and are properly resolved
  • ✅ Cross-file anchors are verified in target files
  • ✅ Report categorizes all issues by type
  • ✅ All broken references are identified with context

Report Verification Steps

  1. Random sample 5-10 links and manually verify they match report findings
  2. Check that issue count matches actual broken references
  3. Verify all line numbers and file paths are accurate
  4. Confirm suggestions for fixes are actionable

Concrete Examples

Example 1: Simple Document with Internal Links

Input: docs/guide.md

# Getting Started Guide

## Table of Contents
- [Installation](#installation)
- [Configuration](#configuration)
- [Advanced Setup](#advanced-setup)

## Installation

Follow these steps to install...

## Configuration

See [Installation](#installation) for prerequisites.

## Advanced Setup

For complex scenarios, refer to [Config](#configuration).

## Troubleshooting

Check [Non-existent Section](#missing-section) for help.

Validation Report:

═══════════════════════════════════════════════════════════
MARKDOWN CROSS-REFERENCE VALIDATION REPORT
═══════════════════════════════════════════════════════════

File: docs/guide.md
Scan Date: 2024-02-21
Status: ✓ VALIDATED WITH ISSUES

───────────────────────────────────────────────────────────
SUMMARY
───────────────────────────────────────────────────────────
Total Links Found:     5
Valid References:      4
Broken References:     1
Validation Rate:       80%

───────────────────────────────────────────────────────────
VALID REFERENCES ✓
───────────────────────────────────────────────────────────

✓ Line 4: [Installation](#installation)
  Type: Internal anchor
  Status: Heading "Installation" found at line 11

✓ Line 5: [Configuration](#configuration)
  Type: Internal anchor
  Status: Heading "Configuration" found at line 18

✓ Line 5: [Advanced Setup](#advanced-setup)
  Type: Internal anchor
  Status: Heading "Advanced Setup" found at line 22

✓ Line 19: [Installation](#installation)
  Type: Internal anchor (cross-reference)
  Status: Valid, heading exists

───────────────────────────────────────────────────────────
BROKEN REFERENCES ✗
───────────────────────────────────────────────────────────

✗ Line 26: [Non-existent Section](#missing-section)
  Type: Internal anchor
  Issue: MISSING HEADING
  Anchor: #missing-section
  Status: No heading found matching "missing-section"

  Suggestion: Available sections in document:
    - #getting-started-guide (h1)
    - #table-of-contents (h2)
    - #installation (h2)
    - #configuration (h2)
    - #advanced-setup (h2)
    - #troubleshooting (h2)

───────────────────────────────────────────────────────────
ANCHOR MAPPING
───────────────────────────────────────────────────────────
getting-started-guide (Level 1) → Line 1
table-of-contents (Level 2) → Line 3
installation (Level 2) → Line 11
configuration (Level 2) → Line 18
advanced-setup (Level 2) → Line 22
troubleshooting (Level 2) → Line 25

═══════════════════════════════════════════════════════════

Example 2: Cross-File References

Input: Multiple files in docs/ directory

Files:

  • docs/index.md - Main documentation index
  • docs/guide/installation.md - Installation guide
  • docs/guide/config.md - Configuration guide
  • docs/api/endpoints.md - API reference

Content: docs/index.md

# Documentation Index

- [Installation Guide](guide/installation.md)
- [Configuration](guide/config.md#configuration)
- [API Reference](api/endpoints.md)
- [Getting Help](support/help.md)
- [Basic Setup](#quick-start)

## Quick Start

See [Installation](guide/installation.md#system-requirements) for details.

Validation Report:

═══════════════════════════════════════════════════════════
MARKDOWN CROSS-REFERENCE VALIDATION REPORT
═══════════════════════════════════════════════════════════

File: docs/index.md
Scan Date: 2024-02-21
Status: ⚠ VALIDATED WITH CRITICAL ISSUES

───────────────────────────────────────────────────────────
SUMMARY
───────────────────────────────────────────────────────────
Total Links Found:     6
Valid References:      3
Broken References:     3
Validation Rate:       50%

───────────────────────────────────────────────────────────
VALID REFERENCES ✓
───────────────────────────────────────────────────────────

✓ Line 3: [Installation Guide](guide/installation.md)
  Type: File reference
  Path: docs/guide/installation.md
  Status: File exists (2.5 KB)

✓ Line 4: [Configuration](guide/config.md#configuration)
  Type: File with anchor
  Path: docs/guide/config.md
  Anchor: #configuration
  Status: File exists, heading found in target

✓ Line 8: [Installation](guide/installation.md#system-requirements)
  Type: File with anchor
  Path: docs/guide/installation.md
  Anchor: #system-requirements
  Status: File exists, heading found in target

───────────────────────────────────────────────────────────
BROKEN REFERENCES ✗
───────────────────────────────────────────────────────────

✗ Line 5: [API Reference](api/endpoints.md)
  Type: File reference
  Issue: MISSING FILE
  Path: docs/api/endpoints.md
  Status: File not found in project

  Suggestion: Did you mean?
    - docs/api/reference.md (exists)
    - docs/endpoints.md (exists)

✗ Line 6: [Getting Help](support/help.md)
  Type: File reference
  Issue: MISSING FILE
  Path: docs/support/help.md
  Status: File not found in project

  Suggestion: No similar files found. Check path spelling.

✗ Line 7: [Basic Setup](#quick-start)
  Type: Internal anchor
  Issue: MISSING HEADING
  Anchor: #quick-start
  Status: Anchor not found (likely typo: #quickstart exists)

  Suggestion: Did you mean #quickstart?

───────────────────────────────────────────────────────────
CROSS-FILE ANALYSIS
───────────────────────────────────────────────────────────

Scanned 4 files in project:
- docs/index.md (6 links)
- docs/guide/installation.md (12 links, all valid)
- docs/guide/config.md (8 links, 1 broken)
- docs/api/reference.md (5 links, all valid)

Cross-file reference summary:
- Files referenced: 4
- Valid file references: 3
- Invalid file references: 2
- Unresolvable anchors in targets: 0

═══════════════════════════════════════════════════════════

Example 3: Reference-Style Links

Input: docs/readme.md

# Project Documentation

See the [Getting Started][gs] guide for setup instructions.

For API details, check [API Reference][api] or [CLI Reference][cli].

Invalid reference: [Missing Reference][unknown]

[gs]: guide/getting-started.md#prerequisites
[api]: https://api.example.com
[cli]: guide/cli.md#commands

Validation Report:

═══════════════════════════════════════════════════════════
MARKDOWN CROSS-REFERENCE VALIDATION REPORT
═══════════════════════════════════════════════════════════

File: docs/readme.md
Scan Date: 2024-02-21
Type: Reference-style links
Status: ✓ VALIDATED WITH ISSUES

───────────────────────────────────────────────────────────
SUMMARY
───────────────────────────────────────────────────────────
Total Links Found:     4
Valid References:      3
Broken References:     1
External Links:        1
Validation Rate:       75%

───────────────────────────────────────────────────────────
REFERENCE DEFINITIONS FOUND
───────────────────────────────────────────────────────────

[gs] → guide/getting-started.md#prerequisites (Line 9)
[api] → https://api.example.com (Line 10, External)
[cli] → guide/cli.md#commands (Line 11)

───────────────────────────────────────────────────────────
VALIDATION RESULTS
───────────────────────────────────────────────────────────

✓ [Getting Started][gs] (Line 3)
  Reference defined: Yes
  Target: guide/getting-started.md#prerequisites
  File status: Exists
  Anchor status: Valid
  Result: VALID

✓ [API Reference][api] (Line 5)
  Reference defined: Yes
  Target: https://api.example.com
  Type: External URL
  Result: EXTERNAL (not validated)

✓ [CLI Reference][cli] (Line 5)
  Reference defined: Yes
  Target: guide/cli.md#commands
  File status: Exists
  Anchor status: Valid
  Result: VALID

✗ [Missing Reference][unknown] (Line 7)
  Reference defined: No
  Status: UNDEFINED REFERENCE
  Issue: Reference label "[unknown]" not found in definitions

  Suggestion: Available references in document:
    - [gs]
    - [api]
    - [cli]

═══════════════════════════════════════════════════════════

Tools to use

  • Use file reading tools to access markdown files.
  • Use grep or parsing to extract links and headings.
  • For file existence, use directory listing tools.

Quick Reference: Link Patterns

PatternExampleType
Inline link[text](#anchor)Internal anchor
Inline file[text](file.md)File reference
Combined[text](file.md#section)File with anchor
Reference-style[text][ref] + [ref]: urlReference link
HTML link<a href="#id">text</a>HTML anchor
External[text](https://example.com)External URL

平台分布

Codex

35.45%
按下载量换算39

Claude

29.76%
按下载量换算33

Cursor

16.22%
按下载量换算18

Gemini CLI

9.06%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills