AI-Agent-Toolkit github

GitHub Skill

install
source · Clone the upstream repo
git clone https://github.com/ngapngap/AI-Agent-Toolkit
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ngapngap/AI-Agent-Toolkit "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.agent/skills/github" ~/.claude/skills/ngapngap-ai-agent-toolkit-github && rm -rf "$T"
manifest: .agent/skills/github/SKILL.md
source content

GitHub Skill

Overview

GitHub integration skill using

gh
CLI for repository operations.

Requirements

  • gh
    CLI installed and authenticated
  • Or
    GITHUB_TOKEN
    environment variable

Usage

const { searchRepos, getRepoInfo, cloneRepo } = require('./scripts/github.js');

// Search repositories
const repos = await searchRepos('nodejs starter template', { limit: 10 });

// Get repository info
const info = await getRepoInfo('owner/repo');

// Clone repository
await cloneRepo('owner/repo', './local-path');

Operations

Search Repositories

node .agent/skills/github/scripts/github.js search "query" --limit 10 --language javascript

Get Repository Info

node .agent/skills/github/scripts/github.js info owner/repo

Clone Repository

node .agent/skills/github/scripts/github.js clone owner/repo ./path

List Repository Contents

node .agent/skills/github/scripts/github.js contents owner/repo [path]

Outputs

Search Results

{
  "repos": [
    {
      "full_name": "owner/repo",
      "description": "...",
      "stars": 1234,
      "license": "MIT",
      "language": "JavaScript",
      "updated_at": "2024-01-15"
    }
  ]
}

Repository Info

{
  "full_name": "owner/repo",
  "description": "...",
  "default_branch": "main",
  "license": "MIT",
  "stars": 1234,
  "forks": 56,
  "open_issues": 10,
  "topics": ["nodejs", "starter"]
}

Integration

Used by

Architect
agent during Research phase to find and analyze candidate repositories.