Linter
Run repo linting with a fix-first workflow and conservative config fallback when direct fixes are not enough.
Workflow
- Confirm the repo root path.
- Run
scripts/lint-repo.sh --root <path>. - Prefer direct source fixes first.
- Apply fallback config rules only for unresolved rule IDs.
Checks
- Shell:
- Discover
*.shand*.bashfiles. - Run
bash -nfor syntax checks. - Run
shellcheck -xfor static analysis.
- Discover
- Markdown:
- Discover all nested
.mdfiles. - Run
markdownlint --fixfirst. - If issues remain, run an extra formatter pass (
prettier --prose-wrap alwaysormdformatwhen available). - Re-run
markdownlint; only if still unresolved, create.markdownlint.jsonfallback rules when safe.
- Discover all nested
- Python:
- Discover all
*.pyfiles. - Run
ruff check --fixfirst. - Re-run
ruff check; if unresolved, add targeted Ruff ignores inpyproject.tomlwhen safe.
- Discover all
Execution Mode
Scripts in this skill are reference-only by default.
Execute scripts only when the user explicitly starts the request with Run or Execute (or equivalent).
Commands
# Full pass: fix first, then fallback config only if required
scripts/lint-repo.sh --root .
# Check-only mode
scripts/lint-repo.sh --root . --no-fix --no-config-fallback
Converted and distributed by TomeVault — claim your Tome and manage your conversions.