From 5ff43a2da22effee33660e3cc6c82b437f280ba5 Mon Sep 17 00:00:00 2001 From: robellliu-dev <55232217+robellliu-dev@users.noreply.github.com> Date: Tue, 30 Jun 2026 13:44:06 +0800 Subject: [PATCH] docs: update GitCode CLI workflow --- SKILL.md | 34 +++++++++++------------ references/gitcode-cli-workflow.md | 44 ++++++++++++++++-------------- references/pr-quality-gate.md | 6 ++-- 3 files changed, 42 insertions(+), 42 deletions(-) diff --git a/SKILL.md b/SKILL.md index b97dcc9..f7797ff 100644 --- a/SKILL.md +++ b/SKILL.md @@ -1,15 +1,15 @@ --- name: gitcode-issue-fix -description: Use this skill for GitCode-hosted repositories when asked to analyze repository architecture and contribution rules, discover security/functionality/pre-existing bug issues, create GitCode issues with gitcode-cli/gc, fix issues, submit pull requests, or repair PR CI failures while following project contribution guidelines. +description: Use this skill for GitCode-hosted repositories when asked to analyze repository architecture and contribution rules, discover security/functionality/pre-existing bug issues, create GitCode issues with gitcode-cli, fix issues, submit pull requests, or repair PR CI failures while following project contribution guidelines. --- # GitCode Issue Fix ## Overview -Use this skill for a full GitCode open-source contribution loop: understand the repository, generate a repository architecture and contribution-rules Markdown profile, identify candidate issues, file issues with `gc`, implement minimal fixes, open/update PRs, and drive local/remote CI to green. +Use this skill for a full GitCode open-source contribution loop: understand the repository, generate a repository architecture and contribution-rules Markdown profile, identify candidate issues, file issues with `gitcode`, implement minimal fixes, open/update PRs, and drive local/remote CI to green. -Use the GitCode CLI as `gc`. If only `gitcode` or `gitcode-cli` exists locally, inspect its `--help` and adapt commands. +Use the GitCode CLI as `gitcode`/`gitcode.exe` by default. On Windows PowerShell, do not use bare `gc` because it is a built-in alias for `Get-Content`; use `gitcode.exe`, `gc.exe`, or `python -m gc_cli` instead. Inspect `gitcode --help` and adapt commands if flags differ. ## Required First Step @@ -17,14 +17,14 @@ Before proposing issues or editing code: 1. Preserve local work: run `git status --short`, `git branch --show-current`, and `git remote -v`. 2. Read repository rules: `AGENTS.md`, `CONTRIBUTING*`, `SECURITY*`, `.gitcode/PULL_REQUEST_TEMPLATE*`, `.gitcode/ISSUE_TEMPLATE*`, `.gitcode/workflows/`, `.pre-commit-config.yaml`, build/test configs, and language manifests. -3. Generate or refresh a repository profile Markdown: - - `python "/scripts/generate_repo_profile.py" --repo "." --output "docs/architecture-and-contribution-rules.md"` - - If the repo has another docs convention, choose the nearest existing docs path. -4. Read `references/gitcode-cli-workflow.md` before using `gc`. -5. Read `references/pr-quality-gate.md` before committing, pushing, or opening a PR. - -For work that may sprawl across files, or when discovering new engineering issues, read -`references/scope-and-archetypes.md` for the minimal-change scope guard and common issue archetypes. +3. Generate or refresh a repository profile Markdown: + - `python "/scripts/generate_repo_profile.py" --repo "." --output "docs/architecture-and-contribution-rules.md"` + - If the repo has another docs convention, choose the nearest existing docs path. +4. Read `references/gitcode-cli-workflow.md` before using `gitcode`. +5. Read `references/pr-quality-gate.md` before committing, pushing, or opening a PR. + +For work that may sprawl across files, or when discovering new engineering issues, read +`references/scope-and-archetypes.md` for the minimal-change scope guard and common issue archetypes. ## Issue Discovery @@ -56,16 +56,14 @@ Use repository templates when present. For this common GitCode layout: Prefer body files to avoid shell quoting mistakes: ```bash -gc issue create -R / --title "