Skip to content

Fantasia1999/skills-zh

skills-zh-updater

Verified

同步并维护 anthropics/skills 仓库的中文翻译。用于:拉取上游更新、增量翻译/全量翻译 SKILL.md、生成中文索引 INDEX_ZH.md,并快速检查翻译完整性。

FileKindSize
SKILL.mdskill md2.3 KB
scripts/build_index.pyscript1.3 KB
scripts/update_from_upstream.shexecutablescript3.5 KB
scripts/update_zh.shexecutablescript161 B

scripts/build_index.py

View on GitHub
#!/usr/bin/env python3
import os
import glob
import re

ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
base = os.path.join(ROOT, 'translations')
out = os.path.join(ROOT, 'INDEX_ZH.md')

rows = []
for md in sorted(glob.glob(os.path.join(base, '*/SKILL.md'))):
    skill = os.path.basename(os.path.dirname(md))
    txt = open(md, 'r', encoding='utf-8', errors='ignore').read()

    body = txt
    if body.startswith('---'):
        parts = body.split('---', 2)
        if len(parts) >= 3:
            body = parts[2]

    summary = ''
    for line in body.splitlines():
        s = line.strip()
        if not s:
            continue
        if s.startswith('#') or s.startswith('```'):
            continue
        if s.startswith('- '):
            s = s[2:].strip()
        summary = re.sub(r'\s+', ' ', s)
        break

    if len(summary) > 72:
        summary = summary[:69] + '...'

    rows.append((skill, summary, md))

with open(out, 'w', encoding='utf-8') as f:
    f.write('# Anthropic Skills 中文索引\n\n')
    f.write('> 自动生成:每个技能的中文入口与一句话摘要。\n\n')
    for skill, summary, md in rows:
        rel = os.path.relpath(md, ROOT)
        f.write(f'- [`{skill}`]({rel}):{summary}\n')

print(out)
print('count', len(rows))
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 323kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 323kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 323kUpdated Claude CodeCodexVerifiedInstall