[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M699G014BN3FHVDN64F0AZDH":3,"skill-same:01M699G014BN3FHVDN64F0AZDH":137},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":56,"commitSha":57,"skillDirectory":58,"forksCount":59,"repositoryHtmlUrl":60,"repositoryHomepageUrl":17,"ownerHtmlUrl":61,"ownerBlogUrl":62,"ownerDescription":63,"updatedAt":64,"install":65,"resources":78},"01M699G014BN3FHVDN64F0AZDH","github-repo-explore","GitHub 仓库搜索探索","Guide for searching and exploring external GitHub repositories using the gh CLI. Use this when you need reference implementations, patterns, or code examples from open-source projects to help complete your task.","使用 gh CLI 搜索和探索外部 GitHub 仓库的指南。当你需要来自开源项目的参考实现、模式或代码示例来协助完成任务时使用本技能。","microsoft\u002Fsemantic-link-labs","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M699FKMT63C17BFNH8WHZN2K",600,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fsemantic-link-labs\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fgithub-repo-explore\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BR5V701HCN066VEP7H4812","代码仓库协作管理","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"github","github repo explore","explore","github repo","repo","repositories","cli","when","source","for","you","complete","patterns","use","guide","gh cli","gh","projects","open","code","2026-11-10 10:12:30",false,"---\nname: github-repo-explore\ndescription: Guide for searching and exploring external GitHub repositories using the gh CLI. Use this when you need reference implementations, patterns, or code examples from open-source projects to help complete your task.\n---\n\n# GitHub Repository Search and Exploration\n\nThis skill enables agents to discover, clone, and explore external GitHub repositories when implementing features that may benefit from reference implementations in open-source projects.\n\n## When to Use This Skill\n\nUse this skill when you need to:\n- Find reference implementations for features you're building\n- Explore how other projects implement similar patterns\n- Search for code examples across GitHub\n- Clone external repos for local exploration and learning\n- Find libraries or tools that could inform your implementation\n\n**Do NOT use this skill when**:\n- The task is straightforward and doesn't need external references\n- The codebase already has established patterns to follow\n- You're working on proprietary code that shouldn't reference external sources\n\n---\n\n## Resource Directory\n\nAll external GitHub repositories **MUST** be stored in:\n\n```\n.agent_cache\u002Fresources\u002F\n```\n\nThis is the **centralized** location for all cloned external repositories. Always check here first before searching GitHub.\n\n### Directory Structure\n\n```\n.agent_cache\u002F\n└── resources\u002F\n    ├── microsoft\u002F\n    │   ├── semantic-kernel\u002F\n    │   └── TypeChat\u002F\n    ├── langchain-ai\u002F\n    │   └── langchain\u002F\n    └── Significant-Gravitas\u002F\n        └── AutoGPT\u002F\n```\n\nRepositories are organized by `{owner}\u002F{repo}` structure to prevent naming conflicts.\n\n---\n\n## Workflow Overview\n\n```\n┌─────────────────────────────────────────────────────────────────┐\n│  1. Check Local Cache (.agent_cache\u002Fresources\u002F)                 │\n│     └─ If found → Use local repo for exploration                │\n└────────────────────────────┬────────────────────────────────────┘\n                             │ Not found\n                             ▼\n┌─────────────────────────────────────────────────────────────────┐\n│  2. Authenticate with GitHub (if needed)                        │\n│     └─ gh auth login                                            │\n└────────────────────────────┬────────────────────────────────────┘\n                             │\n                             ▼\n┌─────────────────────────────────────────────────────────────────┐\n│  3. Search GitHub for Repositories                              │\n│     └─ gh search repos \u003Cquery>                                  │\n│     └─ gh search code \u003Cquery>                                   │\n└────────────────────────────┬────────────────────────────────────┘\n                             │ Found match\n                             ▼\n┌───────────────────────────────────────────────────────────────────┐\n│  4. Clone to Cache Directory                                      │\n│     └─ gh repo clone owner\u002Frepo .agent_cache\u002Fresources\u002Fowner\u002Frepo │\n└────────────────────────────┬──────────────────────────────────────┘\n                             │\n                             ▼\n┌─────────────────────────────────────────────────────────────────┐\n│  5. Explore Repository                                          │\n│     └─ Use gh commands and file reading tools                   │\n└─────────────────────────────────────────────────────────────────┘\n```\n\n---\n\n## Phase 1: Check Local Cache First\n\nBefore searching GitHub, always check if a relevant repository is already cloned locally.\n\n### List Cached Repositories\n\n```bash\n# List all cached repositories\nls -la .agent_cache\u002Fresources\u002F\n\n# List repos by owner\nls -la .agent_cache\u002Fresources\u002Fmicrosoft\u002F\n\n# Search for specific repo by name\nfind .agent_cache\u002Fresources -type d -name \"*semantic*\" 2>\u002Fdev\u002Fnull\n```\n\n### Explore Local Repository\n\nIf the repository exists locally, use standard file tools:\n\n```bash\n# View repository structure\ntree -L 2 .agent_cache\u002Fresources\u002Fmicrosoft\u002Fsemantic-kernel\u002F\n\n# Search for patterns in local repo\ngrep -r \"planning\" .agent_cache\u002Fresources\u002Fmicrosoft\u002Fsemantic-kernel\u002Fpython\u002F --include=\"*.py\" | head -20\n\n# Find specific files\nfind .agent_cache\u002Fresources\u002Fmicrosoft\u002Fsemantic-kernel -name \"*.md\" -path \"*skills*\"\n```\n\n---\n\n## Phase 2: GitHub Authentication\n\nIf you need to search or clone from GitHub, ensure authentication is set up.\n\n### Check Authentication Status\n\n```bash\ngh auth status\n```\n\n### Interactive Login (if needed)\n\n```bash\n# Interactive login - user will authenticate via browser\ngh auth login\n```\n\nThis opens a browser for the user to authenticate with their GitHub account.\n\n### Verify Login\n\n```bash\n# Verify authentication worked\ngh auth status\n```\n\n---\n\n## Phase 3: Search GitHub\n\nUse `gh search` commands to find relevant repositories or code.\n\n### Search for Repositories\n\n```bash\n# Search repos by keywords\ngh search repos \"agent planning skills\" --limit 10\n\n# Search with language filter\ngh search repos \"agent planning\" --language python --limit 10\n\n# Search by owner\ngh search repos --owner microsoft \"semantic kernel\" --limit 10\n\n# Search with JSON output for parsing\ngh search repos \"agent planning\" --json fullName,description,stargazersCount --limit 5\n\n# Sort by stars (most popular)\ngh search repos \"agent planning\" --sort stars --limit 10\n\n# Filter by number of stars\ngh search repos \"agent framework\" --stars \">1000\" --limit 10\n```\n\n### Search for Code\n\n```bash\n# Search code across GitHub\ngh search code \"TaskLedger\" --limit 10\n\n# Search code in specific language\ngh search code \"def plan\" --language python --limit 10\n\n# Search code in specific repo\ngh search code \"planning\" --repo microsoft\u002Fsemantic-kernel --limit 20\n\n# Search code by filename\ngh search code \"skills\" --filename \"*.md\" --limit 10\n\n# Search with JSON output\ngh search code \"agent skills\" --json path,repository --limit 10\n```\n\n### View Repository Details\n\n```bash\n# View repo README and description\ngh repo view microsoft\u002Fsemantic-kernel\n\n# View repo with specific fields as JSON\ngh repo view microsoft\u002Fsemantic-kernel --json name,description,stargazerCount,defaultBranchRef\n\n# Open repo in browser\ngh repo view microsoft\u002Fsemantic-kernel --web\n```\n\n---\n\n## Phase 4: Clone Repository to Cache\n\nWhen you find a useful repository, clone it to the cache directory.\n\n### Clone Commands\n\n```bash\n# Create cache directory structure\nmkdir -p .agent_cache\u002Fresources\u002F{owner}\n\n# Clone repository\ngh repo clone microsoft\u002Fsemantic-kernel .agent_cache\u002Fresources\u002Fmicrosoft\u002Fsemantic-kernel\n\n# Clone with shallow history (faster, uses less disk)\ngh repo clone microsoft\u002Fsemantic-kernel .agent_cache\u002Fresources\u002Fmicrosoft\u002Fsemantic-kernel -- --depth 1\n\n# Clone specific branch\ngh repo clone microsoft\u002Fsemantic-kernel .agent_cache\u002Fresources\u002Fmicrosoft\u002Fsemantic-kernel -- --branch main --depth 1\n```\n\n### Update Existing Clone\n\n```bash\n# Pull latest changes\ncd .agent_cache\u002Fresources\u002Fmicrosoft\u002Fsemantic-kernel && git pull && cd -\n```\n\n---\n\n## Phase 5: Explore Repository\n\nOnce cloned, use a combination of gh commands and file reading tools.\n\n### Repository Structure Exploration\n\n```bash\n# View directory structure\ntree -L 3 .agent_cache\u002Fresources\u002Fmicrosoft\u002Fsemantic-kernel\u002Fpython\u002F | head -50\n\n# Find README files\nfind .agent_cache\u002Fresources\u002Fmicrosoft\u002Fsemantic-kernel -name \"README.md\" | head -10\n\n# Find Python files related to agents\nfind .agent_cache\u002Fresources\u002Fmicrosoft\u002Fsemantic-kernel -path \"*agents*\" -name \"*.py\" | head -20\n```\n\n### Code Search in Local Clone\n\n```bash\n# Search for specific patterns\ngrep -r \"class.*Agent\" .agent_cache\u002Fresources\u002Fmicrosoft\u002Fsemantic-kernel\u002Fpython --include=\"*.py\" | head -20\n\n# Find function definitions\ngrep -rn \"def plan\" .agent_cache\u002Fresources\u002Fmicrosoft\u002Fsemantic-kernel\u002Fpython --include=\"*.py\"\n\n# Search for imports\ngrep -r \"from.*import\" .agent_cache\u002Fresources\u002Fmicrosoft\u002Fsemantic-kernel\u002Fpython --include=\"*.py\" | grep planning\n```\n\n### Read Specific Files\n\nAfter identifying relevant files with grep\u002Ffind, use the `read_file` tool to examine content:\n\n```bash\n# Example files to read\nread_file .agent_cache\u002Fresources\u002Fmicrosoft\u002Fsemantic-kernel\u002Fpython\u002Fsemantic_kernel\u002Fagents\u002Forchestration\u002Fmagentic.py\n```\n\n---\n\n## Useful gh Commands Reference\n\n### Repository Commands\n\n| Command | Description |\n|---------|-------------|\n| `gh repo view \u003Cowner\u002Frepo>` | View repo README and details |\n| `gh repo view \u003Cowner\u002Frepo> --json \u003Cfields>` | Get repo metadata as JSON |\n| `gh repo clone \u003Cowner\u002Frepo> \u003Cpath>` | Clone repo to specific path |\n| `gh repo list \u003Cowner>` | List repos owned by user\u002Forg |\n\n### Search Commands\n\n| Command | Description |\n|---------|-------------|\n| `gh search repos \u003Cquery>` | Search for repositories |\n| `gh search code \u003Cquery>` | Search within code |\n| `gh search issues \u003Cquery>` | Search issues |\n| `gh search prs \u003Cquery>` | Search pull requests |\n\n### Search Filters\n\n| Filter | Example | Description |\n|--------|---------|-------------|\n| `--language` | `--language python` | Filter by programming language |\n| `--owner` | `--owner microsoft` | Filter by repository owner |\n| `--stars` | `--stars \">1000\"` | Filter by star count |\n| `--limit` | `--limit 20` | Limit number of results |\n| `--sort` | `--sort stars` | Sort results (stars, forks, updated) |\n| `--json` | `--json fullName,description` | Output as JSON |\n\n### JSON Fields for Repos\n\nCommon fields for `--json` output:\n- `fullName` - owner\u002Frepo\n- `name` - repo name only\n- `description` - repo description\n- `stargazersCount` - number of stars\n- `language` - primary language\n- `url` - GitHub URL\n- `defaultBranchRef` - main branch name\n\n---\n\n## Example Workflows\n\n### Example 1: Find Reference Implementations for REST API Patterns\n\n```bash\n# 1. Check local cache\nls .agent_cache\u002Fresources\u002F 2>\u002Fdev\u002Fnull || echo \"Cache empty\"\n\n# 2. Search GitHub for Fabric\u002FPower BI SDK examples\ngh search repos \"fabric rest api python\" --stars \">50\" --limit 10\n\n# 3. View promising repo\ngh repo view microsoft\u002Fsemantic-link-labs\n\n# 4. Clone to cache\nmkdir -p .agent_cache\u002Fresources\u002Fmicrosoft\ngh repo clone microsoft\u002Fsemantic-link-labs .agent_cache\u002Fresources\u002Fmicrosoft\u002Fsemantic-link-labs -- --depth 1\n\n# 5. Explore API patterns\ngrep -r \"_base_api\" .agent_cache\u002Fresources\u002Fmicrosoft\u002Fsemantic-link-labs --include=\"*.py\" | head -20\n```\n\n### Example 2: Search for Code Patterns\n\n```bash\n# Search for specific pattern across GitHub\ngh search code \"FabricRestClient\" --language python --limit 5\n\n# Clone repo containing the pattern\ngh repo clone owner\u002Frepo .agent_cache\u002Fresources\u002Fowner\u002Frepo -- --depth 1\n\n# Find and read the file\ngrep -rn \"FabricRestClient\" .agent_cache\u002Fresources\u002Fowner\u002Frepo --include=\"*.py\"\n```\n\n### Example 3: Explore Multiple Repos\n\n```bash\n# Search for agent frameworks\ngh search repos \"agent framework\" --language python --stars \">2000\" --json fullName,description,stargazersCount\n\n# Clone top candidates\nfor repo in \"langchain-ai\u002Flangchain\" \"Significant-Gravitas\u002FAutoGPT\"; do\n    owner=$(dirname $repo)\n    mkdir -p \".agent_cache\u002Fresources\u002F$owner\"\n    gh repo clone \"$repo\" \".agent_cache\u002Fresources\u002F$repo\" -- --depth 1\ndone\n\n# Compare implementations\ndiff \u003C(grep -r \"def plan\" .agent_cache\u002Fresources\u002Flangchain-ai\u002Flangchain --include=\"*.py\" | head -5) \\\n     \u003C(grep -r \"def plan\" .agent_cache\u002Fresources\u002FSignificant-Gravitas\u002FAutoGPT --include=\"*.py\" | head -5)\n```\n\n---\n\n## Best Practices\n\n1. **Always check local cache first** -- Avoid redundant cloning\n2. **Use shallow clones** -- Add `-- --depth 1` to save disk space and time\n3. **Organize by owner\u002Frepo** -- Prevents naming conflicts\n4. **Use JSON output** -- Easier to parse programmatically\n5. **Start with grep\u002Ffind** -- Narrow down before reading full files\n6. **Respect rate limits** -- GitHub has API rate limits; cache results\n7. **Clean up periodically** -- Remove unused repos from cache\n\n---\n\n## Troubleshooting\n\n### Authentication Issues\n\n```bash\n# Check current auth status\ngh auth status\n\n# Re-authenticate\ngh auth login\n\n# Use different auth method\ngh auth login --with-token \u003C token.txt\n```\n\n### Rate Limiting\n\n```bash\n# Check rate limit status\ngh api rate_limit\n\n# If rate limited, wait or use cached repos\n```\n\n### Clone Failures\n\n```bash\n# If clone fails, try with HTTPS explicitly\ngit clone https:\u002F\u002Fgithub.com\u002Fowner\u002Frepo.git .agent_cache\u002Fresources\u002Fowner\u002Frepo\n\n# Or try shallow clone\ngit clone --depth 1 https:\u002F\u002Fgithub.com\u002Fowner\u002Frepo.git .agent_cache\u002Fresources\u002Fowner\u002Frepo\n```\n","# GitHub Repository Search and Exploration\n\nThis skill enables agents to discover, clone, and explore external GitHub repositories when implementing features that may benefit from reference implementations in open-source projects.\n\n## When to Use This Skill\n\nUse this skill when you need to:\n- Find reference implementations for features you're building\n- Explore how other projects implement similar patterns\n- Search for code examples across GitHub\n- Clone external repos for local exploration and learning\n- Find libraries or tools that could inform your implementation\n\n**Do NOT use this skill when**:\n- The task is straightforward and doesn't need external references\n- The codebase already has established patterns to follow\n- You're working on proprietary code that shouldn't reference external sources\n\n---\n\n## Resource Directory\n\nAll external GitHub repositories **MUST** be stored in:\n\n```\n.agent_cache\u002Fresources\u002F\n```\n\nThis is the **centralized** location for all cloned external repositories. Always check here first before searching GitHub.\n\n### Directory Structure\n\n```\n.agent_cache\u002F\n└── resources\u002F\n    ├── microsoft\u002F\n    │   ├── semantic-kernel\u002F\n    │   └── TypeChat\u002F\n    ├── langchain-ai\u002F\n    │   └── langchain\u002F\n    └── Significant-Gravitas\u002F\n        └── AutoGPT\u002F\n```\n\nRepositories are organized by `{owner}\u002F{repo}` structure to prevent naming conflicts.\n\n---\n\n## Workflow Overview\n\n```\n┌─────────────────────────────────────────────────────────────────┐\n│  1. Check Local Cache (.agent_cache\u002Fresources\u002F)                 │\n│     └─ If found → Use local repo for exploration                │\n└────────────────────────────┬────────────────────────────────────┘\n                             │ Not found\n                             ▼\n┌─────────────────────────────────────────────────────────────────┐\n│  2. Authenticate with GitHub (if needed)                        │\n│     └─ gh auth login                                            │\n└────────────────────────────┬────────────────────────────────────┘\n                             │\n                             ▼\n┌─────────────────────────────────────────────────────────────────┐\n│  3. Search GitHub for Repositories                              │\n│     └─ gh search repos \u003Cquery>                                  │\n│     └─ gh search code \u003Cquery>                                   │\n└────────────────────────────┬────────────────────────────────────┘\n                             │ Found match\n                             ▼\n┌───────────────────────────────────────────────────────────────────┐\n│  4. Clone to Cache Directory                                      │\n│     └─ gh repo clone owner\u002Frepo .agent_cache\u002Fresources\u002Fowner\u002Frepo │\n└────────────────────────────┬──────────────────────────────────────┘\n                             │\n                             ▼\n┌─────────────────────────────────────────────────────────────────┐\n│  5. Explore Repository                                          │\n│     └─ Use gh commands and file reading tools                   │\n└─────────────────────────────────────────────────────────────────┘\n```\n\n---\n\n## Phase 1: Check Local Cache First\n\nBefore searching GitHub, always check if a relevant repository is already cloned locally.\n\n### List Cached Repositories\n\n```bash\n# List all cached repositories\nls -la .agent_cache\u002Fresources\u002F\n\n# List repos by owner\nls -la .agent_cache\u002Fresources\u002Fmicrosoft\u002F\n\n# Search for specific repo by name\nfind .agent_cache\u002Fresources -type d -name \"*semantic*\" 2>\u002Fdev\u002Fnull\n```\n\n### Explore Local Repository\n\nIf the repository exists locally, use standard file tools:\n\n```bash\n# View repository structure\ntree -L 2 .agent_cache\u002Fresources\u002Fmicrosoft\u002Fsemantic-kernel\u002F\n\n# Search for patterns in local repo\ngrep -r \"planning\" .agent_cache\u002Fresources\u002Fmicrosoft\u002Fsemantic-kernel\u002Fpython\u002F --include=\"*.py\" | head -20\n\n# Find specific files\nfind .agent_cache\u002Fresources\u002Fmicrosoft\u002Fsemantic-kernel -name \"*.md\" -path \"*skills*\"\n```\n\n---\n\n## Phase 2: GitHub Authentication\n\nIf you need to search or clone from GitHub, ensure authentication is set up.\n\n### Check Authentication Status\n\n```bash\ngh auth status\n```\n\n### Interactive Login (if needed)\n\n```bash\n# Interactive login - user will authenticate via browser\ngh auth login\n```\n\nThis opens a browser for the user to authenticate with their GitHub account.\n\n### Verify Login\n\n```bash\n# Verify authentication worked\ngh auth status\n```\n\n---\n\n## Phase 3: Search GitHub\n\nUse `gh search` commands to find relevant repositories or code.\n\n### Search for Repositories\n\n```bash\n# Search repos by keywords\ngh search repos \"agent planning skills\" --limit 10\n\n# Search with language filter\ngh search repos \"agent planning\" --language python --limit 10\n\n# Search by owner\ngh search repos --owner microsoft \"semantic kernel\" --limit 10\n\n# Search with JSON output for parsing\ngh search repos \"agent planning\" --json fullName,description,stargazersCount --limit 5\n\n# Sort by stars (most popular)\ngh search repos \"agent planning\" --sort stars --limit 10\n\n# Filter by number of stars\ngh search repos \"agent framework\" --stars \">1000\" --limit 10\n```\n\n### Search for Code\n\n```bash\n# Search code across GitHub\ngh search code \"TaskLedger\" --limit 10\n\n# Search code in specific language\ngh search code \"def plan\" --language python --limit 10\n\n# Search code in specific repo\ngh search code \"planning\" --repo microsoft\u002Fsemantic-kernel --limit 20\n\n# Search code by filename\ngh search code \"skills\" --filename \"*.md\" --limit 10\n\n# Search with JSON output\ngh search code \"agent skills\" --json path,repository --limit 10\n```\n\n### View Repository Details\n\n```bash\n# View repo README and description\ngh repo view microsoft\u002Fsemantic-kernel\n\n# View repo with specific fields as JSON\ngh repo view microsoft\u002Fsemantic-kernel --json name,description,stargazerCount,defaultBranchRef\n\n# Open repo in browser\ngh repo view microsoft\u002Fsemantic-kernel --web\n```\n\n---\n\n## Phase 4: Clone Repository to Cache\n\nWhen you find a useful repository, clone it to the cache directory.\n\n### Clone Commands\n\n```bash\n# Create cache directory structure\nmkdir -p .agent_cache\u002Fresources\u002F{owner}\n\n# Clone repository\ngh repo clone microsoft\u002Fsemantic-kernel .agent_cache\u002Fresources\u002Fmicrosoft\u002Fsemantic-kernel\n\n# Clone with shallow history (faster, uses less disk)\ngh repo clone microsoft\u002Fsemantic-kernel .agent_cache\u002Fresources\u002Fmicrosoft\u002Fsemantic-kernel -- --depth 1\n\n# Clone specific branch\ngh repo clone microsoft\u002Fsemantic-kernel .agent_cache\u002Fresources\u002Fmicrosoft\u002Fsemantic-kernel -- --branch main --depth 1\n```\n\n### Update Existing Clone\n\n```bash\n# Pull latest changes\ncd .agent_cache\u002Fresources\u002Fmicrosoft\u002Fsemantic-kernel && git pull && cd -\n```\n\n---\n\n## Phase 5: Explore Repository\n\nOnce cloned, use a combination of gh commands and file reading tools.\n\n### Repository Structure Exploration\n\n```bash\n# View directory structure\ntree -L 3 .agent_cache\u002Fresources\u002Fmicrosoft\u002Fsemantic-kernel\u002Fpython\u002F | head -50\n\n# Find README files\nfind .agent_cache\u002Fresources\u002Fmicrosoft\u002Fsemantic-kernel -name \"README.md\" | head -10\n\n# Find Python files related to agents\nfind .agent_cache\u002Fresources\u002Fmicrosoft\u002Fsemantic-kernel -path \"*agents*\" -name \"*.py\" | head -20\n```\n\n### Code Search in Local Clone\n\n```bash\n# Search for specific patterns\ngrep -r \"class.*Agent\" .agent_cache\u002Fresources\u002Fmicrosoft\u002Fsemantic-kernel\u002Fpython --include=\"*.py\" | head -20\n\n# Find function definitions\ngrep -rn \"def plan\" .agent_cache\u002Fresources\u002Fmicrosoft\u002Fsemantic-kernel\u002Fpython --include=\"*.py\"\n\n# Search for imports\ngrep -r \"from.*import\" .agent_cache\u002Fresources\u002Fmicrosoft\u002Fsemantic-kernel\u002Fpython --include=\"*.py\" | grep planning\n```\n\n### Read Specific Files\n\nAfter identifying relevant files with grep\u002Ffind, use the `read_file` tool to examine content:\n\n```bash\n# Example files to read\nread_file .agent_cache\u002Fresources\u002Fmicrosoft\u002Fsemantic-kernel\u002Fpython\u002Fsemantic_kernel\u002Fagents\u002Forchestration\u002Fmagentic.py\n```\n\n---\n\n## Useful gh Commands Reference\n\n### Repository Commands\n\n| Command | Description |\n|---------|-------------|\n| `gh repo view \u003Cowner\u002Frepo>` | View repo README and details |\n| `gh repo view \u003Cowner\u002Frepo> --json \u003Cfields>` | Get repo metadata as JSON |\n| `gh repo clone \u003Cowner\u002Frepo> \u003Cpath>` | Clone repo to specific path |\n| `gh repo list \u003Cowner>` | List repos owned by user\u002Forg |\n\n### Search Commands\n\n| Command | Description |\n|---------|-------------|\n| `gh search repos \u003Cquery>` | Search for repositories |\n| `gh search code \u003Cquery>` | Search within code |\n| `gh search issues \u003Cquery>` | Search issues |\n| `gh search prs \u003Cquery>` | Search pull requests |\n\n### Search Filters\n\n| Filter | Example | Description |\n|--------|---------|-------------|\n| `--language` | `--language python` | Filter by programming language |\n| `--owner` | `--owner microsoft` | Filter by repository owner |\n| `--stars` | `--stars \">1000\"` | Filter by star count |\n| `--limit` | `--limit 20` | Limit number of results |\n| `--sort` | `--sort stars` | Sort results (stars, forks, updated) |\n| `--json` | `--json fullName,description` | Output as JSON |\n\n### JSON Fields for Repos\n\nCommon fields for `--json` output:\n- `fullName` - owner\u002Frepo\n- `name` - repo name only\n- `description` - repo description\n- `stargazersCount` - number of stars\n- `language` - primary language\n- `url` - GitHub URL\n- `defaultBranchRef` - main branch name\n\n---\n\n## Example Workflows\n\n### Example 1: Find Reference Implementations for REST API Patterns\n\n```bash\n# 1. Check local cache\nls .agent_cache\u002Fresources\u002F 2>\u002Fdev\u002Fnull || echo \"Cache empty\"\n\n# 2. Search GitHub for Fabric\u002FPower BI SDK examples\ngh search repos \"fabric rest api python\" --stars \">50\" --limit 10\n\n# 3. View promising repo\ngh repo view microsoft\u002Fsemantic-link-labs\n\n# 4. Clone to cache\nmkdir -p .agent_cache\u002Fresources\u002Fmicrosoft\ngh repo clone microsoft\u002Fsemantic-link-labs .agent_cache\u002Fresources\u002Fmicrosoft\u002Fsemantic-link-labs -- --depth 1\n\n# 5. Explore API patterns\ngrep -r \"_base_api\" .agent_cache\u002Fresources\u002Fmicrosoft\u002Fsemantic-link-labs --include=\"*.py\" | head -20\n```\n\n### Example 2: Search for Code Patterns\n\n```bash\n# Search for specific pattern across GitHub\ngh search code \"FabricRestClient\" --language python --limit 5\n\n# Clone repo containing the pattern\ngh repo clone owner\u002Frepo .agent_cache\u002Fresources\u002Fowner\u002Frepo -- --depth 1\n\n# Find and read the file\ngrep -rn \"FabricRestClient\" .agent_cache\u002Fresources\u002Fowner\u002Frepo --include=\"*.py\"\n```\n\n### Example 3: Explore Multiple Repos\n\n```bash\n# Search for agent frameworks\ngh search repos \"agent framework\" --language python --stars \">2000\" --json fullName,description,stargazersCount\n\n# Clone top candidates\nfor repo in \"langchain-ai\u002Flangchain\" \"Significant-Gravitas\u002FAutoGPT\"; do\n    owner=$(dirname $repo)\n    mkdir -p \".agent_cache\u002Fresources\u002F$owner\"\n    gh repo clone \"$repo\" \".agent_cache\u002Fresources\u002F$repo\" -- --depth 1\ndone\n\n# Compare implementations\ndiff \u003C(grep -r \"def plan\" .agent_cache\u002Fresources\u002Flangchain-ai\u002Flangchain --include=\"*.py\" | head -5) \\\n     \u003C(grep -r \"def plan\" .agent_cache\u002Fresources\u002FSignificant-Gravitas\u002FAutoGPT --include=\"*.py\" | head -5)\n```\n\n---\n\n## Best Practices\n\n1. **Always check local cache first** -- Avoid redundant cloning\n2. **Use shallow clones** -- Add `-- --depth 1` to save disk space and time\n3. **Organize by owner\u002Frepo** -- Prevents naming conflicts\n4. **Use JSON output** -- Easier to parse programmatically\n5. **Start with grep\u002Ffind** -- Narrow down before reading full files\n6. **Respect rate limits** -- GitHub has API rate limits; cache results\n7. **Clean up periodically** -- Remove unused repos from cache\n\n---\n\n## Troubleshooting\n\n### Authentication Issues\n\n```bash\n# Check current auth status\ngh auth status\n\n# Re-authenticate\ngh auth login\n\n# Use different auth method\ngh auth login --with-token \u003C token.txt\n```\n\n### Rate Limiting\n\n```bash\n# Check rate limit status\ngh api rate_limit\n\n# If rate limited, wait or use cached repos\n```\n\n### Clone Failures\n\n```bash\n# If clone fails, try with HTTPS explicitly\ngit clone https:\u002F\u002Fgithub.com\u002Fowner\u002Frepo.git .agent_cache\u002Fresources\u002Fowner\u002Frepo\n\n# Or try shallow clone\ngit clone --depth 1 https:\u002F\u002Fgithub.com\u002Fowner\u002Frepo.git .agent_cache\u002Fresources\u002Fowner\u002Frepo\n```\n",{"name":5,"description":7},"main","2ddf46109c1209ceffa88149f4631e7b2275f9a1",".claude\u002Fskills\u002Fgithub-repo-explore",204,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fsemantic-link-labs","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-13 04:54:42",{"source":9,"skillName":5,"commands":66,"prompt":76,"zipAvailable":77},[67,70,73],{"tool":68,"command":69},"npx","npx skills add microsoft\u002Fsemantic-link-labs --skill github-repo-explore",{"tool":71,"command":72},"bunx","bunx skills add microsoft\u002Fsemantic-link-labs --skill github-repo-explore",{"tool":74,"command":75},"pnpm","pnpm dlx skills add microsoft\u002Fsemantic-link-labs --skill github-repo-explore","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fsemantic-link-labs\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fgithub-repo-explore\u002FSKILL.md",true,[79,85,89,93,99,103,109,113,117,121,125,129,133],{"path":80,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":83,"sourceHtmlUrl":84},"_meta.json","REFERENCE","参考文档",137,"https:\u002F\u002Fgithub.com\u002Fahat4pat-svg\u002Fjimi-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopenclaw-dashboard\u002F_meta.json",{"path":86,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":87,"sourceHtmlUrl":88},".clawhub\u002Forigin.json",150,"https:\u002F\u002Fgithub.com\u002Fahat4pat-svg\u002Fjimi-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopenclaw-dashboard\u002F.clawhub\u002Forigin.json",{"path":90,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":91,"sourceHtmlUrl":92},"agent-dashboard.html",208578,"https:\u002F\u002Fgithub.com\u002Fahat4pat-svg\u002Fjimi-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopenclaw-dashboard\u002Fagent-dashboard.html",{"path":94,"resourceType":95,"resourceTypeDesc":96,"sizeBytes":97,"sourceHtmlUrl":98},"api-server.js","SCRIPT","脚本",133506,"https:\u002F\u002Fgithub.com\u002Fahat4pat-svg\u002Fjimi-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopenclaw-dashboard\u002Fapi-server.js",{"path":100,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":101,"sourceHtmlUrl":102},"CHANGELOG.md",7240,"https:\u002F\u002Fgithub.com\u002Fahat4pat-svg\u002Fjimi-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopenclaw-dashboard\u002FCHANGELOG.md",{"path":104,"resourceType":105,"resourceTypeDesc":106,"sizeBytes":107,"sourceHtmlUrl":108},"favicon.svg","ASSET","资产文件",1194,"https:\u002F\u002Fgithub.com\u002Fahat4pat-svg\u002Fjimi-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopenclaw-dashboard\u002Ffavicon.svg",{"path":110,"resourceType":105,"resourceTypeDesc":106,"sizeBytes":111,"sourceHtmlUrl":112},"icon.svg",253,"https:\u002F\u002Fgithub.com\u002Fahat4pat-svg\u002Fjimi-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopenclaw-dashboard\u002Ficon.svg",{"path":114,"resourceType":95,"resourceTypeDesc":96,"sizeBytes":115,"sourceHtmlUrl":116},"marked.min.js",36546,"https:\u002F\u002Fgithub.com\u002Fahat4pat-svg\u002Fjimi-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopenclaw-dashboard\u002Fmarked.min.js",{"path":118,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":119,"sourceHtmlUrl":120},"models-registry.json",1116,"https:\u002F\u002Fgithub.com\u002Fahat4pat-svg\u002Fjimi-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopenclaw-dashboard\u002Fmodels-registry.json",{"path":122,"resourceType":95,"resourceTypeDesc":96,"sizeBytes":123,"sourceHtmlUrl":124},"purify.min.js",23129,"https:\u002F\u002Fgithub.com\u002Fahat4pat-svg\u002Fjimi-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopenclaw-dashboard\u002Fpurify.min.js",{"path":126,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":127,"sourceHtmlUrl":128},"README.md",5773,"https:\u002F\u002Fgithub.com\u002Fahat4pat-svg\u002Fjimi-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopenclaw-dashboard\u002FREADME.md",{"path":130,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":131,"sourceHtmlUrl":132},"SECURITY.md",4725,"https:\u002F\u002Fgithub.com\u002Fahat4pat-svg\u002Fjimi-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopenclaw-dashboard\u002FSECURITY.md",{"path":134,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":135,"sourceHtmlUrl":136},"server-monitor.html",16183,"https:\u002F\u002Fgithub.com\u002Fahat4pat-svg\u002Fjimi-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopenclaw-dashboard\u002Fserver-monitor.html",[138,162,191,216,233,250],{"skillNo":139,"name":140,"nameZh":141,"description":142,"descriptionZh":143,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":144,"categories":145,"keywords":152,"publishedAt":51},"01M699GKE0WWT6YVHBS06KM8AH","write-tests","Python 单元测试编写","Guide for writing unit tests. Use this when creating tests to verify Python logic.","编写单元测试指南。在创建测试以验证 Python 逻辑时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fsemantic-link-labs\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwrite-tests\u002FSKILL.md",[146,149],{"categoryNo":147,"categoryName":148,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":150,"categoryName":151,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[153,154,155,40,156,38,157,158,159,160,44,45,161],"write tests","write","tests","unit","logic","writing","python","unit tests","verify",{"skillNo":163,"name":164,"nameZh":165,"description":166,"descriptionZh":167,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":168,"categories":169,"keywords":174,"publishedAt":51},"01M699GGVJHWCJNW68P08VWCMA","ui-styling","UI 视觉样式设计","Guide for the visual style, structure, and shared building blocks used by Semantic Link Labs interactive UI tools (HTML widgets and anywidget-based widgets). Use this when adding a new interactive UI, modifying an existing one, or adding shared visual components.","关于 Semantic Link Labs 交互式 UI 工具（HTML 小部件和基于 anywidget 的小部件）所使用的视觉风格、结构和共享构建块的指南。在添加新的交互式 UI、修改现有 UI 或添加共享视觉组件时使用此技能。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fsemantic-link-labs\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fui-styling\u002FSKILL.md",[170,171],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":172,"categoryName":173,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRASNPVNJVQQJ4KZX8XM5D","前端开发与界面实现",[175,176,177,44,178,179,180,45,181,182,183,184,185,186,187,188,189,40,190,38],"ui styling","ui","styling","visual","structure","html","interactive","Building Blocks","Tools","components","shared","widgets","style","visual style","blocks","Existing",{"skillNo":192,"name":193,"nameZh":194,"description":195,"descriptionZh":196,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":197,"categories":198,"keywords":205,"publishedAt":51},"01M699GEZ3YRK8PCPVZF4NEEWF","tom-operations","TOM 表格对象模型操作","Guide for working with the TOM (Tabular Object Model) wrapper. Use this when modifying semantic models programmatically.","关于使用 TOM（表格对象模型，Tabular Object Model）包装器的指南。当以编程方式修改语义模型时使用此技能。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fsemantic-link-labs\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftom-operations\u002FSKILL.md",[199,202],{"categoryNo":200,"categoryName":201,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQGD4CMBM6B4PWSM1NXGT9","数据分析与报告",{"categoryNo":203,"categoryName":204,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BTGTEHKD89NSZ5CT4Y5AGV","数据工程师",[206,207,45,208,40,209,210,211,212,213,44,38,214,215],"operations","tom operations","tabular","object","with","semantic","models","Wrapper","model","semantic models",{"skillNo":217,"name":218,"nameZh":219,"description":220,"descriptionZh":221,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":222,"categories":223,"keywords":228,"publishedAt":51},"01M699GCWWBZM2XFNW5PTGRFJP","sql_to_dax","SQL 转 DAX 度量值","Guide for translating SQL aggregation expressions into DAX measures.","将 SQL 聚合表达式转换为 DAX 度量值的指南。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fsemantic-link-labs\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsql_to_dax\u002FSKILL.md",[224,225],{"categoryNo":200,"categoryName":201,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":226,"categoryName":227,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5CX980XNXCJKQF70BY","数据分析师",[229,230,231,40,45,232],"sql","sql to dax","dax","aggregation",{"skillNo":234,"name":235,"nameZh":236,"description":237,"descriptionZh":238,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":239,"categories":240,"keywords":243,"publishedAt":51},"01M699GAY10VVK66E4QGT94A93","run-tests","pytest 测试运行","Guide for running pytest tests locally. Use this when running tests to verify code changes.","本地运行 pytest 测试的指南。在运行测试以验证代码更改时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fsemantic-link-labs\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frun-tests\u002FSKILL.md",[241,242],{"categoryNo":147,"categoryName":148,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":150,"categoryName":151,"taxonomyType":28,"taxonomyTypeDesc":29},[155,244,245,40,246,44,45,161,247,50,248,249,38],"run","run tests","pytest","running tests","changes","running",{"skillNo":251,"name":252,"nameZh":253,"description":254,"descriptionZh":255,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":256,"categories":257,"keywords":262,"publishedAt":51},"01M699G8V718EXYE8BR7NX734G","rest-api-patterns","REST API 封装实现","Guide for implementing REST API wrapper functions. Use this when adding new API wrappers or troubleshooting API calls.","实现 REST API 包装函数的指南。在添加新的 API 包装器或排查 API 调用问题时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fsemantic-link-labs\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frest-api-patterns\u002FSKILL.md",[258,259],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":260,"categoryName":261,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BT7QVANT4709358VEJK53E","代码实现",[263,264,265,266,267,43,40,38,268,269,270,213,44,45,271],"REST","api patterns","rest api","rest api patterns","api","implementing","calls","functions","troubleshooting"]