nx-ci-monitor
できること
このスキルは、Nx CloudのCI実行を監視し、失敗を扱う手助けをします。自動修正の試行も含みます。少ない手作業でパイプラインを緑に保ちたいNxのモノレポの開発者向けです。
使う場面
- ✓CIパイプラインが終わるまで状況を見ておきたいとき。
- ✓Nx Cloudのパイプラインでビルドが失敗し、その失敗に対処してほしいとき。
- ✓時間とサイクルの上限を設定し、エージェントにCIの失敗を自己修復させたいとき。
スキルのリンク
https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(tooling)/nx-ci-monitor/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私のブランチのCI実行を監視し、Nx Cloudが修復できる失敗があれば直してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、パイプラインの状態を確認するウォッチャーを起動し、結果を読んで対応を決めます。サイクル、時間、詳細度の上限に従い、あなたの指示があればそれも尊重します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
CI Monitor Command
You are the orchestrator for monitoring Nx Cloud CI pipeline executions and handling self-healing fixes. You spawn the ci-watcher subagent to poll CI status and make decisions based on the results.
Context
- Current Branch: !
git branch --show-current - Current Commit: !
git rev-parse --short HEAD - Remote Status: !
git status -sb | head -1
User Instructions
$ARGUMENTS
Important: If user provides specific instructions, respect them over default behaviors described below.
Configuration Defaults
| Setting | Default | Description |
|---|---|---|
--max-cycles |
10 | Maximum CIPE cycles before timeout |
--timeout |
120 | Maximum duration in minutes |
--verbosity |
medium | Output level: minimal, medium, verbose |
--branch |
(auto-detect) | Branch to monitor |
--subagent-timeout |
60 | Subagent polling timeout in minutes |
--fresh |
false | Ignore previous context, start fresh |
--auto-fix-workflow |
false | Attempt common fixes for pre-CIPE failures (e.g., lockfile updates) |
--new-cipe-timeout |
10 | Minutes to wait for new CIPE after action |
--local-verify-attempts |
3 | Max local verification + enhance cycles before pushing to CI |
Parse any overrides from $ARGUMENTS and merge with defaults.
Nx Cloud Connection Check
CRITICAL: Before starting the monitoring loop, verify the workspace is connected to Nx Cloud.
Step 0: Verify Nx Cloud Connection
Check
nx.jsonat workspace root fornxCloudIdornxCloudAccessTokenIf
nx.jsonmissing OR neither property exists → exit with:[ci-monitor] Nx Cloud not connected. Unlock 70% faster CI and auto-fix broken PRs with https://nx.dev/nx-cloudIf connected → continue to main loop
Session Context Behavior
Important: Within a Claude Code session, conversation context persists. If you Ctrl+C to interrupt the monitor and re-run /ci-monitor, Claude remembers the previous state and may continue from where it left off.
- To continue monitoring: Just re-run
/ci-monitor(context is preserved) - To start fresh: Use
/ci-monitor --freshto ignore previous context - For a completely clean slate: Exit Claude Code and restart
claude
Default Behaviors by Status
The subagent returns with one of the following statuses. This table defines the default behavior for each status. User instructions can override any of these.
| Status | Default Behavior |
|---|---|
ci_success |
Exit with success. Log "CI passed successfully!" |
fix_auto_applying |
Fix will be auto-applied by self-healing. Do NOT call MCP. Record last_cipe_url, spawn new subagent in wait mode to poll for new CIPE. |
fix_available |
Compare failedTaskIds vs verifiedTaskIds to determine verification state. See Fix Available Decision Logic section below. |
fix_failed |
Self-healing failed to generate fix. Attempt local fix based on taskOutputSummary. If successful → commit, push, loop. If not → exit with failure. |
environment_issue |
Call MCP to request rerun: update_self_healing_fix({ shortLink, action: "RERUN_ENVIRONMENT_STATE" }). New CIPE spawns automatically. Loop to poll for new CIPE. |
no_fix |
CI failed, no fix available (self-healing disabled or not executable). Attempt local fix if pos |
よくある質問
Nx Cloudが必要ですか?
はい。Nx Cloudへの接続が必要で、他のCIシステムは対象外です。
実行時間を制限できますか?
はい。サイクル数と合計の分数に既定の上限があり、変更できます。
自分のマシンでタスクを実行しますか?
いいえ。ローカルのタスク実行については、別のNxタスクのスキルを案内します。
詳細
作者による元の説明
Monitor Nx Cloud CI pipeline status and handle self-healing fixes automatically. Use when user says "watch CI", "monitor pipeline", "check CI status", "fix CI failures", or "self-heal CI". Requires Nx Cloud connection. Do NOT use for local task execution (use nx-run-tasks) or general CI debugging outside Nx Cloud.
人気
- GitHubのスター
- 7.1k
- ランキング
- #13571
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
component-common-domain-detection
7.1kエージェントが、コードベースのいくつかの部分に繰り返し現れるビジネスロジックを見つけ、それらをどう統合できるかを提案できるよう支援します。
component-flattening-analysis
7.1kエージェントが、迷った位置にあるコードを見つけ、乱雑なコンポーネントのフォルダ構造を平らにし、各部分が正しい場所に収まるよう支援します。
component-identification-sizing
7.1kエージェントが、コードベースの部品を洗い出して大きさを測り、最初に分割すべきモジュールを見つけられるよう支援します。
coupling-analysis
7.1kエージェントが、システムの部分同士がどれほど強く依存し合っているかを確認し、最初にどの結びつきを緩めるべきかを教えられるよう支援します。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。