-
Notifications
You must be signed in to change notification settings - Fork 2
Creating Templates Using AI: Complete Guide
This guide walks you through creating design templates using AI tools such as GitHub Copilot, Cursor AI, and Figma. Follow the detailed steps and tips below to streamline your template creation workflow.
If you are working with GitHub Copilot, you typically don’t need additional configuration. However, if Copilot is not responding as expected, you can enhance its capabilities by linking your instruction file:
-
Open VS Code Settings as JSON:
- Go to:
Settings→Open Settings (JSON)
- Go to:
-
Add the Instruction File Setting:
{ .... "github.copilot.chat.codeGeneration.instructions": [ { "file": "../.github/copilot-instructions.md" }, ] }

- Make sure the path to your
copilot-instructions.mdfile is correct.
If you prefer Cursor AI, follow these steps:
- Copy the contents of the
./.github/copilot-instructions.mdfile. - Create a new rule in Cursor AI and paste the copied content.
- Use this rule when generating any template within Cursor AI.
Tip: For best results, use the
Claude Sonnet 4model with your prompts.
To generate a template using prompt-based AI (without Figma):
Use this format:
template_title: [Template Name]
design_prompt: [Clear and detailed design prompt goes here.]
Example:
template_title: Cross Promotion
design_prompt: Design a screen where we will promote Surerank in Suremails. Please add a description about the benefits of Surerank and add a plugin install and activate link as well.
Note: The more specific your prompt, the better the result!
You can create templates directly from Figma designs using the Figma Context MCP extension.
- Visit: [ Figma Context MCP GitHub ]
- In VS Code, create a
.vscodedirectory in your project. - Inside
.vscode, create amcp.jsonfile and paste your configuration.

-
Generate a Figma API Key:
- Go to Figma Dashboard → Profile → Settings → Security
- Click Generate new token
- Assign read-only permission for required scopes
- Click Generate, copy, and use the API key in your MCP config.
-
Select the part of the Figma mockup you want to convert to code.
-
Use the following format for your prompt:
template_title: [Template Title] design_prompt: Convert this Figma: [Paste Figma link here] -
Press Enter to generate. For minor changes, you can edit manually or use AI to adjust as needed.
For a step-by-step visual guide, watch this tutorial: https://d.pr/v/XnwXwZ
Happy Template Building! For best results, always provide clear, detailed prompts and leverage the latest AI models where possible.