Przejdź do treści
Biblioteka skilli
Programowanie · Przegląd i audyt

breeze-compat

/breeze-compat

Wykonuje statyczny audyt tylko do odczytu zgodności modułu Magento 2 ze Swissup Breeze, skanując RequireJS, Knockout, widgety jQuery-UI i mixiny, i wydaje ranking ustaleń oraz werdykt zgodności.

Repozytorium
magento2-tools ↗
Licencja
MIT
Ostatnia zmiana repozytorium
04.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
4
Skrypty
2
Komentarze HTML
0
Adresy URL w SKILL.md
1
Przestarzałość

Brak sygnałów. Repozytorium zmienione 04.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co sprawdzić przed instalacją
  • 2 skrypty w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/build-findings.sh, scripts/static-scan.sh

Co robi i kiedy

Wykonuje statyczny audyt tylko do odczytu zgodności modułu Magento 2 ze Swissup Breeze, skanując RequireJS, Knockout, widgety jQuery-UI i mixiny, i wydaje ranking ustaleń oraz werdykt zgodności.

Oryginalny opis (EN)

Read-only static audit of a Magento 2 module's compatibility with Swissup Breeze. Scans RequireJS, Knockout, jQuery-UI widgets, and mixins; emits ranked findings (Markdown, JSON, SARIF) and a verdict: compatible, needs Better Compatibility, or needs a manual adapter. Use to ask whether a module works with Breeze. Unlike magento2-tools:review (general quality), this is the Breeze dimension; generate the adapter with magento2-tools:breeze-adapt; new theme: magento2-tools:breeze-theme.

Jak działa

  1. Core Rules
  2. Workflow
  3. Inputs
  4. Outputs
  5. Reference Files
  6. Scripts
  7. Acceptance Criteria
  8. Related Skills
Sekcje z nagłówków SKILL.md, w oryginale · 113 linii, 602 słów
Podgląd SKILL.md
---
name: breeze-compat
version: 1.1.0
description: >-
  Read-only static audit of a Magento 2 module's compatibility with Swissup Breeze. Scans RequireJS,
  Knockout, jQuery-UI widgets, and mixins; emits ranked findings (Markdown, JSON, SARIF) and a
  verdict: compatible, needs Better Compatibility, or needs a manual adapter. Use to ask whether a
  module works with Breeze. Unlike magento2-tools:review (general quality), this is the Breeze
  dimension; generate the adapter with magento2-tools:breeze-adapt; new theme:
  magento2-tools:breeze-theme.
---

# Magento 2 Breeze Compatibility Audit

Static, read-only audit that tells you whether an existing module will work with a
[Swissup Breeze](https://breezefront.com/docs/better-compatibility) theme. Breeze replaces
RequireJS/Knockout/jQuery with a Cash-based stack, so modules that lean on those APIs need either
Breeze's "Better Compatibility" mode or a hand-written adapter.

## Core Rules

- **Static-first.** Default pass uses only the source tree — no runtime, no Magento CLI required.
- **Read-only.** Never modifies code. Findings route to `breeze-adapt` for fixes.
- **Breeze-aware.** Resolve `context`; read `theme.breeze`. If `installed` is `false`,
  note it (the audit still runs, but the verdict says "Breeze not installed").
- **Severity by user-facing breakage.** A Knockout checkout component is High; a `data-mage-init`
  hook Breeze already supports is Info.
- **Concrete remediation.** Every finding names the specific Breeze fix (port to a Cash `$.widget`,
  enable Better Compatibility, move CSS to `breeze/_default.less`) and whether
  `breeze-adapt` can scaffold it.
- **JSON + SARIF.** Same shape as `review` (`outputKind=compatibility`).

## Workflow

### Phase 0 — Context Resolution

Invoke `context`. Capture `theme.breeze`, `vendor`, `magento_root`.

### Phase 1 — Scope

- Single module → scan that module subtree.
- Multiple modules / site → scan each custom module under `app/code`.

### Phase 2 — Static Scan

Run `scripts/static-scan.sh <target>` per `references/breeze-compat-checklist.md`:

| Check | Pattern | Severity |
|-------|---------|----------|
| RequireJS config | `requirejs-config.js` present | Medium (High if `mixins`) |
| RequireJS mixins | `mixins` in `requirejs-config.js` | High |
| Knockout / uiComponent | `'uiComponent'`, `Magento_Ui/js/`, `data-bind` | High |
| jQuery widget | `$.widget(`, `$.mage.` | Medium |
| Inline require | `require([...])` in `.phtml` | Medium |
| mage-init | `data-mage-init`, `text/x-magento-init` | Info (Breeze supports) |
| No adapter yet | ships `view/frontend/web` but no `breeze_*`/`web/css/breeze` | Info |

### Phase 3 — Verdict & Emit

Run `scripts/build-findings.sh` to emit JSON + SARIF (and render the Markdown report).
Run it with `DOCS_ROOT=<output_root>` (the resolved `--docs-root` value, or `.docs` by
default) so both artifacts land under `{output_root}/breeze-compat/`. Classify:
- **Compatible out-of-box** — only Info findings (mage-init / no-adapter).
- **Needs Better Compatibility** — RequireJS/mixins/jQuery-widget findings, no Knockout.
- **Needs manual adapter** — Knockout/uiComponent findings present.

Point the user at `breeze-adapt` for the fix.

## Inputs

```
/breeze-compat <Vendor_Module> [--scope=module|site] [--docs-root=<path>]
```

## Outputs

Module scope (basename uses the underscore module name, e.g. `Acme_Foo`):
`{output_root}/breeze-compat/{Vendor}_{Module}-breeze-compat-{YYYY-MM-DD}.{json,sarif}`
Site scope: `{output_root}/breeze-compat/breeze-compat-{scope}-{YYYY-MM-DD}.{json,sarif}`
— plus a Markdown summary sharing the same basename. Findings follow
`context/references/findings-schema.md`. `{output_root}` defaults to `.docs`
(`{ctx.docs_root}`); see the `--docs-root`/`DOCS_ROOT` recipe in
`context/references/artifact-layout.md`.

### Output root (`--docs-root`)

This skill accepts `--docs-root=<path>` (see
`context/references/artifact-layout.md`). When set, run the emitter with
`DOCS_ROOT=<path>` so artifacts land under `<path>/breeze-compat/`; otherwise they default
to `{ctx.docs_root}/breeze-compat/`. Orchestrators such as `feature`
pass this to collect a run's artifacts under one folder.

## Reference Files

- `references/breeze-compat-checklist.md` — the full check table with patterns, severities, and
  Breeze remediation per row.
- `context/references/severity.md` — the shared five-point severity scale the per-row
  severities calibrate against.
- `context/references/findings-schema.md` — JSON findings-document structure
  (`outputKind=compatibility`).

## Scripts

- `scripts/static-scan.sh` — emits the findings array for a module subtree.
- `scripts/build-findings.sh` — aggregates and emits JSON + SARIF via the shared emitters.

## Acceptance Criteria

- Produces `{Vendor}_{Module}-breeze-compat-{date}.json` (module scope; site scope:
  `breeze-compat-{scope}-{date}.json`) with `outputKind=compatibility`, `findings[]`,
  `scanner_errors[]`, and `.sarif`.
- Each finding has a severity, `file:line` evidence, and a concrete Breeze remediation.
- Emits a verdict (compatible / Better Compatibility / manual adapter).
- Never modifies the scanned module.

## Related Skills

| Phase | Skill |
|-------|-------|
| 0 | `context` |
| (sibling) | `review` for general architecture/quality |
| (fix) | `breeze-adapt` to generate the adapter |
| (theme) | `breeze-theme` for a new Breeze theme |
Pliki w paczce (4)
  • SKILL.md 5 KB
  • references/breeze-compat-checklist.md 3 KB
  • scripts/build-findings.sh 2 KB
  • scripts/static-scan.sh 6 KB

Wersje

W bazie nie ma innych skilli o nazwie breeze-compat.

Migawka bazy z 13.11.2026 · wersja paczki 5ce8ed3f2ff4 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100breeze-adapt
    Adaptuje istniejący moduł Magento 2 do Swissup Breeze, generując moduł towarzyszący {Vendor}_{Module}Breeze, który zamienia widgety RequireJS, Knockout i jQuery na Cash `$.widget`, bez edycji modułu docelowego.
  • 100breeze-theme
    Tworzy szkielet motywu potomnego Swissup Breeze (Breezefront): theme.xml z rodzicem Swissup/breeze-*, układ tylko dla Breeze i nadpisania w web/css/breeze/_default.less.
  • 100breeze-x402-payment-api
    Obsługuje endpointy Breeze x402 z bramką płatności: sprawdzanie salda, wpłaty i wypłaty na Solanie oraz zarządzanie pozycjami i płatnymi wywołaniami API.
  • 100magento-frontend
    Buduje frontend Magento 2: layout XML, bloki, szablony PHTML, ViewModels, motywy, JavaScript (RequireJS, KnockoutJS) oraz LESS i CSS, przy dostosowywaniu sklepu i budowie motywów.
  • 100airflow-aware
    Stosuje konwencje z AGENTS.md repozytorium apache/airflow podczas pracy jako współtwórca: nazewnictwo, Breeze i uv, Ruff, Mypy, wzorce pytest i zasady pull requestów.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.