brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
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.
Claude Code
$ npx -y skills add athola/skrills --skill html-portal-generator --agent claude-code
Codex
$ npx skills add athola/skrills --skill html-portal-generator -a codex -y
Cursor
$ npx skills add athola/skrills --skill html-portal-generator -a cursor -y
Gemini CLI
$ npx skills add athola/skrills --skill html-portal-generator -a gemini-cli -y
GitHub Copilot
$ npx skills add athola/skrills --skill html-portal-generator -a github-copilot -y
OpenCode
$ npx skills add athola/skrills --skill html-portal-generator -a opencode -y
Windsurf
$ npx skills add athola/skrills --skill html-portal-generator -a windsurf -y
name: html-portal-generator description: 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. version: 1.0.0
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.
Follow these phases in order. Each phase builds on the previous.
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:
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
Design the portal as a single-page app with tab navigation.
**Required structural elements:**
**View planning - map each product feature to a view:**
| Feature Type | View Pattern | |---|---| | Entity browsing (skills, packages, endpoints) | Card grid with search/filter/sort and detail panel | | Validation/checking | Split editor (textarea input) and results panel | | Analysis/metrics | Input, stat cards, and bar charts | | Configuration/creation | Form inputs, live preview, and download | | Format conversion | Side-by-side input/output with target selector | | Reference docs (commands, APIs) | Searchable/filterable list with copy-on-click | | Status/compatibility | Matrix grid or table | | Dashboard/overview | Stat 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.
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:
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:**
**JavaScript requirements:**
**Interactivity checklist - every element the user can see must do something when clicked:**
Write a skill once, use it everywhere. Skrills validates and syncs skills, commands, agents, MCP servers, and hooks across **Claude Code, Codex CLI, GitHub Copilot CLI, and Cursor**, all from a single Rust binary. Install · User Guide · CLI Reference · FAQ ·
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.