flows-code-review
Skill6 starsChanged 8 days agoApache-2.0View on GitHub
Run the technical (code) review step of Flows app certification in a local git app. Loads flows-review-checks for the actual bar, then writes artifacts under reviews/code-review/feedback-round-<N>/. Use when the user asks for a Flows code review, technical review, pre-submit review, app certification code review, or "run flows-code-review". Re-run until 0 open Must Fix items remain before moving on to flows-design-review.
In this repository34 other files it gives its agents.
- aura-reviewSkill
- call-cognite-functionSkill
- code-qualitySkill
- connect-atlas-mcpSkill
- correctness-and-error-handlingSkill
- create-agentSkill
- create-client-toolSkill
- dependencies-auditSkill
- designSkill
- dm-graph-traversalSkill
- dm-limits-and-best-practicesSkill
- flows-app-briefSkill
- flows-design-reviewSkill
- flows-external-app-submitSkill
- flows-review-checksSkill
- graph-viewerSkill
- handle-startup-stateSkill
- hide-show-shellSkill
- integrate-atlas-chatSkill
- integrate-file-viewerSkill
- integrate-fusion-agentSkill
- integrate-todo-listSkill
- migrate-app-to-flowsSkill
- performanceSkill
- pull-changes-resolve-conflictsSkill
- reveal-3dSkill
- securitySkill
- setup-flows-authSkill
- setup-python-toolsSkill
- skill-creatorSkill
- start-flows-appSkill
- test-coverageSkill
- tygenSkill
- use-topbarSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
Checks and scoring live in
flows-review-checks: Do not copy them here. Do not score from memory. - Very specific: line 29
If App-Brief.md is missing at repo root, warn that flows-app-brief should be run first, but continue
- Very specific: line 37
Every review run must start by taking flows-review-checks and code-quality from cognitedata/builder-skills.
- Distinctive: line 48
If the CLI pull fails, get the same two files from main:
- Very specific: line 93
Use exactly those labels. When all Must Fix items are resolved: Must Fix open: 0.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Flows Code Review
This skill is the local runner for the technical review step:
flows-app-brief → build → flows-code-review (this skill, repeat until clean) → flows-design-review → flows-external-app-submitChecks and scoring live in flows-review-checks. Do not copy them here. Do not score from memory. Do not substitute test-coverage or other fix skills for the review bar.
This file only decides: git/app-brief pre-checks, feedback-round folder, that the working directory is the app root, where to write files, and the submitter Summary block.
Pre-checks
package.jsonexists- We are inside a git repository (
git rev-parse --git-dir) - If
App-Brief.mdis missing at repo root, warn thatflows-app-briefshould be run first, but continue
Feedback round: look at reviews/code-review/. If it doesn't exist, use feedback-round-1/. Otherwise the next missing round number.
Working directory for all review commands: repo root (the app).
Step 1 — Pull latest checks from cognitedata/builder-skills, then run them
Every review run must start by taking flows-review-checks and code-quality from cognitedata/builder-skills. Do not score from whatever is already in the app’s skills/ folder.
If this workspace already is builder-skills (git remote contains cognitedata/builder-skills): you are in that repo — Read local skills/flows-review-checks/SKILL.md (it loads local code-quality).
Otherwise (reviewing an app): pull those two skills from this repo, then read them:
npx @cognite/cli@latest apps skills pull --skill flows-review-checks
npx @cognite/cli@latest apps skills pull --skill code-qualityIf the CLI pull fails, get the same two files from main:
curl -fsSL https://raw.githubusercontent.com/cognitedata/builder-skills/main/skills/flows-review-checks/SKILL.md
curl -fsSL https://raw.githubusercontent.com/cognitedata/builder-skills/main/skills/code-quality/SKILL.mdThen Glob '**/skills/flows-review-checks/SKILL.md' and Read the first match (after a successful pull, that is the copy you just fetched). Follow it completely: hunt (including code-quality searches — do not apply its fixes), packages, coverage, scores, categorization, shared verify.
Step 2 — Write artifacts here
Round dir: reviews/code-review/feedback-round-<N>/
| Shared output | Filename here |
| File inventory | review-files.md |
| Hunt + must/should/nice | review-findings.md |
| Package audit | review-packages.md |
| Scored report | code-review-report.md |
code-review-report.md must include everything flows-review-checks requires (checks performed, coverage scope, scores 1.1 and 1.3–1.6, 2.1–2.6, 3.1, must/should/nice with _Impact:_ on Must Fix), plus:
# [App name] — Flows code review
This document is the platform review for [App name], conducted as part of the Cognite Flows app certification process.
## Path to approval
This review found **[N] must-fix item(s)** that block approval. Once the must-fix items are addressed, re-run `flows-code-review`.
### Reviewed commit
`<full SHA>`End code-review-report.md with this block (required by flows-external-app-submit):
## Summary
- Must Fix open: <integer>
- Should Fix open: <integer>
- Nice Fix open: <integer>Use exactly those labels. When all Must Fix items are resolved: Must Fix open: 0.
Step 3 — Runner verify
After flows-review-checks Step 6:
- The four files above exist in this round’s folder.
- This run pulled (or, in
builder-skills, already had) currentflows-review-checksandcode-qualityfromcognitedata/builder-skillsbefore scoring. - Print:
Must Fix open: <n>
Should Fix open: <n>
Nice Fix open: <n>When to stop
Re-run this skill until Must Fix open: 0 in the latest round’s code-review-report.md. Only then proceed to flows-design-review.
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
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.

