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>
This commit is contained in:
@@ -3,86 +3,53 @@ name: git-hangman-lab
|
||||
description: Git operations for hangman-lab.top - manage accounts, tokens, repositories, and Gitea settings.
|
||||
---
|
||||
|
||||
> ⚠️ **Note**: All scripts must be executed via the `pcexec` tool.
|
||||
> All scripts must be executed via the `pcexec` tool.
|
||||
|
||||
## Git Operations
|
||||
## Scripts
|
||||
|
||||
### Check Git Credentials
|
||||
### Account & Credentials
|
||||
|
||||
Verify git credentials are configured correctly.
|
||||
| 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) |
|
||||
|
||||
```bash
|
||||
{baseDir}/scripts/git-ctrl check-git-cred
|
||||
```
|
||||
|
||||
### Create Git Account
|
||||
|
||||
Create a new git account and configure access.
|
||||
|
||||
> ⚠️ **Warning**: Do not execute this command unless explicitly requested. If you don't have a git account, contact **agent-resource-director** or **hangman** to guide you through the process.
|
||||
|
||||
```bash
|
||||
{baseDir}/scripts/git-ctrl create-git-account
|
||||
```
|
||||
|
||||
### Generate Access Token
|
||||
|
||||
Generate an access token for the current user.
|
||||
|
||||
```bash
|
||||
{baseDir}/scripts/git-ctrl generate-access-token
|
||||
```
|
||||
> **create-git-account**: Do not execute unless explicitly requested. Contact **agent-resource-director** or **hangman** first.
|
||||
|
||||
### Repository Operations
|
||||
|
||||
Manage repositories via `git-ctrl repo`:
|
||||
|
||||
```bash
|
||||
{baseDir}/scripts/git-ctrl repo create <repo-name>
|
||||
{baseDir}/scripts/git-ctrl repo add-collaborators --user <user> --repo <repo>
|
||||
{baseDir}/scripts/git-ctrl repo list-all
|
||||
{baseDir}/scripts/git-ctrl repo config --repo-path <path> [--recursive]
|
||||
```
|
||||
|
||||
> `create` creates the repo at `${AGENT_WORKSPACE}/${repo-name}`
|
||||
| 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
|
||||
|
||||
Manage pull requests on git.hangman-lab.top.
|
||||
| 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 |
|
||||
|
||||
```bash
|
||||
{baseDir}/scripts/git-ctrl pr create <repo-local-path> <head-branch> <base-branch> [pr-title] [pr-body]
|
||||
{baseDir}/scripts/git-ctrl pr list <repo-local-path>
|
||||
{baseDir}/scripts/git-ctrl pr commits <repo-local-path> <pr-index>
|
||||
{baseDir}/scripts/git-ctrl pr merge <repo-local-path> <pr-index> <do> [commit-id] [title] [message]
|
||||
{baseDir}/scripts/git-ctrl pr show <repo-local-path> <pr-index>
|
||||
```
|
||||
> **pr merge `<do>`**: `merge`, `squash`, `rebase`, or `manually-merged`
|
||||
> Access token is auto-generated if not found.
|
||||
|
||||
> **Note**: The access token will be automatically generated if not found.
|
||||
### Gitea Settings
|
||||
|
||||
> **`<do>`** can be: `merge`, `squash`, `rebase`, `manually-merged`
|
||||
| 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 |
|
||||
|
||||
### Link Keycloak Account
|
||||
### Package Publishing
|
||||
|
||||
Link Keycloak account with Gitea (for OAuth binding).
|
||||
|
||||
```bash
|
||||
{baseDir}/scripts/git-ctrl link-keycloak
|
||||
```
|
||||
|
||||
### External Login Control
|
||||
|
||||
Enable or disable local login on Gitea.
|
||||
|
||||
```bash
|
||||
{baseDir}/scripts/git-ctrl external-login-ctrl --enable
|
||||
{baseDir}/scripts/git-ctrl external-login-ctrl --disable
|
||||
```
|
||||
|
||||
### Reset Password
|
||||
|
||||
Reset password for the current user (reads username from secret-mgr).
|
||||
|
||||
```bash
|
||||
{baseDir}/scripts/git-ctrl reset-password
|
||||
```
|
||||
| Command | Description |
|
||||
|---------|-------------|
|
||||
| `{baseDir}/scripts/git-ctrl publish-package <repo-path>` | Publish a package to the Gitea registry |
|
||||
|
||||
Reference in New Issue
Block a user