frontend/component

Translate a Design Contract into a static Astro component with typed props and token-based styling.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/f-campana/bifrost --skill frontend-component-f-campana
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend/component
Source: https://github.com/f-campana/bifrost/tree/main/skills/frontend/frontend-component
Command: npx skills add https://github.com/f-campana/bifrost --skill frontend-component-f-campana

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Converts a Design Contract into production-ready frontend components, ensuring consistency with design tokens and project conventions.

Core Features & Use Cases

  • Reads the full Design Contract and the component specification before generating code.
  • Produces a static Astro component file with typed props and scoped styles that use design tokens.
  • Enforces contract rules (no unnecessary borders, no unwanted JavaScript, and token-based styling) and outputs a run report for traceability.
  • Enables reuse of components across pages and apps by standardizing the component interface.

Quick Start

Provide a Design Contract path and a component specification to generate a new frontend component.

Frequently Asked Questions about frontend/component

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Astro components from a design contract?

You can generate Astro components from a design contract by providing the contract path and component specification. The Skill reads these inputs to produce a static component file with typed props and scoped styles using design tokens.

What is a design contract for frontend component generation?

A design contract is a specification that defines static component requirements, including token-based styling, prop typing, and interface rules. It standardizes the component interface to enable reuse across pages and apps.

Can I create static frontend components with typed props and no JavaScript?

Yes, you can create static frontend components with typed props and no JavaScript. The Skill enforces contract rules to ensure no unwanted JavaScript is included, satisfying the no-JS requirement.

How do I enforce design tokens in Astro component styling?

To enforce design tokens in Astro component styling, the Skill reads the full design contract and generates scoped styles that strictly use the defined tokens. This ensures consistency with project conventions.

Does frontend component generation work for static components only?

Frontend component generation applies to static components defined by a design contract. It validates the component spec and ensures token-based styling and typed props for production-ready output.

What is the best way to standardize frontend component interfaces for reuse?

The best way to standardize frontend component interfaces is by translating a design contract into a production-ready Astro component. This process enforces contract rules and outputs a run report for traceability.