Skip to content
Apothem
أمثلة

قاعدة مخصّصة

تأليف قاعدة دائمة مخصّصة لمشروعك.

يضيف هذا المثال قاعدة دائمة خاصّة بالمشروع تفرض اصطلاح تسمية عبر كل الملفات.

ملف القاعدة

---
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.

احفظ هذا في rules/kebab-filenames.md داخل جذر تثبيت harness الخاص بك (~/.claude/ لمُحوِّل Claude Code؛ استبدِل مسار harness الأصلي خلاف ذلك).

تحقّق من تحميل القاعدة

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

النشر إلى الـharness

شغِّل أمر التحديث مرّة واحدة لكل harness مُثبَّت:

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

On this page