AgentSkillsCN

context-loader

在每项任务开始时,从 .claude/ 目录中加载项目上下文。这确保了 Gemini CLI 与 Claude Code 具备完全一致的编码规范、设计决策以及库约束。

SKILL.md
--- frontmatter
name: context-loader
description: Load project context from .claude/ directory at the start of every task. This ensures Gemini CLI has the same coding rules, design decisions, and library constraints as Claude Code.

Context Loader Skill for Gemini

Purpose

Load shared project context from .claude/ directory to ensure Gemini CLI operates with the same knowledge as Claude Code and Codex CLI.

When to Activate

ALWAYS - This skill should run at the beginning of research or analysis tasks.

Workflow

Step 1: Load Coding Rules

Read relevant files from .claude/rules/:

code
.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 Korean
├── security.md            # Secrets, validation, SQLi/XSS prevention
└── testing.md             # TDD, AAA pattern, 80% coverage

Step 2: Load Design Documentation

Read .claude/docs/DESIGN.md for:

  • Architecture decisions
  • Implementation patterns
  • Library choices and constraints

Step 3: Check Library Documentation

If the task involves specific libraries, read relevant files from:

code
.claude/docs/libraries/

Step 4: Execute Research Task

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

Language Protocol

  • Thinking/Reasoning: English
  • Code examples: English (variables, functions, comments)
  • Output: Structured markdown, suitable for documentation

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/