Back to list
ciallo-agent

github-api

by ciallo-agent

✨ Your thoughts, my actions. Autonomous Agent Framework by sdjz.wiki Lab

1🍴 0📅 Dec 23, 2025

SKILL.md


name: github-api description: How to interact with GitHub API. Use this skill for repos, PRs, issues, and user operations.

GitHub API Skill

Authentication

# REST API
$headers = @{ "Authorization" = "token YOUR_TOKEN"; "Accept" = "application/vnd.github.v3+json" }

# GraphQL API
$headers = @{ "Authorization" = "bearer YOUR_TOKEN"; "Content-Type" = "application/json" }

REST API Operations

Get User Info

Invoke-RestMethod -Uri "https://api.github.com/user" -Headers $headers

Create/Update File

$contentBase64 = [Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes($content))
$body = @{ message = "commit msg"; content = $contentBase64; sha = $existingSha } | ConvertTo-Json
Invoke-RestMethod -Uri "https://api.github.com/repos/OWNER/REPO/contents/PATH" -Method PUT -Headers $headers -Body $body

Create PR

$body = @{ title = "PR title"; body = "desc"; head = "branch"; base = "main" } | ConvertTo-Json
Invoke-RestMethod -Uri "https://api.github.com/repos/OWNER/REPO/pulls" -Method POST -Headers $headers -Body $body

GraphQL API Operations

Update User Status (NOT available in REST API!)

$query = @{ query = 'mutation { changeUserStatus(input: {emoji: ":sparkles:", message: "Your status"}) { status { emoji message } } }' } | ConvertTo-Json
Invoke-RestMethod -Uri "https://api.github.com/graphql" -Method POST -Headers $headers -Body $query

Important Notes

  • User status uses GraphQL, not REST (REST returns 404)
  • README.md might be in .github/ folder
  • GitHub releases use redirects, curl needs -L flag

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新

+5
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

0/5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon