half-clone
यह क्या करती है
यह स्किल आपकी मौजूदा बातचीत के दूसरे आधे हिस्से की नई कॉपी बनाती है और शुरुआती हिस्सा छोड़ देती है। यह उन लोगों के लिए है जिनकी चैट बहुत लंबी हो गई है और जो कम संदर्भ के साथ काम जारी रखना चाहते हैं।
कब इस्तेमाल करें
- ✓जब आपकी बातचीत इतनी लंबी हो गई है कि उसे आगे बढ़ाना धीमा और भारी लगे।
- ✓जब आप चैट का शुरुआती हिस्सा छोड़कर अपना हाल का काम रखना चाहते हैं।
- ✓जब आप चाहते हैं कि हर नए संदेश में कम टोकन खर्च हों।
Skill का लिंक
https://github.com/ykdojo/claude-code-tips/blob/main/skills/half-clone/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरी चैट बहुत लंबी हो गई है। इस बातचीत का half-clone बनाइए, ताकि मैं काम जारी रख सकूँ।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह स्किल मौजूदा सेशन ढूँढती है और एक स्क्रिप्ट चलाती है जो बाद के आधे हिस्से को नए सेशन में कॉपी करती है। फिर यह नए सेशन को खोलने के लिए एक कमांड देती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Clone the later half of the current conversation, discarding earlier context to reduce token usage while preserving recent work.
Steps:
- Get the current session ID and project path:
tail -1 ~/.claude/history.jsonl | jq -r '[.sessionId, .project] | @tsv' - Find half-clone-conversation.sh with bash:
find ~/.claude -name "half-clone-conversation.sh" 2>/dev/null | sort -V | tail -1- This finds the script whether installed via plugin or manual symlink
- Uses version sort to prefer the latest version if multiple exist
- Preview the conversation to verify the session ID:
<script-path> --preview <session-id> <project-path>- Check that the first and last messages match the current conversation
- Run the clone:
<script-path> <session-id> <project-path>- Always pass the project path from the history entry, not the current working directory
- The script prints the new session ID (the
New session: <id>line). Give the user the exact command to resume it directly, no picker needed:
The script automatically appends a reference to the original conversation at the end of the cloned file. (The new session is also markedclaude --resume <new-session-id>[HALF-CLONE <timestamp>], e.g.[HALF-CLONE Jan 7 14:30], soclaude -rand picking it works as a fallback.)
अक्सर पूछे जाने वाले सवाल
क्या मेरे हाल के संदेश खो जाएँगे?
नहीं। कॉपी में बातचीत का बाद वाला आधा हिस्सा रहता है, जिसमें आपका हाल का काम होता है।
नया सेशन कैसे खोलूँ?
स्किल आपको नए सेशन आईडी वाला एक कमांड देती है, ताकि आप सीधे उसे फिर से शुरू कर सकें।
क्या मूल बातचीत रखी जाती है?
नई कॉपी के आखिर में मूल बातचीत का एक संदर्भ जोड़ा जाता है।
जानकारी
लेखक का मूल विवरण
Clone the later half of the current conversation, discarding earlier context to reduce token usage while preserving recent work.
repo: ykdojo/claude-code-tips
लोकप्रियता
- GitHub स्टार
- 10k
- रैंकिंग में स्थान
- #11899
- लाइसेंस
- —
- अपडेट की गई
- 25/9/2026
कमेंट
- …
इस repository की और skills
gha
10kGitHub Actions वर्कफ़्लो क्यों विफल हुआ, यह पता लगाती है, और यह भी कि वही जॉब बार-बार विफल हो रहा है या नहीं।
handoff
10kआपके एजेंट को HANDOFF.md दस्तावेज़ लिखने में मदद करती है, ताकि नई चैट लक्ष्य, प्रगति और अगले कदमों के साथ प्रोजेक्ट को आगे बढ़ा सके।
hn-summarize
10kआपके एजेंट को Hacker News की टॉप स्टोरी, या किसी एक स्टोरी और उसकी टिप्पणियों का सार बनाने में मदद करती है, आधिकारिक डेटा से।
private-github-search
10kआपके एजेंट को आपकी सभी GitHub रिपॉज़िटरी में, निजी वाली भी, स्थानीय कॉपी और तेज़ टेक्स्ट खोज से खोजने में मदद करती है।
मिलती-जुलती skills
blucli
394kयह आपके एजेंट को blu कमांड से Bluesound और NAD स्पीकर खोजने, चलाने, रोकने, समूह बनाने और वॉल्यूम बदलने में मदद करती है।
camsnap
394kयह आपके एजेंट को नेटवर्क कैमरों और लोकल webcam से स्नैपशॉट, छोटी क्लिप या मोशन इवेंट लेने में मदद करती है, जो आपने सेट किए हों।
eightctl
394kयह आपके एजेंट को Eight Sleep pod की जांच और नियंत्रण करने में मदद करती है, जिसमें तापमान, अलार्म और नींद की समय-सारणी शामिल हैं।