automate-project-maintenance

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Automate Project Maintenance

自动化项目维护

Use this skill after the focused maintenance skills are available. Detect the repo type from local facts, not from naming guesses.
在专用维护技能可用后使用此技能。根据本地实际情况检测仓库类型,而非通过名称猜测。

Detection

检测

Inspect the repo before acting.
  • Python signals:
    • pyproject.toml
  • TypeScript signals:
    • package.json
执行操作前先检查仓库。
  • Python 特征:
    • pyproject.toml
  • TypeScript 特征:
    • package.json

Workflow

工作流程

  1. Determine whether the repo is Python, TypeScript, or other.
  2. Run only the applicable focused skills.
  3. Keep remote GitHub updates preview-first.
  1. 判断仓库是Python、TypeScript还是其他类型。
  2. 仅运行适用的专用维护技能。
  3. GitHub远程更新先以预览模式进行。

Python Branch

Python分支

  1. Use
    $write-python-tests
    .
  2. Use
    $rewrite-python-docs
    .
  3. Use
    $write-root-readme
    .
  4. Run
    rumdl fmt .
    and treat findings as weak hints.
  5. Run
    mise run lint
    .
  6. Run
    mise run docs:build
    .
  7. Run
    nox
    .
  8. Use
    $sync-github-repo-metadata
    in preview mode.
  1. 使用
    $write-python-tests
  2. 使用
    $rewrite-python-docs
  3. 使用
    $write-root-readme
  4. 运行
    rumdl fmt .
    ,并将结果作为参考提示。
  5. 运行
    mise run lint
  6. 运行
    mise run docs:build
  7. 运行
    nox
  8. 以预览模式使用
    $sync-github-repo-metadata

TypeScript Branch

TypeScript分支

  1. Use
    $write-root-readme
    .
  2. Run
    rumdl fmt .
    and treat findings as weak hints.
  3. If TypeScript or JavaScript files were edited, run
    biome check --write
    .
  4. Use
    $sync-github-repo-metadata
    in preview mode.
  1. 使用
    $write-root-readme
  2. 运行
    rumdl fmt .
    ,并将结果作为参考提示。
  3. 若编辑了TypeScript或JavaScript文件,运行
    biome check --write
  4. 以预览模式使用
    $sync-github-repo-metadata

Other Repos

其他仓库

  • Apply the appropriate maintenance steps based on the detected technology stack.
  • Do not assume both branches must edit files in the same run.
  • 根据检测到的技术栈应用相应的维护步骤。
  • 无需假设两个分支必须在同一次运行中编辑文件。