Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
2061d04
Added capability map tools and reuse-gate skills
demkos Nov 6, 2026
8d546ad
Added optional Yves Twig integration step to feature install and upgrade
demkos Nov 6, 2026
77f1156
Dropped demo shop examples from the Yves Twig integration skill
demkos Nov 6, 2026
6927a44
Applied wishlist install trial findings to install, refresh, scan and…
demkos Nov 9, 2026
bb73e50
Report capability map tool failures as MCP tool errors
demkos Nov 9, 2026
3407e19
Update version of spryker-ai-dev-sdk to 0.10.0
demkos Nov 9, 2026
1ff40bf
Bump version from 0.9.0 to 0.10.0
demkos Nov 9, 2026
9274eb8
Add checklist engine, reconcile and release steps to spryker-feature-…
geronica Nov 10, 2026
a21ab54
spryker-feature-install: use the capability search script as the fall…
geronica Nov 17, 2026
214dd13
spryker-feature-install: cover the installed feature with tests
geronica Nov 17, 2026
2f34495
spryker-feature-install: always dry-run composer, mark optional prere…
geronica Nov 17, 2026
cab81b2
spryker-feature-install: Definition of Done and blocker rule
geronica Nov 18, 2026
82a54ae
Move the feature-install tests and guide fixtures out of the plugin
geronica Nov 18, 2026
382315e
spryker-feature-install: install report format
geronica Nov 18, 2026
ada596f
spryker-feature-install: report template follows the shared Recurring…
geronica Nov 18, 2026
bd28ef4
spryker-feature-install: measured checks for moves, baselines, data, …
geronica Nov 18, 2026
285b699
Fix code style in the feature-install test suite
geronica Nov 18, 2026
e3111ba
spryker-feature-install: texts the agent writes are listed for review…
geronica Nov 20, 2026
928a13d
Merge pull request #50 from spryker-sdk/feature/feature-install-engine
geronica Nov 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{
"name": "spryker-ai-dev-sdk",
"description": "Set of setup tools, skills and agents for Spryker project development.",
"version": "0.8.0",
"version": "0.10.0",
"author": {
"name": "Spryker Systems GmbH",
"email": "support@spryker.com"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ jobs:
- name: Rule sync script
run: bash tests/scripts/test-sync-rules.sh

- name: Feature install scripts
run: php tests/scripts/feature-install/feature-install.test.php

- name: Stop guard, under both harnesses
run: php plugins/spryker-ai-dev-sdk/hooks/hooks.test.php

Expand Down
2 changes: 1 addition & 1 deletion plugins/spryker-ai-dev-sdk/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spryker-ai-dev-sdk",
"version": "0.8.0",
"version": "0.10.0",
"description": "Set of setup tools, skills and agents for Spryker project development. Works with Claude Code and GitHub Copilot.",
"author": {
"name": "Spryker Systems GmbH",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ When a structured Spryker MCP tool can answer a question, **use it — do not**

| Tool | Use For |
|------|---------|
| `searchSprykerCapabilities` | **First call for "which module / feature does X?" questions.** Search the Spryker capability map (one card per shipped capability) by domain terms; returns ranked hits with the feature metapackage, install status computed from the project's `composer.lock`, and the card's "Extend, don't duplicate" line. Run several short queries (noun plus synonyms). |
| `getSprykerCapability` | The full capability card for a slug: modules with install status, extension points, data model, configuration, data flow, Install section, related cards. Open the top hits of the search. |
| `getSprykerModules` | Discover which modules belong to a feature |
| `getSprykerModuleMap` | Module structure: facades, plugins, factories, key classes |
| `getTransferStructureByName` | Transfer objects the feature uses |
Expand Down Expand Up @@ -90,7 +92,7 @@ Spryker transfer XMLs, schema XMLs, and config PHP files are small enough that `
## Approach

1. **Run the mandatory checklist** above. State its key outputs (applicable primitives, reinvention flags, scope confirmation) at the top of your answer.
2. **Identify the feature / problem class.** Use the `spryker-docs-research` skill to confirm the concept and scope. **For enumerating the modules involved, use `getSprykerModules` (reads project + vendor directly) — not docs.** Docs may list modules that aren't installed in this project. If MCP is unavailable, fall back to `composer.json` / `composer.lock` and direct inspection of `vendor/spryker/` and each project-namespace directory under `src/`. Docs are for *concepts*; project + vendor are for *what's actually here*.
2. **Identify the feature / problem class.** For "which module / feature does X", "does Spryker already do X" and "how do I build X" questions, **start with `searchSprykerCapabilities`** (then `getSprykerCapability` on the top hits) and follow the `find-existing-capability` skill's verdicts: a capability that ships is extended or installed (`spryker-feature-install`), and a hit counts toward the reinvention flags in the checklist above. A miss is not proof of absence; cross-check with docs and `getSprykerModules` before saying Spryker has no X. If the tools are not connected, `find-existing-capability` describes the web fallback. Then use the `spryker-docs-research` skill to confirm the concept and scope. **For enumerating the modules involved, use `getSprykerModules` (reads project + vendor directly) — not docs.** Docs may list modules that aren't installed in this project. If MCP is unavailable, fall back to `composer.json` / `composer.lock` and direct inspection of `vendor/spryker/` and each project-namespace directory under `src/`. Docs are for *concepts*; project + vendor are for *what's actually here*.
3. **Build the explanation at the depth the question requires.** Cover:
- What the feature does — capabilities, types, behaviour.
- Key concepts and terminology.
Expand Down
9 changes: 5 additions & 4 deletions plugins/spryker-ai-dev-sdk/agents/spryker-verifier.agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,17 @@ Then wait ~500ms for the stylesheet to re-fetch, then assert. Same applies to bu

`spryker-qa-coverage` covers permission-gated-failures-aren't-defects, picking the actor whose role matches, the reproduce-before-fail (≥3 loads) discipline for inert-button claims, and ruling out stale cache / the inert Zed-JS bootstrap race before failing. Apply all of that. The two points that bind *tighter* for an assertion-only gate:

- **Login failure is a credentials question, not a defect — report, don't debug.** If a login attempt fails (401, "invalid credentials", redirect back to login, role-mismatch), **stop and return BLOCKED** naming the account that failed and the credential needed. Do not try alternate emails/passwords, do not invoke `spryker-issue-diagnoser`, do not dig through logs. (`spryker-runtime` covers the DB lookup for real accounts; if that still doesn't authenticate, return BLOCKED.)
- **Login failure is a credentials question, not a defect — report, don't debug.** If a login attempt fails (401, "invalid credentials", redirect back to login, role-mismatch), **stop and return BLOCKED** naming the account that failed and the credential needed. Do not try alternate emails/passwords, do not invoke `spryker-issue-diagnoser`, do not dig through logs. (`spryker-runtime` covers the DB lookup for real accounts; if that still doesn't authenticate, return BLOCKED.) One read-only check separates the two causes: compare the fixture password with the account's stored hash (`password_verify` against the `spy_customer` / `spy_user` row). No match → **BLOCKED (credentials)**, naming the credential needed. Match, yet the login still fails → **BLOCKED (environment: authentication)**: the account is right and the stack's login path is broken (in one trial, every fixture customer got a Glue 401 although the hashes matched and the OAuth table had never issued a token). Say so under `## Environment caveats` and recommend `spryker-issue-diagnoser` to the caller instead of failing feature criteria.
- **A permission-gated denial maps to a verdict, not a FAIL.** When an action fails because the test user's role lacks the required permission plugin, that's expected behavior — mark **BLOCKED** (naming the missing permission) or switch to a user who has it. Never mark the AC FAIL or escalate to `spryker-issue-diagnoser` for a defect that doesn't exist.

## Running in the browser

**Drive the local shop through a browser-automation MCP server**, not a built-in browser pane that prompts the person for each action on a local host. The `spryker-runtime` skill's **Browser tool map** gives the tool name for each capability under Claude in Chrome and under Playwright MCP.

- **Seeded credentials are test fixtures, and logging in with them is part of your task.** They
live in the repository (the customer rows and the installer user config); read the account you need and
use it. Never guess a password, and do not report a login-gated criterion as unverifiable: the executor
live in the repository (the customer rows, the installer user config, and the E2E fixtures under
`tests/cypress-tests/cypress/fixtures/**`, which carry the customer emails and a shared `defaultPassword`);
read the account you need and use it. Never print a password in the report; name the fixture file instead. Never guess a password, and do not report a login-gated criterion as unverifiable: the executor
that spawned you does not log in, so the login is yours to perform. When your prompt says the browser is
already logged in as the user you need, confirm it on the first page and skip the login; if it is not,
log in yourself.
Expand Down Expand Up @@ -89,7 +90,7 @@ For each AC:

1. **Restate the AC in your own words.** If compound (*"X happens AND Y happens AND Z happens"*), enumerate each part separately. **Every part is verified individually** — a PASS verdict requires all parts asserted, not a subset.
2. **Decompose into observable assertions; pick the right surface(s)** (UI / API / DB / Console — `spryker-qa-coverage` chooses the lightest mode that genuinely proves each and tags the execution layer; for a user-facing AC that means the real UI path, not a cheaper endpoint hit). Each part of the AC must have at least one assertion targeting it directly — not a related-but-different one. *"The page loaded without errors"* does not substitute for *"the new badge displayed the value X"*.
3. **Confirm preconditions** (logged-in user with the right role, target entity exists). If a precondition isn't met, mark **BLOCKED** (noting the missing precondition) and stop — do not seed data yourself.
3. **Confirm preconditions** (logged-in user with the right role, target entity exists). If a precondition isn't met, mark **BLOCKED** (noting the missing precondition) and stop — do not seed data yourself. **Authenticate once before the first AC, per surface the ACs use:** one storefront login, one Glue `access-tokens` request, one Back Office login. A failure there blocks every AC on that surface: return early with the cause (credentials or environment, see the login rule above) instead of running each AC into the same wall.
4. **Execute assertions adversarially — try to fail the AC.** For each assertion ask: *"What's the most realistic way this could be broken? If it were broken, would my current assertion catch it?"* If it can't distinguish broken from working (e.g. you're only asserting absence-of-errors), strengthen it.
5. **Capture concrete evidence per assertion** — actual values, screenshots or GIFs (use `spryker-runtime`'s capture flow; where GIF recording is unavailable, a numbered screenshot per step), actual DB rows. *"It looked right"* is not evidence. Evidence must be reproducible by a third party.
6. **Verdict per AC** — use `spryker-qa-coverage`'s status vocabulary so the report is unified:
Expand Down
2 changes: 2 additions & 0 deletions plugins/spryker-ai-dev-sdk/skills/demo-intake/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ work and add customization files that were not requested. A brief that spans cla
before anything starts; the adjacent class is never done silently (work-classes.md, "when one request spans
several classes").

When unsure whether the platform already offers a briefing item (*already works* versus customization), the capability map answers it: `find-existing-capability` maps a requirement to what Spryker ships and what the project has installed. Intake itself stays read-only; name the item as a question for the owner skill rather than running that search here.

## 3. Source fidelity — a gap is reported, never closed

Attributes, prices, copy and imagery come from the **source** (the supplied export, the customer's site).
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# find-existing-capability

The **reuse gate** for Spryker feature work: before anything new is designed or built, find out whether Spryker already ships it, and whether the project already has it.

Agents in Spryker projects tend to build a new module for something a package already provides. Searching `vendor/` only finds what is installed and what you already suspect. This skill searches the **capability map** instead - 590 cards, one per shipped Spryker capability - and reads the project's `composer.lock` to say what is installed, partly installed or missing.

It is report-only. It recommends; it never installs or edits anything.

## When it triggers

At the start of any feature work in a Spryker project: "build / add / implement X", "we need a system for X", "new module for X", scoping a PRD, "is there something in Spryker for X", "extend X", and when a customer requirement list or briefing has to be mapped to what Spryker offers. It is not for changing one already-identified behaviour (that is `spryker-customization` or `spryker-bugfix`).

## Flow schema

```mermaid
flowchart TD
A([Feature request / requirement list]) --> B["1 - Capability nouns + synonyms<br/>3-6 short queries per requirement"]
B --> C["2 - searchSprykerCapabilities<br/>one call per query, merge by slug"]
C --> T{"Tool available?"}
T -- "no" --> T0{"Server registered?"}
T0 -- "no" --> T2["Say so once, point to ai-dev-setup Step 3<br/>run scripts/capability-search.php<br/>(weaker ranking, say so)"] --> D
T0 -- "yes, not connected" --> T1["Start server, ask for an MCP reload<br/>after two failures: the same script<br/>PHP or network fails: INDEX.md + card"] --> D
T -- "yes" --> D["3 - getSprykerCapability<br/>on the top hits<br/>read What it does, Extend don't duplicate,<br/>Extension points, Install, Related cards"]
D --> V{"4 - Verdict per hit"}
V -- "installed" --> V1["Extend it<br/>extension points + getSprykerModuleMap<br/>then spryker-customization"]
V -- "partially_installed" --> V2["Install the missing part<br/>API packages only if that API is exposed<br/>then spryker-feature-install"]
V -- "not_installed" --> V3["Install the feature, then extend<br/>name + docs guide + composer line<br/>then spryker-feature-install"]
V -- "card status partial" --> V4["Build only the gap<br/>the card says what is missing"]
V -- "no relevant hit" --> V5["Cross-check: docs search,<br/>getSprykerModules, project grep<br/>then building new is allowed"]
V1 --> R
V2 --> R
V3 --> R
V4 --> R
V5 --> R(["5 - Verdict table + Reuse decision block<br/>user decides"])
```

## Tools

Matched by tool name (server names are install-specific): `searchSprykerCapabilities`, `getSprykerCapability`, `getSprykerModuleMap`, `getSprykerModules`, `searchAlgoliaDocumentation`. Without the MCP server the skill first checks whether the server is registered at all (`.mcp.json`, `.vscode/mcp.json`, the harness's list); if not, it points to `ai-dev-setup` Step 3 once and skips the start-and-reload loop. The fallback is the bundled `scripts/capability-search.php`, which reads the published `index.json` (cached 24 h; `--index` or `CAPABILITY_MAP_INDEX_URL` for a mirror or a local file), searches it and prints the same fields as the tool, with `installStatus` computed from `composer.lock`; its ranking is simpler than the tool's. Only when PHP or the network fails does it fetch `INDEX.md` and `<slug>.md` from `https://spryker-capability-map.s3.eu-central-1.amazonaws.com/` and compare the card's packages to `composer.lock` by hand.

## Output

A verdict table (requirement, capability and card, verdict, next step) and one **Reuse decision** block per capability: capability, verdict, evidence, "may already cover this" (an installed card matching through its title or synonyms, e.g. `shopping-list` for a wishlist request), existing project wiring (plugins, routes, widgets already tied to the card's modules), next step, and the card link `https://spryker-capability-map.s3.eu-central-1.amazonaws.com/<slug>.md`.

## Design decisions baked in

- **Reuse before build.** A shipped capability is extended or installed, not rebuilt; a PRD for it reads "configure / extend / install X".
- **A miss is not proof of absence.** A map miss triggers a docs search, a module check and a project grep; "Spryker has no X" is never claimed from the map alone.
- **Cards describe the latest release.** On an older project, the installed code is checked before a card detail is relied on, and `spryker-upgrade` is suggested when the project is behind.
- **Report-only.** Installing is `spryker-feature-install`, building is `spryker-customization`, and the user chooses.
Loading
Loading