Skip to content
Apothem
Contoh

Rule kustom

Menulis sebuah rule selalu-aktif kustom untuk proyek Anda.

Contoh ini menambahkan sebuah rule selalu-aktif khusus-proyek yang menegakkan sebuah konvensi penamaan di seluruh berkas.

Berkas rule

---
name: "kebab-filenames"
description: "Enforce kebab-case filenames in the src/ tree"
pathFilter: ""
alwaysApply: true
---

# Kebab-case filenames

All new files created under `src/` MUST use kebab-case naming
(lowercase letters, digits, and hyphens only — no underscores,
no camelCase, no PascalCase).

**Correct:** `src/styles/button-group.css`, `src/components/nav-bar.css`
**Incorrect:** `src/styles/buttonGroup.css`, `src/components/NavBar.css`

When in doubt, err on the side of more hyphens.

Simpan ini ke rules/kebab-filenames.md di dalam akar instalasi harness Anda (~/.claude/ untuk adapter Claude Code; ganti dengan jalur native harness jika tidak).

Verifikasi rule telah dimuat

python -m apothem.conformity.gate --check frontmatter

Propagasikan ke harness

Jalankan perintah update satu kali per harness terpasang:

apothem update --harness claude-code
apothem update --harness cursor

On this page