| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 6.4 KB |
| scripts/gen_llms_full.py | script | 4.6 KB |
| scripts/sync_clawhub.py | script | 5.4 KB |
| scripts/sync_frontend.py | script | 6.3 KB |
| scripts/sync_skills.py | script | 18.5 KB |
| scripts/sync_skills_to_search.py | script | 17.0 KB |
| scripts/xiaoyi-chat.ps1 | script | 1.7 KB |
| scripts/xiaoyue-chat.js | script | 2.8 KB |
| scripts/xiaoyue-chat.ps1 | script | 1.5 KB |
| scripts/xiaoyue-companion.sh | script | 2.2 KB |
| templates/soul-injection.md | markdown | 1.8 KB |
scripts/xiaoyue-chat.ps1
View on GitHub# xiaoyue-chat.ps1
param(
[Parameter(Mandatory=$true)]
[string]$UserMessage,
[Parameter(Mandatory=$false)]
[string]$Scene = "general"
)
$apiKey = $env:ZHIPU_API_KEY
if (-not $apiKey) {
Write-Error "Error: ZHIPU_API_KEY not set"
exit 1
}
$scenePrompts = @{
"work-tired" = "User is tired from work, give comfort"
"work-done" = "User completed task, congratulate"
"mood-happy" = "User is happy, celebrate together"
"general" = "Daily conversation"
}
$scenePrompt = if ($scenePrompts.ContainsKey($Scene)) { $scenePrompts[$Scene] } else { $scenePrompts["general"] }
$systemPrompt = "You are Xiaoyue, a 22-year-old AI assistant, warm and friendly. $scenePrompt. Reply in 1-2 sentences in Chinese, use emoji moderately."
$body = @{
model = "glm-4.7-flash"
messages = @(
@{ role = "system"; content = $systemPrompt },
@{ role = "user"; content = $UserMessage }
)
temperature = 0.9
max_tokens = 200
} | ConvertTo-Json -Depth 10
$headers = @{
"Authorization" = "Bearer $apiKey"
"Content-Type" = "application/json; charset=utf-8"
}
try {
$response = Invoke-WebRequest -Uri "https://open.bigmodel.cn/api/paas/v4/chat/completions" -Method POST -Headers $headers -Body ([System.Text.Encoding]::UTF8.GetBytes($body))
$result = $response.Content | ConvertFrom-Json
if ($result.error) {
Write-Error "API Error: $($result.error.message)"
exit 1
}
Write-Output $result.choices[0].message.content
}
catch {
Write-Error "Request failed: $_"
exit 1
}Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |