Guidelines for AI-assisted development in the leadership measurement analysis project
AI guidance for developing the leadership measurement analysis project, which examines semantic distinctiveness of leadership constructs versus personality constructs using contrastive learning and embedding models.
This repository analyzes whether leadership measurement constructs are semantically distinct or redundant compared to established personality constructs (IPIP). The primary methodology uses sentence transformers with contrastive loss functions to evaluate construct separability.
1. **Avoid script proliferation**: Always search for and use existing scripts rather than creating new ones
2. **Extend, don't duplicate**: Enhance existing functionality instead of rewriting from scratch
3. **Maintain unified pipeline**: Use the consolidated `scripts/ivan_analysis/` approach for all new work
4. **Document thoughtfully**: Update existing documentation rather than creating separate files
5. **Clean as you go**: Use established cleanup procedures (`scripts/cleanup_models.py`, `scripts/cleanup_data.py`)
1. **Check before creating**: Search the repository for existing implementations before writing new code
2. **Preserve functionality**: Ensure backward compatibility when modifying scripts
3. **Follow patterns**: Match existing code style, naming conventions, and project structure
4. **Test incrementally**: Validate changes against existing workflows
5. **Minimize complexity**: Choose simple solutions that integrate with current architecture
```
.
├── analyses/ # Analysis scripts and code
├── data/
│ ├── raw/ # Original data files
│ ├── processed/ # Preprocessed datasets
│ └── visualizations/ # Output visualizations
├── docs/ # Documentation and reports
├── scripts/
│ └── ivan_analysis/ # Unified analysis pipeline (USE THIS)
├── models/ # Model checkpoints (~172GB, not in git)
└── manuscript/ # Research paper in Quarto format
```
The validated analysis pipeline consists of:
```bash
python3 scripts/ivan_analysis/generate_pairs_randomized.py
```
```bash
python3 scripts/ivan_analysis/create_holdout_splits.py --method stratified --holdout-ratio 0.1
```
- **Stratified item holdout** (recommended): 90-10 split across all constructs
- **Complete construct holdout**: Hold out ~10 entire constructs from training
```bash
python3 scripts/ivan_analysis/train_gist_unified.py --model-name bge-m3 \
--use-background --output-suffix final
```
```bash
python3 scripts/ivan_analysis/validate_holdout.py
```
1. Update manuscript in `manuscript/leadership_measurement_paper.qmd`
2. Compile with Quarto: `quarto render manuscript/leadership_measurement_paper.qmd --to apaquarto-docx`
3. Incorporate key visualization: `top5_coherent_constructs_tsne.png`
4. Finalize statistical reporting with validated metrics (87.4% vs 62.9%)
1. Explore alternative taxonomies based on linguistic features
2. Apply dimensional reduction to identify parsimonious leadership dimensions
3. Create targeted visualizations for manuscript
1. Create `/archive` folder for superseded analyses
2. Move visualizations to proper `/results` or `/outputs` folder
3. Consolidate scripts and reduce duplication
4. Clean up redundant visualization files
5. Streamline directory structure
1. **Before creating any new script**: Search `scripts/` for existing implementations
2. **Before starting analysis**: Check `scripts/ivan_analysis/` for the unified pipeline
3. **Before documenting**: Update existing docs rather than creating new files
4. **After completing work**: Run appropriate cleanup scripts if models/data were generated
5. **When in doubt**: Prefer the consolidated `ivan_analysis/` approach over scattered scripts
1. **Reconsider measurement approaches**: Acknowledge redundancy and develop more focused, distinctive measures
2. **Simplified framework**: Focus on 2-3 broader dimensions rather than 7-9 theoretically separate styles
3. **Different analytical lens**: View leadership styles as emphases on related traits, not discrete constructs
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/lead-measure-analysis-guidance/raw