Files
CommandForge/.github/CONTRIBUTING.md
T
poli0981andClaude Opus 5.5 de3a7a69ca docs: maintenance mode from 2.2.0 — policy, status, badges, issue forms
CommandForge is stable and in maintenance mode. CONTRIBUTING.md holds the
policy (Maintenance mode: what we accept): dependency and security updates
(High/Critical: an urgent patch; Moderate: the next routine update), major
platform updates, catalog commands added, fixed or removed, bug, UI/UX,
accessibility and translation fixes; a new feature only when genuinely
necessary. README gets a Project status section and a row of badges with
alt text; SECURITY.md supports 2.2.x; the PR template asks for the scope and
the accessibility checks.

Issue forms: Command — add, fix or remove and Translation fix are new
(labels catalog and translation); Feature request asks why it is necessary;
the bug form's version and log hints are current; config links Discussions
› Ideas and the accessibility statement. CLAUDE.md records the status, the
accessibility rules and accessibility@.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:04:42 +07:00

8.5 KiB
Raw Permalink Blame History

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 pull request.

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:

  1. Dependency updates, regularly.
  2. 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 build's GitHub 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.
  3. Major platform updates, such as moving to a newer .NET.
  4. 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).
  5. 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 pull requests for new features, unless the feature clearly fits the project and is genuinely necessary; others are closed with a link to this section. Ideas are welcome in Discussions › Ideas, without any commitment.

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

  • Use the issue forms: Bug report, Command — add, fix or remove, Translation fix, Accessibility problem, and Feature request (within the policy above).
  • 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: Discussions; ideas: Discussions › Ideas, without commitment; or email code@poli0981.dev.
  • An accessibility barrier can also go to accessibility@poli0981.dev — see ACCESSIBILITY.md.

Pull requests

  • Keep PRs focused and small; one logical change per PR.
  • Match existing style; run dotnet format and 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. SonarCloud's quality gate expects at least 80% test coverage on new code (XAML code-behind excepted), so put logic in view models and helpers that tests can reach.
  • Sign your commits (GPG, SSH or S/MIME) — main only accepts verified signatures. Commit messages follow Conventional Commits (fix(catalog): …, feat(ui): …).
  • PRs need the required checks to pass: build, package, CodeQL (Analyze (csharp), Analyze (actions)) and dependency-review. The SonarCloud quality gate and the Qodana report (zero problems expected) are shown on PRs from this repository too (fork PRs don't get the analysis tokens).
  • Dependencies: package versions live in each .csproj (GitHub's dependency graph doesn't read Directory.Packages.props). Discuss a new package before adding it; runtime dependencies must be GPLv3-compatible (dependency review enforces a license allow-list).
  • UI text goes in the .resx files, never hardcoded, and every key needs a value in all five languages: Strings.resx (English), Strings.vi.resx, Strings.ja.resx, Strings.zh-Hans.resx and Strings.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.Name from the .resx; list items are named by what they show (an ItemContainerStyle); icons are ctl: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, a categoryId from categories.json, and titleKey/descriptionKey strings in all five languages.

  • Keep requiresAdmin and dangerLevel accurate:

    • 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.

  • executable is 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 / maxOsBuild for commands that only exist on some Windows builds, and revertCommandId when another catalog command undoes this one.

  • The icon name must be mapped in src/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 CodeQL and Dependabot 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 GitHub's Acceptable Use Policies.
  • 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-verify used 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.