- CHANGELOG: the 2.0.0 entry, plus the missing 1.5.1 compare link and a corrected [Unreleased] link. - USAGE.md: a user guide for the new UI (the app's "User guide" link already points here). - README: features as of 2.0 (261 commands, 12 categories, five languages, Fluent UI), download verification with `gh attestation verify`, and a contact table. - Contact addresses on poli0981.dev: security@ (SECURITY.md, next to private vulnerability reporting), privacy@ (PRIVACY.md), legal@ (EULA, DISCLAIMER), copyright@/dmca@/takedown@ (a new takedown section in DISCLAIMER), code@ (CONTRIBUTING, CODE_OF_CONDUCT, MAINTAINERS). - SECURITY: the current threat model and its known limits (per-user install, the winget alias), release attestations, SBOM and scanners. - PRIVACY: every local file the app keeps, what the logs contain, and how the update check and bug reports work. - BUILD, RELEASING, UPDATES: versions in each .csproj, the pinned vpk tool, pack.ps1 options, the CI workflows and rulesets, signed tags, the draft-then-publish release flow, and the new update behavior. - THIRD-PARTY-NOTICES: WPF-UI and Fluent System Icons in, Material Design and Hosting out, current versions and build-time tools. - CONTRIBUTING and the PR template: signed commits, required checks, five .resx files, catalog rules. The bug template points at More > About. - CLAUDE.md: rule 6 allows provenance attestations; stack, namespace and conventions for v2. The EULA's terms are unchanged (still version 1.1), so nobody is asked to accept them again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5.8 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 pull request.
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 templates (Bug report / Feature request).
- 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 and ideas: Discussions, or email code@poli0981.dev.
Pull requests
- Keep PRs focused and small; one logical change per PR.
- 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.
- Sign your commits (GPG, SSH or S/MIME) —
mainonly 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)) anddependency-review. - Dependencies: package versions live in each
.csproj(GitHub's dependency graph doesn't readDirectory.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
.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. - 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 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-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.