Add App Doctor scan command - #8429
Draft
jplhomer wants to merge 1 commit into
Draft
Conversation
Contributor
Author
|
/snapit |
Contributor
|
🫰✨ Thanks @jplhomer! Your snapshot has been published to npm. Test the snapshot by installing your package globally: pnpm i -g --@shopify:registry=https://registry.npmjs.org @shopify/cli@0.0.0-snapshot-20260828224943Caution After installing, validate the version by running |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Shopify app developers need a Shopify-specific security review workflow that combines deterministic checks with structured prompts for deeper review by their coding agent.
Solution
Add
shopify app doctor scandirectly to Shopify CLI.The command:
app-doctor-review.jsonwith 16 versioned semantic checks;app-doctor-trace.json;--findings <file>to validate agent findings and compile them into the local trace;The engine lives inside
@shopify/app; it is not a separate package or runtime dependency. Semantic prompts are embedded in the CLI bundle while adjacent Markdown remains their source of truth.shopify app doctor submitis deliberately not implemented here. That command is reserved for future authenticated upload to Shopify.Risk
This adds a substantial local scanner and a new trace schema. Findings are informative, and trace v1 is explicitly unsigned. Static analysis cannot prove an app secure; skipped files and incomplete coverage are recorded rather than treated as clean.
The command does not reuse the unrelated
DoctorSuiterelease-test harness.Top-hatting
Run a scan:
After completing the generated review pack:
Verification
commands --treesnapshot passes and exposesapp doctor scan.