Files
ClawSkills/git-hangman-lab/SKILL.md
zhi 795a710376 refactor: enforce layer responsibilities across all skills
Rewrote docs/standard.md as the single source of truth for skill
structure (menu/tools/recipes/manual analogy). Trimmed all SKILL.md
files to pure routers, moved recruitment workflow out of SKILL.md
into workflows/recruitment.md, removed duplicated standards from
workflow files.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-17 20:40:16 +00:00

56 lines
2.5 KiB
Markdown

---
name: git-hangman-lab
description: Git operations for hangman-lab.top - manage accounts, tokens, repositories, and Gitea settings.
---
> All scripts must be executed via the `pcexec` tool.
## Scripts
### Account & Credentials
| Command | Description |
|---------|-------------|
| `{baseDir}/scripts/git-ctrl check-git-cred` | Verify git credentials are configured correctly |
| `{baseDir}/scripts/git-ctrl create-git-account` | Create a new git account and configure access |
| `{baseDir}/scripts/git-ctrl generate-access-token` | Generate an access token for the current user |
| `{baseDir}/scripts/git-ctrl reset-password` | Reset password (reads username from secret-mgr) |
> **create-git-account**: Do not execute unless explicitly requested. Contact **agent-resource-director** or **hangman** first.
### Repository Operations
| Command | Description |
|---------|-------------|
| `{baseDir}/scripts/git-ctrl repo create <repo-name>` | Create repo at `${AGENT_WORKSPACE}/<repo-name>` |
| `{baseDir}/scripts/git-ctrl repo get-latest <repo-name> [branch] [--recursive] [--force]` | Pull latest or clone if missing |
| `{baseDir}/scripts/git-ctrl repo add-collaborators --user <user> --repo <repo>` | Add a collaborator |
| `{baseDir}/scripts/git-ctrl repo list-all` | List all visible repositories |
| `{baseDir}/scripts/git-ctrl repo config --repo-path <path> [--recursive]` | Configure repo credentials |
### Pull Request Operations
| Command | Description |
|---------|-------------|
| `{baseDir}/scripts/git-ctrl pr create <repo-path> <head> <base> [title] [body]` | Create a PR |
| `{baseDir}/scripts/git-ctrl pr list <repo-path>` | List PRs |
| `{baseDir}/scripts/git-ctrl pr show <repo-path> <index>` | Show PR details |
| `{baseDir}/scripts/git-ctrl pr commits <repo-path> <index>` | List PR commits |
| `{baseDir}/scripts/git-ctrl pr merge <repo-path> <index> <do> [commit-id] [title] [message]` | Merge a PR |
> **pr merge `<do>`**: `merge`, `squash`, `rebase`, or `manually-merged`
> Access token is auto-generated if not found.
### Gitea Settings
| Command | Description |
|---------|-------------|
| `{baseDir}/scripts/git-ctrl link-keycloak` | Link Keycloak account with Gitea (OAuth binding) |
| `{baseDir}/scripts/git-ctrl external-login-ctrl --enable/--disable` | Enable or disable local login on Gitea |
### Package Publishing
| Command | Description |
|---------|-------------|
| `{baseDir}/scripts/git-ctrl publish-package <repo-path>` | Publish a package to the Gitea registry |