| name | refer-ios-version |
| description | Reference the Kurogoma4D/ShiroGuessr-iOS repository using gh CLI commands. Use when the user mentions "iOS版" (iOS version), "現行プロジェクト" (current project), or needs to reference existing implementations from the iOS version of ShiroGuessr. Supports code search, keyword search, and file content retrieval. |
Refer iOS Version
Reference the iOS version of ShiroGuessr (Kurogoma4D/ShiroGuessr-iOS repository) using GitHub CLI.
Repository Information
- Repository:
Kurogoma4D/ShiroGuessr-iOS
- Main Branch:
main
- Purpose: iOS version reference for implementation patterns and features
Search Operations
Code Search
Search for specific code patterns or implementations:
gh search code --repo Kurogoma4D/ShiroGuessr-iOS "search query"
Examples:
gh search code --repo Kurogoma4D/ShiroGuessr-iOS "map"
gh search code --repo Kurogoma4D/ShiroGuessr-iOS "api"
gh search code --repo Kurogoma4D/ShiroGuessr-iOS "config"
Keyword Search
Search across the entire repository:
gh search repos Kurogoma4D/ShiroGuessr-iOS
Or search issues/PRs for context:
gh search issues --repo Kurogoma4D/ShiroGuessr-iOS "keyword"
gh search prs --repo Kurogoma4D/ShiroGuessr-iOS "keyword"
View File Contents
Retrieve specific file contents using the GitHub API:
gh api repos/Kurogoma4D/ShiroGuessr-iOS/contents/path/to/file
Note: The response includes a content field with base64-encoded file contents. Decode using:
gh api repos/Kurogoma4D/ShiroGuessr-iOS/contents/path/to/file --jq '.content' | base64 -d
Examples:
gh api repos/Kurogoma4D/ShiroGuessr-iOS/contents/package.json --jq '.content' | base64 -d
gh api repos/Kurogoma4D/ShiroGuessr-iOS/contents/src/components/Map.tsx --jq '.content' | base64 -d
gh api repos/Kurogoma4D/ShiroGuessr-iOS/contents/src
Alternative - Clone and read locally:
For extensive reading of multiple files, clone the repository:
gh repo clone Kurogoma4D/ShiroGuessr-iOS /tmp/ShiroGuessr-iOS
Then use standard Read tool on local files.
Usage Patterns
When user asks about iOS version implementation:
- Identify the feature or component they're asking about
- Use
gh search code to find relevant implementations
- Use
gh api to retrieve specific file contents if needed
- Summarize the findings with file paths and line references
Example conversation:
- User: "iOS版では地図の表示はどうやっているの?" (How is the map displayed in the iOS version?)
- Action:
gh search code --repo Kurogoma4D/ShiroGuessr-iOS "map display"
- Then: Retrieve relevant file with
gh api repos/Kurogoma4D/ShiroGuessr-iOS/contents/src/...
When comparing iOS vs current implementation:
- First search the iOS version using gh commands
- Then search the local project using Glob/Grep
- Compare and highlight differences
Example conversation:
- User: "現行プロジェクトのconfig設定を見せて" (Show me the config settings in the current project)
- Action:
gh api repos/Kurogoma4D/ShiroGuessr-iOS/contents/config.json --jq '.content' | base64 -d
Tips
- Use
--jq for JSON parsing and filtering
- Search results may be paginated; check for
next links
- For binary files, the API returns a download URL instead of base64 content
- Clone the repository locally if reading many files to avoid API rate limits