Logo von Html Portal Generator

Html Portal Generator

Community
athola
html-portal-generator

Convert a codebase into a self-contained HTML portal app for ingestion into AI application systems. Produces a single deployable HTML file with embedded CSS, JS, and data.

Übersicht

Herausgeberathola
Repositoryskrills
Skill-Namehtml-portal-generator
Sterne
69
Forks
10
Mitgelieferte Dateien
Nur Anweisungen
LizenzMIT
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • In sich abgeschlossen

    Alles, was das Modell braucht, steht in den Anweisungen — keine zusätzlichen Dateien zum Synchronisieren.

  • Open Source

    Von athola auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Html Portal Generator in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/athola/skrills/tree/master/skills/html-portal-generator
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/athola/skrills.git /tmp/skrills
mkdir -p .claude/skills
cp -r /tmp/skrills/skills/html-portal-generator .claude/skills/html-portal-generator
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Html Portal Generator in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Html Portal Generator automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Html Portal Generator nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

HTML Portal Generator

Convert any codebase into a single, self-contained HTML portal application. The output is one .html file with embedded styles, scripts, and data that works offline, on file:// protocol, and can be uploaded into AI application portals.

When to Use

  • You have a codebase (CLI tool, library, API, framework) and need an interactive HTML representation of its functionality
  • The HTML will be uploaded into a smart AI portal or application integration system
  • You need all features to work standalone without a running server
  • You want users to explore, validate, analyze, and interact with the product from a browser

Process

Follow these phases in order. Each phase builds on the previous.

Phase 1: Codebase Analysis

Understand what the product does before writing any HTML.

  1. Read project documentation: README, CLAUDE.md, architecture docs, changelogs
  2. Identify core crates/packages: Map each module's purpose and public API
  3. Catalog user-facing features: CLI commands, API endpoints, configuration options
  4. Extract data structures: Response types, configuration schemas, enum values
  5. Find existing UI code: Dashboards, templates, stylesheets (reuse their design language)

Produce a mental inventory:

  • Feature list (what the product does)
  • Data catalog (what entities/types exist)
  • Command/API reference (how users interact)
  • Visual identity (colors, fonts, layout patterns from existing UI)

Phase 2: Reference Analysis (if provided)

If the user provides a reference HTML app:

  1. Read the first and last ~3KB to understand structure (large files may be minified)
  2. Identify the design pattern: CSS variables, layout system, component structure
  3. Note the interaction model: controls bar, status bar, grid layout, tab navigation
  4. Extract the color palette and typography from CSS custom properties

Phase 3: Architecture Design

Design the portal as a single-page app with tab navigation.

Required structural elements:

  • Sticky header with product name, version badge, and summary stats
  • Tab navigation bar for switching between views
  • Main container with max-width for readability
  • Sticky status bar footer with links to docs/repo
  • Toast notification system for user feedback

View planning - map each product feature to a view:

Feature TypeView Pattern
Entity browsing (skills, packages, endpoints)Card grid with search/filter/sort and detail panel
Validation/checkingSplit editor (textarea input) and results panel
Analysis/metricsInput, stat cards, and bar charts
Configuration/creationForm inputs, live preview, and download
Format conversionSide-by-side input/output with target selector
Reference docs (commands, APIs)Searchable/filterable list with copy-on-click
Status/compatibilityMatrix grid or table
Dashboard/overviewStat cards, quick actions, and recent items

Every view must work 100% standalone. No external API calls required. Embed demo data. Add optional live-server connection as a bonus.

Phase 4: Data Embedding

Convert real product data into JavaScript arrays embedded in the HTML.

  1. Scan the actual codebase for entities (skills, commands, endpoints, types)
  2. Extract metadata from source files (frontmatter, doc comments, type definitions)
  3. Generate realistic validation states based on actual product rules
  4. Include failure reasons as tooltip/detail text so users understand why things pass/fail
  5. Store as const arrays in the <script> block - no external JSON files

For large datasets (100+ items), use a build script to extract and format the data rather than hand-writing it.

If the product has local files users might want to scan:

  • Add a "Scan Local" button using the File System Access API (showDirectoryPicker)
  • Walk directories recursively, parse file frontmatter/headers
  • Replace the embedded data with live-scanned results
  • Store full file content on scanned items for downstream analysis

Phase 5: Implementation

Build the HTML file following these rules:

Single-file architecture:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Product - Portal</title>
  <style>/* All CSS here */</style>
</head>
<body>
  <!-- All HTML here -->
  <script>/* All JS here, wrapped in IIFE */</script>
</body>
</html>

CSS requirements:

  • Use CSS custom properties (:root { --bg: ...; }) for theming
  • Support dark mode (default) and light mode via @media (prefers-color-scheme: light)
  • Reuse the product's existing color palette if it has one
  • Mobile-responsive with @media (max-width: ...) breakpoints
  • Style scrollbars, focus states, and transitions

JavaScript requirements:

  • Wrap everything in an IIFE: (function() { 'use strict'; ... })();
  • No inline onclick handlers - use addEventListener exclusively
  • Clipboard operations must fall back to document.execCommand('copy') for file:// protocol
  • Every click should produce visible feedback (toast, navigation, highlight)
  • Autocomplete/datalist for name inputs that reference the embedded data
  • Tab navigation via data-view attributes and .active class toggling

Interactivity checklist - every element the user can see must do something when clicked:

  • Cards/list items: select, show detail, or navigate
  • Buttons: perform action with toast feedback
  • Reference items: copy to clipboard on click
  • Status indicators: show tooltip with explanation on hover
  • External links: open in new tab with target="_blank" rel="noopener"
  • Quick actions: run in-browser if possible, otherwise copy CLI command and link to docs

Phase 6: Feature Implementation Patterns

Entity Browser (the main catalog view):

- Search input (filters by name and description)
- Source/category dropdown filter
- Quality/status dropdown filter
- Sort selector (alpha, by source, by status)
- Card grid with: name, source badge, description, validation tags
- Validation tags with hover tooltips showing failure reasons
- Detail panel (sticky sidebar) with full metadata on click
- Export button (download as JSON)
- Local scan button (File System Access API)

Validator:

- Target selector (individual CLI or "All")
- Textarea for pasting content
- Validate button - runs client-side validation logic
- Autofix button - actually modifies content:
  - Fills missing frontmatter fields
  - Converts names to kebab-case
  - Scaffolds body sections if too short
  - Adds target-specific fields (e.g., globs for Cursor)
- Quality score panel (0-100 with visual ring)
- Download button for the validated/fixed file
- Load Sample button with realistic example content

Token/Size Analyzer:

- Name input with datalist autocomplete from catalog
- Load button to pull content from catalog by name
- Textarea for content
- Stat cards: tokens, words, lines, characters
- Progress bar with percentage (label outside bar for small values)
- Size category with color coding
- Optimization suggestions list

Format Converter:

- Source format selector
- Target format selector
- Convert button (single target)
- Convert All button (generates all formats with tab switcher)
- Download button
- Side-by-side input/output layout

Creator/Builder:

- Form fields for metadata (name, description, version, deps)
- Target-specific fields shown/hidden based on selection
- Body textarea with placeholder template
- Live preview panel (pre element)
- File path display showing where to save for each CLI
- Dependency graph visualization
- Download and Send-to-Validator buttons

Reference views (commands, tools, APIs):

- Search input
- Category filter
- Each item shows: name/command, description, usage guidance
- Click to copy, with toast confirmation
- Usage guidance paragraph below each item explaining when/how to use it

Dashboard:

- Stat cards row (total items, categories, etc.)
- Quick Actions panel:
  - In-browser actions (green "runs here" badge): actually execute
  - CLI-only actions (muted "CLI only" badge): copy command and link to docs
- Supporting info panels with clickable items
- Recent items grid linking to the browser view

Phase 7: Quality Checks

Before delivering, verify:

  1. JS syntax: node -e "new Function(scriptContent)" parses without error
  2. All tabs work: Each data-view has a matching id="view-..." element
  3. No emdashes: Replace all — with - (AI slop reduction)
  4. No dead clicks: Every visible element does something on click
  5. Clipboard works on file://: All copy operations use the execCommand fallback
  6. Tooltips on status indicators: Hover explains why something passed/failed
  7. Responsive: Views stack on mobile
  8. Open in browser: open filename.html and manually test each tab

Phase 8: Iteration

The user will test and request changes. Common requests:

  • "X doesn't do anything when I click it" - Add click handler with visible feedback
  • "Information is missing" - Add data fields, tooltips, or guidance text
  • "It should use my actual data" - Scan real files and embed or add local scan
  • "Autofix doesn't change anything" - Make it fix more issues, scaffold content
  • "The percentage doesn't show" - Move labels outside narrow bars
  • "Link to docs" - Add target="_blank" links to product documentation

Output

A single .html file (typically 60-120KB) that:

  • Works by double-clicking in Finder/Explorer
  • Works on file:// protocol in any browser
  • Optionally connects to a live server for real-time data
  • Optionally scans local files via browser directory picker
  • Can be uploaded directly into AI application portals

Häufig gestellte Fragen

Was macht der KI-Skill Html Portal Generator?

Convert a codebase into a self-contained HTML portal app for ingestion into AI application systems. Produces a single deployable HTML file with embedded CSS, JS, and data.

Warum Html Portal Generator in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Html Portal Generator besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Html Portal Generator in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/athola/skrills/tree/master/skills/html-portal-generator ein. TypingMind liest die Datei SKILL.md und installiert den Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Html Portal Generator nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Html Portal Generator verwenden?

So viele Sie möchten. In TypingMind können Sie Html Portal Generator mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Html Portal Generator kostenlos?

Ja. Der Skill wird von athola auf GitHub unter der Lizenz MIT veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇