agentleFS
aragaobrunoaragaobruno/monster-antigravity/skills/converting-to-gohighlevel/SKILL.md

converting-to-gohighlevel

Skill2 starsChanged 5 months agoMITView on GitHub

Converts any website codebase (React, Next.js, Vue, Svelte, etc.) into a single self-contained HTML file compatible with GoHighLevel's Custom HTML/Javascript code block. Use when the user mentions GoHighLevel, GHL, converting a site for GHL, or creating a single-file website for a page builder.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this checklist when converting a site:

    line 56
  2. Very specific:

    Read package.json to identify the framework and dependencies

    line 73
  3. Distinctive:

    Read every component file to understand the full visual structure

    line 75
  4. Very specific:

    Use a short, unique prefix based on the project name (e.g., vf-, gl-).

    line 109
  5. Distinctive:

    Before delivering the file, verify:

    line 170

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

O que e isto (PT-BR)

Transformer Skill (Converter para GoHighLevel) e uma skill (instrucao tecnica para o agente de IA) que pega o codigo de um site (React, Next.js, Vue, Svelte, etc.) e o converte num unico arquivo HTML autossuficiente, compativel com o bloco Custom HTML/Javascript do GoHighLevel (GHL).

Por que existe: o bloco de codigo custom do GHL e bem restrito — nao aceita JSX, modulos ES, build tools nem as tags <html>/<head>/<body>. Esta skill ensina a IA a "achatar" o projeto em HTML + CSS + JS puro que cola direto no GHL.

Quando usar: quando voce tem um site multi-arquivo e quer publica-lo numa pagina do GHL (ou em outro page builder que so aceita um bloco de codigo custom).

Como usar:

  1. Tenha o projeto-fonte acessivel ao agente (repo aberto ou colado no chat).
  2. Peca: "Use a skill converting-to-gohighlevel para transformar este site num unico HTML pro GHL."
  3. O agente roda o workflow de 9 passos: audita o projeto, remove o que e backend (auth, banco, APIs de servidor), mapeia componentes para HTML/CSS, troca icones por SVG inline, converte animacoes para CSS, prefixa as classes, valida (sem imports/JSX/modulos) e te diz como colar no GHL.

O texto tecnico abaixo esta em ingles de proposito (e instrucao operacional para o agente).


GoHighLevel Website Converter

When to use this skill

  • User wants to upload a website to GoHighLevel (GHL)
  • User asks to convert a React/Next/Vue/Svelte site into a single HTML file
  • User mentions "GoHighLevel", "GHL", or "Custom HTML block"
  • User wants a single-file version of a multi-file website project
  • User wants to paste a website into a page builder's custom code block

Key Constraints (GHL Custom HTML Block)

GoHighLevel's Custom HTML/Javascript block has strict limitations:

  • ❌ No JSX / No Babel — type="text/babel" scripts are silently ignored
  • ❌ No ES modules — import/export and type="module" do not work
  • ❌ No build tools — No Vite, Webpack, or bundler output
  • ❌ No Node.js APIs — process.env, require(), etc. are unavailable
  • ❌ No <html>, <head>, <body> tags — GHL wraps your code in its own page shell
  • ✅ Pure HTML + <style> + <script> only — vanilla JS, CSS, inline SVGs
  • ✅ CDN <link> and <script src=""> tags — external resources load fine
  • ✅ Google Fonts, Tailwind CDN, external images — all work

Workflow

Use this checklist when converting a site:

- [ ] 1. Audit the source project (framework, components, dependencies)
- [ ] 2. Identify removable features (auth, databases, server APIs)
- [ ] 3. Map all visual components to pure HTML/CSS equivalents
- [ ] 4. Convert all icons to inline SVGs (no icon library imports)
- [ ] 5. Convert all animations to CSS keyframes or vanilla JS
- [ ] 6. Prefix all CSS classes to avoid GHL style conflicts
- [ ] 7. Write the single output file
- [ ] 8. Validate: no imports, no JSX, no modules, no <html>/<head>/<body>
- [ ] 9. Inform user to Cmd+A → Cmd+C → paste into GHL

Step-by-Step Instructions

Step 1: Audit the Source Project

  • Read package.json to identify the framework and dependencies
  • List all components in the project (check components/, src/, pages/)
  • Read every component file to understand the full visual structure
  • Note which dependencies are visual-only vs. backend/API

Step 2: Classify Dependencies

CategoryActionExamples
Visual frameworksReplace with vanilla HTML/CSSReact, Vue, Svelte
Animation libsConvert to CSS @keyframesFramer Motion, GSAP
Icon librariesConvert to inline <svg>Lucide, Heroicons, FontAwesome
CSS frameworksLoad via CDN <link> or inlineTailwind, Bootstrap
Google FontsKeep as <link> tagsAny Google Font
Auth/DatabaseRemove entirelySupabase, Firebase, Auth0
Server APIsRemove or mockLLM/AI APIs, Stripe
AnalyticsRemove (GHL has its own)Vercel Analytics, GA

Step 3: Convert Components to Pure HTML

For each component in the source project:

  1. Extract the JSX/template and convert to plain HTML
  2. Extract all Tailwind/CSS classes and convert to vanilla CSS
  3. Replace all React state/hooks with vanilla JS or CSS-only solutions
  4. Replace all map() renders with static repeated HTML
  5. Replace all icon component imports with inline <svg> elements

Step 4: CSS Class Prefixing

To prevent conflicts with GHL's built-in styles, prefix ALL CSS classes:

Bad:  .hero, .nav, .card, .btn
Good: .vf-hero, .vf-nav, .vf-card, .vf-btn

Use a short, unique prefix based on the project name (e.g., vf-, gl-).

Step 5: Animation Conversion

Convert framework animations to CSS:

/* Framer Motion fade-in → CSS equivalent */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.vf-animate { animation: fadeInUp 0.6s ease-out forwards; }

For scroll-triggered animations, use Intersection Observer in vanilla JS:

var observer = new IntersectionObserver(function(entries) {
  entries.forEach(function(entry) {
    if (entry.isIntersecting) {
      entry.target.classList.add('visible');
    }
  });
}, { threshold: 0.1 });
document.querySelectorAll('.animate-on-scroll').forEach(function(el) {
  observer.observe(el);
});

Step 6: Output File Structure

The final file must follow this exact structure:

<!-- 1. External CDN links (fonts, optional Tailwind) -->
<link href="https://fonts.googleapis.com/css2?family=..." rel="stylesheet">

<!-- 2. All CSS in a single <style> block -->
<style>
  /* Reset + all component styles + animations + responsive */
</style>

<!-- 3. All HTML in a single wrapper div -->
<div class="prefix-wrap">
  <!-- nav -->
  <!-- hero -->
  <!-- sections -->
  <!-- footer -->
</div>

<!-- 4. All JS in a single <script> block at the end -->
<script>
  // Scroll effects, interactivity, drag handlers
</script>

NEVER include: <!DOCTYPE>, <html>, <head>, <body> — GHL provides these.

Step 7: Validation Checklist

Before delivering the file, verify:

- [ ] No `import` or `export` statements anywhere
- [ ] No `type="module"` or `type="text/babel"` on any script tag
- [ ] No JSX syntax (no `<Component />`, no `{}` expressions in HTML)
- [ ] No `<!DOCTYPE>`, `<html>`, `<head>`, or `<body>` tags
- [ ] No `process.env`, `import.meta`, or Node.js APIs
- [ ] All icons are inline SVGs (no lucide-react, no heroicons imports)
- [ ] All CSS classes are prefixed to avoid GHL conflicts
- [ ] All animations use CSS @keyframes or vanilla JS
- [ ] File renders correctly when opened directly in a browser
- [ ] Responsive: looks good on mobile, tablet, and desktop

Step 8: Delivery Instructions

Tell the user:

  1. Open the generated .html file in their editor
  2. Cmd+A (Select All) → Cmd+C (Copy)
  3. In GoHighLevel page builder, add a Custom Code element
  4. Click Open Code Editor
  5. Cmd+V (Paste) into the Custom Javascript/HTML box
  6. Click Save
  7. Preview or Publish the page

Resources

  • See examples/ for reference conversions
  • See resources/common-icons.html for frequently used inline SVG icons

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.