Repo Fixer
Audit repository essentials, understand readiness, and preview safe starter-file changes—without silent overwrites or direct pushes.
Why Repo Fixer
A repository can have working code and still be difficult to contribute to. Missing setup instructions, license information, CI, or contribution guidance create friction before a first change is even proposed.
Repo Fixer checks these essentials, explains the gaps it finds, and prepares starter files for review. Its local workflow is designed around explicit choices and safe creation—not automatic cleanup.
Features
- Read-only audit: inspect repository essentials without changing files or contacting GitHub.
- Explainable readiness score: see the nine checks, their findings, and the evidence behind recommendations.
- Reviewable fix plan: preview proposed starter files with
repo-fixer fix --dry-run. - Safe local generation: existing files are preserved by default; license selection is explicit; README replacement requires a backup and separate confirmation.
- Optional GitHub pull request: propose additions on a separate feature branch for human review.
- Configurable generation: enable or disable categories through
repo-fixer.yml.
60-second Quick Start
Requires Git and Python 3.11 or newer.
Windows PowerShell
git clone https://github.com/MANayab/Repo-Fixer.git
Set-Location Repo-Fixer
python -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
python -m pip install .
repo-fixer --help
repo-fixer scan
If PowerShell blocks virtual-environment activation, use the Python executable directly instead:
.\.venv\Scripts\python.exe -m pip install .
.\.venv\Scripts\repo-fixer.exe --help
.\.venv\Scripts\repo-fixer.exe scan
macOS / Linux
git clone https://github.com/MANayab/Repo-Fixer.git
cd Repo-Fixer
python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install .
repo-fixer --help
repo-fixer scan
CLI walkthrough
The following terminal animation shows the real command sequence and output structure. Values and findings are illustrative because they depend on the repository being scanned.
Commands
| Command | Purpose |
|---|---|
repo-fixer --help |
Show CLI help |
repo-fixer version |
Show the installed version |
repo-fixer scan [REPOSITORY] |
Audit repository essentials |
repo-fixer scan --format json |
Print scan results as JSON |
repo-fixer score [REPOSITORY] |
Show the readiness score and scoring explanation |
repo-fixer fix --dry-run |
Preview a file-generation plan without writing files or contacting GitHub |
repo-fixer fix |
Preview and confirm local starter-file creation |
repo-fixer fix --path PATH |
Select a repository directory |
repo-fixer fix --license MIT |
Explicitly select a license when LICENSE is missing |
repo-fixer fix --yes |
Skip the local new-file confirmation prompt |
repo-fixer fix --force |
Allow a confirmed local replacement of a weak README after a timestamped backup |
repo-fixer fix --create-pr --license MIT |
Propose additions through a confirmed GitHub pull request |
repo-fixer init |
Create a starter repo-fixer.yml configuration file |
Both scan and score accept an optional repository path and --format text|json.
Safety by default
scan,score, andfix --dry-rundo not modify repository files.- Local generation previews the plan;
--yesskips only the normal confirmation for new-file creation. README replacement still requires its own confirmation and backup. - Existing files are skipped. New files use exclusive creation to avoid silently replacing a file that appears after planning.
- A missing LICENSE is never guessed; choose one explicitly.
- Replacing a weak README locally requires
--force, a second confirmation, and a timestamped backup. - Writes are confined to the selected repository root; symlink targets are rejected.
- GitHub changes are additions-only on a uniquely named feature branch. Repo Fixer does not push to the default branch, force-push, delete files, or merge pull requests.
Read the complete safety guarantees before using file generation on an important repository.
See the project roadmap for shipped work and proposed next steps.
Optional GitHub pull requests
GitHub integration is optional. Set GITHUB_TOKEN to a fine-grained token restricted to the target repository with:
- Contents: Read and write
- Pull requests: Read and write
- Metadata: Read-only (GitHub's mandatory repository metadata permission)
Windows PowerShell example:
$env:GITHUB_TOKEN = "github_pat_..."
repo-fixer fix --create-pr --license MIT
Repo Fixer previews the additions and always asks for a separate interactive confirmation before creating the pull request. The --yes option does not bypass that GitHub confirmation. Review the branch and pull request before merging; Repo Fixer never merges automatically.
See GitHub integration and token permissions.
Configuration
Create a starter configuration with repo-fixer init. The optional repo-fixer.yml file can control which starter-file categories are included in the generation plan. For example:
generate:
readme: true
license: true
contributing: true
code_of_conduct: true
issue_templates: true
pull_request_template: true
ci: true
changelog: true
gitignore: true
The generate.* switches control which categories are included in the local generation plan. Unknown configuration keys are rejected.
Development
Requires Python 3.11 or newer.
python -m venv .venv
# Windows PowerShell: .venv\Scripts\Activate.ps1
# macOS/Linux: source .venv/bin/activate
python -m pip install -r requirements.txt -r requirements-dev.txt
python -m pip install -e .
ruff check .
ruff format --check .
mypy repo_fixer
pytest --cov=repo_fixer
GitHub API behavior is tested with mocked requests; CI does not use a live token or make live GitHub API calls.
Contributing
Contributions are welcome. Keep changes focused, add tests, and preserve the review-before-apply behavior. See CONTRIBUTING.md and the Code of Conduct.
License
Repo Fixer is licensed under the MIT License. See LICENSE.
Release integrity and artifact verification
Before a release, use the release verifier to build, validate, install, and smoke-test the wheel and source distribution. The guide covers normal, wheelhouse-assisted, and offline modes.
Metadata
Release files for repo-fixer 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| repo_fixer-0.3.2.tar.gz | 58.0 kB | With provenance | Details for repo_fixer-0.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| repo_fixer-0.3.2-py3-none-any.whl | Python 3 | none | any | Details for repo_fixer-0.3.2-py3-none-any.whl |
Total release size: 104.9 kB
Release files / repo_fixer-0.3.2.tar.gz
| Download URL | repo_fixer-0.3.2.tar.gz |
|---|---|
| Size | 58.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c1aad88d07812e5285a205a37137fd6c0fb5f5b8f921f9aeb4085ed2a7e9050b
|
|
BLAKE2b-256 checksum How to use checksums |
c0870a8a76d8ba5c6c91db935c9d83e9f6c13288c0dcf01eedb3b083f6873dbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logRelease files / repo_fixer-0.3.2-py3-none-any.whl
| Download URL | repo_fixer-0.3.2-py3-none-any.whl |
|---|---|
| Size | 46.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
efd683862799c3d4c2c8e055c53beb0f0ff094393d004bcb1a0c61131c74da5c
|
|
BLAKE2b-256 checksum How to use checksums |
4ed7151bad6f33d3430d8d9e80bcf1bd2d9bcbb15b672f777f93e11e8594d7ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logSecurity for repo-fixer 0.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for repo_fixer-0.3.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.