baoyu-format-markdown
यह क्या करती है
यह स्किल संरचना और ज़ोर जोड़कर लंबे टेक्स्ट को पढ़ने में आसान बनाती है। यह उन लेखकों के लिए है जिनकी सामग्री एक ही ब्लॉक में पढ़ना कठिन है।
कब इस्तेमाल करें
- ✓जब आपके पास सादा टेक्स्ट ड्राफ़्ट है जिसमें हेडिंग और सूचियाँ चाहिए।
- ✓जब आप चाहते हैं कि लेख में मुख्य बिंदु आसानी से दिखें।
- ✓जब आपको प्रकाशन के लिए markdown फ़ाइल साफ़ करनी है।
Skill का लिंक
https://github.com/JimLiu/baoyu-skills/blob/main/skills/baoyu-format-markdown/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस लेख को हेडिंग और बोल्ड मुख्य बिंदुओं के साथ फ़ॉर्मेट कीजिए, ताकि इसे पढ़ना आसान हो।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
आपका एजेंट front matter, शीर्षक, सार, हेडिंग और ज़ोर जोड़ता है, साफ़ वर्तनी की गलतियाँ सुधारता है, और परिणाम नई फ़ाइल में सहेजता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Markdown Formatter
Make plain text or markdown scannable so readers grasp key points and structure fast.
Core principle: Only adjust formatting and fix obvious typos. Never add, delete, or rewrite content.
User Input Tools
When this skill prompts the user, follow this tool-selection rule (priority order):
- Prefer built-in user-input tools exposed by the current agent runtime — e.g.,
AskUserQuestion,request_user_input,clarify,ask_user, or any equivalent. - Fallback: if no such tool exists, emit a numbered plain-text message and ask the user to reply with the chosen number/answer for each question.
- Batching: if the tool supports multiple questions per call, combine all applicable questions into a single call; if only single-question, ask them one at a time in priority order.
Concrete AskUserQuestion references below are examples — substitute the local equivalent in other runtimes.
Script Directory
{baseDir} = this SKILL.md's directory. ${BUN_X} = bun if installed; else npx -y bun if npx available; else suggest installing bun. Replace {baseDir} and ${BUN_X} with actual values.
| Script | Purpose |
|---|---|
scripts/main.ts |
Main entry point with CLI options (uses remark-cjk-friendly for CJK emphasis) |
scripts/quotes.ts |
Replace ASCII quotes with fullwidth quotes |
scripts/autocorrect.ts |
Add CJK/English spacing via autocorrect |
Preferences (EXTEND.md)
First one found wins:
| Priority | Path | Scope |
|---|---|---|
| 1 | .baoyu-skills/baoyu-format-markdown/EXTEND.md |
Project |
| 2 | ${XDG_CONFIG_HOME:-$HOME/.config}/baoyu-skills/baoyu-format-markdown/EXTEND.md |
XDG |
| 3 | $HOME/.baoyu-skills/baoyu-format-markdown/EXTEND.md |
User home |
None found → use defaults (no first-time setup for this skill).
| Setting | Values | Default | Description |
|---|---|---|---|
auto_select |
true/false |
false |
Skip both title and summary selection, auto-pick best |
auto_select_title |
true/false |
false |
Skip title selection only |
auto_select_summary |
true/false |
false |
Skip summary selection only |
| Other | — | — | Default formatting options, typography preferences |
Workflow
The agent analyzes and formats (Steps 1-5), then runs the typography script (Step 6).
Step 1: Read & Detect Content Type
Read the file. It is Markdown if it has --- YAML frontmatter, #/##/### headings, or **bold**/*italic*/lists/code blocks/blockquotes; otherwise plain text.
If Markdown, ask:
Detected existing markdown formatting. What would you like to do?
1. Optimize formatting (Recommended)
- Analyze content, improve headings, bold, lists for readability
- Run typography script (spacing, emphasis fixes)
- Output: {filename}-formatted.md
2. Keep original formatting
- Preserve existing markdown structure
- Run typography script only
- Output: {filename}-formatted.md
3. Typography fixes only
- Run typography script on original file in-place
- No copy created, modifies original file directly
- Optimize → Step 2 (full workflow)
- Keep original → skip to Step 5 (copy file), then Step 6
- Typography only → skip to Step 6 on the original file
Step 2: Analyze Content (Reader's Perspective)
Read the whole text and ask what would help a reader quickly understand and remember it. Save {original-filename}-analysis.md — the blueprint for Step 4:
# Content Analysis: {filename}
## Highlights & Key Insights
- [core arguments/conclusions, surprising facts or data, counterintuitive claims, golden quotes]
## Structure Assessment
- Current flow: [describe]
- Suggested sections: [heading candidates with brief rationale; unheaded section boundaries; walls of text needing breaks]
## Reader-Important Information
- [actionable takeaways, key definitions, lists buried in prose, comparisons that should be tables]
## Formatting Issues
- [specific issues with location: heading hierarchy, mixed-topic paragraphs, parallel items as prose, unmarked code/commands/terms]
## Typos Found
- [obvious typos with corrections, or "None found"]
Step 3: Check/Create Frontmatter, Title & Summary
Create a YAML frontmatter block if missing.
| Field | Processing |
|---|---|
title |
See Title Generation |
slug |
Infer from file path or generate from title |
summary |
One-sentence |
अक्सर पूछे जाने वाले सवाल
क्या यह मेरे शब्द बदलती है?
नहीं। स्किल केवल फ़ॉर्मेटिंग बदलती है और साफ़ वर्तनी की गलतियाँ सुधारती है, कभी सामग्री नहीं जोड़ती या दोबारा नहीं लिखती।
आउटपुट कहाँ सहेजा जाता है?
यह एक नई फ़ाइल सहेजती है जिसके नाम के अंत में formatted जुड़ा होता है, ताकि आपकी मूल फ़ाइल अपरिवर्तित रहे।
क्या यह चीनी टेक्स्ट संभालती है?
हाँ। यह CJK ज़ोर संभालने वाले टूल इस्तेमाल करती है, इसलिए मिश्रित भाषा का टेक्स्ट सपोर्ट होता है।
जानकारी
लेखक का मूल विवरण
Formats plain text or markdown files with frontmatter, titles, summaries, headings, bold, lists, and code blocks. Use when user asks to "format markdown", "beautify article", "add formatting", or improve article layout. Outputs to {filename}-formatted.md.
repo: JimLiu/baoyu-skills
लोकप्रियता
- GitHub स्टार
- 27k
- रैंकिंग में स्थान
- #9956
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
release-skills
27kयह आपके एजेंट को किसी भी प्रोजेक्ट के रिलीज़ में मार्गदर्शन देती है: वर्ज़न बढ़ाना, changelog अपडेट करना और GitHub release या tag प्रकाशित करना।
baoyu-article-illustrator
27kयह आपके एजेंट को लेख में चित्र जोड़ने में मदद करती है, उन जगहों को खोजकर जहाँ विज़ुअल चाहिए, और एक ही शैली में इमेज बनाकर।
baoyu-comic
27kयह आपके एजेंट को पैनल, कला शैलियों और लहजों के साथ शैक्षिक कॉमिक बनाना दिखाती है, जैसे जीवनी या ट्यूटोरियल।
baoyu-compress-image
27kयह आपके एजेंट को इमेज फ़ाइलों को WebP या PNG में बदलकर छोटा करने देती है, स्वचालित टूल चयन के साथ, ताकि वे तेज़ी से लोड हों।
मिलती-जुलती skills
obsidian-vault-maintainer
394kयह आपके एजेंट को Obsidian के अनुकूल मेमोरी vault व्यवस्थित रखने देती है, जिसमें काम करने वाले wiki लिंक, एक जैसी properties और सुरक्षित जेनरेटेड सेक्शन हों।
wiki-maintainer
394kयह आपके एजेंट को OpenClaw मेमोरी wiki दोहराए जा सकने वाले पेजों, सुरक्षित मैनेज्ड ब्लॉक्स और विरोधाभास या कमियों की जांच के साथ संभालने देती है।
obsidian
394kयह आपके एजेंट को आधिकारिक Obsidian कमांड-लाइन से Obsidian नोट्स, टास्क, लिंक और properties पढ़ने, खोजने, बनाने और बदलने देती है।