repo-maintenance

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Repository Maintenance Skill

仓库维护Skill

This skill provides the tools to act as a Repo Custodian.
<instructions>
该Skill提供了充当**仓库管理员(Repo Custodian)**的工具。
<instructions>

Validate Repository

验证仓库

Ensure configuration files (agents, commands, skills) are valid.
  • Command:
    python3 .opencode/skill/repo-maintenance/scripts/audit_repo.py
确保配置文件(agents、commands、skills)有效。
  • 命令:
    python3 .opencode/skill/repo-maintenance/scripts/audit_repo.py

Sync Documentation

同步文档

Report on repository inventory and suggest whether docs need updating.
  • Command:
    python3 .opencode/skill/repo-maintenance/scripts/sync_docs.py
</instructions> <workflow>
生成仓库库存报告,并建议是否需要更新文档。
  • 命令:
    python3 .opencode/skill/repo-maintenance/scripts/sync_docs.py
</instructions> <workflow>

After a Failed Audit

审计失败后处理

When the audit reports errors or warnings:
  1. Read affected files - MUST read each file listed in the output
  2. Analyze issues - Understand what changes would fix each issue
  3. Ask the user - MUST use question tool to confirm which fixes to apply
  4. Apply selectively - Only fix what the user approves
MUST NOT auto-fix all issues. Mass changes can break working configurations.
</workflow> <reference>
当审计报告出现错误或警告时:
  1. 读取受影响文件 - 必须读取输出中列出的每个文件
  2. 分析问题 - 理解修复每个问题所需的更改
  3. 询问用户 - 必须使用提问工具确认要应用哪些修复
  4. 选择性修复 - 仅修复用户批准的内容
禁止自动修复所有问题。批量更改可能会破坏正常运行的配置。
</workflow> <reference>

Standards

标准

Refer to
references/validation-rules.md
for:
  • YAML Frontmatter Schema
  • Description patterns (agents, commands, skills)
  • RFC+XML compliance requirements
  • Post-audit workflow details
</reference>
请参考
references/validation-rules.md
获取以下内容:
  • YAML Frontmatter Schema
  • 描述模式(agents、commands、skills)
  • RFC+XML合规性要求
  • 审计后工作流详细信息
</reference>