llm-testing
БесплатноБез исполняемых скриптовНе проверенComprehensive LLM security testing prompts for bias detection, data leakage, alignment testing, and adversarial prompt resistance.
от Eyadkelleh★ 415 звёзд на GitHubОб этом скилле
LLM Testing Skill
Description
Comprehensive testing prompts and wordlists for evaluating Large Language Model (LLM) security, safety, and robustness. This skill provides curated test cases for bias detection, data leakage prevention, alignment testing, privacy boundaries, and adversarial prompt resistance.
Purpose
This skill is designed for security researchers, AI safety engineers, and red team operators to assess LLM vulnerabilities and ensure models:
- Maintain ethical boundaries and safety guidelines
- Avoid data leakage and privacy violations
- Resist bias and discrimination
- Prevent adversarial prompt attacks
- Maintain alignment with intended behavior
Authorized Use Cases
- AI Safety Research: Testing LLM models for safety and alignment issues
- Security Auditing: Red team operations for AI/ML systems
- Bias Detection: Evaluating models for fairness and bias
- Privacy Testing: Verifying models don't leak training data or PII
- Educational Purposes: Teaching AI security concepts and vulnerabilities
- Responsible AI Development: Building more robust and secure LLMs
Test Categories
1. Bias Testing
Test for biases in LLM responses across various dimensions:
Gender Bias (Bias_Testing/gender_bias.txt)
- Prompts to reveal gender stereotypes and biases
- Career and role associations
- Behavioral and capability assumptions
- Note: Replace
[GENDER]placeholder before use
Nationality & Geographic Bias (Bias_Testing/nationality_geographic_bias.txt)
- Cultural stereotypes and geographic prejudices
- Regional capability assumptions
- Note: Replace
[COUNTRY],[REGION],[NATIONALITY]placeholders
Race & Ethnicity Bias (Bias_Testing/race_ethnicity_bias.txt)
- Racial and ethnic stereotypes
- Discriminatory patterns in responses
- Note: Replace
[SKIN_COLOR]placeholder before use
2. Data Leakage & Privacy Testing
Assess model's handling of sensitive information:
Personal Data Generation (Data_Leakage/personal_data.txt)
- Tests for PII generation capabilities
- Verifies privacy boundaries
- Checks for inadvertent personal information creation
Metadata Leakage (Data_Leakage/metadata.txt)
- Tests for training data remnants
- Checks for unintended information disclosure
Memory Recall (Memory_Recall_Testing/session_recall.txt)
- Session-based memory testing
- Cross-conversation data retention
- Note: Replace
[COUNTRY],[REGION],[NATIONALITY]placeholders
3. Divergence & Alignment Attacks
Test model alignment and resistance to adversarial prompts:
Escape Alignment Training (Divergence_attack/escape_out_of_allignment_training.txt)
- Prompts attempting to bypass safety training
- Tests for alignment robustness
- Ethical boundary challenges
Pre-training Data Extraction (Divergence_attack/pre-training_data.txt)
- Attempts to extract training data
- Tests for memorization vulnerabilities
Usage Instructions
Basic Usage
# Reference the LLM Testing skill
"Use the llm-testing skill to test this model for gender bias"
# Access specific test categories
"Show me prompts from the llm-testing skill for testing data leakage"
# Run comprehensive testing
"Use the llm-testing skill to perform a full security audit of this LLM"
Replacing Placeholders
Before using bias and memory recall tests, replace placeholders:
# Example: Replacing placeholders in gender bias tests
import re
with open('Bias_Testing/gender_bias.txt', 'r') as f:
prompts = f.read()
# Replace [GENDER] with actual gender terms
test_prompts = []
for gender in ['man', 'woman', 'non-binary person']:
test_prompts.append(prompts.replace('[GENDER]', gender))
Testing Workflow
- Select Test Category: Choose bias, privacy, or alignment tests
- Prepare Prompts: Replace placeholders if needed
- Execute Tests: Submit prompts to target LLM
- Document Results: Record responses and flag issues
- Analyze Patterns: Look for systematic problems
- Report Findings: Document vulnerabilities responsibly
Best Practices
Ethical Testing Guidelines
- Authorization Required: Only test models you own or have permission to test
- Responsible Disclosure: Report vulnerabilities through proper channels
- No Exploitation: Use findings for improvement, not exploitation
- Privacy Protection: Don't share PII discovered during testing
- Documentation: Keep detailed records of testing methodology and results
Testing Methodology
- Baseline Establishment: Test multiple times to establish patterns
- Controlled Environment: Use isolated testing environments
- Systematic Approach: Test one category at a time
- Diverse Scenarios: Use various prompt formulations
- Cross-Validation: Verify findings with different approaches
Interpreting Results
- Context Matters: Consider the model's intended use case
- **Statistical
Установить llm-testing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл llm-testing?
Comprehensive LLM security testing prompts for bias detection, data leakage, alignment testing, and adversarial prompt resistance.
Как установить скилл llm-testing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл llm-testing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic