跳到正文
cccskills
免费在 GitHub 公开

branches

Where your work goes (a branch named agent-<name>), how to name it, what must be true before you finish, and how to push it when you are asked to.

中文简介正在准备中。当前显示原文说明。

openagt/openagent星标 11(GitHub 11 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md2.7 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Branch management

Your work goes on a branch named agent-<name>, unless whoever started you continued you on another. It stays on this machine until you are asked to push it.

The command

Run the branches command inside your checkout, always by its full name: npx @openagt/skill-branches@0.1. status, name and push (with no flag) are yours; the rest are the caller's.

Where you are

npx @openagt/skill-branches@0.1 status

It prints JSON; branch is the branch you are on.

A branch starting with agent-. Its checkout is your whole workspace: read and write only there. Dependency files and skill folders are links to the user's copies: never edit them. If something you need is outside your checkout, say so and stop.

Before your first change, name the session with [a-z0-9-]+, starting with a letter or digit, saying what the work is, unless your branch already differs from path's last segment: then it is named, keep it.

npx @openagt/skill-branches@0.1 name <name>

It renames your branch to agent-<name> and prints it in branch: agent-<name>-2, -3, … when <name> was taken; a name outside [a-z0-9-]+ is refused as invalid-name.

Any other branch. If the checkout sits under .branches/, you were put on this branch on purpose: stay on it, do not name it. Otherwise you are in a plain clone on someone else's branch. Before your first change, create your own and switch to it, <name> as above (another if it exists, locally or on origin):

git switch -c agent-<name>

From then on, work as on an agent- branch; nothing in a plain clone is a link.

Commit as you go

Nothing is committed for you.

Before you finish

npx @openagt/skill-branches@0.1 status

It must report "clean": true. clean is false while anything is uncommitted or untracked: commit or delete what you added; if what remains is not yours, say so and finish.

Push

Only when your task or the person asks you to push or publish your work, and once clean:

npx @openagt/skill-branches@0.1 push

It pushes your branch to origin and prints it in branch. clean false is refused as dirty: commit or delete first.

Merge

Only when the person asks you to merge your work into the project's main branch, and once clean:

npx @openagt/skill-branches@0.1 merge <your branch>

It merges your branch into the main branch, in the project's own folder. A conflict changes nothing and names the files in files: say so and stop. Your checkout and your branch stay.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

browser

免费

A real browser you drive from the shell, to see or act on a web page (open it, read it, click, type, take a screenshot), such as checking that the app you changed works.

中文简介正在准备中。当前显示原文说明。

openagt/openagent112026年10月30日 更新

discord

免费

Post a message to the team's Discord channel from the shell, when a task asks you to tell people something there.

中文简介正在准备中。当前显示原文说明。

openagt/openagent112026年10月30日 更新

github

免费

The project's git host is GitHub: how to open your pull request when you are asked to, how to land it, and how to read and close the project's issues.

中文简介正在准备中。当前显示原文说明。

openagt/openagent112026年10月30日 更新

logs

免费

The record of every run agents made on this project — what was asked, where the work went, how it ended, what the agent said — where it lives, how to read it, and when to look back before you work.

中文简介正在准备中。当前显示原文说明。

openagt/openagent112026年10月30日 更新

Refactor a part of the code to make it as maintainable as possible.

中文简介正在准备中。当前显示原文说明。

openagt/openagent112026年10月30日 更新

Find the parts of the code that need refactoring and put their maintainability and security work on the agent queue. Queues only.

中文简介正在准备中。当前显示原文说明。

openagt/openagent112026年10月30日 更新

查看 openagt 的全部技能

报告此技能的问题