Skip to content
Back to skills

Xojo Lint

ASecurity

Validate, lint, and conservatively format the files of a Xojo project in text format (.xojo_project, .xojo_code, .xojo_window, and the other .xojo_* extensions). Use after creating or editing any Xojo project file, when the user asks to lint, check, validate, format, or clean up a Xojo project, and when the user wants a pre-commit check for a Xojo project.

  • 3 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added September 5, 2026
ai-agentspythonexpressgitdatabase

Works with

  • claude code

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add scannedinc/xojo-tools --skill xojo-lint --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Xojo Lint?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Xojo Lint
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/scannedinc-xojo-lint/badge)](https://www.skillsdirectory.com/skills/scannedinc-xojo-lint)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: xojo-lint
description: >-
  Validate, lint, and conservatively format the files of a Xojo project in
  text format (.xojo_project, .xojo_code, .xojo_window, and the other .xojo_*
  extensions). Use after creating or editing any Xojo project file, when the
  user asks to lint, check, validate, format, or clean up a Xojo project, and
  when the user wants a pre-commit check for a Xojo project.
disable-model-invocation: false
---

# Xojo Lint

`scripts/xojo_lint.py` validates and formats Xojo project files. It needs only Python 3.9 or later and the standard library. Run it from the folder of this skill, or give the full path to the script.

## Commands

After you create or edit files in a Xojo project, run both checks:

```sh
python3 scripts/xojo_lint.py check --all PATH
python3 scripts/xojo_lint.py format --check PATH
```

Both commands are silent and exit 0 when the project is clean. `PATH` is a project folder or one file; it defaults to the current directory.

If `format --check` reports files, inspect the changes, then apply them:

```sh
python3 scripts/xojo_lint.py format --diff PATH
python3 scripts/xojo_lint.py format PATH
```

The formatter only changes serialization details it can identify safely: tag case and nesting, whitespace around manifest keys, missing minimum indentation inside source tags, and a missing line break at the end of a file -- except in `.xojo_script`, which Xojo writes both ways, so use `--final-newline add` to force one there. It does not reorder properties and does not rewrite Xojo expressions, identifiers, comments, or string literals, including the trailing whitespace of a manifest value. Never format a project the user has designated read-only.

## Reading the output

Each diagnostic is one line: `path:line:column: severity CODE message`. There are three severities:

- **error** — the file breaks its format. Errors always fail the run.
- **warning** — the file is unusual but usable. Warnings fail the run only with `--warnings-as-errors`.
- **notice** — a nit, for example a missing final line break. Notices never fail the run. Hide them with `--no-notices`.

`check --all` enables all optional checks, currently `--warn-unknown` for unknown `.xojo_*` containers and tag kinds plus `--check-paths` for external image and data assets. It does not enable `--warnings-as-errors`; add that separately when warnings must fail the run.

Unknown properties, keys, and tag kinds are accepted for forward compatibility: a newer IDE can extend the formats, and this tool must not call that corruption.

Diagnostic codes are grouped by container: `XJC` common text checks, `XJT` tagged regions, `XJB` designer blocks, `XJP` project manifests, `XJR` resources, `XJU` UI state, `XJL` libraries, and `XJF` formatting.

## Scope

The tool understands the text-format extensions (`.xojo_project`, `.xojo_code`, `.xojo_window`, `.xojo_menu`, `.xojo_toolbar`, `.xojo_report`, `.xojo_image`, `.xojo_color`, `.xojo_filetypeset`, `.xojo_database_connection`, `.xojo_script`) and the binary companions (`.xojo_library`, `.xojo_resources`, `.xojo_uistate`). Xojo Binary Project and Xojo XML Project files are opaque to this tool: it skips them, and reports them only with `--warn-unknown`.

## As a pre-commit hook

`scripts/pre-commit.sample` is a ready-to-use git hook for a Xojo project. It lints the staged `.xojo_*` files and blocks the commit on errors, warnings, or files the formatter would change. To install it into a project, copy it to `.git/hooks/pre-commit` and make it executable. Its `XOJO_LINT` default finds `xojo_lint.py` where Claude Code installs the plugin; for any other install, Codex included, export `XOJO_LINT` as the real path of the script or set it at the top of the hook.

## Tests

```sh
python3 scripts/test_xojo_lint.py
```

Files in this skill

  • LICENSE1.5 KB
  • README.md3.3 KB
  • SKILL.md3.7 KB
  • agents/openai.yaml222 B
  • scripts/helptext.py18.3 KB
  • scripts/pre-commit.sample3 KB
  • scripts/test_xojo_lint.py34.2 KB
  • scripts/xojo_lint.py53.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.