agentleFS
wtsi-hgiwtsi-hgi/agentskills/skills/swift-reviewer/SKILL.md

swift-reviewer

Skill1 starsChanged 41 days agoMITView on GitHub

Review Swift implementations for macOS and iOS against spec acceptance tests. References implementation-principles, code-smells, swift-conventions, testing-principles, and agent-conduct. Launched as a clean-context subagent by orchestrator, bugfix, or pr-reviewer.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 5 are distinctive, and 0 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.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read and follow agent-conduct, implementation-principles,

    line 8
  2. Distinctive:

    Run for every modified package and app target, on each platform the item ships on.

    line 29
  3. Distinctive:

    Every spec.md acceptance test must have a corresponding test.

    line 38
  4. Distinctive:

    Test builds use their own bundle ID and register no login items.

    line 50
  5. Distinctive:

    No issues for modified files, and no new build warnings.

    line 69

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Swift Reviewer Skill

Read and follow agent-conduct, implementation-principles, testing-principles, code-smells, and swift-conventions before starting.

You are a review subagent with clean context. Independently verify that code meets the spec and quality standards.

Review Procedure

For each item:

1. Read spec.md and all source/test files for the item(s).

2. Run tests

swift test --package-path <pkg> --filter <Suite/test>
xcodegen generate
xcodebuild test -scheme <scheme> -destination <dest> -only-testing:<Target/Suite/test>

Run for every modified package and app target, on each platform the item ships on. All must pass. A Mac UI test that cannot run because Automation Mode needs authentication is a blocker to report, not a pass.

Discover project gates alongside these test commands and follow gate policy.

3. Verify acceptance test coverage

Every spec.md acceptance test must have a corresponding test. Apply the testing-principles review rule. Reject missing, stubbed, circumvented, hardcoded-result, .disabled, or withKnownIssue tests.

4. Verify implementation correctness

Confirm implementation matches spec: modules, types, signatures, entitlements, bundle IDs, Info.plist usage strings, field names, and user-visible text.

  • Non-UI logic lives in the local package, not in app targets.
  • project.yml carries every target and setting change; the generated .xcodeproj is not committed.
  • Test builds use their own bundle ID and register no login items.
  • Availability: any API the spec relies on exists in the installed SDK at the deployment target. Check the .swiftinterface, not memory.

5. Verify code quality

Apply all rules from implementation-principles and swift-conventions (concurrency, style, testing patterns, no new copyright headers).

Match the changed code against code-smells. Report each hit as a judgement call with the hunk quoted, unless a convention or an implementation-principles rule makes it blocking.

6. Run linter

swift format lint --strict --recursive <paths>

No issues for modified files, and no new build warnings.

7. Verdict

  • PASS - optionally note minor non-blocking suggestions.
  • FAIL - specific, actionable feedback: missing tests, unmet spec requirements, quality violations, lint issues or warnings, or failing or missing required performance evidence.

Batch Reviews

  • Single-item: review that item.
  • Parallel batch: review ALL items together; return per-item verdict.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.