本文へスキップ
Skillpedia
デプロイとクラウド(DevOps)81k · #1646

harness-drift-from-history

できること

このスキルは、ハーネスの新しい監査を実行し、保存された最新の監査と比較して、どれくらいずれたかを報告します。予期しない変化がないか、ハーネスを定期的に確認しているチーム向けです。

使う場面

  • ✓最後の監査以降に、ハーネスが変わったかどうかを知りたいとき。
  • ✓毎週の監査が実行され、何かがずれたかを確認したいとき。
  • ✓変化が設定したしきい値を超えたら、警告がほしいとき。

スキルのリンク

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-metaharness/skills/harness-drift-from-history/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-metaharness/skills/harness-drift-from-history/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“最後の監査以降、私のハーネスはずれていますか? 大きく動いていたら知らせてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

スキルは、保存された監査記録の中から最新のものを選びます。その際、ごく最近のものを除外することもできます。新しい監査を実行して両者を比べ、ずれのレポートを返します。類似度がしきい値を下回った場合は、警告を出せます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

The natural ops question after running oia-audit weekly is "did anything drift?" Before this skill, the answer required a three-step sequence:

npx ruflo metaharness audit-list --format json   # → pick a key by hand
npx ruflo metaharness oia-audit --format json > /tmp/curr.json
npx ruflo metaharness audit-trend \
  --baseline-key <picked-key> --current /tmp/curr.json \
  --alert-on-distance-below 0.95

This skill collapses it into one command:

npx ruflo metaharness drift-from-history --threshold 0.95

What it does

  1. Lists records from metaharness-audit namespace via audit-list.mjs
  2. Picks the most recent record by startedAt (or --baseline-since 7d skips anything newer than 7 days)
  3. Runs a fresh oia-audit against the current path
  4. Diffs the two via audit-trend, applying --alert-on-distance-below ${threshold}
  5. Returns the structured drift report

Architectural constraint inheritance (ADR-150)

Constraint How drift-from-history satisfies it
Removable Pure subprocess composition over existing scripts — no new @metaharness/* import
Optional If oia-audit reports degraded:true, this skill exits 3 with a degraded payload
Graceful Empty audit history → exit 2 with hint to seed it; never crashes
CI-gate Smoke step 17z16 anchors the dispatcher entry + subcommand listing

Exit codes

  • 0 — similarity ≥ threshold (or threshold not crossed)
  • 1 — drift detected: similarity < threshold (alert fired)
  • 2 — config error (no history, audit-list failed)
  • 3 — upstream metaharness absent (degraded payload returned)

Example

$ npx ruflo metaharness drift-from-history --threshold 0.95
# drift-from-history

Baseline:        audit-2026-06-16T22-58-47-840Z
Current:         2026-06-16T23:05:02.231Z

Structural similarity: 1 (near-identical)
Distance:              0

✓ similarity ≥ 0.95 — OK

Implementation

scripts/drift-from-history.mjs

よくある質問

しきい値は何をしますか?

類似度がこの値を下回ると、スキルが警告を出す基準を設定します。ソースの例では0.95を使っています。

以前の監査がない場合はどうなりますか?

スキルは失敗する代わりに、先に監査を作成するよう案内するヒントを表示して終了します。

ハーネスを変更しますか?

いいえ。監査を実行して結果を比べるだけです。

詳細

作者による元の説明

One-command drift detection: run a fresh metaharness audit, diff it against the latest stored audit by ADR-152 similarity, and alert when the distance crosses `--threshold`. Use when checking whether a harness has drifted since its last audit.

repo: ruvnet/ruflo

人気

GitHubのスター
81k
ランキング
#1646
ライセンス
MIT
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル