Add publish-to-pages agent skill#1035
Merged
aaronpowell merged 2 commits intogithub:stagedfrom Mar 17, 2026
Merged
Conversation
Agent skill that publishes presentations and web content to GitHub Pages. Works with any AI coding agent (Copilot CLI, Claude Code, Gemini CLI, etc.) Features: - Converts PPTX and PDF with full formatting preservation - Creates repo, enables Pages, returns live URL - Zero config — just needs gh CLI Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a new publish-to-pages agent skill that publishes presentations and web content to GitHub Pages. It includes conversion scripts for PPTX and PDF files and a shell script to create a repo and enable Pages.
Changes:
- New skill with
SKILL.mddefining the workflow for converting and publishing content to GitHub Pages - Python scripts for converting PPTX (via
python-pptx) and PDF (viapdftoppm) files to self-contained HTML presentations - Shell script to create a GitHub repo, push content, and enable GitHub Pages
- Updated
docs/README.skills.mdto list the new skill
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| skills/publish-to-pages/SKILL.md | Skill definition with front matter, prerequisites, input detection, conversion steps, publishing instructions, and error handling |
| skills/publish-to-pages/scripts/publish.sh | Shell script to create a GitHub repo, push an HTML file, and enable GitHub Pages |
| skills/publish-to-pages/scripts/convert-pptx.py | Python script converting PPTX to a self-contained HTML slideshow with formatting preservation |
| skills/publish-to-pages/scripts/convert-pdf.py | Python script converting PDF pages to base64-embedded PNG images in an HTML slideshow |
| docs/README.skills.md | Adds the new skill entry to the skills listing |
You can also share your feedback on Copilot code review. Take the survey.
| sys.exit(1) | ||
|
|
||
| # Check for pdftoppm | ||
| if subprocess.run(["which", "pdftoppm"], capture_output=True).returncode != 0: |
Comment on lines
+25
to
+26
| except: | ||
| return None |
Comment on lines
+8
to
+20
| VISIBILITY="${3:-public}" | ||
| DESCRIPTION="${4:-Published via publish-to-pages}" | ||
|
|
||
| USERNAME=$(gh api user --jq '.login') | ||
|
|
||
| # Check if repo exists | ||
| if gh repo view "$USERNAME/$REPO_NAME" &>/dev/null; then | ||
| echo "ERROR: Repository $USERNAME/$REPO_NAME already exists" | ||
| exit 1 | ||
| fi | ||
|
|
||
| # Create repo | ||
| gh repo create "$REPO_NAME" --"$VISIBILITY" --description "$DESCRIPTION" |
Comment on lines
+23
to
+26
| TMPDIR=$(mktemp -d) | ||
| git clone "https://github.com/$USERNAME/$REPO_NAME.git" "$TMPDIR" | ||
| cp "$HTML_FILE" "$TMPDIR/index.html" | ||
| cd "$TMPDIR" |
Comment on lines
+224
to
+233
| if hasattr(shape, "text") and shape.text.strip() and len(shape.text.strip()) < 150: | ||
| title = shape.text.strip() | ||
| break | ||
|
|
||
| html = f'''<!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <title>{title}</title> |
Comment on lines
+60
to
+67
| title = Path(pdf_path).stem.replace("-", " ").replace("_", " ") | ||
|
|
||
| html = f'''<!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <title>{title}</title> |
aaronpowell
approved these changes
Mar 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agent skill that publishes presentations and web content to GitHub Pages. Works with any AI coding agent (Copilot CLI, Claude Code, Gemini CLI, etc.)
Features:
Pull Request Checklist
npm startand verified thatREADME.mdis up to date.Description
Type of Contribution
Additional Notes
By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.