Scientific context initialization

From lifangda/claude-plugins · View interactive version

Scientific context initialization is an AI agent skill from the GitHub repository lifangda/claude-plugins. Always Auto-invoked skill that creates/updates workspace AGENTS.md to instruct the agent to always search for existing skills before attempting any scientific task.

How to use this skill

Skill file

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.

When to Use This Skill

This skill is automatically invoked when:

No manual invocation required - this skill runs automatically.

What This Skill Does

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.

Skill Categories

This unified context initialization covers four major skill categories:

Database Access Tasks

Scientific Package Usage

Laboratory Platform Integration

Scientific Analysis & Research Methods

Implementation

When invoked, this skill manages the workspace AGENTS.md file as follows:

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.

Benefits

By centralizing context initialization, this skill ensures:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.