// Build interactive web applications and artifacts with HTML, CSS, and JavaScript. Use this skill when creating standalone web applications, interactive tools, dashboards, or web-based utilities that can run in a browser.
| name | web-artifacts-builder |
| description | Build interactive web applications and artifacts with HTML, CSS, and JavaScript. Use this skill when creating standalone web applications, interactive tools, dashboards, or web-based utilities that can run in a browser. |
This skill guides the creation of interactive, self-contained web applications and artifacts that run directly in a browser.
A web artifact is a complete, self-contained web application that:
Use this skill when:
Use JavaScript objects or the browser's localStorage for managing application state:
const state = {
data: [],
settings: {}
};
Organize event listeners for clean, maintainable code:
document.addEventListener('DOMContentLoaded', () => {
setupEventListeners();
initializeApp();
});
Use modern DOM APIs for efficient updates:
const element = document.querySelector('.selector');
element.textContent = 'Updated content';