Agent skill

web-artifacts-builder

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.

Stars 1
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/oferhalevi/codex-skills-integration/tree/main/skills/web-artifacts-builder

SKILL.md

Web Artifacts Builder Skill

This skill guides the creation of interactive, self-contained web applications and artifacts that run directly in a browser.

What is a Web Artifact?

A web artifact is a complete, self-contained web application that:

  • Runs entirely in the browser (no backend required)
  • Uses HTML, CSS, and JavaScript
  • Can be saved as a single file or a small set of files
  • Provides interactive functionality and user interface

When to Use This Skill

Use this skill when:

  • User asks to create an interactive tool or utility
  • User wants a web-based calculator, converter, or generator
  • User needs a dashboard or data visualization
  • User wants to build a game or interactive experience
  • User needs a form or data entry application
  • User wants a note-taking app or similar utility

Best Practices

Structure

  • Keep artifacts self-contained when possible
  • Use semantic HTML for accessibility
  • Organize CSS with clear structure and comments
  • Use modular JavaScript with clear function organization

Interactivity

  • Provide immediate visual feedback for user actions
  • Use smooth transitions and animations appropriately
  • Implement keyboard shortcuts for power users
  • Ensure responsive design for different screen sizes

Performance

  • Minimize external dependencies
  • Optimize images and assets
  • Use efficient JavaScript patterns
  • Test performance on various devices

User Experience

  • Clear visual hierarchy and navigation
  • Intuitive controls and interactions
  • Helpful error messages and guidance
  • Accessibility considerations (ARIA labels, keyboard navigation)

Common Patterns

State Management

Use JavaScript objects or the browser's localStorage for managing application state:

javascript
const state = {
  data: [],
  settings: {}
};

Event Handling

Organize event listeners for clean, maintainable code:

javascript
document.addEventListener('DOMContentLoaded', () => {
  setupEventListeners();
  initializeApp();
});

DOM Manipulation

Use modern DOM APIs for efficient updates:

javascript
const element = document.querySelector('.selector');
element.textContent = 'Updated content';

Tips for Great Artifacts

  1. Visual Polish: Pay attention to spacing, typography, and color harmony
  2. Responsive Design: Test on mobile, tablet, and desktop
  3. Performance: Avoid unnecessary re-renders and DOM updates
  4. Accessibility: Include proper labels, alt text, and keyboard navigation
  5. Documentation: Add comments explaining complex logic

Expand your agent's capabilities with these related and highly-rated skills.

oferhalevi/codex-skills-integration

pdf

Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.

1 0
Explore
oferhalevi/codex-skills-integration

frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

1 0
Explore
mattpocock/skills

handoff

Compact the current conversation into a handoff document for another agent to pick up.

111,310 9,758
Explore
mattpocock/skills

scaffold-exercises

Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create exercise stubs, or set up a new course section.

111,310 9,758
Explore
mattpocock/skills

setup-pre-commit

Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.

111,310 9,758
Explore
mattpocock/skills

edit-article

Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.

111,310 9,758
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results