ai-c/setup_skill.ps1

21 lines
1.0 KiB
PowerShell

$base = "temp_ui_ux_skill/src/ui-ux-pro-max/templates/base"
$skillContent = Get-Content "$base/skill-content.md" -Raw
$quickRef = Get-Content "$base/quick-reference.md" -Raw
$skillContent = $skillContent.Replace("{{TITLE}}", "UI UX Pro Max")
$skillContent = $skillContent.Replace("{{DESCRIPTION}}", "An AI skill that provides design intelligence for building professional UI/UX across multiple platforms and frameworks.")
$skillContent = $skillContent.Replace("{{QUICK_REFERENCE}}", $quickRef)
$skillContent = $skillContent.Replace("{{SKILL_OR_WORKFLOW}}", "Skill")
$skillContent = $skillContent.Replace("{{SCRIPT_PATH}}", ".trae/skills/ui-ux-pro-max/scripts/search.py")
$frontmatter = @"
---
name: "ui-ux-pro-max"
description: "An AI skill that provides design intelligence for building professional UI/UX across multiple platforms. Invoke when designing UI, choosing colors/fonts, or checking UX."
---
"@
$finalContent = $frontmatter + $skillContent
$finalContent | Set-Content ".trae/skills/ui-ux-pro-max/SKILL.md" -Encoding UTF8