# Github Issues Dump

> Export all GitHub issues (open/closed) using a PAT from .env and write open.md + closed.md including description, link, and comments.

- Skill: `alirana01/github-issues-dump` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add alirana01/github-issues-dump`
- Raw SKILL.md: https://api.skillmd.com/api/skills/alirana01/github-issues-dump/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: alirana01 (https://skillmd.com/u/alirana01)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/alirana01/github-issues-dump

---


# GitHub Issues Dump

## What it does
- Reads `GITHUB_TOKEN` from a `.env` file.
- Fetches all issues from a repo (excluding pull requests).
- Writes two files into an output folder:
  - `open.md`
  - `closed.md`
- Each issue includes: title, number, URL, author, created/updated, body, and all comments.

## Usage
Run:
- `python .cursor/skills/github-issues-dump/scripts/export_issues.py --repo OWNER/REPO --out issues_dump`

Optional:
- `--env .env`
- `--since 2025-01-01` (ISO date)
- `--include-labels` (prints labels)
- `--max-comments 0` (0 = all, otherwise limit)

## Required .env
Create `.env` with:
- `GITHUB_TOKEN=ghp_...`

