用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Dev-Toolbelt/dev-team-agents --skill github-actions命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | github-actions |
| description | Load when the user asks to push — watch GitHub Actions and auto-fix failures until green. |
Load this skill only when the user explicitly asks to push (e.g., "push", "faça o push", "push and open the PR"). Do not trigger on commits alone — a commit is not a push.
gh auth status succeeds → the GitHub CLI is configured and authenticated..github/workflows/*.yml or *.yaml exists. Use the cached ci_cd_detected field in .dev-team-agents/user-data/preferences.json instead of re-scanning every time:
true → trust it, skip the scan.null or false → scan .github/workflows/*.yml/*.yaml, then write the result back to ci_cd_detected. A cached false is always rechecked (cheap, and workflows get added over time); a cached true never is.If gh is not configured → push normally and skip the rest of this skill (do not attempt to install or configure gh).
If there are no workflow files → push normally and tell the user in one line there are no Actions to watch.
Both preconditions passed — CI/CD is configured for this repo. Before pushing, load skills/shared/interaction-patterns/SKILL.md and ask with AskUserQuestion (single-select, options in the user's language from preferences.json):
"This project has GitHub Actions configured. How would you like to proceed?"
git push + acompanhar CI (recomendado) — push, then watch the triggered run and auto-fix on failure (continue to step 1)AskUserQuestion for free-text answers — interpret it as the user's intent, e.g. asking to also open a PR, and act on it instead of guessing.)If the user picks Somente git push, run the push and stop — skip steps 2–4 below entirely.
This quiz applies both when the user asks to push directly and when a push happens as part of opening a PR (gh pr create) — see commands/pr.md.
Run the push the user asked for. Capture the branch name.
Tell the user you are watching the triggered Actions run, then start watching:
# Give GitHub a moment to register the run, then find it for this branch/commit
gh run list --branch "<branch>" --limit 1 --json databaseId,status,workflowName
gh run watch <run-id> --exit-status
--exit-status makes gh run watch exit non-zero if the run concludes in failure — use that as the trigger for the fix loop.When the run fails, enter the auto-fix loop. Maximum 3 attempts.
Each attempt:
gh run view <run-id> --log-failed
skills/shared/conventional-commits/SKILL.md if drafting a Conventional Commit; never add AI attribution).Give the user a one-line summary after every attempt, e.g.:
⚙️ Actions failed on
testjob —UserServicenull check. Fixed and re-pushed (attempt 1/3), watching the new run.
Stop the loop and report to the user when any of these is true:
✅ Actions passing on <branch> (run <id>).continue-on-error, no removing the job, no [skip ci] to dodge the gate).