Loading...
Loading...
Final gate of the Flows app certification flow for external submission. Verifies that flows-app-brief, flows-code-review, and flows-design-review have all been run and are in a passing state (App-Brief.md complete, 0 Must Fix in latest code review, design average ≥ 3.8), then runs `npx @cognite/cli apps submit` to zip the repo and pre-populate the submission form. Use when the user asks to submit a Flows app for certification, run flows-external-app-submit, or finalize an app for external review.
npx skill4agent add cognitedata/builder-skills flows-external-app-submitflows-app-brief → build → flows-code-review → flows-design-review → flows-external-app-submit (this skill)App-Brief.mdreviews/code-review/feedback-round-<N>/code-review-report.mdMust Fix open: 0reviews/design-review/feedback-round-<N>/design-review-report.mdAverage score: X.Xapps submitgit archive HEAD.cognite-bundles/App-Brief.mdgit ls-filesgit ls-files 'reviews/code-review/' | grep -q 'code-review-report.md' && echo code_present || echo code_missing
git ls-files 'reviews/design-review/' | grep -q 'design-review-report.md' && echo design_present || echo design_missingApp-Brief.mdflows-app-briefAskQuestion"Review artifacts missing: <list which>. Choose:
- Run real reviews — exit here; user runs
/flows-code-reviewfirst (~20 min each). Recommended for first-time submissions.flows-design-review- Quick submit (stubs) — write SKIPPED stub reports for the missing reviews. The Cognite certification reviewer will see the SKIPPED status and request real reviews before approval, but you can submit now.
- Cancel — stop without doing anything."
flows-code-reviewflows-design-reviewreviews/code-review/feedback-round-0/code-review-report.mdreviews/design-review/feedback-round-0/design-review-report.mdfeedback-round-1sort -V | tail -1"Stub reports written. Commit them along with, then re-run this skill:App-Brief.mdgit add App-Brief.md reviews/ git commit -m 'chore: certification artifacts (reviews skipped)'"
test -f App-Brief.mdflows-app-brief------appNamecustomertierowneruserRolecurrentProblemoneSentenceStorysuccessCriteriauserEvidenceflows-app-briefuserCountbusinessValuemilestonesrepoUrlgit ls-files 'reviews/code-review/' | grep 'code-review-report.md' | sort -V | tail -1flows-code-reviewcode-review-report.md^- Status: SKIPPED$^- Must Fix open: (\d+)$0code-review-report.mdflows-code-reviewMust Fix open: 0flows-code-reviewgit ls-files 'reviews/design-review/' | grep 'design-review-report.md' | sort -V | tail -1flows-design-reviewdesign-review-report.md^- Status: SKIPPED$^- Average score: (\d+(?:\.\d+)?)$flows-design-reviewapps submitgit archive HEADgit ls-files --error-unmatch App-Brief.md 2>/dev/null
git ls-files --error-unmatch "<latest-code-review-report-path>" 2>/dev/null
git ls-files --error-unmatch "<latest-design-review-report-path>" 2>/dev/null"The following certification files are not committed to git.usesapps submitand will silently omit them from the source archive — the reviewer will not see them.\n\nPlease run:\n git add <missing files>\n git commit -m 'chore: add certification artifacts'\n\nThen re-run this skill."git archive HEAD
"You have uncommitted changes outside the certification artifacts.usesapps submit— those changes will not appear in the submitted source archive. If they should be part of certification, commit them first."git archive HEAD
ls .cognite-bundles/*.zip 2>/dev/null | head -1.cognite-bundles/npx @cognite/cli apps deploybundle=$(ls -1t .cognite-bundles/*.zip 2>/dev/null | head -1)
if [ -n "$bundle" ]; then
bundle_mtime=$(stat -f %m "$bundle" 2>/dev/null || stat -c %Y "$bundle")
head_time=$(git log -1 --format=%ct HEAD)
if [ "$bundle_mtime" -lt "$head_time" ]; then
echo "WARN"
fi
fi"The deploy bundle inis older than the current HEAD commit. The certification reviewer compares the deployed bundle against the submitted source — if you committed changes after your last deploy, they won't match. Re-run.cognite-bundles/before submitting. (npx @cognite/cli apps deployalone does not refresh the bundle — onlynpm run builddoes.)"apps deploy
Check Result
----- ------
App-Brief.md complete PASS / FAIL — reason
Code review Must Fix open: 0 PASS / FAIL / SKIPPED — reason
Design review average ≥ 3.8 PASS / FAIL / SKIPPED — reason
Certification artifacts committed PASS / FAIL — reason
Deploy bundle present and current PASS / WARN — reasonSKIPPEDSKIPPED — user opted out via Step 0 air-hatchSKIPPED"WARNING — the following reviews are SKIPPED: <list>. The Cognite certification reviewer will see the SKIPPED status in the submitted reports and will request a real review before approval. Proceed with submit anyway?"
"All certification checks passed. Runnow? This will zip the repo and pre-populate the Zendesk submission form."npx @cognite/cli apps submit
yesnpx @cognite/cli@latest apps submitapps submitBashprocess.stdout.isTTY === falseThe CLI ran non-interactively so it didn't open the browser or file manager. To finish:
- Open the Zendesk URL from the CLI output above. The URL requires a sign-in on
— create an account there if you don't have one, then revisit the link.support.cognite.com- Open
in your file manager and drop in a short screen recording of the certified user journey.dist/submit/- Attach every file in
(source archive, deploy bundle, screen recording) to the Zendesk ticket.dist/submit/- Push your commits if the branch is ahead of origin.
git status --short --branchreviews/code-review/feedback-round-0/code-review-report.md# Code Review Report — Round 0
**Status: SKIPPED** — user opted out of `flows-code-review` at submit time.
The Cognite certification reviewer will see this SKIPPED status and request a real `flows-code-review` run before approval. Re-run `flows-code-review` to replace this stub with a real round.
## Summary
- Status: SKIPPED
- Must Fix open: 0
- Should Fix open: 0
- Nit open: 0reviews/design-review/feedback-round-0/design-review-report.md# Design Review Report — Round 0
**Status: SKIPPED** — user opted out of `flows-design-review` walkthrough at submit time.
The Cognite certification reviewer will see this SKIPPED status and request a real `flows-design-review` walkthrough before approval. Re-run `flows-design-review` to replace this stub with a real round.
## Summary
- Status: SKIPPED
- Average score: N/A