Logo vun Fireact Builder

Fireact Builder

Organisatioun
fireact-dev
fireact-builder

Helps customize and extend Fireact SaaS apps after installation. Auto-detects Fireact projects by checking for @fireact.dev/app in package.json. Invoke when the user wants to add features, pages, custom components, navigation, branding, Cloud Functions, or i18n.

Iwwersiicht

Editeurfireact-dev
Repositorymain
Skill-Nummfireact-builder
Stären
558
Forks
180
Matgeliwwert Fichieren
5
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 5 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum fireact-dev op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Fireact Builder an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/fireact-dev/main/tree/main/create-fireact-app/templates/.claude/skills/fireact-builder
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/fireact-dev/main.git /tmp/main
mkdir -p .claude/skills
cp -r /tmp/main/create-fireact-app/templates/.claude/skills/fireact-builder .claude/skills/fireact-builder
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Fireact Builder an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Fireact Builder automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Fireact Builder net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Fireact Builder — Post-Installation Customization Skill

You help developers customize and extend their Fireact SaaS apps via natural language. This skill covers adding pages, replacing components, customizing navigation, branding, Cloud Functions, Firestore collections, and i18n.


1. Project Detection

Before doing anything, confirm this is a Fireact project:

  1. Check package.json for @fireact.dev/app in dependencies
  2. Check src/config/app.config.json exists
  3. Check src/App.tsx imports from @fireact.dev/app

If any check fails, tell the user this doesn't appear to be a Fireact project and suggest running npx create-fireact-app first.


2. State Reading Protocol

MUST read these files before making any changes to understand the current project state:

FileWhat to learn
src/App.tsxCurrent routing, imports, which components are local vs from @fireact.dev/app
src/config/app.config.jsonRoute paths, permissions, settings
src/config/stripe.config.jsonSubscription plans
src/i18n/en.tsExisting translation keys
src/components/ (list files)Existing custom components
functions/src/index.tsExisting Cloud Functions
firestore.rulesExisting security rules

3. Customization Playbooks

A. Add New Subscription Page

Use when the user wants a page scoped to a subscription (e.g., "add a reports page", "add an analytics page").

Steps:

  1. Create component at src/components/<PageName>.tsx:

    • Import useSubscription, useConfig, useTranslation from @fireact.dev/app
    • Handle loading state (spinner) and error state (redirect to home)
    • Use TailwindCSS for styling — no inline styles
    • See references/component-patterns.md for template
  2. Add route key to src/config/app.config.json under pages:

    json
    "<pageName>": "/subscription/:id/<slug>"
  3. Add route in src/App.tsx inside the SubscriptionProvider > SubscriptionLayout route block:

    tsx
    <Route path={appConfig.pages.<pageName>} element={
      <ProtectedSubscriptionRoute requiredPermissions={['access']}>
        <PageName />
      </ProtectedSubscriptionRoute>
    } />
  4. Add import at top of src/App.tsx:

    tsx
    import PageName from './components/PageName';
  5. Add i18n keys to src/i18n/en.ts (and other language files)

  6. Optionally add to navigation menu (see Playbook E)

B. Add New Authenticated Page

Use when the user wants a page that requires login but is not scoped to a subscription (e.g., "add an API keys page", "add a settings page").

Steps:

  1. Create component at src/components/<PageName>.tsx:

    • Import useAuth, useConfig from @fireact.dev/app
    • See references/component-patterns.md for template
  2. Add route key to src/config/app.config.json under pages:

    json
    "<pageName>": "/<slug>"
  3. Add route inside AuthenticatedLayout block in src/App.tsx:

    tsx
    <Route path={appConfig.pages.<pageName>} element={<PageName />} />
  4. Add import and translations

C. Add New Public Page

Use when the user wants a page that doesn't require login (e.g., "add a landing page", "add a pricing page").

Steps:

  1. Create component at src/components/<PageName>.tsx

  2. Add route inside PublicLayout block in src/App.tsx:

    tsx
    <Route path="/<slug>" element={<PageName />} />
  3. Add translations

D. Replace/Customize Existing Component

Use when the user wants to change an existing component from @fireact.dev/app (e.g., "customize the sign-in page", "change the dashboard").

Steps:

  1. Identify which @fireact.dev/app component to replace (see references/component-patterns.md for the full export list)

  2. Create local version at src/components/<ComponentName>.tsx maintaining the same hook/context contract as the original

  3. Change import in src/App.tsx:

    • Remove the component from the @fireact.dev/app destructured import
    • Add a local import:
      tsx
      import ComponentName from './components/ComponentName';
  4. Reference references/component-patterns.md for the expected patterns of each component type

E. Customize Navigation

Use when the user wants to add, remove, or reorder navigation items.

Steps:

  1. Create custom menu components (e.g., src/components/CustomSubscriptionDesktopMenu.tsx and CustomSubscriptionMobileMenu.tsx)

  2. Follow the pattern: useLocation, useTranslation, useSubscription, useConfig, hasPermission()

  3. Path replacement: use .replace(':id', subscription?.id || '') for subscription paths

  4. Sidebar width classes:

    • [.w-20_&]:hidden — hide text when sidebar collapsed
    • [.w-64_&]:mr-4 — add margin for icon when sidebar expanded
    • [.w-20_&]:mx-auto — center icon when sidebar collapsed
  5. Swap imports in src/App.tsx layout props:

    • Remove SubscriptionDesktopMenu / SubscriptionMobileMenu from @fireact.dev/app import
    • Import custom versions
    • Pass to SubscriptionLayout desktopMenu and mobileMenu props

See references/navigation-customization.md for full reference.

F. Customize Branding & Theme

Use when the user wants to change colors, fonts, or logo.

Steps:

  1. Modify tailwind.config.js for custom colors/fonts:

    js
    theme: {
      extend: {
        colors: {
          primary: { /* custom palette */ }
        }
      }
    }
  2. Modify src/index.css for global styles

  3. Create custom Logo component at src/components/Logo.tsx and import locally in App.tsx

  4. SubscriptionLayout supports these props for nav theming:

    • navBackgroundColor — CSS class for nav background (e.g., "bg-blue-900")
    • navTextColor — CSS class for nav text (e.g., "text-blue-100")

G. Add Custom Cloud Functions

Use when the user wants to add backend logic.

Steps:

  1. Create functions/src/<functionName>.ts:

    typescript
    import { onCall } from 'firebase-functions/v2/https';
    
    export const myFunction = onCall(async (request) => {
      // Access global config
      const config = global.saasConfig;
      // Your logic here
      return { success: true };
    });
  2. Access global.saasConfig for permissions, plans, Stripe keys

  3. Export from functions/src/index.ts:

    typescript
    export { myFunction } from './<functionName>';
  4. Call from frontend:

    typescript
    import { httpsCallable } from 'firebase/functions';
    
    const config = useConfig();
    const myFunction = httpsCallable(config.functions, 'myFunction');
    const result = await myFunction({ /* data */ });
  5. Build: cd functions && npm run build

See references/cloud-functions-patterns.md for detailed patterns.

H. Add Firestore Collections & Custom Data

Use when the user wants to store and retrieve custom data.

Steps:

  1. Use Firestore SDK with config.db from useConfig():

    typescript
    import { collection, doc, getDocs, addDoc } from 'firebase/firestore';
    
    const config = useConfig();
    
    // Read
    const snapshot = await getDocs(collection(config.db, 'subscriptions', subscriptionId, 'myCollection'));
    
    // Write
    await addDoc(collection(config.db, 'subscriptions', subscriptionId, 'myCollection'), { ... });
  2. Add security rules to firestore.rules following existing patterns:

    match /subscriptions/{docId}/myCollection/{docId2} {
      allow read: if request.auth != null
        && get(/databases/$(database)/documents/subscriptions/$(docId)).data.permissions.access.hasAny([request.auth.uid]);
      allow write: if request.auth != null
        && get(/databases/$(database)/documents/subscriptions/$(docId)).data.permissions.admin.hasAny([request.auth.uid]);
    }
  3. Build components that read/write data using the patterns in references/component-patterns.md


4. Key Conventions (Always Follow)

  • i18n: Use useTranslation() with t('key') for ALL user-facing strings. Never hardcode display text.
  • Loading/error states: Always handle in subscription components — show spinner while loading, redirect on error.
  • TailwindCSS only: No inline styles. Use Tailwind utility classes.
  • Route config: Always add route key to src/config/app.config.json when adding a page.
  • Subscription route protection: Always wrap subscription routes in <ProtectedSubscriptionRoute requiredPermissions={[...]}>.
  • Subscription URL pattern: Paths follow /subscription/:id/<slug>.
  • Verify after changes: Run npm run build and cd functions && npm run build to confirm no errors.

5. References

For detailed API documentation and code templates, see:

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Fireact Builder?

Helps customize and extend Fireact SaaS apps after installation. Auto-detects Fireact projects by checking for @fireact.dev/app in package.json. Invoke when the user wants to add features, pages, custom components, navigation, branding, Cloud Functions, or i18n.

Firwat Fireact Builder op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Fireact Builder besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Fireact Builder an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/fireact-dev/main/tree/main/create-fireact-app/templates/.claude/skills/fireact-builder an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Fireact Builder benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Fireact Builder benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Fireact Builder domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Fireact Builder gratis?

Jo. De Skill gëtt vum fireact-dev ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇