agentleFS
muon-m2muon-m2/magento2-tools/skills/marketplace/SKILL.md

marketplace

Skill4 starsChanged 58 days agoMITView on GitHub

Assess an existing module's readiness for Adobe Commerce Marketplace / EQP submission and emit a tiered, scored readiness report. This is a read-only audit skill — it never modifies code, never packages or uploads anything. Submission remains the vendor's manual step. - READ-ONLY. Never modifies source files, never runs composer archive, never uploads. All checks are purely file-inspection or non-mutating CLI probes. - REUSE EQP static rules. Phase 2 delegates EQP coding-standard checks to security's EQP scan rather than duplicating…

7 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    READ-ONLY: Never modifies source files, never runs composer archive, never uploads.

    line 21
  2. Distinctive:

    All checks are purely file-inspection or non-mutating CLI probes.

    line 22
  3. Distinctive:

    Tiered findings: Every finding is classified as one of:

    line 26
  4. Distinctive:

    Run two complementary checks:

    line 51
  5. Very specific:

    Default: auto — agents when the plugin's context-budget hook reports this conversation above its threshold, inline otherwise.

    line 113
  6. Very specific:

    Use the shared five-point scale (context/references/severity.md).

    line 171
  7. Distinctive:

    Every finding carries file evidence and a concrete fix recommendation.

    line 184

“Common” is measured: kept by at least 6 in 10 of the 7 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Magento 2 Marketplace Prep

Assess an existing module's readiness for Adobe Commerce Marketplace / EQP submission and emit a tiered, scored readiness report. This is a read-only audit skill — it never modifies code, never packages or uploads anything. Submission remains the vendor's manual step.

Core Rules

  • READ-ONLY. Never modifies source files, never runs composer archive, never uploads. All checks are purely file-inspection or non-mutating CLI probes.
  • REUSE EQP static rules. Phase 2 delegates EQP coding-standard checks to security's EQP scan rather than duplicating its rule list. See references/eqp-checklist.md for the cross-reference.
  • Tiered findings. Every finding is classified as one of:
    • blocker — must-fix to pass EQP; maps to critical or high on the shared severity scale.
    • warning — Marketplace convention; strongly recommended; maps to medium.
    • info — best-practice advice; maps to low or info. See references/readiness-scoring.md and context/references/severity.md.
  • Readiness score. A 0–100 score is computed from weighted findings. A PASS verdict requires 0 blockers. See references/readiness-scoring.md.
  • Honest gaps. A missing tool or file is reported as a finding; it is never invented as present.

Workflow

Phase 0 — Context Resolution

Invoke context. Capture {ctx}. Hard-stop if the target module directory does not exist.

Phase 1 — Scope

Identify the target module {Vendor}_{Module} and its path. If not supplied, infer from composer.json or the directory tree (first custom module found).

Phase 2 — Readiness Checks

Run two complementary checks:

  1. Marketplace-specific checks (${CLAUDE_SKILL_DIR}/scripts/check-readiness.sh). Covers: composer metadata completeness, LICENSE file, license headers in PHP files, registration.php + etc/module.xml presence and consistency, MFTF test presence, README / user-docs presence, packaging hygiene, and no dev version constraints. See references/eqp-checklist.md for the full checklist.
  2. EQP static rules — delegate to security's Phase 5 (the Magento coding-standard / EQP static pass). Do not re-implement EQP rules here; incorporate the security EQP findings into the combined findings list. If security is not available, skip this sub-check and record a scanner_errors entry.

Phase 3 — Report

Produce three deliverables:

  1. Markdown readiness report (LLM deliverable, NOT automated). Written as: {output_root}/marketplace/{Vendor}_{Module}-readiness-{date}.md (module scope; site scope: readiness-{scope}-{date}.md). Sections: module identity + summary, readiness score + verdict, blockers, warnings, info, EQP static summary, skipped checks / scanner errors, recommended next steps.
  2. JSON + SARIF (automated via ${CLAUDE_SKILL_DIR}/scripts/build-findings.sh). The automated basename uses the underscore module name (e.g. Acme_OrderExport → Acme_OrderExport-readiness-{date}):
    {output_root}/marketplace/{Vendor}_{Module}-readiness-{date}.json   # OUTPUT_KIND=marketplace
    {output_root}/marketplace/{Vendor}_{Module}-readiness-{date}.sarif
    The script aggregates findings from check-readiness.sh — plus the delegated security EQP findings when EQP_FINDINGS_FILE is provided (Phase 2.2) — and invokes the shared context/scripts/emit-findings.sh pipeline with OUTPUT_KIND=marketplace. Run build-findings.sh with DOCS_ROOT=<output_root> (the resolved --docs-root value, or .docs by default) so both artifacts land under {output_root}/marketplace/.

Marketplace-Specific Checks (check-readiness.sh)

CheckEQP tier
composer.json name matches {vendor}/{module-*} patternblocker
composer.json type: magento2-moduleblocker
composer.json version presentblocker
composer.json license presentblocker
composer.json require includes magento/frameworkblocker
composer.json require includes a PHP constraintblocker
composer.json PSR-4 autoload configuredblocker
No dev-/@dev/wildcard * version constraintsblocker
LICENSE file presentblocker
Copyright/license header present in PHP fileswarning
registration.php presentblocker
etc/module.xml presentblocker
Module name in registration.php matches etc/module.xmlblocker
MFTF tests present under Test/Mftf/warning
README / user documentation presentwarning
No dev artifacts committed (.DS_Store, node_modules/, etc.)warning
.gitignore presentinfo

Execution Mode

Default: auto — agents when the plugin's context-budget hook reports this conversation above its threshold, inline otherwise. In agents mode (--agents flag, or execution_mode in .claude/m2.json surfaced as {ctx.execution_mode} — selection contract in context/references/execution-modes.md) the judgement passes of this skill are dispatched to the read-only reviewer agent with a marketplace-readiness dimension brief, and this skill owns synthesis. The scripted scanners (scripts/build-findings.sh) are deterministic and run identically in both modes.

Reference Files

  • references/eqp-checklist.md — full EQP submission checklist (cross-references security/references/eqp-rules.md for static code rules).
  • references/readiness-scoring.md — tiering, severity mapping, score formula, verdict.
  • references/packaging.md — composer package structure, exclusions, validation.

Scripts

  • ${CLAUDE_SKILL_DIR}/scripts/check-readiness.sh — runs all marketplace-specific read-only checks and outputs a findings JSON array conforming to context/references/findings-schema.md.
  • ${CLAUDE_SKILL_DIR}/scripts/build-findings.sh — aggregates check-readiness output and emits via the shared context/scripts/emit-findings.sh pipeline (JSON + SARIF). OUTPUT_KIND=marketplace, SKILL_NAME=marketplace. The readiness score/verdict is injected by scripts/compute-readiness-score.sh (POST_JSON_HOOK).

Inputs

/marketplace [--module=<Vendor>_<Module>] [--format=markdown|json|sarif] [--docs-root=<path>]

Outputs

Module scope (basename uses the underscore module name, e.g. Acme_OrderExport):

{output_root}/marketplace/{Vendor}_{Module}-readiness-{date}.md     # LLM deliverable (Phase 3)
{output_root}/marketplace/{Vendor}_{Module}-readiness-{date}.json   # automated (build-findings.sh)
{output_root}/marketplace/{Vendor}_{Module}-readiness-{date}.sarif  # automated (build-findings.sh)

Site scope:

{output_root}/marketplace/readiness-{scope}-{date}.md
{output_root}/marketplace/readiness-{scope}-{date}.json
{output_root}/marketplace/readiness-{scope}-{date}.sarif

{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>/marketplace/; otherwise they default to {ctx.docs_root}/marketplace/. Orchestrators such as feature pass this to collect a run's artifacts under one folder.

Severity Calibration

Use the shared five-point scale (context/references/severity.md). The EQP tier → severity mapping is:

  • blocker → critical (blocks EQP pass) or high (likely blocks)
  • warning → medium
  • info → low or info

See references/readiness-scoring.md for the per-check mapping.

Acceptance Criteria

  • 0 blockers → PASS verdict. Any blocker → FAIL with blockers listed first.
  • Readiness score emitted in the JSON document as readiness_score (0–100) and in the Markdown summary.
  • Every finding carries file evidence and a concrete fix recommendation.
  • scanner_errors accurately reflects any skipped sub-check.

Related Skills

ConcernSkill
Deep CVE / secret / EQP static scansecurity
Version bump, changelog, tag, publishrelease
Context resolution (Phase 0)context
Generate MFTF / API tests (if gaps found)test-generate

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.