Skip to content

Commit eeaf93b

Browse files
committed
update
1 parent bb4af28 commit eeaf93b

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

CALIBER_LEARNINGS.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Caliber Learnings
2+
3+
Accumulated patterns and anti-patterns from development sessions.
4+
Auto-managed by [caliber](https://github.com/caliber-ai-org/ai-setup) — do not edit manually.
5+
6+
- **[gotcha:project]** Caliber's `references_valid` check validates backtick-enclosed paths against the git-tracked file tree. `vendor/autoload.php` and Composer package names like `detain/myadmin-directadmin-vps-addon` are not tracked and fail validation — put these in shell code blocks (which are not path-checked), not as standalone inline backtick references.
7+
- **[pattern:project]** For Caliber project grounding score: always reference `.github/workflows/tests.yml` (CI pipeline) and `.idea/` (IDE config: `deployment.xml`, `encodings.xml`, `inspectionProfiles/Project_Default.xml`) explicitly in CLAUDE.md architecture sections — both directories exist in this repo and their absence loses grounding points.
8+
- **[env:project]** Caliber requires ≥3 code blocks in CLAUDE.md for full executable content score — always include `composer install`, the PHPUnit run command, and the coverage command as separate fenced code blocks.
9+
- **[gotcha:project]** `tests/PluginTest.php` has `testGetHooksCount` and `testExpectedPublicMethods` with hardcoded counts and method name lists. Whenever a new `public static` method is added to `src/Plugin.php`, both assertions must be updated manually or tests will fail.

0 commit comments

Comments
 (0)