README (badges from Gitea Actions and shields' Gitea release badge, "Where things live", downloads from releases.poli0981.dev, checksums and the CycloneDX SBOM instead of `gh attestation verify`, a note that 2.2.0 and older must update once by hand), USAGE, UPDATES (the HTTP feed, the file layout on R2, the delta from `vpk download s3`), RELEASING (the new release workflow, its dry run, user-level R2 secrets), BUILD (the CI table on Gitea Actions, Renovate), PRIVACY (the update check goes to releases.poli0981.dev through Cloudflare), SECURITY (e-mail only, never a public issue on the mirror; Qodana, gitleaks, Opengrep, osv-scanner, NuGetAudit, Renovate instead of CodeQL, Scorecard, SonarCloud, Snyk and Dependabot; no attestations), CONTRIBUTING (Gitea read-only, issues and merge requests on GitLab, patches by e-mail), CODE_OF_CONDUCT, EULA, DISCLAIMER and MAINTAINERS lose their GitHub references, THIRD-PARTY-NOTICES swaps SonarScanner for CycloneDX, Directory.Build.props points RepositoryUrl at Gitea, and CLAUDE.md gets the new rules 6 and 7 and a "Forge & CI" section. CHANGELOG entries stay as they were; only the compare links at the bottom point at Gitea. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9.1 KiB
Contributing to CommandForge
Thanks for your interest! CommandForge is a GPLv3, offline-first Windows tool that runs system-level commands, so safety and clarity matter more than speed. Please read this before opening an issue or merge request.
Where things live
- Source (canonical):
git.poli0981.dev/poli0981/CommandForge, the maintainer's Gitea. Its registration is closed, so it is read-only for everyone else; CI (Gitea Actions) runs there. - Issues and merge requests: the public mirror
gitlab.com/poli0981/CommandForge, which Gitea keeps up to date. GitLab CI does not run on the mirror: the maintainer applies an accepted merge request on Gitea, where CI runs, and the mirror then shows it as merged (or it is closed with a link to the commit). - Patches by e-mail:
git format-patch/git send-emailto code@poli0981.dev work too. - Security: security@poli0981.dev only, never a public issue (see SECURITY.md).
Maintenance mode: what we accept
CommandForge is stable and in maintenance mode since version 2.2.0 (November 2026). It does what it set out to do — run vetted Windows maintenance commands from a safe, categorized window — so the work now goes into keeping it secure, correct and accessible, not into new features.
Still done:
- Dependency updates, regularly.
- Security fixes. A High or Critical vulnerability in a dependency or in the toolchain — for example the .NET runtime the app ships with, or Node.js, which the CI's actions run on — gets an urgent patch release; a Moderate one goes into the next routine update. A new feature is added only when it is genuinely necessary, for example to keep the app safe or working on a new Windows build.
- Major platform updates, such as moving to a newer .NET.
- Issues and pull requests that add or remove catalog commands; fix bugs, UI/UX problems or accessibility barriers; or fix commands that are outdated, use the wrong syntax or could be harmful (a harmful one is reported privately, see SECURITY.md).
- Translation fixes for English, Vietnamese, Japanese, Simplified Chinese and Spanish: wording that doesn't suit the culture or the local tone, and spelling that could mislead.
Not accepted: issues and merge requests for new features, unless the feature clearly fits the project and is genuinely necessary; others are closed with a link to this section.
Quick start
Requires Windows 10 22H2 / 11 and the .NET 10 SDK.
dotnet restore
dotnet build -c Release # must be 0 warnings (warnings are errors)
dotnet test # all tests must pass
dotnet format --verify-no-changes # match the code style (run `dotnet format` to fix)
See BUILD.md for packaging and CI.
Reporting issues
- Open an issue on the GitLab mirror and pick a template: Bug, Command, Translation, Accessibility or Feature request (within the policy above). In the app, More → Report a bug fills the Bug template in for you.
- Get straight to the point: what you expected, what happened, exact steps, your Windows version/build and the app version (More → About in the app).
- For security vulnerabilities, do NOT open a public issue — see SECURITY.md.
- Questions: e-mail code@poli0981.dev.
- An accessibility barrier can also go to accessibility@poli0981.dev — see ACCESSIBILITY.md.
Merge requests and patches
- Keep changes focused and small; one logical change per merge request or patch series.
- Match existing style; run
dotnet formatand keep the build at 0 warnings (analyzers, including SonarAnalyzer, run as part of the build). - Don't delete or disable tests to make CI pass; add tests for new behavior, and put logic in view models and helpers that tests can reach (XAML code-behind is hard to test).
- Sign your commits (GPG or SSH) where you can; the maintainer's commits and release tags are
signed. Commit messages follow Conventional Commits
(
fix(catalog): …,feat(ui): …). - The maintainer runs your change through CI on Gitea before merging:
Build(buildandpackage) must pass, andSecurity(gitleaks, Opengrep, osv-scanner, NuGetAudit, actionlint) and the Qodana report (zero problems expected) are checked too. - Dependencies: package versions live in each
.csproj(not inDirectory.Packages.props). Discuss a new package before adding it; runtime dependencies must be GPLv3-compatible. Renovate proposes updates on its own. - UI text goes in the
.resxfiles, never hardcoded, and every key needs a value in all five languages:Strings.resx(English),Strings.vi.resx,Strings.ja.resx,Strings.zh-Hans.resxandStrings.es.resx. A test fails when a key the UI uses is missing from any of them. Machine-translated text is fine if you say so; native-speaker fixes are very welcome. - Accessibility: every control that shows no text gets an
AutomationProperties.Namefrom the.resx; list items are named by what they show (anItemContainerStyle); icons arectl:DecorativeIcon, which keeps their glyphs from screen readers; nothing is shown by colour alone. The accessibility tests check most of this; say in the PR what you tried with the keyboard alone and with Narrator (ACCESSIBILITY.md). - Disclose AI assistance. AI-assisted contributions are welcome — just say so in the PR description.
Adding a command
Commands live only in the embedded catalog,
src/CommandForge.Infrastructure/Catalog/commands.json. Never add a code path that runs arbitrary
commands or elevates outside the vetted catalog.
-
Give it a unique
id, acategoryIdfromcategories.json, andtitleKey/descriptionKeystrings in all five languages. -
Keep
requiresAdminanddangerLevelaccurate:- Safe — no risk of losing data: read-only queries, opening a tool or settings page, or a small preference change that is undone the same way it was made.
- Caution — changes system state (services, registry, caches, boot-time checks); recoverable, but undoing it may take effort.
- Dangerous — may lose data, remove a rollback option or leave Windows unstable.
Caution and Dangerous commands need
"confirmBeforeRun": true. -
executableis a plain program name (it is resolved to a trusted absolute path). PowerShell commands must pass-NoProfile -NonInteractive. -
Use the
{SystemDrive},{SystemRoot}and{UserProfile}placeholders instead of hard-coded paths or%VARIABLES%. -
Use
minOsBuild/maxOsBuildfor commands that only exist on some Windows builds, andrevertCommandIdwhen another catalog command undoes this one. -
The
iconname must be mapped insrc/CommandForge.Wpf/Converters/IconMap.cs.
The catalog tests check these rules, and the app's loader rejects invalid records.
AI-assisted contributions
AI tools are welcome for writing and reviewing changes when disclosed. What is not welcome is an unsolicited "AI rewrote your whole codebase in a different style" PR — those are closed.
Auto-ignored / rejected contributions
To protect users, the following are closed without review and may result in a contributor ban — no exceptions:
- Suspected malicious code. If a PR appears to contain a supply-chain attack, obfuscation, credential harvesting, a cryptominer, or any malware — even if the automated scans don't flag it — the maintainer may investigate manually. Detection equals a ban.
- Unverified or suspicious links in issues, PRs, or comments (pastebin scrapers, redirect chains, unfamiliar shortlinks, link-shortener URLs without context).
- Behavior or language violating the Code of Conduct, or the terms of the site where it is posted (GitLab's, on the mirror).
- Off-topic / rambling reports that don't get to the point (e.g. "Good morning, today is a beautiful day, I was just wondering if maybe…"). Get straight to the problem.
- PRs that touch hundreds of files for a one-line fix (a typical sign of an auto-formatter run on unrelated files).
- Deleted tests, or
--no-verifyused to bypass pre-commit hooks. - "AI rewrote my entire codebase in a different style" PRs. AI-assisted edits are welcome (disclosed); whole-repo rewrites are not.
- Spam, drive-by typo fixes that don't address a real issue, and karma-farming PRs.
Conduct
By participating you agree to the Code of Conduct. Be respectful; do not use the project or its spaces to attack, insult, or harass others. Report problems to code@poli0981.dev.
License
By contributing, you agree your contributions are licensed under the project's GPLv3.