关于
This Claude skill clones only the last quarter of your conversation to reduce token usage while preserving recent work. It's useful when context windows fill up during long development sessions. The skill uses a bash script that finds your conversation history and handles the selective cloning process.
快速安装
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 是一个 Claude Skill,作者为 ykdojo。Skill 将 Claude 按需加载的说明和资源打包,让 Claude 无需额外提示即可执行与 quarter-clone 相关的任务。
如何安装 quarter-clone?
使用本页的安装命令:将 quarter-clone 作为插件添加到 Claude Code,或将其仓库克隆到 skills 目录,然后重启 Claude 以加载该 Skill。
quarter-clone 属于哪个分类?
quarter-clone 属于设计分类。
quarter-clone 可以免费使用吗?
可以。quarter-clone 已收录在 AIMCP,可免费安装。
相关推荐技能
该Skill用于当开发者提供完整实施计划时,以受控批次方式执行代码实现。它会先审阅计划并提出疑问,然后分批次执行任务(默认每批3个任务),并在批次间暂停等待审查。关键特性包括分批次执行、内置检查点和架构师审查机制,确保复杂系统实现的可控性。
该Skill可在完成任务、实现主要功能或合并代码前自动调度代码审查子代理,确保实现符合需求和计划。它支持通过指定git SHA范围进行精准的代码变更审查,帮助开发者在关键节点及时发现潜在问题。核心原则是"早审查、勤审查",适用于开发流程的各个关键阶段。
这个Skill指导开发者如何将MCP服务器连接到Claude Code,支持HTTP、stdio和SSE三种传输协议。它涵盖了从安装配置到认证安全的完整流程,适用于集成GitHub、Notion、数据库等外部服务。当开发者需要添加集成、配置外部工具或提及MCP相关功能时,这个Skill能提供实用的操作指南。
该Skill帮助开发者根据任务特性选择Claude Code的Web或CLI界面,并指导如何在两种环境间无缝迁移会话。它能分析任务复杂度、迭代需求等要素,推荐最优工作界面和工作流。关键特性包括会话状态管理、环境切换指导和上下文优化建议。
