Langsung ke konten
Skillpedia
Dokumentasi15k Β· #11138

lat-md

Fungsinya

Skill ini menjelaskan cara menulis file dokumentasi lat.md, yang menggambarkan keputusan desain, aturan, dan tes proyek dalam format yang sudah ditentukan. Untuk orang yang menyimpan catatan proyek terstruktur yang bisa dirujuk kembali oleh kode.

Kapan dipakai

  • βœ“Saat Anda perlu membuat bagian baru di folder lat.md sebuah proyek.
  • βœ“Saat Anda mengedit file lat.md yang ada dan membutuhkan struktur yang benar.
  • βœ“Saat Anda ingin memeriksa apakah catatan lat.md mengikuti aturan yang diwajibkan.

Link skill

https://github.com/fathah/hermes-desktop/blob/main/.agents/skills/lat-md/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/fathah/hermes-desktop/blob/main/.agents/skills/lat-md/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBisakah Anda membantu saya menulis bagian lat.md yang menjelaskan cara kerja aturan login proyek saya?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent mengikuti serangkaian aturan: setiap bagian dimulai dengan paragraf pembuka singkat, dan catatan menjelaskan apa dan mengapa, alih-alih mengulang kode. Teksnya dirancang agar dapat ditemukan oleh pencarian dan alat lain.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

lat.md Authoring Guide

This skill covers the syntax, structure rules, and conventions for writing lat.md/ files. Load it whenever you need to create or edit sections in the lat.md/ directory.

What belongs in lat.md

lat.md/ files describe what the project does and why β€” domain concepts, key design decisions, business logic, and test specifications. They do NOT duplicate source code. Think of each section as an anchor that source code references back to.

Good candidates for sections:

  • Architecture decisions and their rationale
  • Domain concepts and business rules
  • API contracts and protocols
  • Test specifications (what is tested and why)
  • Non-obvious constraints or invariants

Bad candidates:

  • Step-by-step code walkthroughs (the code itself is the walkthrough)
  • Auto-generated API docs (use tools for that)
  • Temporary notes or TODOs

Section structure

Every section must have a leading paragraph β€” at least one sentence immediately after the heading, before any child headings or other block content.

The first paragraph must be ≀250 characters (excluding [[wiki link]] content). This paragraph is the section's identity β€” it appears in search results, command output, and RAG context.

# Good Section

Brief overview of what this section documents and why it matters.

More detail can go in subsequent paragraphs, code blocks, or lists.

## Child heading

Details about this child topic.
# Bad Section

## Child heading

This is invalid β€” "Bad Section" has no leading paragraph.

lat check enforces this rule.

Section IDs

Sections are addressed by file path and heading chain:

  • Full form: lat.md/path/to/file#Heading#SubHeading
  • Short form: file#Heading#SubHeading (when the file stem is unique)

Examples: lat.md/tests/search#RAG Replay Tests, cli#init, parser#Wiki Links.

Wiki links

Cross-reference other sections or source code with [[target]] or [[target|alias]].

Section links

See [[cli#init]] for setup details.
The parser validates [[parser#Wiki Links|wiki link syntax]].

Source code links

Reference functions, classes, constants, and methods in source files:

[[src/config.ts#getConfigDir]]          β€” function
[[src/server.ts#App#listen]]            β€” class method
[[lib/utils.py#parse_args]]             β€” Python function
[[src/lib.rs#Greeter#greet]]            β€” Rust impl method
[[src/app.go#Greeter#Greet]]            β€” Go method
[[src/app.h#Greeter]]                   β€” C struct

lat check validates that all targets exist.

Code refs

Tie source code back to lat.md/ sections with @lat: comments:

// @lat: [[cli#init]]
export function init() { ... }
# @lat: [[cli#init]]
def init():
    ...

Supported comment styles: // (JS/TS/Rust/Go/C) and # (Python).

Place one @lat: comment per section, at the relevant code β€” not at the top of the file.

Test specs

Describe tests as sections in lat.md/ files. Add frontmatter to require that every leaf section has a matching @lat: comment in test code:

---
lat:
  require-code-mention: true
---
# Tests

Authentication test specifications.

## User login

Verify credential validation and error handling.

### Rejects expired tokens

Tokens past their expiry timestamp are rejected with 401, even if otherwise valid.

### Handles missing password

Login request without a password field returns 400 with a descriptive error.

Each test references its spec:

# @lat: [[tests#User login#Rejects expired tokens]]
def test_rejects_expired_tokens():
    ...

Rules:

  • Every leaf section under require-code-mention: true must be referenced by exactly one @lat: comment
  • Every section MUST have a description β€” at least one sentence explaining what the test verifies and why
  • lat check flags unreferenced specs and dangling code refs

Frontmatter

Optional YAML frontmatter at the top of lat.md/ files:

---
lat:
  require-code-mention: true
---

Currently the only supported field is require-code-mention for test spec enforcement.

Validation

Always run lat check after editing lat.md/ files. It validates:

  • All wiki links point to existing sections or source code symbols
  • All @lat: code refs point to existing sections
  • Every section has a leading paragraph (≀250 chars)
  • All require-code-mention leaf sections are referenced in code
Pertanyaan umum

Apakah catatan lat.md boleh menyalin kode sumber?

Tidak. Catatan menjelaskan apa dan mengapa, dan kode itu sendiri adalah penjelasan langkah demi langkahnya.

Berapa panjang paragraf pembuka?

Harus 250 karakter atau kurang, tidak termasuk teks tautan wiki.

Apa yang tidak boleh masuk ke file ini?

Catatan sementara, daftar tugas, dan dokumentasi API yang dibuat otomatis bukan kandidat yang baik.

Detail

Deskripsi asli dari pembuat

Writing and maintaining lat.md documentation files β€” structured markdown that describes a project's architecture, design decisions, and test specs. Use when creating, editing, or reviewing files in the lat.md/ directory.

repo: fathah/hermes-desktop

Popularitas

Bintang GitHub
15k
Peringkat
#11138
Lisensi
MIT
Diperbarui
13/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa