context-initialization

Create or update AGENTS.md to enforce search-first usage of existing skills.

3|Updated Oct 26, 2025
One-click install
npx skills add https://github.com/xiechy/climate-ai --skill context-initialization
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-initialization
Source: https://github.com/xiechy/climate-ai/tree/main/scientific-helpers/scientific-context-initialization
Command: npx skills add https://github.com/xiechy/climate-ai --skill context-initialization

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

AI agents often "reinvent the wheel" by attempting to solve tasks from scratch, even when existing, well-documented skills are available. This skill ensures the AI proactively searches for and leverages existing solutions, promoting consistency, efficiency, and adherence to best practices.

Core Features & Use Cases

  • Automated Skill Discovery: Automatically creates or updates an AGENTS.md file, instructing the AI to search for relevant skills across categories (databases, packages, platforms, methods) before generating new code.
  • Best Practice Enforcement: Guides the AI to use documented API access patterns, authentication methods, and established methodologies from the repository's skill library.
  • Use Case: When starting a new scientific project, this skill ensures the AI automatically checks for existing database connection skills or data analysis package usage skills, preventing redundant effort and ensuring robust solutions.

Quick Start

This skill is auto-invoked. No manual action is required. The agent will automatically update AGENTS.0md to guide its behavior.

Frequently Asked Questions about context-initialization

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent AI agents from rewriting code when existing skills already solve the problem?

Context-initialization automatically creates or updates AGENTS.md to enforce search-first behavior, instructing AI to consult existing skills, documented patterns, and authentication methods before generating new solutions. This prevents redundant effort across database access, scientific packages, and laboratory integrations.

What does an AGENTS.md file do for AI agent behavior?

AGENTS.md is a directive file that guides AI to search for relevant skills across categories—databases, packages, platforms, methods—before coding. Context-initialization automatically maintains this file, referencing complete templates to ensure consistent skill discovery and best-practice enforcement.

Can context-initialization preserve my existing AGENTS.md content while adding skill-search guidance?

Yes. Context-initialization intelligently inserts skill-search directives into existing AGENTS.md files without overwriting custom content. It references templates from references/AGENTS.md to maintain consistency while respecting your established patterns.

When should I use context-initialization in a scientific project workflow?

Use context-initialization at project start to ensure AI automatically searches for existing database connection skills, data analysis package usage patterns, and laboratory platform integrations before solving tasks. This promotes consistency, reduces redundant work, and enforces documented methodologies.

Do I need to manually invoke context-initialization, or does it run automatically?

Context-initialization is auto-invoked. No manual action required—the agent automatically updates AGENTS.md to guide its own behavior and enforce skill-search-first practices.

What types of skills does context-initialization help discover?

Context-initialization guides discovery across database access patterns, scientific package usage, laboratory platform integrations, scientific analysis methods, and documented authentication approaches, ensuring AI leverages existing, tested solutions before coding.