context-initialization
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseContext Initialization
上下文初始化
Overview
概述
This skill automatically creates or updates an 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.
AGENTS.md这款Skill会自动在工作区根目录创建或更新文件,指导Agent在尝试解决科学任务前先使用已有的Skill。这能确保Agent使用仓库Skill中已记录的模式、认证方法、可用示例和最佳实践,而非从零开始构建解决方案。
AGENTS.mdWhen 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 in the workspace root with instructions for the agent to:
AGENTS.md- Search first: Look for relevant skills across all skill categories before writing code
- Use existing patterns: Apply documented API access patterns, workflows, and examples
- Follow best practices: Use rate limits, authentication, configurations, and established methodologies
- Adapt examples: Leverage working code examples from folders and reference documentation
scripts/
Important: If 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提供以下指令:
AGENTS.md- 优先搜索:在编写代码前,先在所有Skill类别中查找相关Skill
- 使用现有模式:应用已记录的API访问模式、工作流和示例
- 遵循最佳实践:使用速率限制、认证、配置和既定方法
- 适配示例:利用文件夹中的可用代码示例和参考文档
scripts/
重要提示:如果工作区中已存在文件,该Skill会智能更新而非覆盖文件。这会保留任何自定义指令或修改,同时确保必要的Skill搜索指令已包含在内。
AGENTS.mdSkill Categories
Skill类别
This unified context initialization covers four major skill categories:
该统一上下文初始化涵盖四大Skill类别:
Database Access Tasks
数据库访问任务
- Search for 24+ database skills
scientific-databases/ - Use documented API endpoints and authentication patterns
- Apply working code examples and best practices
- Follow rate limits and error handling patterns
- 在中搜索24+个数据库相关Skill
scientific-databases/ - 使用已记录的API端点和认证模式
- 应用可用代码示例和最佳实践
- 遵循速率限制和错误处理模式
Scientific Package Usage
科学包使用
- Search for 40+ Python package skills
scientific-packages/ - Use installation instructions and API usage examples
- Apply best practices and common patterns
- Leverage working scripts and reference documentation
- 在中搜索40+个Python包相关Skill
scientific-packages/ - 使用安装说明和API使用示例
- 应用最佳实践和通用模式
- 利用可用脚本和参考文档
Laboratory Platform Integration
实验室平台集成
- Search for 6+ platform integration skills
scientific-integrations/ - Use authentication and setup instructions
- Apply API access patterns and platform-specific best practices
- Leverage working integration examples
- 在中搜索6+个平台集成相关Skill
scientific-integrations/ - 使用认证和设置说明
- 应用API访问模式和平台特定最佳实践
- 利用可用的集成示例
Scientific Analysis & Research Methods
科学分析与研究方法
- Search for methodology skills
scientific-thinking/ - 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)
- 在中搜索方法学相关Skill
scientific-thinking/ - 使用已确立的数据分析框架(EDA、统计分析)
- 应用研究方法(假设生成、头脑风暴、批判性思维)
- 利用沟通技巧(科学写作、可视化、同行评审)
- 使用文档处理Skill(DOCX、PDF、PPTX、XLSX)
Implementation
实现方式
When invoked, this skill manages the workspace file as follows:
AGENTS.md- If does not exist: Creates a new file using the complete template from
AGENTS.mdreferences/AGENTS.md - If already exists: Updates the file to ensure the essential skill-search directives are present, while preserving any existing custom content or modifications
AGENTS.md
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 - 若已存在:更新文件以确保必要的Skill搜索指令已包含在内,同时保留现有自定义内容或修改
AGENTS.md
文件中包含指导Agent搜索并使用所有科学任务类别下已有Skill的章节。
完整参考模板可在中获取。
references/AGENTS.mdBenefits
优势
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类别中进行搜索