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
In this repository19 other files it gives its agents.
- .agents/AGENTS.mdAGENTS.md
- architecture-decision-recordsSkill
- biblioteca-de-promptsSkill
- cloning-protocolSkill
- continuous-learning-v2Skill
- docker-patternsSkill
- e2e-testingSkill
- fastapi-patternsSkill
- git-workflowSkill
- nextjs-turbopackSkill
- postgres-patternsSkill
- qa-pre-flightSkill
- react-patternsSkill
- react-performanceSkill
- security-reviewSkill
- security-scanSkill
- ultimate-debuggerSkill
- verification-loopSkill
- vite-patternsSkill
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
- Distinctive: line 56
Use this checklist when converting a site:
- Very specific: line 73
Read package.json to identify the framework and dependencies
- Distinctive: line 75
Read every component file to understand the full visual structure
- Very specific: line 109
Use a short, unique prefix based on the project name (e.g., vf-, gl-).
- Distinctive: line 170
Before delivering the file, verify:
≈ “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.
Files
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:
- Tenha o projeto-fonte acessivel ao agente (repo aberto ou colado no chat).
- Peca: "Use a skill converting-to-gohighlevel para transformar este site num unico HTML pro GHL."
- 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/exportandtype="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 GHLStep-by-Step Instructions
Step 1: Audit the Source Project
- Read
package.jsonto 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
| Category | Action | Examples |
| Visual frameworks | Replace with vanilla HTML/CSS | React, Vue, Svelte |
| Animation libs | Convert to CSS @keyframes | Framer Motion, GSAP |
| Icon libraries | Convert to inline <svg> | Lucide, Heroicons, FontAwesome |
| CSS frameworks | Load via CDN <link> or inline | Tailwind, Bootstrap |
| Google Fonts | Keep as <link> tags | Any Google Font |
| Auth/Database | Remove entirely | Supabase, Firebase, Auth0 |
| Server APIs | Remove or mock | LLM/AI APIs, Stripe |
| Analytics | Remove (GHL has its own) | Vercel Analytics, GA |
Step 3: Convert Components to Pure HTML
For each component in the source project:
- Extract the JSX/template and convert to plain HTML
- Extract all Tailwind/CSS classes and convert to vanilla CSS
- Replace all React state/hooks with vanilla JS or CSS-only solutions
- Replace all
map()renders with static repeated HTML - 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-btnUse 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 desktopStep 8: Delivery Instructions
Tell the user:
- Open the generated
.htmlfile in their editor - Cmd+A (Select All) → Cmd+C (Copy)
- In GoHighLevel page builder, add a Custom Code element
- Click Open Code Editor
- Cmd+V (Paste) into the Custom Javascript/HTML box
- Click Save
- Preview or Publish the page
Resources
- See
examples/for reference conversions - See
resources/common-icons.htmlfor frequently used inline SVG icons
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
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.

