मुख्य सामग्री पर जाएँ
Skillpedia
डॉक्यूमेंटेशन17k · #10794

update-docs

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

यह स्किल आपके branch की तुलना main से करती है, देखती है कि कौन-से दस्तावेज़ पेज बदले हुए कोड से जुड़े हैं, और उन्हें अपडेट करती है। यह उन टीमों के लिए है जो अपने दस्तावेज़ सॉफ़्टवेयर के साथ-साथ रखना चाहती हैं।

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

  • ✓जब आपने स्रोत कोड बदला हो और उससे जुड़े दस्तावेज़ पेज अब पुराने लगें।
  • ✓जब आपको दस्तावेज़ों का पूरा दोबारा लेखन नहीं, बल्कि सटीक अपडेट चाहिए।
  • ✓जब आप प्रकाशन से पहले दस्तावेज़ बदलावों की दूसरी समीक्षा चाहते हैं।

Skill का लिंक

https://github.com/pipecat-ai/pipecat/blob/main/.claude/skills/update-docs/SKILL.md

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

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

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

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

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

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

“कृपया इस branch पर मेरे किए कोड बदलावों से मेल खाने के लिए हमारे दस्तावेज़ पेज अपडेट कीजिए।”

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

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

एजेंट आपके branch और main के बीच का अंतर पढ़ता है, हर बदली फ़ाइल को उससे प्रभावित दस्तावेज़ पेज से जोड़ता है, और केवल वही पेज बदलता है। क्या दस्तावेज़ करना है, इसके लिए वह प्रोजेक्ट के अपने नियम मानता है।

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

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

Update documentation pages to reflect source code changes on the current branch. Analyzes the diff against main, maps changed source files to their corresponding doc pages, and makes targeted edits.

This skill is repo-agnostic and shared. It is published by the pipecat-dev-skills marketplace and used by every repository whose changes feed pipecat-ai/docs, so it must stay free of anything specific to one of them.

Everything repo-specific — what is in scope, how files map to pages, what a new page looks like, where it gets registered — comes from that repo's profile, .claude/skills/update-docs/SOURCE_DOC_MAPPING.md, which lives in the repo being documented. The skill never hardcodes a source path, a page template, or a navigation group. See PROFILE_CONTRACT.md for what a profile must provide.

How pages read — what to document, what to leave out, page templates, prose — comes from the docs repo's style guide, DOCS_PATH/STYLE.md. This skill covers the process: finding what changed, deciding what the docs need, and checking the result.

REVIEW.md is a second pass over a finished update, run in a fresh session that did not write it. The automation runs it after this skill; run it by hand the same way after a local update.

Arguments

/update-docs [DOCS_PATH]
  • DOCS_PATH (optional): Path to the docs repository root. If not provided, ask the user.

Examples:

  • /update-docs /Users/me/src/docs
  • /update-docs

Instructions

Step 1: Resolve docs path, profile, and style guide

If DOCS_PATH was provided as an argument, use it. Otherwise, ask the user for the path to their docs repository.

Verify the path exists and contains docs.json.

Read the profile at .claude/skills/update-docs/SOURCE_DOC_MAPPING.md in the source repository. It defines this repo's scope, mapping tables, page template, and registration steps. If it is missing, stop and say so — without it there is no way to resolve a file to a page, and guessing produces edits to pages that don't exist.

Read DOCS_PATH/STYLE.md in full. Every edit follows it. Where it and this skill disagree about how a page reads, the style guide wins. If it is missing, follow the Guidelines at the end of this skill.

Step 2: Create docs branch

Get the current source branch name:

git rev-parse --abbrev-ref HEAD

In the docs repo, create a new branch off main with a matching name:

cd DOCS_PATH && git checkout main && git pull && git checkout -b {branch-name}-docs

For example, if the source branch is feat/new-service, the docs branch becomes feat/new-service-docs.

All doc edits in subsequent steps are made on this branch.

Step 3: Detect changed source files

Run:

git diff main..HEAD --name-only

Every source file under the roots the profile's Scope section names is in scope. Repos ship public API well beyond their most obvious entry points, so scope is defined as exclusions rather than an allowlist: a new directory is covered the day it appears rather than when someone remembers to list it.

Exclude what the profile's Scope section excludes, plus build and cache artifacts (__pycache__/, *.pyc, node_modules/, dist/) and re-export-only index files that define nothing themselves.

Changes outside those roots — examples, CI config, the docs directory — don't trigger doc updates on their own.

Then apply the profile's Skip list (Step 4), which names the small set of genuinely internal files. Don't invent further reasons to drop a file here: being a base class, a shared module, or "core architecture" is not one. Public constructor parameters and observable behavior get documented wherever they live, and a file whose page isn't obvious should reach Step 8 as a reported gap rather than disappear.

Step 4: Map source files to doc pages

For each changed source file, resolve the doc page to edit using the profile's tables, in this order. Confirm every candidate path exists in DOCS_PATH before using it.

  1. Skip list — if the file matches the skip list, stop. It triggers no doc update.
  2. Base classes — if the file is in the base-classes table, use every page it lists. A change here affects everything that inherits it, so check each page rather than stopping at the first.
  3. Non-standard locations — if the file is in the non-standard table, use that entry as the candidate path and confirm it exists.
  4. Pattern match — apply the pattern table to get a candid
अक्सर पूछे जाने वाले सवाल

कौन-से दस्तावेज़ अपडेट होते हैं?

केवल वे पेज जो आपके branch में बदले कोड से जुड़े हैं। असंबंधित पेज फिर से नहीं लिखे जाते।

क्या इसके लिए कोई विशेष सेटअप चाहिए?

हाँ। प्रोजेक्ट को अपनी mapping फ़ाइल देनी होगी, और दस्तावेज़ repository का पथ देना होगा।

क्या मैं इसके काम की जाँच कर सकता हूँ?

हाँ। स्किल में एक समीक्षा चरण है, जिसे नए सत्र में चलाकर पूरा हुआ अपडेट जाँचा जा सकता है।

जानकारी

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

Update documentation pages to match source code changes on the current branch

repo: pipecat-ai/pipecat

लोकप्रियता

GitHub स्टार
17k
रैंकिंग में स्थान
#10794
लाइसेंस
BSD-2-Clause
अपडेट की गई
2/11/2026

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

0

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

कमेंट

  • …

इस repository की और skills

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