lint
Skill16 starsChanged 3 days agoApache-2.0View on GitHub
Format and lint code across all swiss-ai-hub scopes. Runs make pr-ready (ruff format + ruff check --fix + mdformat + yamlfix), fixes errors, and repeats until clean. Use when user says 'lint', 'format code', 'run pr-ready', 'fix formatting', 'ruff check', 'lint all scopes', or 'format and lint'. Do NOT use for running tests (use /test-scope) or full PR preparation (use /create-pr).
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 66 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
Run make pr-ready from the repo root across the monorepo to format, lint, and fix code.
- Distinctive: line 59
If only one scope needs fixing, target it directly:
- Distinctive: line 76
Per-file ignores: test files allow unused imports (F401) for fixtures
“Common” is measured: kept by at least 6 in 10 of the 66 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Lint - Format and Lint All Scopes
Run make pr-ready from the repo root across the monorepo to format, lint, and fix code. Repeat until zero errors
remain.
The stop hook runs make pr-ready automatically at session end. Use this skill mid-session when you need to verify
linting is clean before proceeding (e.g., before running tests or reviewing code), or when the stop hook failed and you
need to diagnose and fix specific errors.
What make pr-ready Does
The root make pr-ready runs these steps in sequence:
- Per-scope
make pr-readyfor each Python scope (packages/pipeline,packages/core,packages/agent,packages/process,packages/api,packages/sysadmin-api,packages/bot,packages/backup):ruff format— auto-format Python coderuff check --fix— lint with auto-fix (rules: E pycodestyle, F pyflakes, UP pyupgrade, I isort)
- Frontend scopes (
packages/web,packages/sysadmin-web) runpnpm lint(ESLint) instead of ruff. make generate-compose,check-env,generate-env-docs,license-check— regenerate and validate the compose files, env docs, and license headersmdformat --number— format all tracked Markdown files (normalize headings, lists, tables)yamlfix— format all tracked YAML files (exceptpnpm-lock.yaml)
Steps
1. Run make pr-ready from Repo Root
make pr-ready2. Review Output for Errors
Ruff auto-fixes most issues. Errors that remain after auto-fix require manual intervention:
- Import errors — missing dependency, run
uv sync --all-packages - Unused imports/variables — remove them
- Unsafe fixes — ruff flags these but won't auto-apply; review and fix manually
- Syntax errors — ruff can't auto-fix these; fix the Python syntax manually
3. Fix Errors and Re-run
Fix each error in the reported file. Then re-run:
make pr-readyRepeat until the output shows zero errors across all scopes.
4. Run on Specific Scopes (Optional)
If only one scope needs fixing, target it directly:
make -C packages/core pr-ready
make -C packages/api pr-ready
make -C packages/web pr-ready
make -C packages/sysadmin-api pr-ready
make -C packages/backup pr-readyRuff Configuration
Each scope's pyproject.toml configures ruff. Key settings:
- Line length: 120 characters
- Target: Python 3.13
- Rules: E (pycodestyle), F (pyflakes), UP (pyupgrade), I (isort)
- Per-file ignores: test files allow unused imports (F401) for fixtures
Troubleshooting
| Problem | Solution |
make pr-ready fails with ModuleNotFoundError | Run uv sync --all-packages from workspace root |
| mdformat fails on deleted file | Stage the deletion with git rm first |
| yamlfix changes too much | Check if the YAML file follows non-standard formatting |
| ESLint errors in packages/web | Run pnpm lint --fix from packages/web/ |
Done When
make pr-readyruns to completion with zero errors across all scopes
Other versions79 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 79
- ray-project/ray★ 44ksame name
- FalkorDB/FalkorDB★ 11ksame name
- FastLED/FastLED★ 7.5ksame name
- fleetdm/fleet★ 7.1ksame name
- aaddrick/claude-desktop-debian★ 5.5ksame name
- cloudposse/atmos★ 1.4ksame name
- ethereum/execution-specs★ 1.2ksame name
- adobe/S3Mock★ 1.2ksame name
- maxGraph/maxGraph★ 1.2ksame name
- jason-effi-lab/karpathy-llm-wiki-vault★ 718same name
69 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Used alongsideProjects with it also use query, ingest and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
ArtemXTechSkillquery
Query data from this vault. USE WHEN user asks about projects, clients, tasks, daily notes. Use grep to extract frontmatter - do NOT read full files.
Also in 17 projects that use this
JaimeGBASkillingest
Digest an external source (article, paper, transcript, URL, book chapter) and integrate its content into the knowledge base
Also in 25 projects that use this
PydanticSkillcoverage
Fetch coverage diff from Codecov for the current branch or a specific PR. Shows uncovered lines, patch coverage, and overall coverage change.
Also in 4 projects that use this
seongjaeryuSkillsave
Complete and save your current thinking to Bindly
Also in 5 projects that use this
BugRogerSkillproject
Project lifecycle management. Dispatches to Ada.
Also in 4 projects that use this
AnthropicSkilldigest
Generate a daily or weekly digest of activity across all connected sources. Use when catching up after time away, starting the day and wanting a summary of mentions and action items, or reviewing a week's decisions and document updates grouped by project.
Also in 3 projects that use this
In this repository50 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- docs/CLAUDE.mdCLAUDE.md
- .github/actions/CLAUDE.mdCLAUDE.md
- arc42Skill
- audit-frontendSkill
- bot-frameworkSkill
- create-or-audit-claude-mdSkill
- create-or-audit-skillSkill
- create-or-audit-subagentSkill
- create-prSkill
- dagster-pipelinesSkill
- debug-agentSkill
- debug-frontendSkill
- debug-pipelineSkill
- design-systemSkill
- docker-devSkill
- document-decisionSkill
- document-featureSkill
- explainSkill
- generate-sdkSkill
- i18nSkill
- implement-feedback-from-prSkill
- likec4-dslSkill
- merge-mainSkill
- nats-eventsSkill
- plan-issueSkill
- pr-demo-videoSkill
- primevue-lookupSkill
- rclone-guideSkill
- reflectSkill
- review-diffSkill
- scaffold-agentSkill
- scaffold-api-endpointSkill
- scaffold-api-repositorySkill
- scaffold-api-serviceSkill
- scaffold-bot-handlerSkill
- scaffold-composableSkill
- scaffold-event-displaySkill
- scaffold-frontend-componentSkill
- scaffold-frontend-pageSkill
- scaffold-frontend-subpageSkill
- scaffold-pipelineSkill
- setup-bot-connectionSkill
- splice-issueSkill
- sync-agent-docsSkill
- test-scopeSkill
- update-docSkill
- verify-sdk-syncSkill
- write-docSkill
- write-issueSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

