본문으로 건너뛰기
Skillpedia
문서화15k · #11138

lat-md

하는 일

이 스킬은 프로젝트의 설계 결정, 규칙, 테스트를 정해진 형식으로 설명하는 lat.md 문서를 작성하는 방법을 설명합니다. 코드가 다시 가리킬 수 있는 구조화된 프로젝트 메모를 관리하는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓프로젝트의 lat.md 폴더에 새 섹션을 만들어야 할 때.
  • ✓기존 lat.md 파일을 편집하면서 올바른 구조가 필요할 때.
  • ✓lat.md 메모가 필요한 규칙을 따르는지 검토하고 싶을 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/fathah/hermes-desktop/blob/main/.agents/skills/lat-md/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“우리 프로젝트의 로그인 규칙이 어떻게 작동하는지 설명하는 lat.md 섹션을 작성하는 것을 도와줄 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 규칙을 따릅니다. 각 섹션은 짧은 첫 문단으로 시작하고, 메모는 코드를 반복하지 않고 프로젝트가 무엇을 하고 왜 하는지 설명합니다. 이 텍스트는 검색과 다른 도구가 쉽게 읽을 수 있도록 설계되어 있습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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
자주 묻는 질문

lat.md 메모에 소스 코드를 그대로 복사해야 하나요?

아니요. 메모는 무엇과 왜를 설명하며, 상세한 안내는 코드 자체가 맡습니다.

첫 문단은 얼마나 길어야 하나요?

위키 링크 텍스트를 빼고 250자 이하여야 합니다.

이 파일에 무엇을 넣으면 안 되나요?

임시 메모, 할 일 목록, 자동 생성된 API 문서는 좋은 대상이 아닙니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
15k
순위
#11138
라이선스
MIT
업데이트
2026. 10. 13.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬