workflow-local
Skill này làm gì
Skill này dạy agent cách chạy một quy trình TeamAI từ đầu đến cuối mà không cần người trả lời câu hỏi. Nó dành cho các job tự động và để tiếp tục một lần chạy trên máy tính này.
Khi nào nên dùng
- ✓Khi một job CI hoặc agent đám mây cần chạy quy trình nhóm mà không có ai có mặt.
- ✓Khi một lần chạy quy trình bị dừng và cần tiếp tục trên máy này.
- ✓Khi lệnh bắt đầu quy trình báo rằng lần chạy phải dùng trình điều khiển cục bộ.
Liên kết skill
https://github.com/Tencent/teamai-cli/blob/main/skill-data/workflow-local/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 của chúng tôi không cần giám sát cho job ban đêm và cho tôi biết kết quả khi nó xong.”
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 với trình điều khiển cục bộ, truyền đầu vào dưới dạng một đối tượng JSON duy nhất. Khi lần chạy kết thúc, lệnh báo thành công hoặc thất bại và nêu tên mọi bước lỗi kèm lệnh thử lại.
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.
Run a team workflow unattended
The local driver runs a whole run in one process on this machine: each command step as a process, each prompt step through a headless tool. Nobody is asked anything while it runs, so every answer the run needs is decided before it starts.
When
- A CI job or a cloud agent runs the workflow.
teamai workflow start --describe <name> --driver skillansweredask.kind: local: a coding session cannot run some step, andask.reasonsays which.- A run continues on this machine without a coding session: after a retry, an answer, a stopped driver, or a session that handed it over.
Run it
- Run
teamai workflow start <name> --describeand read the inputs it lists. - Start the run:
teamai workflow start <name> --driver local, with the inputs as one JSON object in--inputs.teamai workflow start --helplists the other options, such as answering optional approvals and picking the prompt tool. - To continue a run that stopped, run
teamai workflow resume <run>.
The command exits when the run ends: 0 when it succeeded, 1 when it failed or was cancelled. A failed run names each failed step, its message and its teamai workflow retry command on stderr. Done when it has exited and the outcome, the failing step's message and the pull requests the run opened are reported where the person reads them: the job log, or your reply.
Approvals
Without a terminal, nobody answers a gate during the run:
- A required approval fails its step
hitl_required, and so does the run. - With
--auto-approve, or the member'sworkflows.auto_approve, an optional approval is answered yes and a choice takes its default. - Without either, an optional approval is skipped, and a choice fails
hitl_required.
From an agent session
A coding agent's session may start or continue only a workflow whose invoke allows it, with start or resume. invoke: allow goes on. invoke: ask goes on once the person agreed, with --confirmed, and never in an unattended run (CI or a cloud agent), where it answers unattended_denied. invoke: deny, the default, answers invoke_denied. Tell the person the message, which names the command for their own terminal.
Inside a workflow step, every teamai workflow command that changes a run answers nested_workflow. Do the step's own work there instead.
Env and secrets
A step gets the team env keys its requires.env lists, and no other team key. A key with no value on this machine fails the step missing_env before it runs, and the message names the fix: teamai env set KEY for a key the team declares; for one it does not, the environment, or teamai env add KEY --secret followed by teamai env set KEY. The person runs env set in their own terminal. A CI job exports each secret under its key name instead. TeamAI masks the value of every key in env/secrets.yaml in run files and output.
CI
When you set up a CI job that starts a run, or one that takes the runs members offer, read references/ci.md.
Câu hỏi thường gặp
Trong lúc chạy, lần chạy có hỏi tôi câu nào không?
Không. Skill nói không ai được hỏi gì trong lúc chạy, nên mọi câu trả lời được đặt trước khi bắt đầu.
Làm sao để tiếp tục một lần chạy bị dừng?
Dùng lệnh teamai workflow resume với tên lần chạy.
Điều gì xảy ra nếu một bước lỗi?
Lần chạy nêu tên từng bước lỗi, thông báo của nó và lệnh thử lại.
Chi tiết
Mô tả gốc của tác giả
Run a team workflow unattended with the local driver. Use in CI or a cloud agent, when a describe reply routed the run to the local driver, or to continue a run on this machine without a coding session.
repo: Tencent/teamai-cli
Độ phổ biến
- Sao GitHub
- 5.7k
- Vị trí xếp hạng
- #14745
- 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á.