본문으로 건너뛰기
cccskills
무료GitHub에 공개

ls-markdown-reference-validator

Use when validating repository Markdown local references and anchors; scheduled-safe YAML-configured reports keep host-aware scans explicit and local-only.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(10)

  • SKILL.md7.1 KB
  • scripts/markdown_reference_audit.py2.4 KB
  • scripts/markdown_reference_config.py9.9 KB
  • scripts/markdown_reference_discovery.py5.4 KB
  • scripts/markdown_reference_links.py11.3 KB
  • scripts/markdown_reference_report.py6.1 KB
  • scripts/markdown_reference_validator.py5.4 KB
  • templates/markdown_reference_audit.yaml2.2 KB
  • templates/markdown_reference_host_aware.yaml2.5 KB
  • templates/markdown_reference_strict_repo.yaml1.8 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Markdown reference validator

Validate repository Markdown reference integrity across LocalSetup docs, skills, templates, and repository documentation.

Purpose

  • Parse markdown files from configured paths/globs.
  • Validate local reference targets from markdown links and inline code paths.
  • Validate markdown #anchor fragments against heading slugs.
  • Write a durable markdown report for AI agents and humans.
  • Run safely on schedule with interval guard and optional jitter.

Why this exists

Framework and ops docs evolve quickly. Broken references waste agent cycles and reduce reliability. This skill provides a deterministic, zero-token integrity check that can run in cron/login automation and produce one report location agents can inspect.

Inputs and outputs

  • Input config (YAML): ls/skills/ls-markdown-reference-validator/templates/markdown_reference_audit.yaml, or a repo-local copy adapted from it.
  • Strict repo profile: ls/skills/ls-markdown-reference-validator/templates/markdown_reference_strict_repo.yaml
  • Host-aware profile: ls/skills/ls-markdown-reference-validator/templates/markdown_reference_host_aware.yaml
  • Skill entrypoint: scripts/markdown_reference_audit.py
  • Engine script: ls/skills/ls-markdown-reference-validator/scripts/markdown_reference_validator.py
  • Default report: .localsetup/state/markdown-reference/default.md (ignored local state)
  • Default run-state marker: .localsetup/state/markdown-reference/default-last-run-epoch (ignored local state)

Run and report

  1. Confirm the target YAML configuration before a scheduled or bulk audit, including scan scope, report destination, and interval settings.
  2. Run the configured scanner using the commands below.
  3. Review the report's pass or failure counts and summarize broken paths and anchors. Record the report location and remaining findings in the audit summary.

Typical commands

Run once manually:

python3 ls/skills/ls-markdown-reference-validator/scripts/markdown_reference_audit.py \
  --force \
  --reason manual

Run the strict repo-owned profile:

python3 ls/skills/ls-markdown-reference-validator/scripts/markdown_reference_audit.py \
  --config ls/skills/ls-markdown-reference-validator/templates/markdown_reference_strict_repo.yaml \
  --force \
  --reason manual

Run the explicit host-aware profile (its report stays in ignored local state and outside-repository paths are redacted):

python3 ls/skills/ls-markdown-reference-validator/scripts/markdown_reference_audit.py \
  --config ls/skills/ls-markdown-reference-validator/templates/markdown_reference_host_aware.yaml \
  --force \
  --reason manual

Run with login jitter (3-5 min):

python3 ls/skills/ls-markdown-reference-validator/scripts/markdown_reference_audit.py \
  --reason login-autostart \
  --jitter-min-seconds 180 \
  --jitter-max-seconds 300

Scheduling model

Recommended defaults:

  • Periodic: every 12 hours (cron trigger).
  • Login: run once at user login with random delay 3-5 minutes.

Use ls-cron-job-scheduling with a user-created manifest (for example cron/manifest.yaml in the target repo) for periodic trigger, and XDG autostart desktop entry for login trigger. This skill does not ship a cron manifest.

Config model (YAML sidecar)

The sidecar config defines:

  • targets[]: each with base_dir, include_globs, optional exclude_globs.
  • kilo_manifest_discovery.manifests[]: kilo.json or kilo.jsonc paths to discover additional instruction/skills markdown surfaces. JSONC manifests may use comments and trailing commas.
  • report.output_path, report.state_file, and report.max_findings.
  • extraction.inline_code_mode: off | smart | all (smart is default and recommended).
  • ignore.* blocks to reduce false positives from templates/examples while keeping strict checks for concrete links.

The shipped default profile is repo-only and writes report/state only beneath ignored .localsetup/state/markdown-reference/. Use the strict repo profile for narrower tracked-source link and anchor review. Use the host-aware profile only when you explicitly need local adapter or host instruction surfaces; its report remains local-only and redacts paths outside repo_root.

The strict profile checks active documentation, not the transitive completeness of selectively imported upstream archives. It excludes only *.source.md snapshots under references/upstream/; authored coverage notes and ordinary references remain in scope. Preserve snapshot bytes and verify their recorded hashes separately. Use a custom profile without that exclusion when intentionally auditing archived upstream links, and interpret omissions against the archive's import policy.

Config schema (practical defaults)

extraction:
  inline_code_mode: smart
  # Back-compat toggle: if inline_code_mode omitted, true => smart / false => off
  include_inline_code_paths: true

ignore:
  # Skip scanning these markdown sources entirely.
  source_file_globs:
    - "**/node_modules/**"
    - "**/.kilo/state/**"
    - "**/.kilo/plans/**"

  # Skip targets matching any regex (examples/placeholders/snippets).
  target_regexes:
    - '^URL$'
    - '^<[^>]+>$'
    - '^\$[A-Za-z_][A-Za-z0-9_]*(/.*)?$'

  # Skip targets starting with these prefixes.
  path_prefixes:
    - "/etc/"
    - "old.reddit.com/"

  # Skip targets containing these placeholder tokens.
  placeholder_tokens:
    - "<repo>"
    - "{slug}"
    - "YYYY-MM-DD"

Example snippet

targets:
  - name: framework-docs-and-skills
    base_dir: "{repo_root}"
    include_globs:
      - "ls/docs/**/*.md"
      - "ls/skills/**/*.md"
      - "ls/templates/**/*.md"

kilo_manifest_discovery:
  manifests:
    - "{repo_root}/kilo.jsonc"
    - "/home/user/.config/kilo/kilo.jsonc"

Validation behavior

  • Skips external URLs (http, https, mailto, etc.).
  • Resolves relative targets from the source file's directory.
  • Also tries repo-root resolution for repo-absolute style links like ls/... or docs/....
  • Applies ignore controls in this order: source glob skip -> placeholder/prefix/regex/pseudo-path skip -> strict path/anchor checks.
  • Validates config section shapes up front and reports schema errors instead of raw tracebacks.
  • Reports unreadable source markdown, anchor targets, and state files instead of treating them as clean results.
  • Flags:
    • missing_path
    • missing_anchor
    • unreadable_source
    • unreadable_anchor_target
  • Includes Kilo manifest discovery notes in report for observability.

Safety and hardening

  • Input hostile-by-default handling.
  • Sanitized text fields and bounded lengths.
  • Interval guard to avoid noisy repeated runs.
  • Optional jitter to reduce post-login contention.

Related references

  • ls/docs/TOOLING_POLICY.md
  • ls/docs/INPUT_HARDENING_STANDARD.md
  • ls/skills/ls-cron-job-scheduling/SKILL.md

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Guide accessibility reviews for UI, documents, and workflows. Use for WCAG-oriented audits, keyboard review, semantics, contrast, and remediation planning.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

CruxExperts/LocalSetup62026년 10월 21일 업데이트

Use when choosing a LocalSetup Agent-* lane for exploration, research, bounded implementation, or review. Consult the static capability matrix; do not probe account or network availability.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

CruxExperts/LocalSetup62026년 10월 21일 업데이트

Guide agent email inbox workflows with prompt-injection defenses. Use for inbound email processing, webhooks, routing, and safety review.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

CruxExperts/LocalSetup62026년 10월 21일 업데이트

Navigate and understand codebases using agentlens hierarchical documentation. Use when exploring new projects, finding modules, locating symbols in large files, finding TODOs/warnings, or understanding code structure.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

CruxExperts/LocalSetup62026년 10월 21일 업데이트

Use for Agent Q signed encrypted file-drop or mail ship and ingest, private registry v2 setup, queue status, and transport maintenance.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

CruxExperts/LocalSetup62026년 10월 21일 업데이트

Inventory wrapper for the alirezarezvani Claude skills bundle. Use when triaging its broad skill catalog and large script surface before any targeted import.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

CruxExperts/LocalSetup62026년 10월 21일 업데이트

CruxExperts의 스킬 모두 보기

이 스킬의 문제 신고