Skip to content
Skills Library
DevOps & cloud · Automation

run-maintenance

/run-maintenance

Prepare repository and submodule state for requested maintenance or release work. Do not trigger for routine edits.

Repository
xerahs ↗
Licence
GPL-3.0
Last repository change
29.09.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 29.09.2026, without references to retired models or APIs.

Licence

GPL-3.0, otwarta.

What it does and when to use it

Prepare repository and submodule state for requested maintenance or release work. Do not trigger for routine edits.

Original author description

Prepare repository and submodule state for requested maintenance or release work. Do not trigger for routine edits.

How it works

  1. Scope
  2. Workflow
  3. Checklist
Original SKILL.md headings · 132 lines, 787 words
SKILL.md preview
---
name: run-maintenance
description: Prepare repository and submodule state for requested maintenance or release work. Do not trigger for routine edits.
---

# Maintenance Prep Skill

This skill prepares the XerahS workspace for release, changelog, or routine repository maintenance. It is not the source of truth for commit, push, tag, or version-prefix rules.

Canonical references:
- Git/version/commit/push rules: [git-workflow](../git-workflow/SKILL.md)
- Changelog generation and grouping rules: [update-changelog](../update-changelog/SKILL.md)
- Full release bump/tag automation: [publish-release](../publish-release/SKILL.md)
- General repository policy: [AGENTS.md](../../../AGENTS.md)

## Scope

Use this skill to:
- Sync the main repository and submodules.
- Inspect sibling repositories when the maintenance task explicitly touches them.
- Identify whether a version bump or changelog update is needed.
- Run the relevant pre-commit build after changes are made.
- Leave final staging, commit, push, and tag decisions to `git-workflow` or `publish-release`.

Do not use this skill to invent commit message formats, submodule version prefixes, release tags, or changelog grouping rules.

## Workflow

### 1. Inspect Status Before Sync

Run from the XerahS repository root before any pull or submodule update:

```powershell
git status --short
git submodule foreach --recursive "git status --short"
```

For optional sibling repositories involved in the task:

```powershell
git -C ../xerahs.github.io status --short
git -C ../ShareX status --short
```

If the main repo, submodules, or in-scope sibling repositories have local changes, do not pull over them. Commit, stash, or explicitly pause for the owner to decide. Submodule changes belong to that submodule repository.

### 2. Sync Clean Repository State

Run from the XerahS repository root only after the relevant repositories are clean:

```powershell
git pull --recurse-submodules
git submodule update --init --recursive
```

`git submodule update` can detach submodule HEADs because it checks out the exact commit recorded by the parent repository. Mandatory follow-up: reattach `ShareX.ImageEditor` to its tracked `develop` branch and fast-forward it before release or changelog work continues:

```powershell
git -C ShareX.ImageEditor fetch origin --prune
git -C ShareX.ImageEditor checkout develop
git -C ShareX.ImageEditor pull --ff-only origin develop
git submodule status ShareX.ImageEditor
git -C ShareX.ImageEditor status --short --branch
```

Abort and resolve manually if `ShareX.ImageEditor` cannot fast-forward, has local changes, or remains detached. If the fast-forward changes the submodule commit recorded by XerahS, commit and push the submodule first, then commit the updated XerahS gitlink in the parent repository.

If the task also touches optional sibling repositories, sync only those clean repositories:

```powershell
git -C ../xerahs.github.io pull origin main
git -C ../ShareX pull origin develop
```

Do not pull optional sibling repositories just because they exist.

If a submodule has its own changes, treat it as a separate repository. Shared-library submodule commits, such as `ShareX.ImageEditor`, must follow `git-workflow` and omit the XerahS app version prefix.

### 3. Check Version Needs

Read the current XerahS app version from the root `Directory.Build.props`:

```powershell
$version = (Select-String -Path Directory.Build.props -Pattern '<Version>(.+?)</Version>').Matches[0].Groups[1].Value
git tag --sort=-v:refname | Select-Object -First 1
```

Only bump versions when the task is explicitly about versioning or release preparation. If a bump is needed, use [git-workflow](../git-workflow/SKILL.md) for version source-of-truth and prefix rules, or [publish-release](../publish-release/SKILL.md) for the full release bump/tag sequence.

SkiaSharp remains centrally managed in `Directory.Packages.props`; do not reintroduce project-local legacy pins.

### 4. Update Changelog When Needed

For changelog work, use [update-changelog](../update-changelog/SKILL.md). Prefer the helper script for draft generation:

```powershell
powershell -NoProfile -ExecutionPolicy Bypass -File .ai/skills/update-changelog/scripts/update-changelog.ps1
```

Manually review generated changelog text for accurate grouping, contributor attribution, and wording before release.

### 5. Build Gate

For code/config changes, run the required build before pushing:

```powershell
dotnet build src/desktop/XerahS.sln
```

Do not stop a build solely because a fixed amount of time elapsed. If it genuinely stalls, clear stale build processes/locks, prefer `-m:1`, then retry.

Documentation-only skill edits do not require a full solution build unless they affect build or release scripts that need local execution.

### 6. Commit And Push Handoff

Use [git-workflow](../git-workflow/SKILL.md) for final staging, commit message, version prefix, and push behavior.

Summary:
- XerahS app commits use `[vX.Y.Z] [Type] description` only after verifying the root version is ahead of the latest tag.
- Shared library or submodule-only commits omit `[vX.Y.Z]` and use `[Type] description`.
- Submodule commits are pushed before the parent repository when the parent records an updated submodule pointer.
- Do not tag releases from this skill; use [publish-release](../publish-release/SKILL.md).

## Checklist

- [ ] Main repo and relevant submodule/sibling statuses inspected.
- [ ] Local changes handled before pulling or updating submodules.
- [ ] Main repository synced with `git pull --recurse-submodules`.
- [ ] Submodules initialized and updated.
- [ ] `ShareX.ImageEditor` reattached to `develop`, fast-forwarded from `origin/develop`, and verified not detached.
- [ ] Relevant sibling repositories synced only if they are in scope.
- [ ] Version bump need evaluated against `Directory.Build.props` and latest tag.
- [ ] Changelog update delegated to `update-changelog` when needed.
- [ ] Required build run for code/config changes.
- [ ] Commit/push/tag rules delegated to `git-workflow` or `publish-release`.

Versions

The database has no other skills named run-maintenance.

Database snapshot: 13.11.2026 · package version 4a6d5e40abaf (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100release
    Prepare a repository release PR, draft and curate its notes, publish the approved tag, and follow publishing. Use when asked to release, tag, or ship a version.
  • 98coolapk-mcp-release
    本仓库(coolapk-mcp-pro)发版指南(含 release 说明模板)——当用户说发版/打tag/发release/更新release,或一次功能修复需要发布 GitHub 版本时使用,覆盖 tag 与 Release 发布全流程及发布后的 submodule 指针、服务器同步。
  • 96ci-maintenance
    GitHub Actions maintenance. Use when authoring or reviewing workflows or composite actions, especially event, permission, action-reference, artifact, setup, or concurrency changes.
  • 90maintenance
    Use when the user asks for a repository maintenance pass spanning upgrades, consistency, and pruning.
  • 100performing-cluster-maintenance
    Manages planned cluster maintenance across all tiers. Self-Hosted covers node drain procedures for OS patching, hardware changes, and configuration updates. Advanced/BYOC covers maintenance window configuration, patch scheduling, deferral policies, and monitoring during…
  • 86release
    Cuts a nustack release, or a dry run of one that publishes nothing. Use when asked to release nustack or to dry-run a release, such as "release 0.1.0" or "dry-run release 0.1.0".

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.