원클릭으로
pr
Create a draft GitHub pull request after documentation changes are complete. Use when the user confirms they want to open a PR.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Create a draft GitHub pull request after documentation changes are complete. Use when the user confirms they want to open a PR.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | pr |
| description | Create a draft GitHub pull request after documentation changes are complete. Use when the user confirms they want to open a PR. |
Create a draft PR for changes made in the current session. Always create as draft — the writer reviews the deploy preview before requesting review.
.agents/references/troubleshooting.md — if the Mintlify preview shows a blank page or 404Do not read any other files. All context needed comes from the calling skill's output.
Before doing anything else, verify that the required tools are available.
gh CLIgh auth status
If the command fails or says "not logged in":
GitHub CLI is not authenticated.
To fix this, choose one of:
Option A — Interactive login (recommended):
gh auth loginFollow the prompts. Select HTTPS or SSH, then authenticate via browser.
Option B — Personal access token:
- Go to https://github.com/settings/tokens
- Generate a token with
reposcope- Set it as an environment variable:
Or add it permanently via Windows environment variables.$env:GH_TOKEN = "your-token-here"After authenticating, run
gh auth statusagain to confirm.
git ls-remote origin
If this fails:
Git cannot connect to the remote repository.
To fix this:
If using SSH (recommended):
- Check if you have an SSH key:
ls ~/.ssh/id_*.pub- If not, generate one:
ssh-keygen -t ed25519 -C "your@email.com"- Add the public key to GitHub: https://github.com/settings/keys
- Test:
ssh -T git@github.comIf using HTTPS:
- Git will prompt for credentials on push
- Use a personal access token as the password (not your GitHub password) Generate at: https://github.com/settings/tokens (scope:
repo)
Do not proceed until both checks pass.
Before creating the PR, confirm you have:
{TODO:} items that remain in the draftRunning the local preview lets the user verify the article renders correctly before creating a PR. Run it now, then continue with the steps below — do not wait for it to finish loading.
mintlify --version
If the command is not found:
Mintlify CLI is not installed.
Install it once with npm (Node.js required):
npm i -g mintlifyNode.js download: https://nodejs.org (LTS version)
After installing, run
mintlify --versionto confirm.
Run from the repository root (where docs.json lives) in the background —
do not wait for output, continue immediately with Step 1:
# Start in a separate window so it doesn't block
Start-Process powershell -ArgumentList "-NoExit", "-Command", `
"Set-Location 'C:\Projects\product-documentation'; mintlify dev"
Mintlify chooses the port automatically (default 3000, increments if taken). The URL appears in the terminal window that opened. Tell the user:
Local preview is starting. The URL will appear in the new terminal window (usually http://localhost:3000). Navigate to the article you just edited to check how it renders. Continue — we'll create the PR in parallel.
Infer the product display name from the file path. Use this table:
| Folder | Display name |
|---|---|
cloud/ | Cloud |
cdn/ | CDN |
dns/ | DNS |
waap/ | WAAP |
streaming/ | Streaming |
storage/ | Storage |
fastedge/ | FastEdge |
ddos-protection/ | DDoS Protection |
edge-ai/ | Edge AI |
hosting/ | Hosting |
account-settings/ | Account Settings |
developer-tools/ | Developer Tools |
reseller-support/ | Reseller Support |
If the change spans multiple products, list the two most prominent: [Cloud, CDN].
Determine the branch name based on what was done:
| What was done | Branch name |
|---|---|
| New article | new-article/{product}-{slug} |
| Added API tab | api-tab/{product}-{slug} |
| Updated article | update/{product}-{slug} |
| GitHub issue work | issue/{number}-{short-slug} |
| Audited article | audit/{product}-{slug} |
| Feature draft (contributor) | feature-draft/{ticket-id-or-slug} |
Where {slug} is the article filename without .mdx.
Do not run any git commands yet.
After completing all content changes, report what was done and ask the user for permission to commit and push. Use this exact format:
Work is complete. Here is what was changed:
{file path}— {what was done}{file path}— {what was done}Proposed branch:
{branch-name}Proposed commit message:[{Product}] {short description}Proceed with commit and push?
Only after the user explicitly confirms — run the git operations in this order:
cd C:\Projects\product-documentation
git checkout main
git pull origin main
git checkout -b {branch-name}
Stage only the files changed in this session — by name, never git add .:
git add {file1} {file2} {screenshot-paths}
Before staging, run git status and verify the list. If unrelated files appear
in the working tree — do not stage them. Ask the user if they should be included.
Commit message format: [Product] Short description
Rules:
git commit -m "[Product] Short description"
git push -u origin {branch-name}
After pushing, two CI workflows may auto-commit to your branch:
sanitize-ai-navigation — fixes : or # in ai-navigation frontmatternormalize-images — renames images and updates MDX pathsWait ~30 seconds, then run git pull before any follow-up commits.
If you commit without pulling, the push will be rejected with "non-fast-forward".
gh pr create --base main --draft --title "[{Product}] {short description}" --body-file /tmp/pr-body.md
Always --draft. Always --base main.
PR title follows the same format as the commit message:
[Product] Short description[Product] Draft: Feature namePR body — write to a temp file first, then use --body-file:
## What changed
{1-3 sentences: what was done and why. Link to Jira ticket or GitHub issue if available.}
Closes #{issue-number}
## Files changed
- `{file path}` — {what was done to it}
## TODO before publishing
{List every {TODO:} item from the draft, as checkboxes.
If no TODOs — write "No TODOs. Ready for review."}
- [ ] {TODO item 1}
- [ ] {TODO item 2}
- [ ] Writer review and approval
Add the Closes #N line when the PR resolves a GitHub issue from
G-Core/product-documentation. Omit it for Jira-only work.
Write the body with the Write tool, then clean up:
# After gh pr create runs:
Remove-Item /tmp/pr-body.md
PR created: {URL}
Branch: {branch-name}
Status: Draft
Files staged:
- {file 1}
- {file 2}
{If TODOs exist:}
TODOs in draft ({N} items):
- {TODO 1}
- {TODO 2}
Next step: review the deploy preview, then mark as ready for review.
gh is not availableIf the gh CLI is not installed or not authenticated, provide:
https://github.com/G-Core/product-documentation/compare/main...{branch-name}
Full regression test of an existing article against the live portal. Use when articles may be stale and need end-to-end verification against the current portal UI before updating.
Add REST API coverage to an existing Customer Portal article with MethodSwitch and repository OpenAPI specs. Use when asked to add API coverage or create a REST API tab for a portal-only article.
Audit and update an existing documentation article by testing each step against the live Gcore portal. Use when asked to verify, audit, or fix an outdated article through portal testing.
Triage and work on a GitHub issue from G-Core/product-documentation one at a time. Use when the user asks to pick up an issue, work the issue queue, or gives an issue number or URL from https://github.com/G-Core/product-documentation/issues.
Write the opening paragraph(s) for a documentation tab or section. Use when adding or rewriting an intro for a MethodSection (Portal, REST API, Terraform, etc.) or any article section that needs a short lead-in.
Use this skill to triage and work on GitHub issues from G-Core/product-documentation one at a time. It fetches the issue via gh or GitHub API, checks whether the work is already on main, classifies the request, finds the affected MDX article, creates an issue/{number}-{slug} branch, routes to update-page, write-from-scratch, full-audit, or cookbook, and closes the loop with a PR that references Closes #N. Trigger when the user says "work on GitHub issues", "pick up issue #1845", "next issue from the queue", pastes a link to github.com/G-Core/product-documentation/issues/, or asks to start documentation work from the issue tracker. Use BEFORE loading other writing skills unless the user already completed triage. Do not use for Jira tickets (use jira-context instead).