skills-benchmarks
CLAUDE.md118 starsChanged 9 months agoMITView on GitHub
CRITICAL: LangSmith skills have both Python and TypeScript implementations. These MUST stay in sync: - Same CLI commands, flags, and options - Same output format for identical inputs - Same error handling behavior When modifying any script, always update both Python and TypeScript versions together. Parity tests in tests/scripts/langsmith/parity/ verify this. The TypeScript scaffold (scaffold/typescript/) mirrors Python: - Both scaffolds are copied into Docker so test scripts in either language work from either runner - TestRunner class available in both…
In this repository23 other files it gives its agents.
- skills/CLAUDE.mdCLAUDE.md
- ecosystem-primerSkill
- framework-selectionSkill
- langchain-agentsSkill
- langchain-oss-primerSkill
- deep-agents-coreSkill
- deep-agents-memorySkill
- deep-agents-orchestrationSkill
- langchain-dependenciesSkill
- langchain-fundamentalsSkill
- langchain-middlewareSkill
- langchain-ragSkill
- langgraph-fundamentalsSkill
- langgraph-human-in-the-loopSkill
- langgraph-persistenceSkill
- langsmith-datasetSkill
- langsmith-evaluatorSkill
- langsmith-traceSkill
- api-docsSkill
- database-migrationsSkill
- docker-patternsSkill
- react-componentsSkill
- testing-patternsSkill
The file
We split this CLAUDE.md into the rules it gives an agent
12 rules. About 0 are common, 9 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
When modifying any script, always update both Python and TypeScript versions together.
- Distinctive: line 24
When updating skill documentation:
- Distinctive: line 25
All three files should have the same section structure (headers, order)
- Distinctive: line 28
Keep descriptions consistent across variants
- Distinctive: line 58
When creating or updating test scripts:
- Distinctive: line 65
Check the raw logs to see exactly what Claude did
- Distinctive: line 67
Look for both false positives (passed when it shouldn't) and false negatives (failed when it shouldn't)
- Very specific: line 70
Use passed list for informational stats (e.g., "Skills invoked: langsmith-trace")
- Very specific: line 71
Use failed list only for actual task failures
- Distinctive: line 111
Run tests multiple times before drawing conclusions
- Distinctive: line 112
Always inspect raw logs and artifacts for every run (including passes)
- Distinctive: line 113
Document findings about validator accuracy and task difficulty
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skills Project Guidelines
Python/TypeScript Parity
CRITICAL: LangSmith skills have both Python and TypeScript implementations. These MUST stay in sync:
- Same CLI commands, flags, and options
- Same output format for identical inputs
- Same error handling behavior
When modifying any script, always update both Python and TypeScript versions together. Parity tests in tests/scripts/langsmith/parity/ verify this.
The TypeScript scaffold (scaffold/typescript/) mirrors Python:
- Both scaffolds are copied into Docker so test scripts in either language work from either runner
TestRunnerclass available in both languages with identical APIbuildTreatmentSkills()in TS doesn't supportincluded_sections,section_overrides,extra_sections— use Python for full section manipulation
Skill Markdown File Parity
Each skill directory contains variant files that MUST stay aligned:
skill_py.md- Python-only contentskill_ts.md- TypeScript/JavaScript-only contentskill_all.md- Combined content for both languages
When updating skill documentation:
- All three files should have the same section structure (headers, order)
- Code examples should be equivalent implementations in each language
- CLI commands should show the appropriate language-specific invocation
- Keep descriptions consistent across variants
Task Structure
Each task is a self-contained directory:
tasks/my-task/
task.toml # Metadata + validation config
instruction.md # Task prompt with {variable} placeholders
environment/ # Docker context (Dockerfile, requirements.txt, source code)
validation/ # Test scripts (run inside Docker)
data/ # Ground truth, test cases (optional)Validation is config-driven via task.toml:
[validation]
test_scripts = "test_my_task.py" # Script(s) to run in Docker
target_artifacts = ["output.py"] # File(s) Claude should create
timeout = 120 # Docker execution timeoutThe framework auto-builds a validator from this config — no validators.py needed.
Docker paths mirror the local structure: data/, validation/, artifacts at root. Contributors can reference paths the same way locally and in Docker.
Benchmark Validation Principles
When creating or updating test scripts:
- Separate infrastructure failures from Claude failures — infrastructure issues (Docker, missing files) should be clearly distinguishable from Claude's task performance
- Validators should be precise — a validator that's too lax won't catch real issues; one that's too strict will fail on valid solutions
- Always verify validators manually — after running tests:
- Check the raw logs to see exactly what Claude did
- Review artifacts to verify the validator's assessment was correct
- Look for both false positives (passed when it shouldn't) and false negatives (failed when it shouldn't)
- Informational stats vs hard failures:
- Use
passedlist for informational stats (e.g., "Skills invoked: langsmith-trace") - Use
failedlist only for actual task failures - Skill invocations and script usage are tracked as stats, not failures
- Use
- Every check must call passed() or failed() — returning without calling either is treated as an error by TestRunner
Running Tests
Python (pytest)
# Run specific task + treatment
uv run pytest tests/tasks/test_tasks.py --task=lc-basic --treatment=ALL_MAIN_SKILLS -v
# Multiple treatments (comma-separated)
uv run pytest tests/tasks/test_tasks.py --task=lc-basic --treatment=CONTROL,ALL_MAIN_SKILLS -v
# Wildcard patterns
uv run pytest tests/tasks/test_tasks.py --task=lc-basic --treatment=LCC_* -v
# With repetitions and parallel workers
uv run pytest tests/tasks/test_tasks.py --task=lc-basic --treatment=CONTROL --count=3 -n 4 -vTypeScript (vitest)
# Run specific task + treatment
TASK=lc-basic TREATMENT=ALL_MAIN_SKILLS npx vitest run tests/tasks/test_tasks.test.ts
# With parallelism
TASK=lc-basic TREATMENT=CONTROL,ALL_MAIN_SKILLS npx vitest run tests/tasks/test_tasks.test.ts --pool=threads --poolOptions.threads.maxThreads=2
# List test cases without running (like pytest --collect-only)
npx vitest list tests/tasks/test_tasks.test.tsBoth runners execute the same validation pipeline and produce equivalent results. Use pytest for benchmark runs — vitest threads cannot parallelize Docker execution, so multiple treatments run sequentially regardless of thread count. Vitest is useful for setup verification and TypeScript development.
Best Practices
- Run tests multiple times before drawing conclusions
- Always inspect raw logs and artifacts for every run (including passes)
- Document findings about validator accuracy and task difficulty
- Track patterns across treatments to understand skill effectiveness
Project Structure
Treatments
Treatments are centralized in treatments/ folder by category:
common/- CONTROL, ALL_MAIN_SKILLSlangsmith/- LS_* treatmentslangchain_concise/- LCC_* treatmentsoss_split/- OSSS_* treatments (granular skills)oss_merged/- OSSM_* treatments (consolidated skills)
Tasks and treatments are decoupled — any treatment can be used with any task.
Tasks
Each task has default_treatments in its task.toml. When running without --treatment, the defaults are used.
Skills
skills/main/- Production-ready skillsskills/benchmarks/- Skill variations for testingskills/noise/- Distractor skills for interference tests
Linting
# Python
uv run ruff check . # Check for issues
uv run ruff check --fix . # Auto-fix issues
uv run ruff format . # Format code
# TypeScript
npm run typecheck # Type checking
npm test # Run vitest (unit + parity tests)Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

