From 6196e9ff4b35bb0e1a066042082b866a94e36069 Mon Sep 17 00:00:00 2001 From: yaroslav8765 Date: Tue, 4 Aug 2026 20:31:31 +0300 Subject: [PATCH 1/2] fix: edit CLI app agent instructions for generating a vue component. Recomend agent use afcl components and adminforth colors palette (lightPrimary, darkPrimary...) AdminForth/1849/issue--if-this-was-prompt-ted- --- .../skills/adminforth-custom-vue/SKILL.md.hbs | 207 +++++++++++++++++- 1 file changed, 201 insertions(+), 6 deletions(-) diff --git a/adminforth/commands/createApp/templates/.agents/skills/adminforth-custom-vue/SKILL.md.hbs b/adminforth/commands/createApp/templates/.agents/skills/adminforth-custom-vue/SKILL.md.hbs index ba56b0513..da9ff9d3b 100644 --- a/adminforth/commands/createApp/templates/.agents/skills/adminforth-custom-vue/SKILL.md.hbs +++ b/adminforth/commands/createApp/templates/.agents/skills/adminforth-custom-vue/SKILL.md.hbs @@ -1,6 +1,6 @@ --- name: adminforth-custom-vue -description: "Use when implementing AdminForth custom Vue UI: field components, page injections, login or global injections, meta-driven component declarations, and frontend packages inside custom/." +description: "Use when implementing AdminForth custom Vue UI: AFCL components, theme colors and dark mode, field components, page injections, login or global injections, meta-driven component declarations, and frontend packages inside custom/." user-invocable: true --- @@ -13,6 +13,189 @@ user-invocable: true - Adding resource page injections, login injections, or global layout injections. - Passing `meta` into reusable Vue components. - Installing frontend packages used only by custom AdminForth Vue code. +- Any task that produces visible UI in an AdminForth app, even when the task says nothing about how it should look. + +## Non-Negotiable UI Defaults + +Apply all of these to every piece of UI you write under `custom/`, including when the user gave no design +instructions at all. These are the defaults, not options — do not ask whether the user wants them, and do +not wait for a follow-up prompt about styling or dark mode. + +1. **Build from AFCL first.** AFCL (AdminForth Components Library) is imported from `@/afcl` and is always + available in `custom/` without installing anything. Reach for a raw HTML control only when no AFCL + component covers the case. +2. **Buttons come from AFCL with an explicit intent.** Primary/confirming action is the default filled + accent `