Gestion GitHub Wiki et Projects

VérifiéSûr

Gère les pages du Wiki GitHub et les tableaux de projets GitHub pour le dépôt courant. Gère les différentes méthodes d'authentification requises pour les opérations sur le Wiki (SSH uniquement pour les push) et les Projets (nécessite la portée project pour gh CLI). Utile pour éditer la documentation ou organiser des tâches via GitHub Projects sans configuration manuelle.

Spar Skills Guide Bot
DeveloppementIntermédiaire
9002/06/2026
Claude Code
#github#wiki#projects#authentication#ssh

Recommandé pour

Notre avis

Gère les pages Wiki GitHub et les tableaux de projets GitHub pour le dépôt courant, en gérant les particularités d'authentification SSH et OAuth.

Points forts

  • Automatise le clonage, l'édition et le push du Wiki via SSH
  • Gère les tableaux de projets GitHub avec les commandes gh CLI
  • Fournit un dépannage clair pour les erreurs 403 et de portée courantes

Limites

  • Ne fonctionne que pour le wiki et les projets du dépôt courant
  • Nécessite une configuration SSH et une authentification gh CLI avec les portées projet
  • Ne gère pas plusieurs dépôts ni les automatismes avancés de projet
Quand l'utiliser

Utilisez lorsque vous devez modifier par lots des pages wiki ou gérer des tableaux de projet dans un seul dépôt.

Quand l'éviter

Évitez si vous avez besoin de gestion de projets multi-dépôts ou si vous manquez de permissions SSH/gh ; préférez GitHub Actions pour des workflows plus complexes.

Analyse de sécurité

Sûr
Score qualité92/100

The skill uses standard Git, SSH, and GitHub CLI commands for legitimate repository management. No destructive actions, exfiltration, or obfuscation are present.

Aucun point d'attention détecté

Exemples

List wiki pages
/github wiki list
Edit wiki page
/github wiki edit Home
List GitHub Projects
/github projects list

name: github description: Manage GitHub Wiki and GitHub Projects for the current repo. Knows the authentication quirks for each (SSH for Wiki push, OAuth scopes for Projects). argument-hint: "[wiki or projects] [action]" allowed-tools: "Bash(git:),Bash(gh:),Bash(ssh:*),Read,Write,Edit,Grep,Glob"

GitHub Wiki & Projects Skill

Assists with GitHub Wiki editing and GitHub Project board management for the current repository.

Quick Commands

  • /github wiki list — Clone the wiki and list all pages
  • /github wiki edit <page> — Edit a specific wiki page
  • /github wiki create <page> — Create a new wiki page
  • /github projects list — List GitHub Projects for this repo
  • /github projects view <number> — View a specific project board

Authentication Reference

GitHub uses three different auth mechanisms depending on the operation. Getting these wrong produces confusing 403 errors.

| Operation | Auth method | Notes | |-----------|------------|-------| | Wiki read (clone) | SSH or HTTPS | Either works | | Wiki push | SSH only | Fine-grained PATs get 403. Always use git@github.com: URL. | | Issues, PRs, releases | gh CLI | Uses the OAuth token from gh auth login | | GitHub Projects (boards) | gh CLI + project scope | Requires gh auth refresh -s read:project,project first |

Before Wiki operations

  1. Verify SSH: ssh -T git@github.com
  2. Get the repo's remote URL: git remote get-url origin
  3. Construct the wiki SSH URL by replacing .git with .wiki.git and ensuring it starts with git@github.com:
  4. Clone into your system's temp directory (e.g., /tmp/ on Linux/macOS, %TEMP% on Windows)

Before GitHub Projects operations

The default gh OAuth token lacks project scopes. If gh project list fails with a scopes error, tell the user:

Your gh token needs the project scope. Run:

gh auth refresh -s read:project,project

Wiki Workflow

  1. Clone the wiki into a temp directory using the SSH URL:
    git clone git@github.com:<owner>/<repo>.wiki.git <scratchpad-or-temp-dir>/<project>-wiki
    
  2. Edit markdown files using Read/Write/Edit tools
  3. Validate — use Grep to check for broken links, TODO markers, stale content
  4. Commit and push from the wiki checkout:
    git -C <wiki-dir> add . && git -C <wiki-dir> commit -m "docs: <description>" && git -C <wiki-dir> push origin master
    

Wiki repos have a single master branch and no PR workflow — commits push directly.

GitHub Projects Workflow

Detect the repo owner from gh repo view:

OWNER=$(gh repo view --json owner --jq '.owner.login')

# List projects
gh project list --owner "$OWNER"

# View a project
gh project view <number> --owner "$OWNER"

# Add an issue to a project
gh project item-add <project-number> --owner "$OWNER" --url <issue-url>

Common Pitfalls

  • Wiki push 403: You used HTTPS or a fine-grained token. Switch to SSH.
  • Project scope error: Run gh auth refresh -s read:project,project.
  • Wiki branch confusion: Wiki repos use master, not main.
  • Stale wiki clone: Always git pull before editing if the clone already exists.
Skills similaires