用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ShareX/XerahS --skill sharex-architecture-and-porting命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Orchestrate XerahS release flow in strict order: run maintenance prep first, update-changelog second (optional only if docs/CHANGELOG.md is intentionally absent), verify build, bump/commit/push/tag while syncing Chocolatey version metadata, monitor GitHub Actions every 2 minutes, ensure standard release notes content, then apply repo release-channel policy (ShareX/XerahS = pre-release; KovaForge/XerahS = full latest release). On failures, inspect logs, fix root cause, and retry with the next patch release.
Triage pasted or file-backed XerahS startup, runtime, capture, history, or debug logs. Use when a user asks whether logged errors are still valid, wants fixes from a log excerpt, or needs repeated log noise reduced to a small verified bug list with code-level follow-through.
Rules and workflows for updating docs/CHANGELOG.md with user-facing, consolidated release notes (not commit logs). Includes version grouping, noise filtering, platform/XIP-aware bullets, and GitHub tag-linked headings.
正在显示 SKILL.md
基于 SOC 职业分类
| name | ShareX Architecture and Porting |
| description | Platform abstraction rules, porting guidelines, and architecture standards for XerahS |
All platform specific functionality must be isolated behind platform abstraction interfaces.
No code outside XerahS.Platform.* projects may reference:
Direct calls to Windows APIs are forbidden in Common, Core, Uploaders, Media, or other backend projects.
Define platform neutral interfaces in XerahS.Platform.Abstractions.
Implement Windows functionality in XerahS.Platform.Windows.
Create stub implementations for future platforms:
If a capability is Windows only:
UI and workflows must detect capability availability and disable or hide unsupported features.
A file may only be ported directly if it contains zero references to:
If a file mixes logic and native calls:
Native method names and signatures should remain Windows specific and must not leak into shared layers.
When porting ShareX.HelpersLib, files that reference:
must be treated as platform code and cannot be copied wholesale.
C:\Users\liveu\source\repos\ShareX Team\ShareX to understand existing non-UI logic and reuse it by copying into this repo after the Avalonia solution and projects are drafted.XerahS.Common: shared helpers, serialization, utilities.XerahS.Core: task settings, workflows, application-level services.XerahS.Uploaders: uploaders, config, OAuth, HTTP helpers.XerahS.History: history models and persistence.XerahS.Indexer: file indexing and search.XerahS.ImageEffects: filters/effects pipeline.XerahS.Media: encoding, thumbnails, FFmpeg integration.XerahS.ScreenCapture: capture engines and platform abstractions.XerahS.Platform.*: OS-specific implementations (Windows first, others later).XerahS.App and XerahS.UI: Avalonia UI and view models (defer until backend is ready).When asked to ensure feature parity with a specific historical commit or "make it identical to commit X":
ref directory: Create a temporary folder (e.g., src/XerahS/ref).git show <commit_hash>:<file_path> > src/XerahS/ref/<commit_short>_<filename> to verify the state of relevant files at that commit.ref directory once the task is complete and verified, unless instructed otherwise.This reduces git command overhead and provides a stable reference point for parity checks.