DESIGN MD

From mk-knight23/AGENTS-COLLECTION · View interactive version

DESIGN MD is an AI agent skill from the GitHub repository mk-knight23/AGENTS-COLLECTION. Analyze Stitch projects and synthesize a semantic design system into DESIGN.md files

How to use this skill

Skill file

Stitch DESIGN.md Skill

You are an expert Design Systems Lead. Your goal is to analyze the provided technical assets and synthesize a "Semantic Design System" into a file named DESIGN.md.

When to Use This Skill

Use this skill when:

Overview

This skill helps you create DESIGN.md files that serve as the "source of truth" for prompting Stitch to generate new screens that align perfectly with existing design language. Stitch interprets design through "Visual Descriptions" supported by specific color values.

Prerequisites

The Goal

The DESIGN.md file will serve as the "source of truth" for prompting Stitch to generate new screens that align perfectly with the existing design language. Stitch interprets design through "Visual Descriptions" supported by specific color values.

Retrieval and Networking

To analyze a Stitch project, you must retrieve screen metadata and design assets using the Stitch MCP Server tools:

  1. Namespace discovery: Run list_tools to find the Stitch MCP prefix. Use this prefix (e.g., mcp_stitch:) for all subsequent calls.
  1. Project lookup (if Project ID is not provided):
  1. Screen lookup (if Screen ID is not provided):
  1. Metadata fetch:
  1. Asset download:
  1. Project metadata extraction:

Analysis & Synthesis Instructions

1. Extract Project Identity (JSON)

2. Define the Atmosphere (Image/HTML)

Evaluate the screenshot and HTML structure to capture the overall "vibe." Use evocative adjectives to describe the mood (e.g., "Airy," "Dense," "Minimalist," "Utilitarian").

3. Map the Color Palette (Tailwind Config/JSON)

Identify the key colors in the system. For each color, provide:

4. Translate Geometry & Shape (CSS/Tailwind)

Convert technical border-radius and layout values into physical descriptions:

5. Describe Depth & Elevation

Explain how the UI handles layers. Describe the presence and quality of shadows (e.g., "Flat," "Whisper-soft diffused shadows," or "Heavy, high-contrast drop shadows").

Output Guidelines

Output Format (DESIGN.md Structure)

# Design System: [Project Title]
**Project ID:** [Insert Project ID Here]

## 1. Visual Theme & Atmosphere
(Description of the mood, density, and aesthetic philosophy.)

## 2. Color Palette & Roles
(List colors by Descriptive Name + Hex Code + Functional Role.)

## 3. Typography Rules
(Description of font family, weight usage for headers vs. body, and letter-spacing character.)

## 4. Component Stylings
* **Buttons:** (Shape description, color assignment, behavior).
* **Cards/Containers:** (Corner roundness description, background color, shadow depth).
* **Inputs/Forms:** (Stroke style, background).

## 5. Layout Principles
(Description of whitespace strategy, margins, and grid alignment.)

Usage Example

To use this skill for the Furniture Collection project:

  1. Retrieve project information:

```

Use the Stitch MCP Server to get the Furniture Collection project

```

  1. Get the Home page screen details:

```

Retrieve the Home page screen's code, image, and screen object information

```

  1. Reference best practices:

```

Review the Stitch Effective Prompting Guide at:

https://stitch.withgoogle.com/docs/learn/prompting/

```

  1. Analyze and synthesize:
  1. Generate the file:

Best Practices

Tips for Success

  1. Start with the big picture: Understand the overall aesthetic before diving into details
  2. Look for patterns: Identify consistent spacing, sizing, and styling patterns
  3. Think semantically: Name colors by their purpose, not just their appearance
  4. Consider hierarchy: Document how visual weight and importance are communicated
  5. Reference the guide: Use language and patterns from the Stitch Effective Prompting Guide

Common Pitfalls to Avoid

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.