Chuyển đến nội dung
Skillpedia
Cơ sở dữ liệu41k · #6972

reviewing-warehouse-suggestions

Skill này làm gì

Skill này để agent xem các gợi ý hằng ngày mà PostHog đưa ra về các view và bảng trong kho dữ liệu của bạn. Skill dành cho người muốn quyết định view nào nên lưu, gỡ bỏ hoặc đánh dấu là đáng tin cậy.

Khi nào nên dùng

  • ✓Khi bạn muốn biết PostHog gợi ý gì cho kho dữ liệu của mình.
  • ✓Khi bạn muốn hiểu vì sao một view nên được lưu hoặc gỡ bỏ.
  • ✓Khi bạn muốn chấp nhận, bỏ qua hoặc giao một gợi ý của kho dữ liệu.

Liên kết skill

https://github.com/PostHog/posthog/blob/master/products/warehouse_suggestions/skills/reviewing-warehouse-suggestions/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/PostHog/posthog/blob/master/products/warehouse_suggestions/skills/reviewing-warehouse-suggestions/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Hôm nay PostHog gợi ý gì cho kho dữ liệu của tôi? Hãy giải thích những gợi ý hàng đầu và cho tôi biết có đáng chấp nhận không.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent liệt kê các gợi ý đề xuất theo thứ tự ưu tiên và giải thích từng gợi ý bằng các con số đứng sau nó. Nếu bạn yêu cầu, nó có thể thay đổi cài đặt làm mới, rồi chấp nhận, bỏ qua hoặc giao gợi ý đó.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Reviewing warehouse suggestions

PostHog computes warehouse suggestions every day from how the project reads its views and tables. Each suggestion is about one view or table. Its payload holds everything that accepting it would create or change.

1. Find the suggestions

Call warehouse-suggestions-list with status=proposed. The results come in priority order, so start at the top. If the list is empty, call warehouse-suggestions-status: it says whether suggestions are turned off, still collecting read history, or not eligible.

Call warehouse-suggestions-get for a suggestion the user wants to discuss. Its evidence has the read counts behind it.

2. Explain it with its own numbers

Tell the user what accepting does and what it costs, using the payload fields. Do not invent a score or a confidence level.

  • materialize: the view is computed often enough that storing its result saves compute.
    • A view that is not stored is computed on every read, and again on every refresh of each materialized view that reads it. recomputed_by_views counts those materialized views. When it is above 0, the saving comes mostly from their refreshes, not from people's reads.
    • saves_seconds_per_month and saves_bytes_per_month are what those computations stop costing.
    • Materializing adds a recurring refresh cost, which these numbers already subtract.
    • freshness_today_seconds and freshness_after_seconds say how old the data can be now and after.
    • refresh_interval_seconds is the proposed interval. refresh_interval_basis says what kept it from being shorter: source_sync (the sources sync no faster), fastest_schedule (PostHog refreshes views no more often), read_rate (people read the view no more often), consumer_refresh (the materialized views that read it refresh no more often) or savings (a shorter interval costs more than it saves).
    • refresh_mode is incremental when each refresh can read only new rows, by incremental_key, and update rows by unique_key. Otherwise it is full, and each refresh rebuilds the whole table.
  • unmaterialize: this materialized view is read so rarely that refreshing it costs more than computing it on each read.
    • refresh_seconds_per_month and refresh_bytes_per_month are what its refreshes cost now.
    • live_seconds_per_month and live_bytes_per_month estimate what its reads would cost if each one computed the view. The estimate uses a full refresh per read, so it leans high.
    • read_seconds is how long one read would take afterwards. Nine in ten of its refreshes finished within this time. Tell the user that reads get slower by about this much, and that each read sees current data instead of the last refresh.
    • Accepting stops the refreshes and deletes the stored table. The view definition stays, so it can be materialized again later.
    • A 409 on accept means the view changed since the suggestion was made, for example another view now reads from it. Explain the reason to the user and do not retry.
  • certify: many people read this view or table, from several places. Use the read counts in evidence.
  • deprecate: nobody reads this materialized view, but it still refreshes. refresh_seconds_per_month and refresh_bytes_per_month are that cost. Accepting marks it deprecated in the data catalog, stops its refreshes and deletes its stored table. The view definition stays, so it can be materialized again later. To keep it refreshing, pass keep_materialized: true. After accepting, created_asset.stopped_materialization says whether the refreshes stopped: they keep running when other views read from it or its refreshes feed person properties, a destination or a workflow.

3. Change a materialize suggestion before accepting

The payload is a starting point. To change it, pass the payload field with the same name to the accept tool. An omitted field keeps the suggested value.

  • Another interval: pass refresh_interval_seconds.
  • Full instead of incremental, or the reverse: pass refresh_mode.
  • Other keys:
    1. Read the view's query with view-get.
    2. Call view-check-incremental with that query, plus the incremental_key and unique_key the user wants. Without keys it lists key_candidates and unique_key_candidates.
    3. Accept with those keys only when the check returns eligible: true. Otherwise explain the blockers to the user.
  • Late rows: pass lookback_seconds so each refresh read
Câu hỏi thường gặp

Agent có tự bịa điểm số không?

Không. Nó giải thích từng gợi ý chỉ bằng các con số mà PostHog cung cấp.

Lưu một view có nghĩa là gì?

Nó giữ kết quả của view để không phải tính lại mỗi lần, giúp tiết kiệm tính toán nhưng thêm chi phí làm mới định kỳ.

Nếu danh sách gợi ý trống thì sao?

Agent kiểm tra xem gợi ý có bị tắt hay vẫn đang thu thập lịch sử đọc.

Chi tiết

Mô tả gốc của tác giả

Reviews PostHog's warehouse suggestions with a person and acts on them. Explains why a view should be materialized, unmaterialized, certified or deprecated using the numbers in the suggestion, changes a materialize suggestion's refresh mode, keys or interval when the person wants something else, then accepts, dismisses or assigns it. Use when the user asks what PostHog suggests for their data warehouse, whether to materialize a view, why a view should refresh incrementally or every few hours, or wants to accept, change, dismiss or assign a warehouse suggestion.

repo: PostHog/posthog

Độ phổ biến

Sao GitHub
41k
Vị trí xếp hạng
#6972
Giấy phép
—
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự