Skip to content
Back to skills

Github Init

ASecurity

Use quando o usuário quiser configurar o pwdev-github — 'configurar github', 'setup do github project', 'init github' — verificando gh, autenticação e o scope project e gravando repo e Project padrão em .planning/github.json. Não use para criar um Project (github-project).

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 28, 2026
toolsbashgit

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 28, 2026

npx -y skills add pwdev-solucoes/pwdev-claude-marketplace --skill github-init --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Github Init?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Github Init
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/pwdev-solucoes-github-init/badge)](https://www.skillsdirectory.com/skills/pwdev-solucoes-github-init)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: github-init
description: >
  Use quando o usuário quiser configurar o pwdev-github — 'configurar github', 'setup do github
  project', 'init github' — verificando gh, autenticação e o scope project e gravando repo e
  Project padrão em .planning/github.json. Não use para criar um Project (github-project).
metadata:
  version: 0.1.0
---

# Setup do GitHub

## 1. Verificação (somente leitura)

```bash
command -v gh >/dev/null && gh --version | head -1 || echo "NO_GH"
gh auth status 2>&1 | grep -E "Logged in|Token scopes" || echo "NO_AUTH"
gh repo view --json nameWithOwner,owner -q '.nameWithOwner + " " + .owner.login' 2>/dev/null || echo "NO_REPO"
cat .planning/github.json 2>/dev/null || echo "NO_CONFIG"
```

| Resultado | Ação |
|---|---|
| `NO_GH` | instruir a instalação (https://cli.github.com/) e PARAR |
| `NO_AUTH` | pedir `! gh auth login` e PARAR |
| scopes sem `project` | pedir `! gh auth refresh -s project` (Projects exige esse scope; `repo` também é necessário) |
| `NO_REPO` | usar `os argumentos` como `owner/repo` ou perguntar |

## 2. Configuração

Pergunte, uma coisa por vez, só o que faltar:
1. **Repositório padrão** das issues (`owner/repo`) — sugira o detectado.
2. **Dono dos Projects**: `@me` (sua conta) ou a organização do repo.
3. **Project ativo**: listar os existentes
   (`gh project list --owner <dono> --format json -q '.projects[] | "\(.number) \(.title)"'`),
   escolher um, ou deixar vazio e criar depois com a skill `github-project`.

Grave `.planning/github.json` (merge, nunca apague chaves existentes):

```json
{
  "repo": "owner/repo",
  "owner": "@me",
  "project": { "number": 7, "url": "https://github.com/users/me/projects/7", "spec": ".planning/github/project-7.spec.json" }
}
```

`.planning/github/` guarda os mapas de publicação (`<slug>.map.json`) e as specs efetivas dos
Projects — devem ser versionados junto com o roadmap para que outro dev continue o publish.

## 3. Resumo

```
✅ pwdev-github configurado
   gh {versão} · scopes: {scopes}
   Repo: {owner/repo} · Projects de: {owner} · Project ativo: {#n título | nenhum}

👉 github-project      → criar Project a partir de template
👉 github-publish <roadmap.json> → publicar roadmap
👉 "fecha a issue #12", "move #14 para Em andamento" → skill github-issues
```

Idioma: responda no idioma de `.planning/config.json` (`lang`); sem config, no idioma do usuário. Caminhos `<plugin-root>/...`, `references/`, `scripts/` e `templates/` são relativos à raiz do plugin; nomes de ferramentas e a forma de citar comandos dependem do runtime (`references/runtime.md`).

Files in this skill

  • SKILL.md2.6 KB
  • agents/openai.yaml175 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…