मुख्य सामग्री पर जाएँ
Skillpedia
डेटाबेस6.2k · #14400

repository-writeback

यह क्या करती है

यह स्किल pull request के ज़रिए dbt प्रोजेक्ट की semantic layer में बदलावों का मार्गदर्शन करती है। यह उन analytics engineers के लिए है जो चाहते हैं कि एजेंट उनके dbt मॉडल के फ़ील्ड विवरण, मीट्रिक नोट्स और संकेत अपडेट करे।

कब इस्तेमाल करें

  • ✓जब आप pull request के ज़रिए dbt प्रोजेक्ट में फ़ील्ड विवरण अपडेट करना चाहते हैं।
  • ✓जब आप AI संकेत जोड़ना चाहते हैं जो एजेंट को बताएँ कि किसी सवाल के लिए कौन सा फ़ील्ड चुनना है।
  • ✓जब मर्ज हुए pull request पर निर्भर कंटेंट का फ़ॉलो-अप चाहिए।

Skill का लिंक

https://github.com/lightdash/lightdash/blob/main/packages/backend/src/ee/services/ai/skills/builtInSkills/repository-writeback/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/lightdash/lightdash/blob/main/packages/backend/src/ee/services/ai/skills/builtInSkills/repository-writeback/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“orders मॉडल के राजस्व मीट्रिक के विवरण अपडेट कीजिए और बदलाव के साथ एक pull request खोलिए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

स्किल एजेंट को पहले लक्ष्य फ़ाइलें पढ़ने को कहती है, पक्का करती है कि बदलाव ज़रूरी है, फिर सटीक नामित फ़ाइल के साथ pull request खोलती है। वह फ़ील्ड के विवरण और AI संकेत के बीच का अंतर समझाती है और हर एक को सही जगह रखने का तरीका बताती है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Repository writeback

editDbtProject changes this project's semantic layer through a pull request; its description and parameters cover the call and the prompt. This skill covers what to change and what follows.

Ask or act. When the user's request already asks for the change ("fix it", "open a PR", "clean these up", "update the descriptions"), call editDbtProject without asking again. When you suggest a fix the user did not ask for, offer it, naming the fields involved, and wait for a yes. When it is unclear whether a request should land in the repository at all, ask one short question.

Read first. Before editDbtProject, read the files you intend to change with exploreRepo: confirm the change is needed (when the code already does what was asked, say so instead of opening an empty pull request), name the exact target file in the prompt, and match the surrounding conventions.

Descriptions and AI hints. A field carries two metadata channels:

  • description defines what the field is (its grain, its source, what it measures), and people read it in the catalog and the UI.
  • ai_hint (model- and field-level) tells the agent when to choose this field over a similar one: routing directives ("use this metric for X; combine with Y to break down by Z"), join recipes, and caveats such as "not suitable for X, use other_model".

Put agent steering in ai_hint and keep description edits to the field's own definition: steering in a description pollutes the human-facing semantic layer and fits it to one question. Disambiguate two legitimately similar fields that cannot be merged with an ai_hint on each.

Impact of removals and renames. When a change removes or renames a field, call analyzeFieldImpact right after editDbtProject starts, for each field id that goes away (the old id for a rename), and add a few lines to your reply: whether it breaks content, the totals (charts, dashboards, dependent metrics, scheduled deliveries) and the most notable items, or that nothing references the field. The check is advisory: the pull request stands whatever it returns. Skip it for additions and for description- or SQL-only edits.

Value correctness. The impact check shows what would break, not whether the numbers survive. When a change claims to preserve values (merging duplicate metrics, replacing or repointing a field, splitting a metric into parts that should sum back to it, refactoring a field's SQL), prove the claim before calling the change safe, with the cheapest sufficient method:

  • By construction: read the field definitions and the model SQL (with exploreRepo when the metadata is not enough). The same aggregation over the same rows, a uniqueness or non-null guarantee (a row_number() = 1 dedup, a primary key) or a split whose parts partition the original is enough; state the guarantee in plain terms.
  • By data: when the SQL cannot guarantee it (unions, multi-stream models, nullable join keys, differing filters or grains), query the fields at a total grain and across a time dimension and check the expected relationship on every row: equality for a replacement or dedup, parts summing to the original for a split.

Settle it before calling editDbtProject when you can, otherwise in the same turn, and report it with the impact. When the numbers diverge, name the rows or periods that differ and rework the change or ask the user how to proceed rather than calling it safe. Skip this for additions and description- or label-only edits.

Splitting work into pull requests. Group edits that belong together (several description fixes on one model, the changes that add one metric) in one pull request, and split unrelated changes with startNewPullRequest so each can be reviewed and merged alone; when unsure, prefer a new pull request, since a spare one is easy to close and mixed changes are not easy to separate. When the split is obvious, make it and tell the user what went where. When a broad request ("improve the semantic layer") could reasonably be one pull request or several, lay out the groupings and ask before opening any.

listWorkstreams shows the pull requests this thread opened, getPullRequestDiff what one contains, and closePullRequest discards one the user asks to drop, for example after you fold its change into the one you continue with prUrl.

After a merge. Merging from the pull request card in the thread recompiles the project and sends you a follow-up turn that p

अक्सर पूछे जाने वाले सवाल

विवरण और AI संकेत में क्या अंतर है?

विवरण बताता है कि फ़ील्ड क्या है, जबकि AI संकेत बताता है कि एजेंट को उस फ़ील्ड को कब चुनना चाहिए।

क्या यह बिना पूछे pull request खोलेगी?

अगर आपका अनुरोध पहले से बदलाव माँगता है, तो खोलेगी; नहीं तो बदलाव का प्रस्ताव देकर हाँ का इंतज़ार करेगी।

क्या यह पहले बदलाव जाँचती है?

हाँ, यह पहले फ़ाइलें पढ़ती है, और अगर कोड पहले से वही करता है जो माँगा गया था, तो यह बताती है।

जानकारी

लेखक का मूल विवरण

Workflow for semantic-layer pull requests (`editDbtProject`), covering when to ask first, descriptions versus AI hints, impact and value checks, splitting work into pull requests, and the content migration after a merge. Load it before changing the dbt project and when a merged pull request needs follow-up.

repo: lightdash/lightdash

लोकप्रियता

GitHub स्टार
6.2k
रैंकिंग में स्थान
#14400
लाइसेंस
—
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

breakup-pr

6.2k

आपके एजेंट को बड़े pull request को छोटे, एक के ऊपर एक जुड़े हिस्सों में बाँटने में मदद करती है, जिन्हें एक-एक करके रिव्यू और मर्ज किया जा सके।

कोडिंगसामान्य कोडिंग

lightdash-agent-slack-messaging

6.2k

आपके एजेंट को Lightdash एडमिनिस्ट्रेटरों के लिए साफ़ और मित्रवत रखरखाव तथा गतिविधि रिपोर्ट लिखने में मदद करती है, केवल उपलब्ध सबूतों के आधार पर।

लेखन और डॉक्यूमेंटलेखन

developing-in-lightdash

6.2k

आपके एजेंट को Lightdash डैशबोर्ड और चार्ट को JSON के रूप में पढ़ने, बनाने और संपादित करने में मदद करती है, हर चार्ट प्रकार की सेटिंग के साथ।

डेटाएनालिसिस और स्प्रेडशीट

filter-expressions

6.2k

आपके एजेंट को Lightdash मीट्रिक क्वेरी के लिए सही फ़िल्टर एक्सप्रेशन लिखने में मदद करती है, जिनमें कस्टम मीट्रिक पर फ़िल्टर भी शामिल हैं।

डेटाएनालिसिस और स्प्रेडशीट

मिलती-जुलती skills