Added new skills to create claude.md files for better skill use

This commit is contained in:
Vinayak Agarwal
2025-10-21 15:06:34 -07:00
parent 000a45c0e9
commit c67e840088
9 changed files with 318 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
---
name: context-initialization
description: "Auto-invoked skill that creates/updates workspace claude.md to instruct Claude to always search for existing package skills before attempting any data analysis or scientific computing task."
---
# Package Context Initialization
## Overview
This skill automatically creates or updates a `claude.md` file in the workspace root that instructs Claude to search for existing package skills before attempting to write analysis code. This ensures Claude uses documented workflows, best practices, and working examples from the repository's package skills rather than writing generic code from scratch.
## When to Use This Skill
This skill is automatically invoked when:
- Claude Code initializes in this workspace
- User begins any data analysis or scientific computing task
- User mentions package names or analysis workflows
- Any task involving scientific Python packages is started
**No manual invocation required** - this skill runs automatically.
## What This Skill Does
Creates or updates `claude.md` in the workspace root with instructions for Claude to:
1. **Search first**: Look for relevant package skills in `scientific-packages/` before writing analysis code
2. **Use existing workflows**: Apply documented analysis patterns and pipelines
3. **Follow best practices**: Use proper installation, configuration, and API usage patterns
4. **Adapt examples**: Leverage working code examples from `scripts/` folders
## Implementation
When invoked, this skill creates/updates the workspace `claude.md` file with a section instructing Claude to search for and use existing package skills for any analysis tasks.
The reference template is available in `references/claude.md`.
## Integration
Works alongside other context-initialization skills:
- `scientific-databases/context-initialization` - for database access
- `scientific-integrations/context-initialization` - for lab platform integration
- `scientific-thinking/context-initialization` - for analysis methodologies
Together, these ensure Claude always leverages existing expertise before attempting scientific tasks.

View File

@@ -0,0 +1,19 @@
# Reference: Package Context Section
This is the reference template for what gets added to the workspace root `claude.md` file.
---
## Scientific Package Usage
**Before writing analysis code with scientific packages, search for relevant skills in this repository.**
This repository contains skills for 40+ scientific Python packages. Each skill includes:
- Installation instructions
- Complete API usage examples
- Best practices and common patterns
- Working scripts and reference documentation
Always search for and use existing package skills before writing custom analysis code.
---