मुख्य सामग्री पर जाएँ
Skillpedia
विविध10k · #11903

quarter-clone

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

यह स्किल आपकी मौजूदा बातचीत के आखिरी चौथाई हिस्से की नई कॉपी बनाती है और पहले का संदर्भ छोड़ देती है। यह उन लोगों के लिए है जिनकी चैट लंबी है और जो सिर्फ़ सबसे ताज़ा काम रखना चाहते हैं।

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

  • ✓जब आपकी बातचीत बहुत लंबी हो और अभी सिर्फ़ सबसे ताज़ा काम मायने रखता हो।
  • ✓जब आपको half-clone से भी छोटी चैट कॉपी चाहिए।
  • ✓जब आपको ऐसा छोटा सेशन चाहिए जिसमें हर नए संदेश में कम टोकन लगें।

Skill का लिंक

https://github.com/ykdojo/claude-code-tips/blob/main/skills/quarter-clone/SKILL.md

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

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

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

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

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

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

“इस बातचीत का quarter-clone बनाइए, ताकि मैं कम संदर्भ के साथ काम जारी रख सकूँ।”

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

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

यह स्किल मौजूदा सेशन ढूँढती है, कॉपी के संदेश मिलाने के लिए उसका पूर्वावलोकन दिखाती है, और आखिरी चौथाई से नया सेशन बनाने के लिए स्क्रिप्ट चलाती है। फिर उसे खोलने के लिए एक कमांड देती है।

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

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

Clone the last quarter of the current conversation, discarding earlier context to reduce token usage while preserving recent work.

Steps:

  1. Get the current session ID and project path: tail -1 ~/.claude/history.jsonl | jq -r '[.sessionId, .project] | @tsv'
  2. 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
    • The same script handles both half and quarter cloning; --quarter selects quarter mode
  3. 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
  4. Run the clone: <script-path> --quarter <session-id> <project-path>
    • Always pass the project path from the history entry, not the current working directory
  5. 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:
    claude --resume <new-session-id>
    
    The script automatically appends a reference to the original conversation at the end of the cloned file. (The new session is also marked [QUARTER-CLONE <timestamp>], e.g. [QUARTER-CLONE Jan 7 14:30], so claude -r and picking it works as a fallback.)
अक्सर पूछे जाने वाले सवाल

यह half-clone से कैसे अलग है?

यह बातचीत का सिर्फ़ आखिरी चौथाई हिस्सा रखती है, इसलिए कॉपी half-clone से भी छोटी होती है।

क्या मेरे आखिरी संदेश खो जाएँगे?

नहीं। कॉपी में बातचीत का सबसे ताज़ा हिस्सा रहता है।

नया सेशन कैसे खोलूँ?

स्किल आपको नए सेशन आईडी वाला एक कमांड देती है, ताकि आप उसे सीधे फिर से शुरू कर सकें।

जानकारी

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

Clone the last quarter of the current conversation, discarding earlier context to reduce token usage while preserving recent work.

repo: ykdojo/claude-code-tips

लोकप्रियता

GitHub स्टार
10k
रैंकिंग में स्थान
#11903
लाइसेंस
—
अपडेट की गई
25/9/2026

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

0

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

कमेंट

  • …

इस repository की और skills

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