workflow
Skill này làm gì
Skill này dạy agent cách chạy quy trình nhóm từng bước từ bên trong một phiên lập trình. Nó làm theo các lệnh TeamAI in ra và giữ người dùng được cập nhật trong lúc lần chạy tiếp diễn.
Khi nào nên dùng
- ✓Khi một skill quy trình được tạo ra chỉ agent chạy một quy trình nhóm.
- ✓Khi người dùng yêu cầu chạy một quy trình nhóm từ phiên này.
- ✓Khi một lần chạy quy trình hỏi người dùng một câu cần thiết để tiếp tục.
Liên kết skill
https://github.com/Tencent/teamai-cli/blob/main/skill-data/workflow/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Hãy chạy quy trình nhóm tôi được giao từ phiên này và cập nhật cho tôi từng bước.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent bắt đầu quy trình ở chế độ describe, chia sẻ các câu hỏi mà người dùng phải trả lời, rồi chạy các lệnh đã in ra theo thứ tự. Các agent tách rời và agent con thực hiện các bước công việc.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Drive a team workflow
Your role
You orchestrate. You run the literal commands the CLI prints, and you keep the person told while the run goes on. Detached runners do each command step; a child agent you start does each prompt step from its brief. Step work belongs to them, and yours is the literals and the person. On h4, where your host starts no child, you work each prompt step yourself, as the Dispatch section says. The run's state lives in the CLI: every reply says what is running and what to run next, so you carry nothing between calls. Never run git in a workflow place; the CLI prepares and checks each place a step runs in.
Start
Run teamai workflow start --describe <name> --driver skill with the workflow name from the skill that sent you. Where this machine runs teamai through npx teamai-cli, use that in its place; every literal the CLI prints after this already does.
Act on data.describe.ask.kind:
start: tell the personask.saywhen the reply has it, then runask.start. In an unattended run (CI, a cloud agent) describe never asks the person; whenask.inputsis listed, fill{inputs}inask.startwith their values from your task, as one JSON object. The slot sits inside single quotes, so write each'in that JSON as'\''.ask: the question is the person's to answer, once, so the run goes on without them after. In one message, give themask.question.textas it is, each entry ofask.question.inputs, and thelabelof each option as their choices. An entry with avalueis a proposal: show it with itswhy, and say they may keep, change or empty it. An entry without one is theirs to fill in. Wait for their pick, also when an option is marked recommended. In thestartof the option they pick, replace{inputs}with their answers as one JSON object, each'in it written as'\'', and run it. Those options are the whole choice: when the person wants a start none of them offers, show them the options again.local: tell the personask.reasonand give themask.startfor their own terminal. It is theirs to run.denied: tell the personask.reason. Nothing is left to run here.tool: this session names no tool, and the run needs one. Inask.describe, replace{tool}with the entry ofask.toolsfor the tool you work in, run it, and act on its reply instead. When none of them is the tool you work in, tell the personask.reason.
Done when a reply carries data.turn with a run id, or the person has ask.reason.
The loop
A turn lists the actions that wait for you, the running attempts, the events since your last call, and then. When nothing runs, waiting.reason says why.
- Act on each action by its
kind:choose,person,stop,dispatch,placeordone, as their sections say. - Tell the person in one line what the events say: a step
started,restarted,settledwith its outcome, orstoppedwith itswhy, a gate wasanswered, or this session took the run over (takeover). Tell themwaiting.reasonwhen it changes. Forjudging,judgedandjudging-off, followreferences/judging.md. - Run
then.runof the newest turn you have:poll: in the background when your host can, so you stay free to talk with the person; otherwise in the foreground. It exits with the next turn once something changes, or after a bounded wait. Keep one poll of the run going at a time.wake: in the foreground. Work waits for you, and the turn it returns carries it.
- Repeat with that turn.
Done when a turn has no then.
In an unattended run nobody reads you: step 2 is for your own log, and you ask nothing. Keep running then until a turn has none, also after done while it carries judging, so the judge's label lands before your session ends.
Run teamai score --drain before your session ends.
An unattended session that reaches a handoff reports that the run waits for a person, and stops.
When you have lost the last turn, after a compaction or in a new session, run teamai workflow next <run> --driver skill once for the current one.
A report you run answers with data.runner, not a turn. After one, go on with then of your newest turn.
Choose
A choose action asks for one answer, and about says what it is for:
host: comes once per run that has prompt steps, or that you judge. Followreference: it says which option fits your host and how to run it.gate: an optional approval or
Câu hỏi thường gặp
Tôi có cần chạy lệnh git không?
Không. Skill nói CLI chuẩn bị và kiểm tra mỗi nơi một bước chạy, nên git không được chạy trong các bước quy trình.
Agent có nhớ lần chạy giữa các tin nhắn không?
Không. Skill nói trạng thái lần chạy nằm trong CLI, và mỗi phản hồi nói bước tiếp theo cần chạy.
Nếu máy chủ không thể khởi động agent con thì sao?
Skill nói khi đó agent tự thực hiện từng bước theo lời nhắc.
Chi tiết
Mô tả gốc của tác giả
Drive a team workflow from this coding session. Use when a generated workflow skill (workflow-<alias or name>, or a teamai default such as teamai-share-learnings) sent you here, or the person asks to run a team workflow.
repo: Tencent/teamai-cli
Độ phổ biến
- Sao GitHub
- 5.7k
- Vị trí xếp hạng
- #14746
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
core
5.7kGiúp agent đồng bộ skill AI và quy tắc chung của nhóm bằng pull và push, kiểm tra trạng thái, chạy kiểm tra sức khỏe và các quy trình TeamAI.
setup
5.7kGiúp agent thiết lập TeamAI cho nhóm, tạo repository mới với vai trò admin hoặc tham gia repository có sẵn, và quản lý thành viên và vai trò.
share
5.7kGiúp agent biến điều một phiên lập trình đã dạy thành bài học ngắn của nhóm và đăng lên kho kiến thức chung bằng lệnh teamai contribute.
wiki
5.7kGiúp agent biến một codebase lớn gồm nhiều repository thành kho kiến thức có cấu trúc, trong đó mỗi kết luận liên kết tới dòng code mà nó đến từ.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.