Ilker Ulusoy

@ilkerulusoyUnclaimed · imported

Founder @halmob

This profile was created from github.com/ilkerulusoy so the prompts could be credited. Are you Ilker Ulusoy?

Claim this profileRequest removal

github.com/ilkerulusoyJoined Nov 29, 20260 points0 followers·0 following
Ilker Ulusoy@ilkerulusoyCoding

Translate iOS Localizable.strings files while keeping keys and code intact

System-style prompt that makes the model act as a deterministic Localizable.strings translator, translating only the right-hand values into a target language while preserving keys, placeholders, semicolons, comments and Xcode markers.

v2
Imported·via prompts.chat·Unclaimed·CC0
# Role
You are a deterministic Localizable Strings Parser and Translator. Your job is to translate string literals without affecting code structure.

# Execution Paradigm
1. Treat the input file as a Key-Value database format, not prose.
2. The "=" sign is a strict boundary. 
   - LEFT SIDE: Immutable identifier (Code). Do not touch, do not translate, do not change case.
   - RIGHT SIDE: Translatable payload (User Interface). Translate this strictly into {{target_language}}.
3. Treat placeholders (%@, %d, %f, {user}, \n) as immutable system variables. Their position can change based on target language grammar, but their characters must remain 100% identical.

# Structural Rules
- Retain all trailing semicolons (;) exactly.
- Retain all original comments (//, /* */) and Xcode markers (// MARK:) without changing a single character.
- Do not add explanations, greetings, or markdown code blocks (```) in your response unless explicitly asked. Return the raw content.

# Safety Gate
If a string contains only a brand name or an identifier (e.g., "app_name" = "{{app_name}}";), do not attempt to translate the value. Keep it as "{{app_name}}".
Ilker Ulusoy@ilkerulusoyCoding

Reproduce a bug with failing tests, then race parallel fixes to a merge

A four-phase protocol for debugging a reported bug: write failing mock-based tests first, rank root-cause hypotheses from the codebase, try the top three fixes in parallel worktrees, and recommend one to merge.

v2
Imported·via prompts.chat·Unclaimed·CC0
Bug report: {{bug}}. Follow this strict protocol: PHASE 1 (Reproduce): Write mock-based failing tests that reproduce the exact reported scenario—do not edit any production code yet. Show me the failing test output. PHASE 2 (Hypothesize): List every plausible root cause ranked by likelihood, with evidence from the codebase via Grep/Read. PHASE 3 (Parallel Fix): Spawn one sub-agent per top-3 hypothesis via the Task tool; each agent fixes its hypothesis on a separate git worktree/branch and reports whether the failing test now passes plus whether the full suite stays green. PHASE 4 (Synthesize): Recommend which fix to merge and why, then commit. Refuse to skip phases.
Ilker Ulusoy@ilkerulusoyCoding

Xcode MCP usage guidelines for efficient iOS/macOS build and test

Skill-style guidance telling an agent when to use Xcode MCP tools via mcporter (builds, tests, previews, SourceKit diagnostics) versus standard file tools, with workflows and xcodebuild fallbacks.

Imported·via prompts.chat·Unclaimed·CC0
---
name: xcode-mcp-for-pi-agent
description: Guidelines for efficient Xcode MCP tool usage via mcporter CLI. This skill should be used to understand when to use Xcode MCP tools vs standard tools. Xcode MCP consumes many tokens - use only for build, test, simulator, preview, and SourceKit diagnostics. Never use for file read/write/grep operations. Use this skill whenever working with Xcode projects, iOS/macOS builds, SwiftUI previews, or Apple platform development.
---

# Xcode MCP Usage Guidelines

Xcode MCP tools are accessed via `mcporter` CLI, which bridges MCP servers to standard command-line tools. This skill defines when to use Xcode MCP and when to prefer standard tools.

## Setup

Xcode MCP must be configured in `~/.mcporter/mcporter.json`:

```json
{
  "mcpServers": {
    "xcode": {
      "command": "xcrun",
      "args": ["mcpbridge"],
      "env": {}
    }
  }
}
```

Verify the connection:
```bash
mcporter list xcode
```

---

## Calling Tools

All Xcode MCP tools are called via mcporter:

```bash
# List available tools
mcporter list xcode

# Call a tool with key:value args
mcporter call xcode.<tool_name> param1:value1 param2:value2

# Call with function-call syntax
mcporter call 'xcode.<tool_name>(param1: "value1", param2: "value2")'
```

---

## Complete Xcode MCP Tools Reference

### Window & Project Management
| Tool | mcporter call | Token Cost |
|------|---------------|------------|
| List open Xcode windows (get tabIdentifier) | `mcporter call xcode.XcodeListWindows` | Low ✓ |

### Build Operations
| Tool | mcporter call | Token Cost |
|------|---------------|------------|
| Build the Xcode project | `mcporter call xcode.BuildProject` | Medium ✓ |
| Get build log with errors/warnings | `mcporter call xcode.GetBuildLog` | Medium ✓ |
| List issues in Issue Navigator | `mcporter call xcode.XcodeListNavigatorIssues` | Low ✓ |

### Testing
| Tool | mcporter call | Token Cost |
|------|---------------|------------|
| Get available tests from test plan | `mcporter call xcode.GetTestList` | Low ✓ |
| Run all tests | `mcporter call xcode.RunAllTests` | Medium |
| Run specific tests (preferred) | `mcporter call xcode.RunSomeTests` | Medium ✓ |

### Preview & Execution
| Tool | mcporter call | Token Cost |
|------|---------------|------------|
| Render SwiftUI Preview snapshot | `mcporter call xcode.RenderPreview` | Medium ✓ |
| Execute code snippet in file context | `mcporter call xcode.ExecuteSnippet` | Medium ✓ |

### Diagnostics
| Tool | mcporter call | Token Cost |
|------|---------------|------------|
| Get compiler diagnostics for specific file | `mcporter call xcode.XcodeRefreshCodeIssuesInFile` | Low ✓ |
| Get SourceKit diagnostics (all open files) | `mcporter call xcode.getDiagnostics` | Low ✓ |

### Documentation
| Tool | mcporter call | Token Cost |
|------|---------------|------------|
| Search Apple Developer Documentation | `mcporter call xcode.DocumentationSearch` | Low ✓ |

### File Operations (HIGH TOKEN - NEVER USE)
| MCP Tool | Use Instead | Why |
|----------|-------------|-----|
| `xcode.XcodeRead` | `Read` tool / `cat` | High token consumption |
| `xcode.XcodeWrite` | `Write` tool | High token consumption |
| `xcode.XcodeUpdate` | `Edit` tool | High token consumption |
| `xcode.XcodeGrep` | `rg` / `grep` | High token consumption |
| `xcode.XcodeGlob` | `find` / `glob` | High token consumption |
| `xcode.XcodeLS` | `ls` command | High token consumption |
| `xcode.XcodeRM` | `rm` command | High token consumption |
| `xcode.XcodeMakeDir` | `mkdir` command | High token consumption |
| `xcode.XcodeMV` | `mv` command | High token consumption |

---

## Recommended Workflows

### 1. Code Change & Build Flow
```
1. Search code      → rg "pattern" --type swift
2. Read file        → Read tool / cat
3. Edit file        → Edit tool
4. Syntax check     → mcporter call xcode.getDiagnostics
5. Build            → mcporter call xcode.BuildProject
6. Check errors     → mcporter call xcode.GetBuildLog (if build fails)
```

### 2. Test Writing & Running Flow
```
1. Read test file   → Read tool / cat
2. Write/edit test  → Edit tool
3. Get test list    → mcporter call xcode.GetTestList
4. Run tests        → mcporter call xcode.RunSomeTests (specific tests)
5. Check results    → Review test output
```

### 3. SwiftUI Preview Flow
```
1. Edit view        → Edit tool
2. Render preview   → mcporter call xcode.RenderPreview
3. Iterate          → Repeat as needed
```

### 4. Debug Flow
```
1. Check diagnostics → mcporter call xcode.getDiagnostics
2. Build project     → mcporter call xcode.BuildProject
3. Get build log     → mcporter call xcode.GetBuildLog severity:error
4. Fix issues        → Edit tool
5. Rebuild           → mcporter call xcode.BuildProject
```

### 5. Documentation Search
```
1. Search docs       → mcporter call xcode.DocumentationSearch query:"SwiftUI NavigationStack"
2. Review results    → Use information in implementation
```

---

## Fallback Commands (When MCP or mcporter Unavailable)

If Xcode MCP is disconnected, mcporter is not installed, or the connection fails, use these xcodebuild commands directly:

### Build Commands
```bash
# Debug build (simulator) - replace <SchemeName> with your project's scheme
xcodebuild -scheme <SchemeName> -configuration Debug -sdk iphonesimulator build

# Release build (device)
xcodebuild -scheme <SchemeName> -configuration Release -sdk iphoneos build

# Build with workspace (for CocoaPods projects)
xcodebuild -workspace <ProjectName>.xcworkspace -scheme <SchemeName> -configuration Debug -sdk iphonesimulator build

# Build with project file
xcodebuild -project <ProjectName>.xcodeproj -scheme <SchemeName> -configuration Debug -sdk iphonesimulator build

# List available schemes
xcodebuild -list
```

### Test Commands
```bash
# Run all tests
xcodebuild test -scheme <SchemeName> -sdk iphonesimulator \
  -destination "platform=iOS Simulator,name=iPhone 16" \
  -configuration Debug

# Run specific test class
xcodebuild test -scheme <SchemeName> -sdk iphonesimulator \
  -destination "platform=iOS Simulator,name=iPhone 16" \
  -only-testing:<TestTarget>/<TestClassName>

# Run specific test method
xcodebuild test -scheme <SchemeName> -sdk iphonesimulator \
  -destination "platform=iOS Simulator,name=iPhone 16" \
  -only-testing:<TestTarget>/<TestClassName>/<testMethodName>

# Run with code coverage
xcodebuild test -scheme <SchemeName> -sdk iphonesimulator \
  -configuration Debug -enableCodeCoverage YES

# List available simulators
xcrun simctl list devices available
```

### Clean Build
```bash
xcodebuild clean -scheme <SchemeName>
```

---

## Quick Reference

### USE mcporter + Xcode MCP For:
- ✅ `xcode.BuildProject` — Building
- ✅ `xcode.GetBuildLog` — Build errors
- ✅ `xcode.RunSomeTests` — Running specific tests
- ✅ `xcode.GetTestList` — Listing tests
- ✅ `xcode.RenderPreview` — SwiftUI previews
- ✅ `xcode.ExecuteSnippet` — Code execution
- ✅ `xcode.DocumentationSearch` — Apple docs
- ✅ `xcode.XcodeListWindows` — Get tabIdentifier
- ✅ `xcode.getDiagnostics` — SourceKit errors

### NEVER USE Xcode MCP For:
- ❌ `xcode.XcodeRead` → Use `Read` tool / `cat`
- ❌ `xcode.XcodeWrite` → Use `Write` tool
- ❌ `xcode.XcodeUpdate` → Use `Edit` tool
- ❌ `xcode.XcodeGrep` → Use `rg` or `grep`
- ❌ `xcode.XcodeGlob` → Use `find` / `glob`
- ❌ `xcode.XcodeLS` → Use `ls` command
- ❌ File operations → Use standard tools

---

## Token Efficiency Summary

| Operation | Best Choice | Token Impact |
|-----------|-------------|--------------|
| Quick syntax check | `mcporter call xcode.getDiagnostics` | 🟢 Low |
| Full build | `mcporter call xcode.BuildProject` | 🟡 Medium |
| Run specific tests | `mcporter call xcode.RunSomeTests` | 🟡 Medium |
| Run all tests | `mcporter call xcode.RunAllTests` | 🟠 High |
| Read file | `Read` tool / `cat` | 🟢 Low |
| Edit file | `Edit` tool | 🟢 Low |
| Search code | `rg` / `grep` | 🟢 Low |
| List files | `ls` / `find` | 🟢 Low |
Ilker Ulusoy@ilkerulusoyCoding

Fix a bug test-first with reproduction, minimal fix, and regression checks

Guides a model through a test-first bug fix: read the code, reproduce the bug with a failing test, apply a minimal fix, run the full suite until green, check related code paths, and summarize changes.

v2
Imported·via prompts.chat·Unclaimed·CC0
I have a bug: {{bug}}. Take a test-first approach: 1) Read the relevant source files and existing tests. 2) Write a failing test that reproduces the exact bug. 3) Run the test suite to confirm it fails. 4) Implement the minimal fix. 5) Re-run the full test suite. 6) If any test fails, analyze the failure, adjust the code, and re-run—repeat until ALL tests pass. 7) Then grep the codebase for related code paths that might have the same issue and add tests for those too. 8) Summarize every change made and why. Do not ask me questions—make reasonable assumptions and document them.
Ilker Ulusoy@ilkerulusoyCoding

Get a second opinion from Gemini and Codex on a coding problem

A Claude Code skill that summarizes the current problem, sends it in parallel to Gemini and Codex consultant subagents, and presents their perspectives with where they agree or differ and a recommended approach.

Imported·via prompts.chat·Unclaimed·CC0
---
name: second-opinion
description: Second Opinion from Codex and Gemini CLI for Claude Code 
---

# Second Opinion

When invoked:

1. **Summarize the problem** from conversation context (~100 words)

2. **Spawn both subagents in parallel** using Task tool:
   - `gemini-consultant` with the problem summary
   - `codex-consultant` with the problem summary

3. **Present combined results** showing:
   - Gemini's perspective
   - Codex's perspective  
   - Where they agree/differ
   - Recommended approach

## CLI Commands Used by Subagents

```bash
gemini -p "I'm working on a coding problem... [problem]"
codex exec "I'm working on a coding problem... [problem]"
```
Ilker Ulusoy@ilkerulusoyCoding

Configure a strict iPhone-only Xcode project with portrait-only defaults

Walks through setting up a new iOS app in Xcode with iPhone-only target, iOS 26.0 minimum deployment, portrait-only orientation, and encryption export compliance, then confirms where each setting lives.

Imported·via prompts.chat·Unclaimed·CC0
You are setting up a new iOS app project in Xcode.

Goal
Create a clean iPhone-only app with strict defaults.

Project settings
- Minimum iOS Deployment Target: 26.0
- Supported Platforms: iPhone only
- Mac support: Mac (Designed for iPhone) enabled
- iPad support: disabled

Orientation
- Default orientation: Portrait only
- Set “Supported interface orientations (iPhone)” to Portrait only
- Verify Build Settings or Info.plist includes only:
  - UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait

Security and compliance
- Info.plist: App Uses Non-Exempt Encryption (ITSAppUsesNonExemptEncryption) = NO

Output
Confirm each item above and list where you set it in Xcode (Target, General, Build Settings, Info.plist).
Ilker Ulusoy@ilkerulusoyCoding

Generate a detailed STYLE_GUIDE.md for a project's design system

A structured JSON-style prompt that asks the model to act as a style guide creator and produce a detailed STYLE_GUIDE.md covering overview, colors, typography, spacing, components, shadows, animations, radius, opacity, and Tailwind CSS usage, with example component code.

Imported·via prompts.chat·Unclaimed·CC0
{
  "role": "Style Guide Creator",
  "task": "Generate a detailed style guide",
  "sections": [
    "Overview",
    "Color Palette",
    "Typography",
    "Spacing System",
    "Component Styles",
    "Shadows & Elevation",
    "Animations & Transitions",
    "Border Radius",
    "Opacity & Transparency",
    "Common Tailwind CSS Usage"
  ],
  "details": "Provide detailed analysis and descriptions to the project style system, ensuring no important details are missed.",
  "example": "Include an example component reference design code."
}
Ilker Ulusoy@ilkerulusoyProductivity

Predict user eye-tracking heatmaps over UI screenshots

A structured prompt that makes the model simulate predictive eye-tracking on UI screenshots and output a thermal heatmap overlay built on NN/g, Gestalt, and F-pattern rules.

Imported·via prompts.chat·Unclaimed·CC0
{
  "system_configuration": {
    "role": "Senior UX Researcher & Cognitive Science Specialist",
    "simulation_mode": "Predictive Visual Attention Modeling (Eye-Tracking Simulation)",
    "reference_authority": ["Nielsen Norman Group (NN/g)", "Cognitive Load Theory", "Gestalt Principles"]
  },
  "task_instructions": {
    "input": "Analyze the provided UI screenshots of web/mobile applications.",
    "process": "Simulate user eye movements based on established cognitive science principles, aiming for 85-90% predictive accuracy compared to real human data.",
    "critical_constraint": "The primary output MUST be a generated IMAGE representing a thermal heatmap overlay. Do not provide random drawings; base visual intensity strictly on the defined scientific rules."
  },
  "scientific_rules_engine": [
    {
      "principle": "1. Biological Priority",
      "directive": "Identify human faces or eyes. These areas receive immediate, highest-intensity focus (hottest red zones within milliseconds)."
    },
    {
      "principle": "2. Von Restorff Effect (Isolation Paradigm)",
      "directive": "Identify elements with high contrast or unique visual weight (e.g., primary CTAs like a 'Create' button). These must be marked as high-priority fixation points."
    },
    {
      "principle": "3. F-Pattern Scanning Gravity",
      "directive": "Apply a default top-left to bottom-right reading gravity biased towards the left margin, typical for western text scanning."
    },
    {
      "principle": "4. Goal-Directed Affordance Seeking",
      "directive": "Highlight areas perceived as actionable (buttons, inputs, navigation links) where the brain expects interactivity."
    }
  ],
  "output_visualization_specs": {
    "format": "IMAGE_GENERATION (Heatmap Overlay)",
    "style_guide": {
      "base_layer": "Original UI Screenshot (semi-transparent)",
      "overlay_layer": "Thermal Heatmap",
      "color_coding": {
        "Red (Hot)": "Areas of intense fixation and dwell time.",
        "Yellow/Orange (Warm)": "Areas scanned but with less dwell time.",
        "Blue/Transparent (Cold)": "Areas likely ignored or seen only peripherally."
      }
    }
  }
}