بنقرة واحدة
setup
Bootstrap the Swift dev environment — verify swift, xcodegen, sourcekit-lsp, swift tools, env vars.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Bootstrap the Swift dev environment — verify swift, xcodegen, sourcekit-lsp, swift tools, env vars.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Review a pull request or pending changes. Performs a focused code review against the current branch's diff (or staged diff if invoked pre-commit), surfacing correctness bugs, missing tests, style violations, and unclear naming. Use when the user asks to "review this", "review the PR", "code review", or before commits/PRs.
Complete a security review of pending changes on the current branch. Focuses on injection, authn/authz, secrets, SSRF, deserialisation, insecure defaults, and supply-chain risk. Use when the user asks to "security review", "security audit", "check for vulns", or before raising a PR.
Pre-commit gate (fmt + clippy + test) then create a conventional commit with explicit file staging.
Create or update ARCHITECTURE.md with system components, data flows, and ADRs
Format Rust code with rustfmt and report what changed.
Full TDD loop — plan, branch, write code + tests, fmt, clippy, test, review, commit.
| name | setup |
| description | Bootstrap the Swift dev environment — verify swift, xcodegen, sourcekit-lsp, swift tools, env vars. |
Verifies that the host machine has everything needed to work on this Swift project.
1. Swift toolchain.
swift --version
swift: command not found → halt. Install the Swift toolchain from swift.org or Xcode from the Mac App Store.2. XcodeGen (required).
xcodegen --version
xcodegen: command not found → halt. Install via brew install xcodegen..xcodeproj from project.yml.3. sourcekit-lsp (required).
sourcekit-lsp --version 2>/dev/null || echo "sourcekit-lsp: check PATH"
$PATH.export PATH="$(xcrun --find swift | xargs dirname):$PATH"
4. Swift format (required — built into Swift 6+).
swift format --version 2>&1 | head -1
swift format subcommand is available. It ships with the Swift toolchain for Swift 6+.5. GitHub CLI (recommended for PR workflow).
gh --version 2>/dev/null || echo "gh: not found — install via 'brew install gh'"
pr skill. If missing, the skill will still partially work (manual PR creation).6. Environment file.
ls -la .env 2>/dev/null || echo ".env: not found"
.env is missing and the project requires env vars, note which ones.AGENTS.md) are either set or present in .env.7. Git configuration.
git config user.name
git config user.email
Print a summary table:
Tool Status
──────────────────────────────
swift 6.3.2 ✓
xcodegen 2.42.0 ✓
sourcekit-lsp /usr/bin/ ✓
swift format available ✓
gh 2.67.0 ✓
.env present ✓
git config configured ✓
If any required check fails, halt with a clear installation command.