restructure: flatten scripts dirs, remove roster, update SKILL.md

This commit is contained in:
lyn
2026-03-25 07:30:09 +00:00
parent b9785b6295
commit d358abf1ce
19 changed files with 62 additions and 92 deletions

View File

@@ -12,7 +12,7 @@ description: Git operations for hangman-lab.top - manage accounts, tokens, repos
Verify git credentials are configured correctly.
```bash
{baseDir}/scripts/git/git-ctrl check-git-cred
{baseDir}/scripts/git-ctrl check-git-cred
```
### Create Git Account
@@ -22,7 +22,7 @@ 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/git-ctrl create-git-account --username <username> --email <email>
{baseDir}/scripts/git-ctrl create-git-account
```
### Generate Access Token
@@ -30,7 +30,7 @@ Create a new git account and configure access.
Generate an access token for the current user.
```bash
{baseDir}/scripts/git/git-ctrl generate-access-token
{baseDir}/scripts/git-ctrl generate-access-token
```
### Link Keycloak Account
@@ -38,7 +38,7 @@ Generate an access token for the current user.
Link Keycloak account with Gitea (for OAuth binding).
```bash
{baseDir}/scripts/git/git-ctrl link-keycloak
{baseDir}/scripts/git-ctrl link-keycloak
```
### Add Repository Collaborator
@@ -46,12 +46,7 @@ Link Keycloak account with Gitea (for OAuth binding).
Add a collaborator to a repository.
```bash
# Add to specific repository
{baseDir}/scripts/git/git-ctrl repo-add-collaborators --user <user> --repo <repo>
# Add to roster repository (hzhang/.roster)
# ⚠️ This command can only be executed by agent-resource-director
{baseDir}/scripts/git/git-ctrl repo-add-collaborators --user <user> --roster
{baseDir}/scripts/git-ctrl repo-add-collaborators --user <user> --repo <repo>
```
### Repository Config
@@ -59,7 +54,7 @@ Add a collaborator to a repository.
When you clone a repository from git.hangman-lab.top and are ready to develop, or after creating a new local repo with git init, run:
```bash
{baseDir}/scripts/git/git-ctrl repo-config --repo-path <path to your repo> --email <your email>
{baseDir}/scripts/git-ctrl repo-config --repo-path <path to your repo>
```
### External Login Control
@@ -67,8 +62,8 @@ When you clone a repository from git.hangman-lab.top and are ready to develop, o
Enable or disable local login on Gitea.
```bash
{baseDir}/scripts/git/git-ctrl external-login-ctrl --enable
{baseDir}/scripts/git/git-ctrl external-login-ctrl --disable
{baseDir}/scripts/git-ctrl external-login-ctrl --enable
{baseDir}/scripts/git-ctrl external-login-ctrl --disable
```
### Reset Password
@@ -76,5 +71,5 @@ Enable or disable local login on Gitea.
Reset password for the current user (reads username from secret-mgr).
```bash
{baseDir}/scripts/git/git-ctrl reset-password
{baseDir}/scripts/git-ctrl reset-password
```