Gitto

From markerikson/opencode-config-example · View interactive version

Gitto is an AI agent skill from the GitHub repository markerikson/opencode-config-example. Search GitHub codebases for bug-related code patterns and example fixes. Use when investigating a bug to find solutions, patterns, or references from public repositories.

How to use this skill

Skill file

Gitto - GitHub Bug Pattern Search

Purpose

Turn a bug description into targeted GitHub code and issue searches, then summarize patterns and candidate fixes.

When to Use

Inputs

Process

  1. Extract key phrases, error strings, and likely library/framework terms from the bug description
  2. Build 2-4 query variants with GitHub code search qualifiers
  3. Run searches using the gitto script (uses gh CLI if authenticated, falls back to API)
  4. Rank results by relevance and return URLs with snippets
  5. Provide analysis: summarize patterns, likely root causes, and 2-3 candidate fixes

Command

bun ~/.config/opencode/skill/gitto/gitto-search.ts \
  --query "<bug description or keywords>" \
  --language "typescript" \
  --limit 15 \
  --issues true

Options

Output Format

Example Usage

For Redux middleware issues:

bun ~/.config/opencode/skill/gitto/gitto-search.ts \
  --query "middleware dispatch undefined action" \
  --org "reduxjs" \
  --language "typescript" \
  --limit 10

For React hooks errors:

bun ~/.config/opencode/skill/gitto/gitto-search.ts \
  --query "useEffect cleanup memory leak" \
  --language "typescript" \
  --issues true

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.