Back to Skills

context-updater

majiayu000
Updated Today
1 views
58
9
58
View on GitHub
Othergeneral

About

This Claude Skill automatically reminds developers to update project_context.md when significant changes occur, such as adding new features, refactoring code, or modifying architecture. It focuses on architectural-level updates while filtering out minor changes like bug fixes or style adjustments. The skill maintains concise, structured documentation under 4000 tokens to keep project context current and useful.

Quick Install

Claude Code

Recommended
Plugin CommandRecommended
/plugin add https://github.com/majiayu000/claude-skill-registry
Git CloneAlternative
git clone https://github.com/majiayu000/claude-skill-registry.git ~/.claude/skills/context-updater

Copy and paste this command in Claude Code to install this skill

Documentation

项目上下文更新器

当项目发生重大变更时,自动提醒更新 .claude/context/project_context.md

触发判断

✅ 需要更新

  • 新增 AutoLoad / 核心系统 / 重要组件
  • 架构重构(状态机、依赖关系、数据流)
  • 修改输入映射 / 物理层配置
  • 完成重要功能实现

❌ 不需要更新

  • bug修复、参数调整、性能优化(不涉及架构)
  • UI样式调整、添加注释

更新原则

文件: .claude/context/project_context.md

  1. 简洁优先 - 每个模块 ≤ 3 行描述
  2. 结构化 - 使用列表/表格,避免段落
  3. 架构级别 - 只记录架构信息,不含实现细节
  4. 控制总量 - 保持 < 4000 tokens

更新示例

变更: 新增 SkillManager AutoLoad

更新内容:

### AutoLoad 系统
- **SkillManager**: 技能管理,处理释放和冷却

变更: 实现连招系统

更新内容:

### 连招系统
- **功能**: 检测输入序列,触发特殊技能
- **关键类**: ComboDetector, ComboData (Resource)
- **信号**: combo_triggered(combo_name: String)

自动检查清单

完成以下任务时,检查是否需要更新 context:

  • 新增 AutoLoad 脚本
  • 创建核心系统
  • 重构状态机框架
  • 修改输入/物理层配置
  • 完成重要功能

更新流程

  1. 检测变更范围(AutoLoad/核心模块/配置)
  2. 读取 project_context.md,识别需要更新的章节
  3. 生成简洁内容(≤3行/模块)
  4. 验证 token 数量 < 4000,删除过时信息
  5. 保存文件

提醒机制

触发条件:

  • 检测到 Util/AutoLoad/ 新增脚本
  • 对话中出现 "完成"、"重构" 关键词
  • 修改了状态机、伤害系统等框架代码

提醒用户: 列出变更内容,询问是否更新 context

GitHub Repository

majiayu000/claude-skill-registry
Path: skills/context-updater

Related Skills

algorithmic-art

Meta

This Claude Skill creates original algorithmic art using p5.js with seeded randomness and interactive parameters. It generates .md files for algorithmic philosophies, plus .html and .js files for interactive generative art implementations. Use it when developers need to create flow fields, particle systems, or other computational art while avoiding copyright issues.

View skill

subagent-driven-development

Development

This skill executes implementation plans by dispatching a fresh subagent for each independent task, with code review between tasks. It enables fast iteration while maintaining quality gates through this review process. Use it when working on mostly independent tasks within the same session to ensure continuous progress with built-in quality checks.

View skill

executing-plans

Design

Use the executing-plans skill when you have a complete implementation plan to execute in controlled batches with review checkpoints. It loads and critically reviews the plan, then executes tasks in small batches (default 3 tasks) while reporting progress between each batch for architect review. This ensures systematic implementation with built-in quality control checkpoints.

View skill

cost-optimization

Other

This Claude Skill helps developers optimize cloud costs through resource rightsizing, tagging strategies, and spending analysis. It provides a framework for reducing cloud expenses and implementing cost governance across AWS, Azure, and GCP. Use it when you need to analyze infrastructure costs, right-size resources, or meet budget constraints.

View skill