agentleFS
MorningStar0709MorningStar0709/trae-agent-enhancements/skills/chinese-git-workflow/SKILL.md

chinese-git-workflow

Skill18 starsChanged 7 months agoMITView on GitHub

Configure Git for domestic platforms and manage branching strategies suitable for Chinese teams. Use when the user asks to configure remotes, set up SSH, or manage Git workflows for Gitee, Coding, Jihu GitLab, or CNB, including requests like "配置国内 Git", "设置 Gitee 远程仓库", "推荐适合小团队的 Git 流程".

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 10 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When configuring remotes for Gitee, Coding.net, Jihu GitLab, or CNB.

    line 10
  2. Distinctive:

    When setting up SSH keys for these platforms.

    line 11
  3. Distinctive:

    When configuring mirror synchronization (e.g., push to both Gitee and GitHub).

    line 12
  4. Distinctive:

    When a user asks for a recommended Git branching strategy suitable for their team size in China.

    line 13
  5. Distinctive:

    When the user is only asking for general Git commands (e.g., git add, git commit) unrelated to platform configuration or branching strategy.

    line 17
  6. Distinctive:

    When the user is exclusively using GitHub without needing domestic mirrors.

    line 18
  7. Distinctive:

    When the user asks for configuration:

    line 54
  8. Distinctive:

    When the user asks for workflow advice:

    line 58
  9. Distinctive:

    Ask clarifying questions about team size and release frequency if not provided.

    line 59
  10. Distinctive:

    If the requested platform is unknown, default to standard Git configuration but ask the user for the platform's specific URL format.

    line 63

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Chinese Git Workflow

Use This Skill

  • When configuring remotes for Gitee, Coding.net, Jihu GitLab, or CNB.
  • When setting up SSH keys for these platforms.
  • When configuring mirror synchronization (e.g., push to both Gitee and GitHub).
  • When a user asks for a recommended Git branching strategy suitable for their team size in China.

Do Not Use

  • When the user is only asking for general Git commands (e.g., git add, git commit) unrelated to platform configuration or branching strategy.
  • When the user is exclusively using GitHub without needing domestic mirrors.

Platform Configurations

1. Gitee

  • HTTPS: https://gitee.com/<org>/<repo>.git
  • SSH: git@gitee.com:<org>/<repo>.git
  • Mirror Sync (Push to both):
    git remote set-url --add --push origin https://gitee.com/<org>/<repo>.git
    git remote set-url --add --push origin https://github.com/<org>/<repo>.git

2. Coding.net

  • HTTPS: https://e.coding.net/<team>/<project>/<repo>.git
  • SSH: git@e.coding.net:<team>/<project>/<repo>.git

3. Jihu GitLab / Private GitLab

  • Common Format: https://jihulab.com/<group>/<repo>.git
  • Internal Deployment: https://gitlab.yourcompany.com/<group>/<repo>.git

4. CNB (Cloud Native Build)

  • HTTPS (Only): https://cnb.cool/<org>/<repo>.git
  • Authentication: Username is cnb, password is a Personal Access Token.
    git config credential.helper store

Recommended Branching Workflows

When advising teams:

  • Trunk-Based Development (主干开发): Recommended for small, fast-iterating teams (2-8 people) with solid automated testing. Uses short-lived feature branches merged into main.
  • Simplified GitHub/GitLab Flow: Recommended for most standard projects. Use main as the stable release branch, create feat/* or fix/* branches, and merge via PR/MR. Avoid over-complicated GitFlow unless explicitly required by enterprise compliance.

Output Contract

When the user asks for configuration:

  1. Provide the exact commands needed to set up the requested platform.
  2. Explain any platform-specific authentication details (like CNB's HTTPS-only requirement).

When the user asks for workflow advice:

  1. Ask clarifying questions about team size and release frequency if not provided.
  2. Recommend a specific branching strategy and explain why it fits.

Failure Handling

  • If the requested platform is unknown, default to standard Git configuration but ask the user for the platform's specific URL format.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.