feat: add hallmark design skill

This commit is contained in:
KeyInfo Bot committed 2026-10-29 23:27:10 +08:00
1 parent ed33e12b7d
commit c4c748aac1
192 files changed
+19976

No files matched your search

+18
View File
@@ -415,6 +415,23 @@ function Compress-ImagesToWebp {
}
}
function Update-SkillTextReplacements {
param([string]$Root, [object]$Replacements)
foreach ($entry in @($Replacements)) {
if ($null -eq $entry) { continue }
$relative = [string]$entry.path
Assert-RelativePathValue -Path $relative
$target = Join-Path $Root $relative
$old = [string]$entry.old
if (-not $old -or $null -eq $entry.new -or -not (Test-Path -LiteralPath $target -PathType Leaf)) {
throw "Invalid skillTextReplacements: $relative"
}
$text = [System.IO.File]::ReadAllText $target
if (-not $text.Contains($old)) { throw "skillTextReplacements text not found: $relative : $old" }
Write-Utf8NoBomText -Path $target -Text $text.Replace($old, [string]$entry.new)
}
}
function Read-JsonFile {
param([string]$Path)
$resolvedPath = (Resolve-Path -LiteralPath $Path).Path
@@ -997,6 +1014,7 @@ function Sync-ClaudeSkill {
Remove-ReadmeImageReferences -Root $pluginDir -ImagePathPrefixes $Source.readmeImageExcludes
Remove-ReadmeLines -Root $pluginDir -LineExcludes $Source.readmeLineExcludes
Compress-ImagesToWebp -Root $skillDest -CompressPaths $Source.webpCompressPaths
Update-SkillTextReplacements -Root $skillDest -Replacements $Source.skillTextReplacements
if ($Source.PSObject.Properties.Name -contains "marketAssets" -and $Source.marketAssets) {
foreach ($asset in @($Source.marketAssets)) {