context-loader

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Context Loader Skill for Gemini

Gemini的Context Loader Skill

Purpose

用途

Load shared project context from
.claude/
directory to ensure Gemini CLI operates with the same knowledge as Claude Code and Codex CLI.
从.claude/目录加载共享项目上下文,确保Gemini CLI拥有与Claude Code和Codex CLI相同的知识体系。

When to Activate

激活时机

ALWAYS - This skill should run at the beginning of research or analysis tasks.
始终激活 - 该Skill应在研究或分析任务开始时运行。

Workflow

工作流程

Step 1: Load Coding Rules

步骤1:加载编码规则

Read relevant files from
.claude/rules/
:
.claude/rules/
├── coding-principles.md   # Simplicity, single responsibility, early return
├── dev-environment.md     # uv, ruff, ty, pytest requirements
├── language.md            # Think in English, respond in Japanese
├── security.md            # Secrets, validation, SQLi/XSS prevention
└── testing.md             # TDD, AAA pattern, 80% coverage
读取.claude/rules/目录下的相关文件:
.claude/rules/
├── coding-principles.md   # 简洁性、单一职责、提前返回
├── dev-environment.md     # uv、ruff、ty、pytest要求
├── language.md            # 用英文思考,用日语响应
├── security.md            # 密钥、验证、SQL注入/XSS防护
└── testing.md             # 测试驱动开发(TDD)、AAA模式、80%覆盖率

Step 2: Load Design Documentation

步骤2:加载设计文档

Read
.claude/docs/DESIGN.md
for:
  • Architecture decisions
  • Implementation patterns
  • Library choices and constraints
读取.claude/docs/DESIGN.md以获取:
  • 架构决策
  • 实现模式
  • 库选择与约束

Step 3: Check Library Documentation

步骤3:检查库文档

If the task involves specific libraries, read relevant files from:
.claude/docs/libraries/
如果任务涉及特定库,读取以下目录中的相关文件:
.claude/docs/libraries/

Step 4: Execute Research Task

步骤4:执行研究任务

With the loaded context, execute the requested research/analysis following:
  • Project coding principles
  • Existing design decisions
  • Library constraints
在加载的上下文下,按照以下要求执行请求的研究/分析:
  • 项目编码原则
  • 现有设计决策
  • 库约束

Key Rules to Remember

需要牢记的关键规则

  1. Simplicity first - Recommend readable solutions over complex
  2. Type hints required - Suggest typed code
  3. Use uv - Reference uv for package management
  4. Security - Highlight security considerations
  1. 简洁优先 - 推荐可读性强的解决方案而非复杂方案
  2. 必须使用类型提示 - 建议使用带类型的代码
  3. 使用uv - 参考uv进行包管理
  4. 安全性 - 强调安全注意事项

Language Protocol

语言协议

  • Thinking/Reasoning: English
  • Code examples: English (variables, functions, comments)
  • Output: Structured markdown, suitable for documentation
  • 思考/推理:英文
  • 代码示例:英文(变量、函数、注释)
  • 输出:结构化Markdown,适合文档使用

Output Guidelines

输出指南

When providing research results:
  • Structure with clear headings
  • Include code examples when relevant
  • Cite sources from web search
  • Note constraints relevant to this project
  • Save comprehensive findings to
    .claude/docs/research/
提供研究结果时:
  • 使用清晰的标题进行结构化
  • 相关时包含代码示例
  • 引用网络搜索的来源
  • 注明与本项目相关的约束
  • 将全面的研究结果保存至.claude/docs/research/