Answers from the documentation; checking which model is on duty
Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
artifacts-builder - Skill - OpenSmartRoute
Skillv1.0.0
artifacts-builder
Use when the user needs standalone HTML/CSS/JS artifacts — interactive demos, prototypes, single-file applications, or visual tools that run independently in a browser.
Imported from pixel-process-ug/superkit-agents (templates/skills/artifacts-builder/SKILL.md). Install upstream with npx skills add pixel-process-ug/superkit-agents --skill artifacts-builder. Copyright stays with the author.
Artifacts Builder
Overview
Generate self-contained, production-quality HTML/CSS/JS artifacts that run in any modern browser without a build step. Each artifact is a single file (or minimal file set) containing everything needed for an interactive demo, prototype, data visualization, or utility tool. Emphasis on progressive enhancement, responsive design, and clean code.
Phase 1: Scope Definition
Clarify the artifact's purpose (demo, prototype, tool, visualization)
/* Base: mobile */.layout { display: flex; flex-direction: column; }/* Tablet and up */@media (min-width: 768px) { .layout { flex-direction: row; } .sidebar { width: 280px; flex-shrink: 0; }}
Progressive Enhancement
Layer
Purpose
Requirement
HTML
Content accessible and meaningful
Works without CSS or JS
CSS
Visual presentation and layout
Works without JS
JavaScript
Enhanced interactivity
Adds dynamic behavior
Feature Detection
// Check before using modern APIsif ('IntersectionObserver' in window) { // Use lazy loading} else { // Load all images immediately}if (CSS.supports('backdrop-filter', 'blur(10px)')) { element.classList.add('glass-effect');}
State Management (No Framework)
Simple State Pattern
function createStore(initialState) { let state = { ...initialState }; const listeners = new Set(); return { getState: () => ({ ...state }), setState(updates) { state = { ...state, ...updates }; listeners.forEach(fn => fn(state)); }, subscribe(fn) { listeners.add(fn); return () => listeners.delete(fn); }, };}
URL-Based State (for shareable artifacts)
function syncStateWithURL(store) { const params = new URLSearchParams(location.search); for (const [key, value] of params) { store.setState({ [key]: JSON.parse(value) }); } store.subscribe(state => { const params = new URLSearchParams(); Object.entries(state).forEach(([k, v]) => params.set(k, JSON.stringify(v))); history.replaceState(null, '', `?${params}`); });}
Export Formats
Format
Use Case
Method
Single HTML file
Sharing, embedding
Self-contained <style> and <script>
HTML + assets
Complex artifacts
Separate CSS/JS files
Data URL
Inline embedding
data:text/html;base64,...
Screenshot/PNG
Documentation
html2canvas or browser screenshot
PDF
Print/report
window.print() with print styles
Quality Checklist
Valid HTML5 (<!DOCTYPE html>, lang attribute)
Responsive viewport meta tag
Works without JavaScript (content visible)
Dark mode support (prefers-color-scheme)
Keyboard navigable
No console errors
File size under 100KB (excluding images)
Cross-browser tested (Chrome, Firefox, Safari)
Print styles if applicable
Semantic HTML elements used appropriately
Anti-Patterns / Common Mistakes
Anti-Pattern
Why It Is Wrong
What to Do Instead
React/Vue/Angular in single-file artifact
Massive overhead for simple interactions
Use Alpine.js or vanilla JS
Heavy framework from CDN for simple UI
Slow load, wasted bandwidth
Match dependency weight to need
Inline styles instead of CSS custom properties
Cannot theme, cannot dark-mode
Use CSS custom properties (tokens)
No error handling on user input
Crashes on bad input
Validate and provide feedback
Fixed pixel dimensions
Breaks on mobile, tablets
Use responsive units (%, rem, vw)
Missing <meta viewport>
Mobile renders desktop-zoomed
Always include viewport meta tag
Blocking <script> in <head>
Delays page rendering
Use defer attribute or put at end of body
No IIFE wrapper for script
Global scope pollution
Wrap in (function() { ... })()
Hardcoded colors without tokens
Cannot switch themes
Use CSS custom properties
Integration Points
Skill
Integration
ui-ux-pro-max
Style selection and UX guidelines
ui-design-system
Design tokens for consistent theming
canvas-design
Canvas/SVG visualizations within artifacts
senior-frontend
Complex component patterns
mobile-design
Mobile-responsive artifact design
planning
Artifact scope is defined during planning
Skill Type
FLEXIBLE — Adapt the architecture, dependencies, and complexity to the artifact's requirements. Simple demos should remain as minimal as possible; complex tools may use lightweight frameworks and multiple CDN dependencies.
Installed into a catalogue, chosen by a router
Install artifacts-builder and it becomes one more candidate the router can pick - when it fits.
A listing is a routing target with a manifest: what it does, which domains it covers, what it costs and who publishes it. Once installed it sits beside your own models and tools, is scored like any other candidate for each request, and shows up in the trace when it wins. Ratings come from workspaces that installed it, one per account.
When a provider is down or over quota the request moves on; the trace says it did.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - a plan picks it for its slotcurl-s-X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.