Przejdź do treści
Biblioteka skilli
Programowanie · Przegląd i audyt

doc-link-convention

/doc-link-convention

Wymusza w plikach źródłowych Maigo (agents, commands, skills) bezwzględne adresy GitHub w odnośnikach między plikami, bo względne linki psują mkdocs build --strict.

Repozytorium
maigo ↗
Licencja
MIT
Ostatnia zmiana repozytorium
27.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
4
Adresy URL w SKILL.md
5
Przestarzałość

Brak sygnałów. Repozytorium zmienione 27.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co sprawdzić przed instalacją
  • SKILL.md zawiera komentarze HTML (4). Nie widać ich w podglądzie Markdown, a model je czyta.

Co robi i kiedy

Wymusza w plikach źródłowych Maigo (agents, commands, skills) bezwzględne adresy GitHub w odnośnikach między plikami, bo względne linki psują mkdocs build --strict.

Oryginalny opis (EN)

This skill should be used when writing or reviewing cross-file links inside Maigo source files (`agents/*.md`, `commands/*.md`, `skills/*/SKILL.md`). It enforces that cross-source links use absolute GitHub URLs — relative links break `mkdocs build --strict` because these files are dual-context (raw GitHub view + include-markdown shim into `docs/`).

Jak działa

  1. When to apply
  2. The rule
  3. Why a relative link breaks mkdocs build --strict
  4. Exception: links to real reference docs
  5. Review-time enforcement (Soyo)
  6. What this skill does NOT cover
Sekcje z nagłówków SKILL.md, w oryginale · 90 linii, 450 słów
Podgląd SKILL.md
---
name: doc-link-convention
description: This skill should be used when writing or reviewing cross-file links inside Maigo source files (`agents/*.md`, `commands/*.md`, `skills/*/SKILL.md`). It enforces that cross-source links use absolute GitHub URLs — relative links break `mkdocs build --strict` because these files are dual-context (raw GitHub view + include-markdown shim into `docs/`).
---

<!-- mkdocs-include-start -->

# Doc Link Convention

**Owner Agent**: Soyo (Reviewer) — flagged at review-time when editing Maigo source.
**Consumers**: any task editing `agents/` / `commands/` / `skills/` in the Maigo repo.

## When to apply

Maigo's `agents/*.md`, `commands/*.md`, and `skills/*/SKILL.md` are **dual-context**:

- They are read raw on GitHub by contributors / `claude --plugin-dir`.
- They are also pulled into the docs site via `docs/{agents,commands,skills}/<name>.md` include-markdown shims.

A relative cross-source link works in one view but breaks the other.

## The rule

**Cross-source link → absolute GitHub URL. No exceptions.**

```markdown
[/maigo:remember](https://github.com/Lee-W/maigo/blob/main/commands/remember.md)
```

**Not:**

```markdown
[/maigo:remember](remember.md)                         <!-- ❌ relative -->
[/maigo:remember](../commands/remember.md)             <!-- ❌ relative -->
[/maigo:remember](/commands/remember.md)               <!-- ❌ root-relative -->
```

## Why a relative link breaks `mkdocs build --strict`

`include-markdown` defaults to `rewrite-relative-urls=true`. When it inlines
`commands/remember.md` into `docs/commands/remember.md`, it rewrites relative
URLs from the destination page's perspective. But the source path
(`commands/remember.md`) differs from the mkdocs page path
(`docs/commands/remember.md`, which is a shim), so the rewrite points at a
location mkdocs cannot resolve → `Aborted with N warnings in strict mode!`.

Absolute URLs are not rewritten by `include-markdown`, so both the GitHub
raw view and the mkdocs page resolve correctly.

Disabling `rewrite-relative-urls` is also wrong: cross-directory relative
links to *real* reference docs (e.g. `../docs/reference/memory.md`) rely on
the rewrite to become mkdocs-resolvable.

## Exception: links to real reference docs

When the link target is a real doc page under `docs/reference/` or
`docs/guides/` (**not** a shim), a relative link is correct because
`rewrite-relative-urls=true` will produce the right final URL:

```markdown
[Memory reference](../docs/reference/memory.md)
```

From a `commands/<x>.md` source file, that rewrites to `../reference/memory.md`
in `docs/commands/<x>.md` — which correctly points at `docs/reference/memory.md`.

| Link target type | Use |
|---|---|
| Another source file (`agents/*.md`, `commands/*.md`, `skills/*/SKILL.md`) | **Absolute GitHub URL** |
| Real reference doc (`docs/reference/*.md`, `docs/guides/*.md`) | Relative (`../docs/reference/foo.md`) |
| Same source file (anchor only) | Plain anchor (`#section-name`) |

## Review-time enforcement (Soyo)

When `strict-review` runs on a diff that touches `agents/`, `commands/`, or
`skills/*/SKILL.md` in the Maigo repo itself, append this rule as **base
checklist item 10**:

- Search the diff for `]\(` followed by anything that does **not** start with
  `http://` / `https://` / `#` / `../docs/`. If the link target is another
  source file → **must-fix** with改法: rewrite to
  `https://github.com/Lee-W/maigo/blob/main/<source-path>`.

This is only a checklist item when editing Maigo itself. Downstream projects
using Maigo as a plugin do not need this rule — it is specific to Maigo's
own dual-context publishing setup.

## What this skill does NOT cover

- Link targets *outside* the Maigo repo (use whatever the target convention is).
- The 6-step new-skill checklist — see [Skills reference](https://github.com/Lee-W/maigo/blob/main/docs/reference/skills.md#add-new-skill-checklist).
- mkdocs configuration itself — this skill assumes `rewrite-relative-urls=true`
  default and `--strict` build.

Wersje

W bazie nie ma innych skilli o nazwie doc-link-convention.

Migawka bazy z 13.11.2026 · wersja paczki 78335a64af0e (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 2 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100maigo-self-check
    Weryfikuje zmiany w pluginie maigo dotyczące agents/, commands/, skills/, mkdocs.yml i docs/ za pomocą validate_plugin i mkdocs --strict oprócz pytest.
  • 100mkdocs
    Prowadzi pracę z MkDocs i motywem Material for MkDocs: konfiguracja mkdocs.yml, wyszukiwanie, nawigacja, rozszerzenia Markdown, wdrożenie na GitHub Pages i wersjonowanie przez mike.
  • 100mkdocs
    Buduje strony dokumentacji projektu generatorem statycznym MkDocs: instalacja, konfiguracja, motywy, wtyczki i wdrożenie z plików Markdown.
  • 100mkdocs-config-generator
    Prawdopodobnie generuje konfigurację MkDocs w ramach dokumentacji technicznej.
  • 100mkdocs-shadcn
    Pomaga pisać dokumentację w motywie mkdocs-shadcn: składnia Markdown, konfiguracja mkdocs.yml, bloki admonition, szczegóły, zakładki, ramki z podpowiedziami i szablony.
  • 90vim-friendly-artifacts
    Ustala układ plików czytelnych w zwykłym Neovimie, np. raportów i planów w folderze .maigo, bez tabel i HTML.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.