について
このClaudeスキルは、最近の作業内容を保持しつつトークン使用量を削減するため、会話の最後の4分の1のみを複製します。長時間の開発セッションでコンテキストウィンドウが埋まった場合に便利です。このスキルは、会話履歴を検索し選択的な複製プロセスを処理するbashスクリプトを使用しています。
クイックインストール
Claude Code
推奨npx skills add ykdojo/claude-code-tips -a claude-code/plugin add https://github.com/ykdojo/claude-code-tipsgit clone https://github.com/ykdojo/claude-code-tips.git ~/.claude/skills/quarter-cloneこのコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします
ドキュメント
Clone the last quarter 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
- The same script handles both half and quarter cloning;
--quarterselects quarter mode
- 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> --quarter <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>[QUARTER-CLONE <timestamp>], e.g.[QUARTER-CLONE Jan 7 14:30], soclaude -rand picking it works as a fallback.)
GitHub リポジトリ
よくある質問
quarter-clone Skillとは何ですか?
quarter-clone はykdojo が作成した Claude Skillです。Skillは、Claudeが必要に応じて読み込む指示とリソースをまとめ、追加の指示なしで quarter-clone に関連するタスクを実行できるようにします。
quarter-clone をインストールするには?
このページのインストールコマンドを使用してください。quarter-clone をプラグインとして Claude Code に追加するか、リポジトリを skills ディレクトリにクローンし、Claudeを再起動してSkillを読み込みます。
quarter-clone はどのカテゴリに属しますか?
quarter-clone は デザイン カテゴリに属します。
quarter-clone は無料で利用できますか?
はい。quarter-clone は AIMCP に掲載されており、無料でインストールできます。
関連スキル
executing-plansスキルは、完全な実装計画があり、それを管理されたバッチでレビューチェックポイントを設けながら実行する場合に使用します。このスキルは計画を読み込んで批判的にレビューした後、小さなバッチ(デフォルトは3タスク)でタスクを実行し、各バッチの間に進捗状況を報告してアーキテクトのレビューを受けます。これにより、品質管理チェックポイントが組み込まれた体系的な実装が保証されます。
このスキルは、コードレビュアーサブエージェントを起動し、処理を進める前に要件に対してコード変更を分析します。タスク完了後、主要な機能の実装後、またはmainブランチへのマージ前などに使用すべきです。このレビューは、現在の実装と元の計画を比較することで、問題を早期に発見するのに役立ちます。
このスキルは、開発者がHTTP、stdio、またはSSEトランスポートを使用してMCPサーバーをClaude Codeに接続するための包括的なガイドを提供します。GitHub、Notion、カスタムAPIなどの外部サービスを統合するためのインストール、設定、認証、セキュリティについて解説しています。MCP統合のセットアップ、外部ツールの設定、またはClaudeのModel Context Protocolを扱う際にご利用ください。
このスキルは、タスク分析に基づいて開発者がClaude Code WebとCLIインターフェースの選択を支援し、これらの環境間でのシームレスなセッションテレポーテーションを可能にします。Web、CLI、モバイル環境を切り替える際のセッション状態とコンテキストを管理することで、ワークフローを最適化します。様々な段階で異なるツールを必要とする複雑なプロジェクトにご活用ください。
