githubrestapi

Provides a typed pagination wrapper for the GitHub REST API built on Octokit.js and the @octokit/plugin-paginate-rest plugin. Handles Link header parsing, detects rate limits via X-RateLimit-Remaining, and supports automatic retries with exponential backoff. Supports listing issues, pull requests, commits, and workflow runs using an async-iterator pattern.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "githubrestapi" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-b6086f7aeed2b0b15d661ad0371c428a3f248df53d311b9af75e6388380b2c16. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/github-rest-api-paginator-library before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Provides a typed pagination wrapper for the GitHub REST API built on Octokit.js and the @octokit/plugin-paginate-rest plugin. Handles Link header parsing, detects rate limits via X-RateLimit-Remaining, and supports automatic retries with exponential backoff. Supports listing issues, pull requests, commits, and workflow runs using an async-iterator pattern.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: "GitHub REST API 分页器库"
slug: "github-rest-api-paginator-library"
version: "1.0.0"
displayName: "GitHub REST API 分页器库"
summary: "使用 Octokit.js 和 @octokit/plugin-paginate-rest 插件为 GitHub REST API 提供类型安全的分页包装器。处理 Link 头解析、通过 X-RateLimit-Remaining 检测速率限制,并使用指数退避机制自动重试。支持使用异步迭代器模式列出问题、拉取请求、提交和工作流运行。"
license: "MIT"
description: "提供了一个使用 Octokit.js 和 @octokit/plugin-paginate-rest 插件的 GitHub REST API 类型化分页包装器。处理 Link 头解析、通过 X-RateLimit-Remaining 检测速率限制,并支持指数退避自动重试。支持使用异步迭代器模式列出问题、拉取请求、提交和工作流运行。"
github_stars: 58
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
author: "1991513ccie-png"
category: "Library & API Reference"
framework: "Codex"
tool_ecosystem:
  github_repo: "1991513ccie-png/skills"
  github_stars: 58
  npm_package: "@octokit/plugin-paginate-rest"
  npm_weekly_downloads: 26656585

GitHub REST API 分页器库

Provides a typed pagination wrapper for the GitHub REST API using Octokit.js and the @octokit/plugin-paginate-rest plugin. Handles Link header parsing, rate limit detection via X-RateLimit-Remaining, and automatic retry with exponential backoff. Supports listing issues, pull requests, commits, and workflow runs with async iterator patterns.

Installation

Requirements and caveats from upstream:

  • Node
  • If your target runtime environments supports async iterators (such as most modern browsers and Node 10+), you can iterate through each response
  • The compose methods work just like their octokit. counterparts described above, with the differenct that both methods require an octokit instance to be passed as first argument

Basic usage or getting-started notes:

Documentation

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value72/100

Highlights

  • 提供类型安全的 GitHub REST API 分页包装器,集成速率限制检测与指数退避重试机制
  • 支持异步迭代器模式,适用于问题、拉取请求、提交和工作流运行的列表操作
Trigger Precision55/100

Areas to improve

  • 触发词缺失 Reported severity: Minor

    description 字段未包含明确的触发关键词(如“分页”、“GitHub API”、“速率限制”),用户难以通过自然语言精准触发

    Recommendation: 在 description 中添加核心功能关键词,如“GitHub API 分页”、“速率限制处理”、“异步迭代器”等

Structure and Standards58/100

Areas to improve

  • description写错位置 Reported severity: Minor

    skill_body 中重复了顶层 description 内容,且未在 body 中提供独立的触发描述

    Recommendation: 修复 Installation 部分的未闭合 HTML 标签(<table>、<tbody>、<tr>)

Execution Reliability65/100

Areas to improve

  • 缺少安装指引 Reported severity: Major

    文档未明确说明如何安装依赖包 @octokit/plugin-paginate-rest,用户无法直接执行

    Recommendation: 在 Installation 章节添加具体的 npm 安装命令,如 'npm install @octokit/plugin-paginate-rest'

Highlights

  • 基于官方 Octokit.js 生态,工具来源可靠
  • 支持指数退避自动重试,提升 API 调用稳定性
Evidence Verifiability (mean of the first four)63/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com
  • raw.githubusercontent.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.