Skip to content

feat(shopware-knowledge): add skills-only development plugin - #203

Open
Viktor Khliupko (biotech-shopware) wants to merge 1 commit into
shopwareLabs:mainfrom
biotech-shopware:ai-tooling-refactoring
Open

Viktor Khliupko (biotech-shopware) wants to merge 1 commit into
shopwareLabs:mainfrom
biotech-shopware:ai-tooling-refactoring

Conversation

@biotech-shopware

@biotech-shopware Viktor Khliupko (biotech-shopware) commented Oct 30, 2026 •

Copy link
Copy Markdown

Shopware development guidance currently lives in separate skill installations. shopware-knowledge brings the shared shopware-development skill into this marketplace for Claude Code and Codex, with portable export for clients that use standalone skills. The first contribution is skills-only. It needs no MCP server, hooks, credentials, or additional plugin to work.

Merged source

Source PR #5 is merged into dev at 69ad424. A normal merge preserves the original contributor history. The merge tree matches the reviewed source exactly, and post-merge CI passes. This upstream contribution remains on ai-tooling-refactoring; no upstream merge, release, or tag is requested here.

Runtime contract

The plugin keeps the shopware-development invocation name and targets Shopware 6.7 with explicit 6.6 compatibility. Classic storefront and backend development remain central. Existing Store API and separate-frontend ownership/security boundaries are retained when relevant, without expanding composable-frontend coverage.

The entrypoint selects review, implementation, planning, debugging, or research mode and links directly to the relevant references. Detailed findings and PR/QA templates load only for their task. References do not limit investigation depth or solution breadth. User instructions, repository overlays, and runtime permissions still apply; the knowledge skill grants no permission to edit, run commands, or delegate work.

Installed test-writing, contributor-writing, shopware-env, and shopware-documentation retain ownership of their specialized workflows. Standalone Shopware testing context and output templates remain available without those plugins. The corpus is bundled inside the skill, so a portable export does not depend on files outside its installation.

Knowledge preserved and corrected

The merged source accounts for every baseline rule/example as retained, moved, corrected, or retired. It includes the original commits from the local-development, missing-facts, and Administration/storefront contributions; CMS guidance was already present. The upstream commit credits that contribution without importing the source repository's history or maintenance ledger into the marketplace.

Area Retained contract or correction
Backend and DAL Context/customer/channel scope, bounded criteria, batching, complete reads, migration immutability, ACL, state machines, and lifecycle deployment. Bounded ID reads are distinguished from paginated discovery instead of adding limits that silently truncate work.
Cart and checkout Collector/processor separation, deterministic recalculation, price/tax/delivery/promotion authority, bounded work, and post-order side-effect boundaries. Provider freshness, key inputs, invalidation and final verification replace fixed universal cache durations.
Payments and renewals Server-authoritative amount/currency/state, transaction and saved-method ownership, signed callbacks, operation uniqueness, retries, unknown-outcome reconciliation, refunds, and recurring authority. Optional payment hooks and the after-order validation boundary are explicit.
Cache and reverse proxies Patch/feature-flag-specific response policy, variation, delayed invalidation, hash validation, and rollout checks. Login-state variation is not treated as customer identity. Personalized fragments follow the actual route and cache policy.
Queue and search Durable claims, provider idempotency, redacted correlation logs, retries/failure handling, worker topology, complete indexer lifecycle, targeted reindexing, and search consistency. Delay recommendations remain transport-sensitive.
Storefront and accessibility Block-safe overrides, scoped JS lifecycle, semantic markup, labels, keyboard/focus, repeated IDs, live status, consent and revocation. The cookie helper example uses its verified static contract.
Administration, CMS and i18n Parent save flow, association ownership, compatible component extension, translated slot configuration, resolver loading, snippets, and language inheritance. Local environment instructions require the detected configuration.
Review behavior Evidence-backed severity, baseline pinning, sibling comparison, prior-finding verification and actionable/deferred/inactive triage. No mandatory static-only review, three complete scans, or automatic P1 classification for absent tests.

Unsupported universal operational thresholds, compulsory diagnostic-tool installation, blanket database prohibitions and unrelated fixed tool-version prescriptions were removed or scoped to evidence. No financial, ownership, cache-isolation or merchant-data-retention invariant was removed to shorten the entrypoint.

The preservation ledger accounts for 2,457 units: 2,004 retained, 28 moved, 417 corrected, and 8 retired self-check/provenance or unsupported-assertion units. This is accounting, not proof that every sentence is correct. Correction evidence identifies the checked contracts.

Marketplace integration

Surface Behavior
Claude Code Minimal marketplace registration plus per-plugin metadata and relative reference links. No editing or state-changing command pre-approvals.
Codex Native .codex-plugin/plugin.json with the same skill corpus and AVAILABLE marketplace registration. No agents/openai.yaml compatibility assumption.
Portable Agent Skills .agent-skills opt-in uses the existing exporter and required skills-ref validation; the exported body/reference bytes remain unchanged and the original MIT notice travels with every installation.
Discoverability Root README plugin entry, plugin README/AGENTS/changelog, and generated skill/component issue registrations follow the existing layout.
Registry tests The existing dev-tooling Codex assertions select plugins by name and validate every registered entry instead of assuming a single entry at array index zero. Existing dev-tooling runtime files are untouched.
Maintainer support Topic/applicability/source metadata, isolated package tests and fixed evaluation fixtures live under plugin-namespaced paths. Generated Python bytecode is ignored. A read-only CI job makes no model calls.

knowledge-index.json holds stable topic identifiers, version/feature applicability and source anchors. The agent does not classify the corpus on every request. Filtered MCP delivery can use the same index later, but no retrieval server or embedding dependency is introduced here.

Validation performed

Checks were rerun against upstream a276558d12d0e09696fb9d1a7b4cd1925c44baf6. Core investigation used Shopware v6.7.15.1 with targeted v6.6.10.30 comparisons.

Gate Observed result
Package contracts 34 focused tests pass, including invalid metadata, escaping/broken references, duplicate IDs, missing/blank bundled-license rejection, export preservation and isolated runner behavior.
Native and portable packaging Claude marketplace/plugin validation, native metadata, host exporter, required skills-ref, YAML/frontmatter and ZIP byte-parity checks pass.
Source locators All 89 pinned core paths resolve in the actual tag objects; this checks path existence, not the semantics of every surrounding rule.
Index and fixtures 29 deterministic topic records and all 14 fixed fixture schemas/Composer targets pass. Rubrics are kept outside model workspaces.
Host integration All plugin versions synchronized, issue-template registrations current, all 28 focused Codex registry BATS tests pass, and ShellCheck passes.
Complete host BATS suite 1,559 passed, 0 failed, 0 skipped in disposable Ubuntu 26.04 ARM64 with Git 2.53.0 and a non-root user. Eight independent file workers preserve execution order within each file.
Installation Actual GitHub installation from the pushed fork through the official Codex skill installer and Claude marketplace installer succeeds; all 32 installed files, including the MIT notice, match the contribution in both clients. Codex native marketplace catalog discovery also succeeds.
Codex behavior Independent semantic review of 14 paired fixed cases preserves expected defects and keeps clean/compatibility controls clean, with no new unsupported P0/P1 observed. Selected financial/ownership/cache cases were repeated; natural-language discovery and a downloaded-skill smoke test also pass.
Privacy and formatting No personal paths, private conversation URLs or runtime-specific invocation prose in the skill. Relative links resolve and diff whitespace checks pass. Synthetic privacy-test strings are deliberate controls.

The paired cases cover payment authority, ownership, renewal retries, cart I/O, cache isolation, concurrent queue work, indexers, translated CMS configuration, parent save flow, lifecycle deployment, accessibility, 6.6 compatibility and valid controls. They are small review fixtures, not full Shopware applications. Arm order was not randomized and these observations do not establish statistical superiority or universal finding stability.

Hosted CI evidence

The exact contribution head bc8d14150f27b010459dd07d35d32ec86b11f7b0 against base a276558d12d0e09696fb9d1a7b4cd1925c44baf6 also passed the unmodified pull-request workflows in the contributor fork.

Workflow Result
CI: Bash Tests & Lint Pass. Full hosted BATS run: 1,559 passed, 0 failed, 0 skipped; ShellCheck passed.
Validate Pass. Existing host version, registration and shared-template checks.
Shopware Knowledge Pass. Package contracts, index, validated portable export and fixed-fixture checks.
Build Agent Skills Pass. Complete portable build matrix, including shopware-development. The release-publishing job was skipped for the PR event.

The portable Shopware artifact was downloaded and compared with the reviewed portable export. Every packaged file matches, including the original MIT notice. The temporary validation PR is closed without merging; the contribution branch is retained.

Upstream's own workflow runs still require maintainer approval for an external contribution. Passing fork checks are equivalent hosted evidence on the same head/base, not upstream approval or a green upstream check status.

QA guide

Use a clean checkout of this PR. Run the following from the repository root in one Python environment with the pinned dependencies installed:

python3 -m pip install -r eval/shopware-knowledge/requirements.txt
python3 -m unittest discover -s plugin-tests/shopware-knowledge -p 'test_*.py' -v
python3 scripts/shopware-knowledge/build_knowledge_index.py --check
python3 scripts/shopware-knowledge/validate_skill_pack.py
python3 eval/shopware-knowledge/run.py check
.github/scripts/validate-versions.sh
.github/scripts/validate-issue-templates.sh
.bats/bats-core/bin/bats plugin-tests/dev-tooling/codex_manifest.bats
.bats/bats-core/bin/bats --timing -r plugin-tests/
claude plugin validate .
git diff --check

The package validator invokes the existing portable exporter and skills-ref; missing validation dependencies fail rather than turning into a skipped success. The fixture check command does not invoke a model. Set up the repository's pinned BATS dependencies first with .github/scripts/setup-bats.sh if necessary.

The recorded full-suite run used --jobs 8 --no-parallelize-within-files with GNU Parallel. The serial command above runs the same cases without that extra dependency. Relative-worktree fixtures need Git 2.48 or newer; this is a host-test prerequisite, not a new Shopware application requirement.

  1. Add this checkout as a separate local marketplace in a disposable Claude configuration. Install shopware-knowledge and verify it is enabled at 0.10.0; invoke /shopware-knowledge:shopware-development. Expect the relevant relative references to resolve with no MCP setup or external permission granted by the skill.
  2. Register this checkout in a disposable Codex configuration or install its standalone skill through the existing installer. Verify discovery of shopware-development, then ask a payment, cache or CMS question. Expect the matching topic references, not the entire corpus, to be read.
  3. Review the pricing/ownership/queue fixture examples and valid controls in eval/shopware-knowledge/cases.json. Inspect both the proposed failure flow and the clean-control expectation before running a model.
  4. For an explicitly authorized live check, run python3 eval/shopware-knowledge/run.py run --case c13 --runtime codex --skill plugins/shopware-knowledge/skills/shopware-development --execute. Expect the valid formatter to remain clean and fixture hashes to stay unchanged. Without --execute, the runner only prints its plan.
  5. In authenticated Claude Code, repeat with --runtime claude, then run the relevant paired cases before claiming dual-runtime behavioral equivalence. Authentication is required; package installation alone is not that proof.
  6. Check coexistence with test-writing, contributor-writing, shopware-env and shopware-documentation. Expect the specialized installed workflow to own its task, with the domain reference available as context and a standalone fallback when the other plugin is absent.
  7. Check duplicate skill discovery. An older manual shopware-development installation should not be mistaken for the new plugin; remove only the intended redundant copy. Do not overwrite active global skills as part of QA.

Risk and remaining verification

The runtime change is instruction behavior, not application code. Regressions could include missed topic routing, misleading version assumptions, speculative review findings or conflicts with specialized plugins. The preservation ledger, negative fixtures, source anchors, portable-byte checks and namespaced tests address those risks without asserting that every possible project is covered.

Claude live model tests remain unverified because the available CLI is not authenticated. Native packaging and actual Claude installation pass. Interactive IDE/app discovery, real Shopware/container integration, browser/assistive-technology behavior, provider enforcement, concurrency recovery and reverse-proxy/search rollout still require their own environments. PHP snippets were linted on PHP 8.5, not a separate PHP 8.2 runtime.

All checked relative runtime citations resolve. The host's broader style checker still reports inherited bare-path style findings in the corpus; some are literal instruction operands. These are not unresolved links, and the PR does not claim a clean strict-style run. The plugin's human-facing wrappers pass the citation/style check.

The initial macOS full-suite attempt lacked ugrep and was stopped. An Ubuntu 24.04 probe with Git 2.43 then reproduced the same relative-worktree membership failure on both the candidate and untouched upstream. Neither incomplete probe is counted as a pass. The completed Ubuntu 26.04/Git 2.53 non-root run passes all 1,559 cases; no unrelated runtime was changed. Upstream GitHub Actions still require maintainer approval for this external contribution, so local success is not presented as a green upstream CI run.

Scope and release

0.10.0 is prepared metadata, not a published release. No tags, existing release histories, active global installs, unrelated plugin runtimes or user configuration are changed. The optional MCP retrieval layer remains a separate follow-up. Monthly source/framework/PHPStan review is documented as a maintenance cadence, not an installed background job.

References

Make version-aware Shopware 6.6/6.7 development and review guidance available through native Claude Code and Codex installation and portable Agent Skills exports. Bundle the references with shopware-development so installations share one self-contained corpus without MCP services, hooks or tool pre-approvals.

Leave specialized workflows with existing plugins. Add source/applicability metadata, fixed evaluation fixtures and package checks to catch broken references, missing license notices and export drift. Run structural CI without model calls and remove the Codex registry tests’ single-plugin assumption.

Co-authored-by: Rune Laenen <rune@laenen.me>
@biotech-shopware

Viktor Khliupko (biotech-shopware) commented Oct 30, 2026 •

Copy link
Copy Markdown
Author

Martin Bens (@SpiGAndromeda) ready for review. Source PR #5 is merged into dev at 69ad424bdd125d7c7c865e260e56fd64f6c014b1, preserving contributor history; its post-merge CI is green. All four equivalent hosted workflows on the exact upstream head/base now pass in the fork, including 1,559 BATS cases with zero failures/skips and the full portable build matrix. Run/artifact links and the verified artifact comparison are in the updated PR description. The temporary validation PR is closed without merging and its branch is retained. Upstream workflow runs still require your maintainer approval; this account cannot approve them or assign reviewers. Claude live model validation remains explicitly unverified. No upstream merge, release or tag has been performed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants