context-initialization

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Context Initialization

上下文初始化

Overview

概述

This skill automatically creates or updates an
AGENTS.md
file in the workspace root that instructs the agent to use existing skills before attempting to solve scientific tasks. This ensures the agent uses documented patterns, authentication methods, working examples, and best practices from the repository's skills rather than inventing solutions from scratch.
这款Skill会自动在工作区根目录创建或更新
AGENTS.md
文件,指导Agent在尝试解决科学任务前先使用已有的Skill。这能确保Agent使用仓库Skill中已记录的模式、认证方法、可用示例和最佳实践,而非从零开始构建解决方案。

When to Use This Skill

何时使用该Skill

This skill is automatically invoked when:
  • The agent initializes in this workspace
  • User begins any scientific task (database access, package usage, platform integration, or methodology)
  • User mentions specific databases, packages, platforms, or research methods
  • Any scientific data retrieval, analysis, or research task is started
No manual invocation required - this skill runs automatically.
在以下场景中,该Skill会自动触发:
  • Agent在当前工作区完成初始化时
  • 用户启动任何科学任务(数据库访问、包使用、平台集成或研究方法相关任务)时
  • 用户提及特定数据库、包、平台或研究方法时
  • 启动任何科学数据检索、分析或研究任务时
无需手动触发 - 该Skill会自动运行。

What This Skill Does

该Skill的功能

Creates or updates
AGENTS.md
in the workspace root with instructions for the agent to:
  1. Search first: Look for relevant skills across all skill categories before writing code
  2. Use existing patterns: Apply documented API access patterns, workflows, and examples
  3. Follow best practices: Use rate limits, authentication, configurations, and established methodologies
  4. Adapt examples: Leverage working code examples from
    scripts/
    folders and reference documentation
Important: If
AGENTS.md
already exists in the workspace, this skill will update it intelligently rather than overwriting it. This preserves any custom instructions or modifications while ensuring the essential skill-search directives are present.
在工作区根目录创建或更新
AGENTS.md
文件,为Agent提供以下指令:
  1. 优先搜索:在编写代码前,先在所有Skill类别中查找相关Skill
  2. 使用现有模式:应用已记录的API访问模式、工作流和示例
  3. 遵循最佳实践:使用速率限制、认证、配置和既定方法
  4. 适配示例:利用
    scripts/
    文件夹中的可用代码示例和参考文档
重要提示:如果工作区中已存在
AGENTS.md
文件,该Skill会智能更新而非覆盖文件。这会保留任何自定义指令或修改,同时确保必要的Skill搜索指令已包含在内。

Skill Categories

Skill类别

This unified context initialization covers four major skill categories:
该统一上下文初始化涵盖四大Skill类别:

Database Access Tasks

数据库访问任务

  • Search
    scientific-databases/
    for 24+ database skills
  • Use documented API endpoints and authentication patterns
  • Apply working code examples and best practices
  • Follow rate limits and error handling patterns
  • scientific-databases/
    中搜索24+个数据库相关Skill
  • 使用已记录的API端点和认证模式
  • 应用可用代码示例和最佳实践
  • 遵循速率限制和错误处理模式

Scientific Package Usage

科学包使用

  • Search
    scientific-packages/
    for 40+ Python package skills
  • Use installation instructions and API usage examples
  • Apply best practices and common patterns
  • Leverage working scripts and reference documentation
  • scientific-packages/
    中搜索40+个Python包相关Skill
  • 使用安装说明和API使用示例
  • 应用最佳实践和通用模式
  • 利用可用脚本和参考文档

Laboratory Platform Integration

实验室平台集成

  • Search
    scientific-integrations/
    for 6+ platform integration skills
  • Use authentication and setup instructions
  • Apply API access patterns and platform-specific best practices
  • Leverage working integration examples
  • scientific-integrations/
    中搜索6+个平台集成相关Skill
  • 使用认证和设置说明
  • 应用API访问模式和平台特定最佳实践
  • 利用可用的集成示例

Scientific Analysis & Research Methods

科学分析与研究方法

  • Search
    scientific-thinking/
    for methodology skills
  • Use established data analysis frameworks (EDA, statistical analysis)
  • Apply research methodologies (hypothesis generation, brainstorming, critical thinking)
  • Leverage communication skills (scientific writing, visualization, peer review)
  • Use document processing skills (DOCX, PDF, PPTX, XLSX)
  • scientific-thinking/
    中搜索方法学相关Skill
  • 使用已确立的数据分析框架(EDA、统计分析)
  • 应用研究方法(假设生成、头脑风暴、批判性思维)
  • 利用沟通技巧(科学写作、可视化、同行评审)
  • 使用文档处理Skill(DOCX、PDF、PPTX、XLSX)

Implementation

实现方式

When invoked, this skill manages the workspace
AGENTS.md
file as follows:
  • If
    AGENTS.md
    does not exist
    : Creates a new file using the complete template from
    references/AGENTS.md
  • If
    AGENTS.md
    already exists
    : Updates the file to ensure the essential skill-search directives are present, while preserving any existing custom content or modifications
The file includes sections instructing the agent to search for and use existing skills across all scientific task categories.
The complete reference template is available in
references/AGENTS.md
.
触发时,该Skill会按以下方式管理工作区的
AGENTS.md
文件:
  • AGENTS.md
    不存在
    :使用
    references/AGENTS.md
    中的完整模板创建新文件
  • AGENTS.md
    已存在
    :更新文件以确保必要的Skill搜索指令已包含在内,同时保留现有自定义内容或修改
文件中包含指导Agent搜索并使用所有科学任务类别下已有Skill的章节。
完整参考模板可在
references/AGENTS.md
中获取。

Benefits

优势

By centralizing context initialization, this skill ensures:
  • Consistency: The agent always uses the same approach across all skill types
  • Efficiency: One initialization covers all scientific tasks
  • Maintainability: Updates to the initialization strategy occur in one place
  • Completeness: The agent is reminded to search across all available skill categories
通过集中化上下文初始化,该Skill可确保:
  • 一致性:Agent在所有Skill类型中始终采用相同的处理方式
  • 高效性:一次初始化即可覆盖所有科学任务
  • 可维护性:初始化策略的更新仅需在一处进行
  • 完整性:提醒Agent在所有可用Skill类别中进行搜索