← Về thư mục
scripts/_skill_lint.py
- FrontmatterError · class · L30-L37 — class FrontmatterError(Exception)
- iter_skill_files · function · L40-L49 — def iter_skill_files(root: Path) -> list[Path]
- parse_frontmatter · function · L52-L75 — def parse_frontmatter(path: Path) -> dict | None
- split_frontmatter · function · L78-L97 — def split_frontmatter(text: str) -> tuple[dict | None, str]
- check_metadata_field · function · L100-L130 — def check_metadata_field( root: Path, field: str, legal_values: set[str] | frozenset[str], ) -> list[str]
- h2_section_body · function · L133-L148 — def h2_section_body(text: str, heading: str) -> str | None
- check_section_literals · function · L151-L164 — def check_section_literals(invariant: int, text: str, heading: str, label: str, literals: dict[str, str]) -> list[str]
- run_lint · function · L167-L184 — def run_lint(field: str, legal_values: set[str] | frozenset[str], ok_message: str) -> int