ios-commit
Skill1 starsChanged 14 days agoMITView on GitHub
Finalizes the permanent audit record for an ACTUAL Git commit, immediately after `git commit` succeeds. Matches the just-made commit against ios-precommit's pending review by content fingerprint (not by "latest review" assumption), then writes exactly one compact, machine-readable record. This is NOT a second code review — invoke explicitly with /ios-commit right after a successful commit, per project CLAUDE.md's mandatory commit workflow.
- Commits and pushes
In this repository37 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ios-accessibility-auditSkill
- ios-api-contract-migrationSkill
- ios-api-endpointSkill
- ios-app-intents-siriSkill
- ios-bug-triageSkill
- ios-build-configurationSkill
- ios-cloudkit-syncSkill
- ios-combine-patternsSkill
- ios-commit-and-prSkill
- ios-concurrency-auditSkill
- ios-coreml-apple-intelligenceSkill
- ios-deep-linkingSkill
- ios-dependency-assessmentSkill
- ios-design-fixSkill
- ios-feature-moduleSkill
- ios-knowledge-baseSkill
- ios-latest-os-adoptionSkill
- ios-localizationSkill
- ios-offline-writeSkill
- ios-performance-tuningSkill
- ios-port-from-androidSkill
- ios-port-to-androidSkill
- ios-precommitSkill
- ios-privacy-complianceSkill
- ios-push-and-background-tasksSkill
- ios-refactorSkill
- ios-release-prepSkill
- ios-sdk-upgradeSkill
- ios-secure-reviewSkill
- ios-storekit-subscriptionsSkill
- ios-swift6-concurrency-migrationSkill
- ios-swiftdataSkill
- ios-swift-testing-migrationSkill
- ios-swiftui-screenSkill
- ios-unit-testsSkill
- ios-widgetkit-live-activitiesSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 5 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Do not confuse this with ios-precommit (pre-commit diff review) or ios-code-review (separate CTO/project-level assessment skill — …
- Distinctive: line 21
Only when Claude Code, following project CLAUDE.md's Git workflow, has just executed git commit on the developer's behalf inside this …
- Very specific: line 34
Does not review code, style, security, or architecture — that already happened (or didn't) in ios-precommit.
- Distinctive: line 36
Does not modify application source code.
- Distinctive: line 37
Does not run git commit, git push, or any state-changing Git command itself — the commit it finalizes has already happened before this …
- Very specific: line 40
Does not install, modify, or reference .git/hooks/.
- Very specific: line 41
Does not weaken, bypass, or reinterpret .claude/settings.json permissions.
- Distinctive: line 42
Does not create dashboards, rankings, trends, or any cross-developer comparison.
- Very specific: line 44
Does not invent or guess a review outcome when no matching review exists — that case is NOT_REVIEWED, recorded plainly.
- Very specific: line 56
If it's absent → NOT_REVIEWED.
- Very specific: line 57
If present, recompute the actual commit's fingerprint over the pending record's own files list and compare to the pending record's …
- Distinctive: line 66
Write exactly one line to the permanent record (schema and location in references/audit-format.md).
- Very specific: line 83
Never fabricate, backfill, or guess a fingerprint match.
- Very specific: line 86
Never store full review text, source-code snippets, diffs, secrets, tokens, credentials, or unnecessary personal information — see …
≈ “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
ios-commit
Closes the loop that ios-precommit opens. ios-precommit reviews
proposed changes and writes a temporary pending record. This skill
runs after git commit has actually succeeded, decides whether that
commit corresponds to a reviewed state, and writes the one permanent
record for that commit. It never reviews code itself.
Do not confuse this with ios-precommit (pre-commit diff review) or
ios-code-review (separate CTO/project-level assessment skill — unrelated,
not read or written by this skill).
When this runs
Only when Claude Code, following project CLAUDE.md's Git workflow, has
just executed git commit on the developer's behalf inside this
conversation. Never run this speculatively, never run it before a commit
exists, and never run it for a commit made outside this session (that case
is exactly what produces NOT_REVIEWED — see below, not something to work
around).
This skill does not install or rely on any Git hook. It is only ever triggered by an explicit invocation immediately following a commit Claude Code itself performed.
What this skill does NOT do
- Does not review code, style, security, or architecture — that already
happened (or didn't) in
ios-precommit. - Does not modify application source code.
- Does not run
git commit,git push, or any state-changing Git command itself — the commit it finalizes has already happened before this skill is invoked. - Does not install, modify, or reference
.git/hooks/. - Does not weaken, bypass, or reinterpret
.claude/settings.jsonpermissions. - Does not create dashboards, rankings, trends, or any cross-developer comparison. The permanent log is an audit trail, not a scorecard.
- Does not invent or guess a review outcome when no matching review exists
— that case is
NOT_REVIEWED, recorded plainly.
Procedure
Full mechanics are in references/workflow.md — follow it exactly, in order. Summary:
- Identify the actual latest commit: SHA, branch, author, changed files,
diffstat — all read from Git itself (
git log -1,git diff-tree, etc.), never assumed or inferred. - Look for
.git/ios-precommit/pending-review.json. - If it's absent →
NOT_REVIEWED. - If present, recompute the actual commit's fingerprint over the pending
record's own
fileslist and compare to the pending record'sfingerprint:- Match → finalize using the pending record's severity counts and status.
- Mismatch (different file set, or same files but different content —
i.e. the developer changed something after the review ran) →
REVIEW_MISMATCH. Never carry the mismatched severity counts into the permanent record.
- Write exactly one line to the permanent record (schema and location in references/audit-format.md).
- Clear/delete
pending-review.jsonso it can never be matched against a later commit. - Report the outcome to the developer in a few lines — status, commit SHA,
short summary. Do not reproduce a full review report here; that already
happened in
ios-precommit.
Hard rules
- One commit → at most one permanent record. Never write more than one line per commit SHA.
- A precommit review that was never followed by a commit produces no
permanent record, ever — see
references/workflow.mdfor why intermediate review attempts (a developer iterating through several/ios-precommitruns before actually committing) must never each become a permanent event. - Never fabricate, backfill, or guess a fingerprint match. If verification
is inconclusive, prefer
REVIEW_MISMATCH/NOT_REVIEWEDover a falseREADY_TO_COMMIT-style finalization. - Never store full review text, source-code snippets, diffs, secrets,
tokens, credentials, or unnecessary personal information — see
references/audit-format.md's exact prohibited-fields list. - This skill's own I/O is confined to
.git/ios-precommit/pending-review.json(read + delete) and the permanent record location (append-only). It does not read or write application source files.
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.

