DevOps & Cloudlow risk
metagit-upstream-scan
Use when a coding agent encounters likely upstream blockers and must find related workspace repositories, files, and probable root causes.
metagit-ai/metagit-cli·skills/metagit-upstream-scan/SKILL.md
34/ 100Recommendation
Install this skill
Choose your coding agent and copy a project or personal installation command.
Project installation.agents/skills/metagit-upstream-scan
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/skills/metagit-upstream-scan -a codex -yPersonal installation~/.agents/skills/metagit-upstream-scan
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/skills/metagit-upstream-scan -a codex -g -yProject installation.claude/skills/metagit-upstream-scan
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/skills/metagit-upstream-scan -a claude-code -yPersonal installation~/.claude/skills/metagit-upstream-scan
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/skills/metagit-upstream-scan -a claude-code -g -yProject installation.agents/skills/metagit-upstream-scan
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/skills/metagit-upstream-scan -a github-copilot -yPersonal installation~/.copilot/skills/metagit-upstream-scan
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/skills/metagit-upstream-scan -a github-copilot -g -yProject installation.agents/skills/metagit-upstream-scan
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/skills/metagit-upstream-scan -a cursor -yPersonal installation~/.cursor/skills/metagit-upstream-scan
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/skills/metagit-upstream-scan -a cursor -g -yProject installation.agents/skills/metagit-upstream-scan
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/skills/metagit-upstream-scan -a gemini-cli -yPersonal installation~/.gemini/skills/metagit-upstream-scan
npx skills add https://github.com/metagit-ai/metagit-cli/tree/482dfb3b7a407ca5e541657a6fcc9af619818243/skills/metagit-upstream-scan -a gemini-cli -g -yNative Gemini CLI
gemini skills install https://github.com/metagit-ai/metagit-cli.git --scope workspace --path skills/metagit-upstream-scan⚠ Installation uses the open-source skills CLI. Inspect the source and permissions before running the command.
Skill instructions
View source on GitHub ↗# Metagit Upstream Discovery Skill Use this skill when the current repo does not appear to contain the full fix and related repositories may hold the source issue. ## Supported Use Cases - Missing Terraform input in a shared module - Docker base image/version mismatch across repos - Shared infrastructure definitions causing local failures - CI pipeline breakages tied to upstream templates/workflows ## Local Script Wrapper (Use First) Use this token-efficient wrapper for upstream discovery tasks: - `./scripts/upstream-scan.sh [root_path] "<query>" [preset] [max_results]` Output format: - compact status line - top ranked repo hints (`hint`) - top search file hits (`hit`) ## Workflow 1. Read workspace repository map from active `.metagit.yml`. 2. Run `metagit_workspace_index` to verify repo availability and sync state. 3. Use `metagit_workspace_search` with category preset (`terraform`, `docker`, `infra`, `ci`). 4. Use `metagit_upstream_hints` to rank candidate repositories and files. 5. Return a concise action plan: - top candidate repos - likely files/definitions - whether sync is needed before deeper analysis ## Search Strategy - Start narrow with issue-specific terms (error, module, variable, image tag). - Expand to broader shared terms if no hits. - Prefer repositories referenced by workspace metadata before searching unknown repos. ## Output Contract Return: - ranked candidates with rationale - suggested next file openings - confidence level and unresolved assumptions ## Safety Rules - Restrict search to configured workspace repositories. - Cap result size and duration. - Keep this workflow read-only unless an explicit sync action is requested.