AP

Operational knowledge for managing APM and Waza, including CI/CD configuration and drift detection.

Install

mkdir -p .claude/skills/apm-waza-ops && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15093" && unzip -o skill.zip -d .claude/skills/apm-waza-ops && rm skill.zip

Installs to .claude/skills/apm-waza-ops

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

APM(Agent Package Manager)と Waza の運用手順、よくあるハマりどころ、CI 設計パターンをまとめたナレッジ。本プロジェクト固有の設定、ドリフト検出、secret 管理、トークンコストを管理するためのパスフィルタ設計などに対応する。 USE FOR: APM や Waza のコマンドでつまずいたとき、ワークフローをカスタマイズするとき、ドリフト検出の実装、CI のトークンコスト最適化、apm-action の pack/bundle モードの設計、グレーダーの組み合わせ設計 DO NOT USE FOR: 一般的な Python コードレビュー、コミットメッセージ作成(commit-message-writer へ) Triggers: "apm install が失敗", "waza run のエラー", "ドリフト検出", "CI のトークンコスト", "apm-action の設定", "グレーダーの設計"
426 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Intermediate

Key capabilities

  • Generate `apm.yml` files for dependency management
  • Distribute dependencies to specified target directories
  • Compile `AGENTS.md` and `CLAUDE.md` for Codex/Gemini
  • Package resolved dependencies into a `.tar.gz` archive
  • Detect hidden Unicode characters in files
  • Update dependency packages and CLI tools

How it works

The skill provides commands and troubleshooting for APM and Waza, covering dependency installation, compilation, packaging, and evaluation, along with guidelines for CI/CD integration and grader design.

Inputs & outputs

You give it
apm.yml, skill definitions, project files, commit history
You get back
apm.yml, distributed files in .github/, .claude/, .cursor/, .agents/, AGENTS.md, CLAUDE.md, .tar.gz archives, audit reports, token usage reports

When to use apm-waza-ops

  • Debugging APM installation errors
  • Optimizing CI token costs
  • Detecting configuration drift

About this skill

APM / Waza Ops

APM と Waza の運用ナレッジ集。本プロジェクトで使う設定パターンとハマりどころをまとめる。

APM のコマンド

コマンド用途
apm initapm.yml を生成
apm install依存解決と .github/ .claude/ .cursor/ .agents/ への配布
apm install --target copilotCopilot 向けに配布(0.12 系では skill が .agents/skills/ に集約される)
apm install --target copilot,agent-skillsCopilot ネイティブの .github/skills/ にも skill を配置したいときに併用
apm compileAGENTS.mdCLAUDE.md を生成(Codex / Gemini 向け)
apm pack依存解決後を .tar.gz に固める
apm audit隠し Unicode の検出
apm update依存パッケージと CLI の更新

Waza のコマンド

コマンド用途
waza init <n>プロジェクト初期化(GitHub Actions も生成)
waza new skill <n>スキル追加
waza run <skill> -v評価実行
waza check <skill>スキル品質チェック(microsoft/skills 提出向け)
waza serveWeb ダッシュボード(http://localhost:3000)
waza compare a.json b.jsonモデル間比較
waza tokens compare origin/main HEAD --strictトークン予算チェック

よくあるハマりどころ

1. apm install で配布ファイルが出ない

  • 原因候補: ローカルの .apm/ に同名ファイルがあり、依存側がコリジョンで skip されている
  • 対処: 公式は「local content takes priority on collision」と明記。原本側を見る

2. クローン直後に Copilot がコンテキストを拾えない

  • 原因候補: .github/ の展開後ファイルがコミットされていない
  • 対処: apm.ymlapm.lock.yaml に加え、.github/.claude/.cursor/.agents/ の配布物も必ずコミットする

3. skill が .github/skills/ に出ない(apm 0.12 系)

  • 原因候補: apm install --target copilot を 0.11 系の感覚で叩いている
  • 対処: 0.12 系では skill は cross-client な .agents/skills/ に集約される。Copilot ネイティブの .github/skills/ にも置きたい場合は --target copilot,agent-skills を併用する。CI のドリフト検出も .agents を含めるよう更新する

4. Codex / Gemini CLI でスキルが見えない

  • 原因候補: apm compile が実行されていない
  • 対処: apm compileAGENTS.md を生成する。Copilot / Claude / Cursor は不要

5. waza run がモデル接続で失敗する

  • 原因候補: Copilot CLI で未認証、または Copilot サブスクリプションのアクセス権限がない
  • 対処: ローカル検証は executor: mock を使う。実モデル評価は ~/.copilot/ の Copilot 認証が必要(.envOPENAI_API_KEY 等は Waza 0.31.0 では使われない)

6. CI のトークン使用量が読めない

  • 原因候補: パスフィルタなしで全コミットに評価が走っている
  • 対処: paths:evals/** skills/** に絞る。fail_fast: true も有効

7. prompt グレーダーで無限にトークンを消費

  • 原因候補: continue_session: true でジャッジがセッションを引き継ぎ、会話が長引いている
  • 対処: まず continue_session: false で試す。必要時のみ true

ドリフト検出の実装

.github/ .claude/ .cursor/ .agents/ の配布ファイルがコミット済みファイルと一致することを CI で確認する:

- name: Detect deployment drift
  run: |
    git diff --exit-code -- .github .claude .cursor .agents || {
      echo "::error::apm install の結果と一致しません"
      exit 1
    }

apm-action の使い分け

モード用途
デフォルトapm.yml を読んで install
isolated: trueapm.yml を無視し、inline 宣言だけで install
pack: true依存解決後を .tar.gz にまとめる
bundle: <path>.tar.gz から復元(APM なしで展開可能)
audit-report: true隠し Unicode を SARIF で報告

大規模リポジトリで複数ジョブが同じ依存を使うなら、pack → bundle のフローで apm install の重複実行を避けられる。

グレーダーの組み合わせ設計

グレーダー主な用途コスト
textキーワード / 正規表現チェック
fileファイル存在と内容
diffスナップショット照合
codePython / JS のアサーション
json_schema構造化出力の検証
behaviorツール呼び出し回数、トークン数
action_sequenceツール呼び出し順序
skill_invocationスキル呼び出し履歴
tool_constraintツール許可 / 拒否リスト
promptLLM ジャッジ
program外部コマンド実行依存

推奨パターン:

  • CI 常用は text / file / diff / behavior / skill_invocation を主軸にする
  • 主観的な品質評価が必要なときだけ prompt を足す
  • 「出力チェック」+「振る舞いチェック」+「スキル発火チェック」の 3 軸以上を重ねる(公式のベストプラクティス "Layer your checks")

評価駆動ループの設計指針

スキルを評価駆動で改善するときの考え方。

1. グレーダーの種類を 3 軸以上に重ねる

1 つのグレーダーだけで合否判定すると、LLM の曖昧な出力で簡単にすり抜けます。最低でも次の 3 軸を重ねる:

  • 出力内容text / file / diff / json_schema
  • スキル発火skill_invocation
  • 振る舞いbehavior / tool_constraint

2. weight でグレーダーの優先度を表現する

各グレーダーに weight を指定できます。重要度を反映させると合成スコアでの比較がしやすくなります。

graders:
  - type: text
    name: detects_critical_risk
    weight: 3.0  # クリティカルなので 3 倍
    config:
      contains: ["shell=True"]
  - type: behavior
    name: efficiency
    weight: 0.5  # オマケなので 0.5 倍
    config:
      max_tool_calls: 5

ただし合否判定はあくまで「全グレーダーが通るか」で決まる点に注意。weight は加重スコアでのランキング指標です。

3. 失敗パターンと改善案をマッピングしておく

スキル開発では、Waza が落ちたときに「何を変えるか」の判断スピードが大事。失敗パターンと SKILL.md の改善案を表で持っておく:

失敗するグレーダー想定原因SKILL.md の改善案
出力チェック(特定キーワード未検出)スキルがそのリスクを認識していないレビュー観点に明記する
skill_invocationdescription のトリガーワードが弱いTriggers 行を拡充
efficiency過剰なツール呼び出し作業手順を簡潔化、DO NOT USE FOR を厳しく

4. モデル間の差を比較する

# 実モデル評価には eval.yaml の config.executor を copilot-sdk にしてから実行する
waza run my-skill --model gpt-5.4 -o gpt54.json
waza run my-skill --model claude-sonnet-4.6 -o sonnet.json
waza compare gpt54.json sonnet.json

スキルがモデルに過度に依存していないかを定期的にチェックする。Waza 0.31.0 の有効な engine は mockcopilot-sdk の 2 つだけで、--executor という CLI フラグはない。executor の切り替えは eval.yamlconfig.executor で行う。

5. ローカル検証は executor: mock で API を呼ばない

config:
  executor: mock

評価フローのドライランだけしたい場合に、トークン消費せずに eval.yaml の構文チェックや CI 統合の検証ができる。

6. --cache で繰り返し評価のコストを下げる

waza run my-skill --cache --cache-dir .waza-cache

入力やコンフィグが変わっていないタスクはキャッシュから返るので、改善ループを高速に回せる。

Secret 管理

  • .env.example にプレースホルダーを用意(プロジェクト固有のキーがある場合)
  • Waza 0.31.0 のモデル呼び出しは Copilot サブスクリプション認証で動くため、OPENAI_API_KEYANTHROPIC_API_KEY を Waza 用に登録する必要はない
  • CI で実モデル評価を走らせる場合は、Copilot CLI を事前にセットアップして認証する

関連 Quick Commands

# APM
apm install
apm install <owner>/<repo>#<tag>
apm compile
apm pack --target copilot
apm audit

# Waza
waza init my-skill-evals
waza new skill my-skill
waza run my-skill -v
waza check my-skill
waza serve

# ローカル評価(API を呼ばない)
# eval.yaml の config.executor を mock にする

When not to use it

  • When performing general Python code reviews
  • When creating commit messages
  • When the task is not related to APM or Waza operations

Limitations

  • Does not cover general Python code review
  • Does not cover commit message creation
  • Waza 0.31.0 only uses `mock` and `copilot-sdk` as valid executors

How it compares

This skill centralizes operational knowledge for APM and Waza, offering specific commands, troubleshooting steps, and best practices for managing agent packages and evaluations, which is more guided than general tool documentation.

Compared to similar skills

apm-waza-ops side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
apm-waza-ops (this skill)03moReviewIntermediate
turborepo612moReviewIntermediate
bazel-build-optimization142moNo flagsAdvanced
ml-pipeline-workflow95moNo flagsAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

turborepo

vercel

Turborepo monorepo build system guidance. Triggers on: turbo.json, task pipelines, dependsOn, caching, remote cache, the "turbo" CLI, --filter, --affected, CI optimization, environment variables, internal packages, monorepo structure/best practices, and boundaries. Use when user: configures tasks/workflows/pipelines, creates packages, sets up monorepo, shares code between apps, runs changed/affected packages, debugs cache, or has apps/packages directories.

61191

bazel-build-optimization

wshobson

Optimize Bazel builds for large-scale monorepos. Use when configuring Bazel, implementing remote execution, or optimizing build performance for enterprise codebases.

14116

ml-pipeline-workflow

wshobson

Build end-to-end MLOps pipelines from data preparation through model training, validation, and production deployment. Use when creating ML pipelines, implementing MLOps practices, or automating model training and deployment workflows.

995

linkerd-patterns

wshobson

Implement Linkerd service mesh patterns for lightweight, security-focused service mesh deployments. Use when setting up Linkerd, configuring traffic policies, or implementing zero-trust networking with minimal overhead.

672

deployment-pipeline-design

wshobson

Design multi-stage CI/CD pipelines with approval gates, security checks, and deployment orchestration. Use when architecting deployment workflows, setting up continuous delivery, or implementing GitOps practices.

670

glab

NikiforovAll

Expert guidance for using the GitLab CLI (glab) to manage GitLab issues, merge requests, CI/CD pipelines, repositories, and other GitLab operations from the command line. Use this skill when the user needs to interact with GitLab resources or perform GitLab workflows.

664

Search skills

Search the agent skills registry