# Github Debug

> Use to investigate open issues relating to specific github package issues.

- **Type:** Skill
- **Install:** `agentstack add skill-sygnaltech-agent-skills-github-debug`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [sygnaltech](https://agentstack.voostack.com/s/sygnaltech)
- **Installs:** 0
- **Category:** [Developer Tools](https://agentstack.voostack.com/c/developer-tools)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [sygnaltech](https://github.com/sygnaltech)
- **Source:** https://github.com/sygnaltech/agent-skills/tree/main/src/generators/github-debug

## Install

```sh
agentstack add skill-sygnaltech-agent-skills-github-debug
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

## How to Search Issues

Use the Bash tool to run Node.js scripts that call the GitHub API:

### Search all public GitHub issues:
```bash
node -e "
const { searchIssues } = require('./src/generators/github-debug/github-api.js');
searchIssues('your search query', { limit: 10 })
  .then(issues => console.log(JSON.stringify(issues, null, 2)))
  .catch(err => console.error(err.message));
"
```

### Search in a specific repository:
```bash
node -e "
const { searchIssues } = require('./src/generators/github-debug/github-api.js');
searchIssues('error message', { repo: 'owner/repo', limit: 10 })
  .then(issues => console.log(JSON.stringify(issues, null, 2)))
  .catch(err => console.error(err.message));
"
```

### Search with filters:
```bash
node -e "
const { searchIssues } = require('./src/generators/github-debug/github-api.js');
searchIssues('TypeError', {
  language: 'javascript',
  state: 'all',
  limit: 10
})
  .then(issues => console.log(JSON.stringify(issues, null, 2)))
  .catch(err => console.error(err.message));
"
```

### Get specific issue details:
```bash
node -e "
const { getIssue } = require('./src/generators/github-debug/github-api.js');
getIssue('owner/repo', 123)
  .then(issue => console.log(JSON.stringify(issue, null, 2)))
  .catch(err => console.error(err.message));
"
```

### Extract error pattern from stack trace:
```bash
node -e "
const { extractErrorPattern } = require('./src/generators/github-debug/github-api.js');
const errorText = \`YOUR_ERROR_TEXT_HERE\`;
console.log(extractErrorPattern(errorText));
"
```

## Workflow

When a user reports an error or bug:

1. **Extract the error signature**: Identify the key error message or type
2. **Search GitHub issues**: Use searchIssues() with relevant keywords
3. **Analyze results**: Look for:
   - Similar error messages
   - Same package/library versions
   - Matched stack traces
   - Resolution status (open vs closed)
4. **Report findings**: Present:
   - Issue title and URL
   - Current state (open/closed)
   - Key comments or workarounds
   - Version information if available
5. **Provide recommendations**: Suggest fixes, upgrades, or workarounds

## Search Tips

- **Be specific**: Use exact error messages when possible
- **Try variations**: Search multiple ways (error type, function name, symptom)
- **Filter by repo**: If you know which library is causing the issue
- **Check state**: Search closed issues for fixes, open for active problems
- **Language filter**: Narrow results to specific programming languages

## Output Format

When presenting results, format them clearly:

```
Found X relevant issues:

1. [OPEN] Issue Title (#123)
   URL: https://github.com/owner/repo/issues/123
   Summary: Brief description of the issue
   Status: Open since 2024-01-15 | 45 comments

2. [CLOSED] Similar Issue (#456)
   URL: https://github.com/owner/repo/issues/456
   Summary: Same error, fixed in v2.1.0
   Status: Closed | Fixed by PR #457
```

## Authentication (Optional)

For higher rate limits (5,000 requests/hour instead of 60), users can set:
```bash
export GITHUB_TOKEN=your_personal_access_token
```

Without authentication, searches still work but with lower rate limits.

## Common Use Cases

1. **Debugging dependency errors**: Search the package's repo for the error
2. **Build failures**: Search CI/CD related issues
3. **API errors**: Find known API bugs or breaking changes
4. **Performance issues**: Search for performance-related discussions
5. **Feature requests**: Check if a feature is already requested

## Example Interaction

User: "I'm getting 'TypeError: Cannot read property 'map' of undefined' in React"

## When to Use This Skill

Trigger this skill when users are:

- Debugging dependency errors 
- Debugging build failures 
- Dealing with unexplained behavior in specific systems

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [sygnaltech](https://github.com/sygnaltech)
- **Source:** [sygnaltech/agent-skills](https://github.com/sygnaltech/agent-skills)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-sygnaltech-agent-skills-github-debug
- Seller: https://agentstack.voostack.com/s/sygnaltech
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
