workflow-local
What it does
This skill teaches an agent how to run a TeamAI team workflow from start to finish without a person answering questions. It is for automated jobs and for continuing a run on this computer.
When to use it
- ✓When a CI job or cloud agent needs to run a team workflow with no one present.
- ✓When a workflow run stopped and needs to continue on this machine.
- ✓When a workflow start reply says the run must use the local driver.
Skill link
https://github.com/Tencent/teamai-cli/blob/main/skill-data/workflow-local/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Run our team workflow unattended for the nightly job and tell me the result when it finishes.”
5 new skills a week. 1 minute to read.
How it works
The agent starts the workflow with the local driver, passing the inputs as one JSON object. When the run ends, the command reports success or failure and names any failed step with its retry command.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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.
FAQ
Does the run ask me questions while it works?
No. The skill says nobody is asked anything during the run, so all answers are set before it starts.
How do I continue a stopped run?
Use the teamai workflow resume command with the run name.
What happens if a step fails?
The run names each failed step, its message, and the retry command.
Details
Original description by the author
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
Popularity
- GitHub stars
- 5.7k
- Ranking position
- #14745
- License
- —
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
core
5.7kHelps your agent sync your team's shared AI skills and rules with pull and push, check their status, run a health check, and reach other TeamAI workflows.
setup
5.7kHelps your agent set up TeamAI for a team, either by creating a new team repo as admin or joining an existing one, and manage members, roles, and removal.
share
5.7kHelps your agent turn what a coding session taught into a short team learning and publish it to the team knowledge base with the teamai contribute command.
wiki
5.7kHelps your agent turn a large multi-repo codebase into a structured knowledge base, where each conclusion links to the code line it came from.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.