From 8ae94e7834d53166a3640b227a88f7e66c2bffc5 Mon Sep 17 00:00:00 2001 From: LordSchmackes Date: Thu, 21 May 2026 14:55:10 +0200 Subject: [PATCH] =?UTF-8?q?.agents=20aufger=C3=A4umt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .agent/skills/close_feature.json | 5 ---- DESIGN_GUIDE.md => .agents/DESIGN_GUIDE.md | 0 TODO.md => .agents/TODO.md | 0 .agents/brain.md | 31 +++++++++++++++++++++ error.log.20260313.gz | Bin 2519 -> 0 bytes 5 files changed, 31 insertions(+), 5 deletions(-) delete mode 100644 .agent/skills/close_feature.json rename DESIGN_GUIDE.md => .agents/DESIGN_GUIDE.md (100%) rename TODO.md => .agents/TODO.md (100%) create mode 100644 .agents/brain.md delete mode 100644 error.log.20260313.gz diff --git a/.agent/skills/close_feature.json b/.agent/skills/close_feature.json deleted file mode 100644 index 5840243..0000000 --- a/.agent/skills/close_feature.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "close_feature", - "description": "Closes a feature branch by merging it into main, verifying functionality with the user, and then pushing and deleting the branch.", - "instructions": "When the user invokes this skill to close a feature branch, execute the following workflow:\n\n1. Identify the current feature branch using `git branch --show-current`. If the user is currently on `main`, ask them to specify which feature branch they want to close.\n2. Use the `run_command` tool to execute `git checkout main` and `git pull origin main`.\n3. Use the `run_command` tool to execute `git merge `.\n4. STOP execution and ask the user to verify that the code/application still works correctly (Control Flow). Ask them to reply with 'approved' or 'yes' when they are ready to proceed.\n5. Once the user confirms, use the `run_command` tool to execute `git push origin main` and `git branch -d `.\n6. Notify the user that the feature branch has been successfully closed." -} diff --git a/DESIGN_GUIDE.md b/.agents/DESIGN_GUIDE.md similarity index 100% rename from DESIGN_GUIDE.md rename to .agents/DESIGN_GUIDE.md diff --git a/TODO.md b/.agents/TODO.md similarity index 100% rename from TODO.md rename to .agents/TODO.md diff --git a/.agents/brain.md b/.agents/brain.md new file mode 100644 index 0000000..e00adc1 --- /dev/null +++ b/.agents/brain.md @@ -0,0 +1,31 @@ +# FlixCooks Project Brain + +This document summarizes the architectural knowledge, conventions, and learnings accumulated during our session. + +## 1. Project Architecture & Stack +- **Backend:** Vanilla PHP. The project intentionally avoids heavy frameworks. +- **Database:** Flat-file JSON database (`data/recipes.json`). Data is loaded and saved via utility functions in `helpers.php`. +- **Admin Panel (`admin.php`):** Acts as a lightweight CMS. It uses simple textareas where each line maps to an array element (e.g., for `ingredients`, `steps`, `step_videos`, `step_timers`). This keeps the JSON structure clean and parsing straightforward. +- **Frontend:** Server-rendered PHP templates (`index.php`, `recipe.php`) with Vanilla JavaScript and Vanilla CSS. No Tailwind or heavy component libraries. + +## 2. Design & Aesthetics +- **CSS:** Highly customized CSS with modern design tokens (e.g., `var(--ease-out-expo)`, `var(--surface-1)`). +- **Animations:** Employs sophisticated micro-animations, glassmorphism (`backdrop-filter: blur`), and dynamic layouts (e.g., `clip-path` for overlays). +- **Smooth Scrolling:** Uses **Lenis** (`LenisSmoothScroll`). + - *Crucial Rule:* Whenever a fullscreen overlay (like the Cooking Mode) is opened, `lenis.stop()` must be called to prevent background scrolling. When closed, call `lenis.start()`. +- **Preloader:** A custom `CapitoliumPreloader` runs on the homepage. It is cached in `sessionStorage('flixcooks_preloader_seen')` so it only fires once per browsing session. + +## 3. Antigravity Agent Configuration +- **Workspace Rules:** Best placed in `.agents/rules/` (e.g., `AGENT.md`). To ensure they are always active, the frontmatter must include: + ```yaml + always_on: true + glob: "*" + ``` +- **Custom Skills:** Can be defined as JSON files in `.agents/skills/`. We successfully created `close_feature.json` to automate the Git workflow of checking out `main`, merging a feature branch, verifying functionality, and deleting the branch. + +## 4. Completed Milestones +- **Phase 3 (Nutrition):** Implemented. Recipes now store `calories`, `protein`, `carbs`, and `fat`. Admin panel handles inputs, and the UI displays them beautifully. +- **Phase 4 (Interactive Cooking Mode):** Implemented. Recipes now support step-by-step looping background videos and interactive timers (`step_videos`, `step_timers`). The UI utilizes a fullscreen overlay slider with Vanilla JS logic. + +## 5. Next Steps +According to `TODO.md`, the next major feature block is **Phase 5 (PWA & Offline Support)**, which involves service workers, manifest files, and enabling the app to be installable on mobile devices. diff --git a/error.log.20260313.gz b/error.log.20260313.gz deleted file mode 100644 index a66936211ff61517951f472aa110e31f6ce2e4a0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2519 zcmV;|2`Kg-iwFP!000001I$}XbKA%fzUNo)l+$W3kDeE{T*+1vS8~`~c5kkf3L=LR zY>J=(kdps>dPpiFWb_akiOwEOgER?$_`3V+$IN{C*w(XOt9B;TjPnv?seyT?wDdE{ zrTNe7)4XXzS+AE3UT^BfOe?Nk*&nV9;HPc4Z~8E^z$}xBGa-Dbr84;IU;fFtkglA4 ztXE;SXhJtzH~lO;)?HuDifz{x4-XIccWApJd|sHZ--@=mY5I=!kNuxMox+o)w50%M zz;k?0zyo2N-NVBx&k1-Sg?H}@4@zlD5X^!CCn#WdwfOrKF;Cxkwb&t1j%sA!@)3Q|F>P-F+Ti2{YF$PXErL2&a0_UVY`ks>p>?t_U zv`6nl{_z_i!Da?W8eZhi2ojz`+aKU5ZUxPq$>a{NccC4FW{^3rI2pCpf<8dARtuG4 zE;lez-~b$|#UyZ2CU}FlK)dSts^4~F2yJvcZebdIK1rXv5JrarA-pA}Wr*?A`@D`n zWg4}`Xf%h5~qcZq0_a(gp*k(Ca{6_SmwN~ zLPXYVCbCs?Td!F)@9Sng0uXp4&&X*d?7o2_$|}90ulfps68J2DB`F+KvMv!BJ~J}d-+#OQt;hd$44q&K3~(}T2fD}UHUJHr8@Xrr z6OlhFc_MzLIL5Dzof5&H=b5_4!g@Cj4CBtyjyG&k($rcE#9*TkDI3L`=(hH_w~GOx@Ot4@HoG#*0+I$ zMcvICY!|+<=P$Bqvsu;Xw1g%BbJk-IHOXg(-Rn#0b5-fWPpG2>y`<}r)5M@@Rr5U8 zwQlP^P7s#$sA^yz?6?#;y7mHJCjYl>wYmGcBCvUl)n*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