本文へ移動
cccskills
無料GitHub で公開

calibration-report

Summarize estimate accuracy from the assistant time log.

日本語の概要は準備中です。原文の説明を表示しています。

indigoai-us/hq-coreスター 90(GitHub 90 + cccskills 0)

実行スコア 未検証

インストール方法を見る

含まれるファイル(2)

  • SKILL.md3.9 KB
  • agents/openai.yaml123 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

/calibration-report - Estimate Accuracy by Category

Read workspace/estimate-log/log.jsonl and summarize how well the assistant's estimates match actuals. Output a table per category showing median ratio, sample size, and a suggested inflation multiplier.

Input: $ARGUMENTS

Optional flags:

  • --category <name> — restrict to one category (release, pr, build, ...)
  • --since YYYY-MM-DD — only include entries with timestamp >= date
  • --abandon-stale — mark pending entries older than 30 days as abandoned
  • --show-misses — print the top 5 worst misses with surrounding text

Steps

  1. Read the log

    LOG=workspace/estimate-log/log.jsonl
    [ -s "$LOG" ] || { echo "No estimates logged yet."; exit 0; }
    
  2. Apply filters

    FILTERED=$(jq -c --arg cat "$CATEGORY" --arg since "$SINCE" '
      select(
        (($cat == "" or .category == $cat))
        and (($since == "" or .timestamp >= $since))
      )
    ' "$LOG")
    
  3. Compute stats per category (only kind=="estimate" AND status=="completed")

    For each category:

    • n — count
    • median_ratio — median of actual / expected
    • p25 / p75 — quartiles
    • over_count — entries where ratio > 1.2
    • under_count — entries where ratio < 0.8
    • on_count — entries within ±20%
    • suggested_multiplier — round(median_ratio * 4) / 4 (rounded to 0.25)

    Use jq + simple awk math. For median, sort then pick middle.

  4. Render report

    ESTIMATE CALIBRATION REPORT
    ===========================
    Window: <since> to <now>  |  Total entries: <n>  |  Completed: <c>  |  Pending: <p>
    
    Category    n   median_ratio   p25-p75      verdict-mix       suggest-multiply-by
    --------    --  ------------   ----------   ---------------   --------------------
    release     5   0.40           0.30-0.50    1on/0over/4under  0.5x  (you over-estimate by 2x)
    build       3   2.40           1.80-3.00    0on/3over/0under  2.5x  (you under-estimate by 2.5x)
    infra       4   1.10           0.90-1.30    3on/1over/0under  1.0x  (well calibrated)
    pr          2   0.55           0.50-0.60    0on/0over/2under  0.5x  (you over-estimate by 2x)
    ...
    
  5. Show pending count + stale flagging

    Pending: 3 entries
    Stale (>30d, no /finish-estimate): 1
      est_abc1234   "..."   estimated 14 days ago
    Run /calibration-report --abandon-stale to clear them.
    
  6. (Optional) --show-misses — print top 5 worst misses (completed entries with highest |log(ratio)|):

    Worst misses:
    1. est_xyz   release    expected 60 min, actual 5 min   12.0x over
       "going to take ~1 hr for the npm release of hq-cloud@5.7.1"
    2. ...
    
  7. Recommendation block Highlight categories with n >= 3 and |log(median_ratio)| > log(1.5) — those are systematically wrong. Recommend the agent inflate future estimates in those categories by suggested_multiplier.

Implementation note

Pure jq + awk + bash. No Python, no installs. Keep it < 100 lines.

For median in awk:

{ a[NR] = $(1) } END {
  asort(a)
  if (NR % 2) print a[(NR+1)/2]
  else print (a[NR/2] + a[NR/2+1]) / 2
}

(GNU awk has asort; BSD awk on macOS does too as of recent versions. Fall back to sort -n | awk if needed.)

Notes

  • This report is read-only by default. Only --abandon-stale mutates the log.
  • Suggested multipliers should be applied loosely — if the median says 2.5x but n=3, treat it as a rough heuristic, not a precise correction.
  • The agent should consult this report (or read log.jsonl directly) when generating a new estimate in a high-bias category, and explicitly inflate.

See also

  • /track-estimate — start tracking an estimate
  • /finish-estimate — close one out

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

accept

無料

Accept HQ membership invites from a magic link or raw token.

日本語の概要は準備中です。原文の説明を表示しています。

indigoai-us/hq-core902026年10月26日 更新

adr

無料

Capture qualifying architecture decisions as ADRs in the right HQ or repo location.

日本語の概要は準備中です。原文の説明を表示しています。

indigoai-us/hq-core902026年10月26日 更新

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.

日本語の概要は準備中です。原文の説明を表示しています。

indigoai-us/hq-core902026年10月26日 更新

architect

無料

Find shallow modules and propose deepening refactors, ranked with file refs; never edits code. Use when code is hard to change or planning a refactor.

日本語の概要は準備中です。原文の説明を表示しています。

indigoai-us/hq-core902026年10月26日 更新

Generate dark ASCII banner graphics for HQ and social launch assets.

日本語の概要は準備中です。原文の説明を表示しています。

indigoai-us/hq-core902026年10月26日 更新

Compare approaches to best-in-class prior art, merge existing work, verify cruft removal, and recommend the most durable design before PRD work.

日本語の概要は準備中です。原文の説明を表示しています。

indigoai-us/hq-core902026年10月26日 更新

indigoai-us のスキルをすべて見る

このスキルの問題を報告する