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..b6fb9d9fd 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,68 @@ 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. + +## Adminforth UI Defaults + +Apply all of these to every piece of UI you write under `custom/`, especially 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 `