add-logging
यह क्या करती है
यह स्किल कोड शिप होने से पहले उसमें उपयोगी log lines जोड़ती है, ताकि बाद में समस्याएँ समझी जा सकें। यह उन डेवलपर्स के लिए है जो बिना देखे डीबग करने से बचना चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप कोई फ़ीचर या fix लिख या जाँच रहे हों और उसमें अच्छे logs चाहिए।
- ✓जब कोई बग पकड़ना मुश्किल था क्योंकि logs चुप थे।
- ✓जब किसी code path में सुधार करना हो जो बदलने वाला है और उसके logs बेहतर करने हों।
Skill का लिंक
https://github.com/ParadevAI/Paradev/blob/main/plugins/sazabi/skills/add-logging/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे checkout बदलाव में logging जोड़िए, ताकि बाद में पता चल सके कि भुगतान बैकअप रूट पर क्यों गया।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट प्रोजेक्ट की पहले से इस्तेमाल हो रही logging शैली अपनाता है, फिर हर विफलता और व्यवहार बदलने वाले फ़ैसले के लिए एक line जोड़ता है। वह पूरे डेटा के बजाय IDs लॉग करता है और गुप्त जानकारी logs से बाहर रखता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Log what you will need to ask about
Every investigation in Sazabi is limited by what the code logged. The cheapest time to add the right lines is while the change is fresh. The job is a small number of structured lines that answer "what happened to this request, and why".
0. How the tools work
The Sazabi MCP server lists only two tools, search and execute. Browse
Sazabi's operations with search and namespace: "sazabi" (an empty query
without a namespace lists connected connectors, not Sazabi operations). Before
calling one, repeat search with namespace: "sazabi", the hit's full name as
the query, and includeInputSchema: true to load its arguments. Then run it
with execute as { name, arguments }, the name copied from the hit (for
example sazabi/logs.ask).
1. Match what is already there
Read how this repository logs: which logger, which field names, how request and
trace IDs are attached. Ask sazabi/logs.ask for a sample of this service's
recent lines to see the real shape. New lines must look like their neighbors;
an investigation that has to join two naming schemes is slower.
2. Pick the lines
On the changed path, log:
- Failures with the error, the input that caused it (IDs, not payloads), and what the code did next (retry, fallback, give up).
- Decisions that change behavior: a feature flag, a fallback, a skipped step, a limit hit.
- Boundaries: calls to other services or queues, with target, outcome and duration.
Skip lines that restate the obvious ("entering function").
3. Shape each line
- A stable event name (
checkout.payment_declined), so a question can count it. - Structured fields, not values glued into the message string.
- IDs that join the story: request or trace ID, user or tenant ID, order ID.
- The right level: ERROR for failures someone must act on, WARN for degraded but handled, INFO for decisions, DEBUG for detail that is off in production.
- Never secrets, tokens, passwords or full personal data. Redact or omit.
4. Check it
Run the path locally or in tests and read the lines it emits. After deploy, ask Sazabi for the new event name to confirm the lines arrive with their fields.
Anti-patterns
- Logging payloads. They leak data and cost money; log IDs and sizes.
- ERROR for expected outcomes. A declined card is INFO; an ERROR should mean a broken system.
- Many lines per request in a hot loop. Log the summary, not every iteration.
अक्सर पूछे जाने वाले सवाल
क्या logs में ग्राहक का डेटा होगा?
नहीं। स्किल पूरे payload के बजाय IDs लॉग करती है और गुप्त जानकारी logs से बाहर रखती है।
क्या यह प्रोजेक्ट की मौजूदा शैली मानती है?
हाँ। वह पहले देखती है कि कोड पहले से कैसे लॉग करता है, ताकि नई lines उनके आसपास की lines जैसी हों।
शिप करने से पहले logs क्यों जोड़ें?
जाँच उतनी ही अच्छी होती है जितना लॉग हुआ है, और बदलाव ताज़ा होते समय सही lines जोड़ना सबसे सस्ता पड़ता है।
जानकारी
लेखक का मूल विवरण
Before shipping a change, add structured log lines to the code path it touches so the next investigation has evidence — one line per decision and failure, with stable event names and the IDs needed to join requests, at the right level and without secrets. Use when writing or reviewing a feature or fix, when a bug was hard to diagnose because the logs were silent, or when the user asks to improve logging or observability in code.
repo: ParadevAI/Paradev
लोकप्रियता
- GitHub स्टार
- 16k
- रैंकिंग में स्थान
- #10841
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
decide
16kडिज़ाइन या कोड के फ़ैसले एक-एक करके, साफ़ विकल्पों और सुझाव के साथ आपसे तय करवाती है। हर जवाब दर्ज होता है और अंत में सारांश मिलता है।
mobile-demo-film
16kफ़ोन स्क्रीन रिकॉर्डिंग को शीर्षक कार्ड, फ़ोन फ़्रेम और अंत कार्ड के साथ सुंदर डेमो वीडियो में बदलती है। फ़ीचर डेमो और लॉन्च क्लिप के लिए अच्छी।
redesign
16kमौजूदा इंटरफ़ेस कॉम्पोनेंट की समीक्षा करती है और स्पेसिंग, कंट्रास्ट, क्रम और लेआउट के ठोस विज़ुअल सुधार सुझाती है। बदलाव लागू भी कर सकती है।
superset-settings
16kआपके एजेंट को Paradev डेस्कटॉप ऐप की सेटिंग्स, जैसे थीम, फ़ॉन्ट और सूचनाएँ, कमांड लाइन से देखने और बदलने देती है।
मिलती-जुलती skills
api-connector-builder
280kयह आपके एजेंट को मौजूदा pattern के हिसाब से नए API connections बनाने देता है। जब बिना कोई नया तरीका बनाए एक और integration जोड़ना हो, तब इसका इस्तेमाल करें।
api-design
280kयह आपके एजेंट को best practices के हिसाब से REST APIs डिज़ाइन करने में मदद करता है। यह तय करने में काम आता है कि APIs आपस में कैसे बात करें, errors कैसे दिखें, और data को कैसे व्यवस्थित करें।
backend-patterns
280kआपके एजेंट को server-side architecture patterns और database optimization में मदद करता है। server पर चलने वाला code बनाने या review करने के लिए उपयोगी है।