Sf app architect code review
Skill msrivastav13/sf-app-architect/skills/sf-app-architect-code-review
Review a metadata-driven project diff from a fixed point along two independent axes—Platform standards and release safety, plus spec fidelity—inventorying metadata impact, test/validation evidence, package boundaries, security, data, activation, and destructive-change risk. Use when invoked by sf-app-architect-implement before commit, or when the user asks for a Salesforce release-safety or spec-fidelity review of a diff.From its SKILL.md
npx -y skills add msrivastav13/sf-app-architect --skill sf-app-architect-code-reviewAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
4.2 KB, as published. Nobody here has run it
SF App Architect Code Review
Review the diff between HEAD and a fixed point before commit.
Run two independent reviews:
- Platform standards and release safety
- Spec fidelity
Read PLATFORM-REVIEW-BASELINE.md for the first axis. Repository standards and ADRs override general heuristics when they are explicit.
Process
1. Pin the fixed point
Use the user- or implementation-supplied commit, branch, tag, or merge base.
Confirm:
git rev-parse <fixed-point>
git diff <fixed-point>...HEAD
git log <fixed-point>..HEAD --oneline
Fail early on an invalid ref or empty diff.
Completion criterion: one immutable comparison point and one non-empty review diff are established.
2. Identify the delivery source
Find the parent spec and implementation ticket in this order:
- references in commits or branch metadata;
- references supplied by implementation;
- matching tracker issue or spec file;
- completed Route Map map when the ticket links it.
If no spec exists, report that the Spec axis is unavailable. Do not invent requirements.
Completion criterion: the review can quote or point to each acceptance criterion it evaluates, or explicitly state that no spec is available.
3. Build the platform change inventory
Translate the file diff into metadata and release impact:
<MetadataType>:<fullName>;- package directory and namespace;
- aggregate/container metadata;
- manifest or package-version impact;
- deleted, renamed, or replaced components;
- permission/sharing/assignment impact;
- data/configuration/credential impact;
- activation/scheduling/post-deploy steps;
- tests and validation evidence.
Inspect .forceignore, project API version, destructive manifests, and generated serialization churn.
Completion criterion: every changed file is accounted for as intended source, local-only test/tooling, generated artifact, or unrelated change.
4. Run both axes independently
Do not let conclusions from one axis suppress the other.
Standards and release safety
Apply repository standards, ADRs, project-native tooling results, and every relevant section of the platform review baseline.
Spec fidelity
For every grill-ledger decision ID, user story, decision, acceptance criterion, and out-of-scope boundary:
- identify implementing metadata/code;
- identify test or validation evidence;
- identify omissions, contradictions, and scope creep;
- distinguish “implemented” from “requires release-time operation.”
Completion criterion: each applicable rule and each spec criterion has been considered, not sampled.
5. Report findings
Use separate sections:
## Platform standards and release safety
### Blocking
- ...
### Important
- ...
### Advisory
- ...
### Summary
...
## Spec fidelity
### Blocking
- ...
### Important
- ...
### Advisory
- ...
### Summary
...
Each finding includes:
- location or metadata identity;
- evidence;
- consequence;
- smallest safe correction;
- rule, ADR, or spec source.
Do not produce one blended pass/fail score.
6. Hand back to implementation
sf-app-architect-implement resolves blocking findings, reruns affected narrow tests and validation, and re-invokes review when the correction materially changes the diff.
Completion criterion: no unresolved blocking finding remains before commit, or the implementation stops and reports why it cannot safely commit.
License and lineage
Original modifications and additions in this file are licensed under Apache License 2.0. Portions are adapted from Matt Pocock's MIT-licensed Skills for Real Engineers project and have been substantially modified for Salesforce app development. See the repository root LICENSE, NOTICE, LICENSES/MIT-Matt-Pocock.txt, and THIRD_PARTY_NOTICES.md.