@bastani/atomic 0.5.11 → 0.5.12-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/skills/adapt/SKILL.md +199 -0
- package/.agents/skills/advanced-evaluation/SKILL.md +402 -0
- package/.agents/skills/advanced-evaluation/references/bias-mitigation.md +288 -0
- package/.agents/skills/advanced-evaluation/references/evaluation-pipeline.md +43 -0
- package/.agents/skills/advanced-evaluation/references/implementation-patterns.md +315 -0
- package/.agents/skills/advanced-evaluation/references/metrics-guide.md +331 -0
- package/.agents/skills/advanced-evaluation/scripts/evaluation_example.py +392 -0
- package/.agents/skills/animate/SKILL.md +175 -0
- package/.agents/skills/arrange/SKILL.md +124 -0
- package/.agents/skills/audit/SKILL.md +148 -0
- package/.agents/skills/bdi-mental-states/SKILL.md +311 -0
- package/.agents/skills/bdi-mental-states/references/bdi-ontology-core.md +207 -0
- package/.agents/skills/bdi-mental-states/references/framework-integration.md +582 -0
- package/.agents/skills/bdi-mental-states/references/rdf-examples.md +315 -0
- package/.agents/skills/bdi-mental-states/references/sparql-competency.md +420 -0
- package/.agents/skills/bolder/SKILL.md +117 -0
- package/.agents/skills/bun/SKILL.md +199 -0
- package/.agents/skills/clarify/SKILL.md +183 -0
- package/.agents/skills/colorize/SKILL.md +143 -0
- package/.agents/skills/context-compression/SKILL.md +272 -0
- package/.agents/skills/context-compression/references/evaluation-framework.md +213 -0
- package/.agents/skills/context-compression/scripts/compression_evaluator.py +862 -0
- package/.agents/skills/context-compression/tests/test_compression_evaluator.py +56 -0
- package/.agents/skills/context-degradation/SKILL.md +206 -0
- package/.agents/skills/context-degradation/references/patterns.md +314 -0
- package/.agents/skills/context-degradation/scripts/degradation_detector.py +614 -0
- package/.agents/skills/context-fundamentals/SKILL.md +201 -0
- package/.agents/skills/context-fundamentals/references/context-components.md +283 -0
- package/.agents/skills/context-fundamentals/scripts/context_manager.py +533 -0
- package/.agents/skills/context-optimization/SKILL.md +195 -0
- package/.agents/skills/context-optimization/references/optimization_techniques.md +272 -0
- package/.agents/skills/context-optimization/scripts/compaction.py +562 -0
- package/.agents/skills/create-spec/SKILL.md +244 -0
- package/.agents/skills/critique/SKILL.md +225 -0
- package/.agents/skills/critique/reference/cognitive-load.md +106 -0
- package/.agents/skills/critique/reference/heuristics-scoring.md +234 -0
- package/.agents/skills/critique/reference/personas.md +178 -0
- package/.agents/skills/delight/SKILL.md +304 -0
- package/.agents/skills/distill/SKILL.md +122 -0
- package/.agents/skills/docx/LICENSE.txt +30 -0
- package/.agents/skills/docx/SKILL.md +590 -0
- package/.agents/skills/docx/scripts/__init__.py +1 -0
- package/.agents/skills/docx/scripts/accept_changes.py +135 -0
- package/.agents/skills/docx/scripts/comment.py +318 -0
- package/.agents/skills/docx/scripts/office/helpers/__init__.py +0 -0
- package/.agents/skills/docx/scripts/office/helpers/merge_runs.py +199 -0
- package/.agents/skills/docx/scripts/office/helpers/simplify_redlines.py +197 -0
- package/.agents/skills/docx/scripts/office/pack.py +159 -0
- package/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/.agents/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/.agents/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/.agents/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/.agents/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/.agents/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/.agents/skills/docx/scripts/office/schemas/mce/mc.xsd +75 -0
- package/.agents/skills/docx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
- package/.agents/skills/docx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
- package/.agents/skills/docx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
- package/.agents/skills/docx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/.agents/skills/docx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/.agents/skills/docx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/.agents/skills/docx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/.agents/skills/docx/scripts/office/soffice.py +183 -0
- package/.agents/skills/docx/scripts/office/unpack.py +132 -0
- package/.agents/skills/docx/scripts/office/validate.py +111 -0
- package/.agents/skills/docx/scripts/office/validators/__init__.py +15 -0
- package/.agents/skills/docx/scripts/office/validators/base.py +847 -0
- package/.agents/skills/docx/scripts/office/validators/docx.py +446 -0
- package/.agents/skills/docx/scripts/office/validators/pptx.py +275 -0
- package/.agents/skills/docx/scripts/office/validators/redlining.py +247 -0
- package/.agents/skills/docx/scripts/templates/comments.xml +3 -0
- package/.agents/skills/docx/scripts/templates/commentsExtended.xml +3 -0
- package/.agents/skills/docx/scripts/templates/commentsExtensible.xml +3 -0
- package/.agents/skills/docx/scripts/templates/commentsIds.xml +3 -0
- package/.agents/skills/docx/scripts/templates/people.xml +3 -0
- package/.agents/skills/evaluation/SKILL.md +251 -0
- package/.agents/skills/evaluation/references/metrics.md +339 -0
- package/.agents/skills/evaluation/scripts/evaluator.py +627 -0
- package/.agents/skills/explain-code/SKILL.md +230 -0
- package/.agents/skills/extract/SKILL.md +91 -0
- package/.agents/skills/filesystem-context/SKILL.md +287 -0
- package/.agents/skills/filesystem-context/references/implementation-patterns.md +549 -0
- package/.agents/skills/filesystem-context/scripts/filesystem_context.py +425 -0
- package/.agents/skills/find-skills/SKILL.md +142 -0
- package/.agents/skills/frontend-design/SKILL.md +147 -0
- package/.agents/skills/frontend-design/reference/color-and-contrast.md +132 -0
- package/.agents/skills/frontend-design/reference/interaction-design.md +195 -0
- package/.agents/skills/frontend-design/reference/motion-design.md +99 -0
- package/.agents/skills/frontend-design/reference/responsive-design.md +114 -0
- package/.agents/skills/frontend-design/reference/spatial-design.md +100 -0
- package/.agents/skills/frontend-design/reference/typography.md +133 -0
- package/.agents/skills/frontend-design/reference/ux-writing.md +107 -0
- package/.agents/skills/gh-commit/SKILL.md +243 -0
- package/.agents/skills/gh-create-pr/SKILL.md +93 -0
- package/.agents/skills/harden/SKILL.md +354 -0
- package/.agents/skills/hosted-agents/SKILL.md +260 -0
- package/.agents/skills/hosted-agents/references/infrastructure-patterns.md +700 -0
- package/.agents/skills/hosted-agents/scripts/sandbox_manager.py +590 -0
- package/.agents/skills/impeccable/SKILL.md +365 -0
- package/.agents/skills/impeccable/reference/color-and-contrast.md +105 -0
- package/.agents/skills/impeccable/reference/craft.md +70 -0
- package/.agents/skills/impeccable/reference/extract.md +70 -0
- package/.agents/skills/impeccable/reference/interaction-design.md +195 -0
- package/.agents/skills/impeccable/reference/motion-design.md +99 -0
- package/.agents/skills/impeccable/reference/responsive-design.md +114 -0
- package/.agents/skills/impeccable/reference/spatial-design.md +100 -0
- package/.agents/skills/impeccable/reference/typography.md +142 -0
- package/.agents/skills/impeccable/reference/ux-writing.md +107 -0
- package/.agents/skills/impeccable/scripts/cleanup-deprecated.mjs +214 -0
- package/.agents/skills/init/SKILL.md +138 -0
- package/.agents/skills/layout/SKILL.md +125 -0
- package/.agents/skills/liteparse/SKILL.md +222 -0
- package/.agents/skills/memory-systems/SKILL.md +219 -0
- package/.agents/skills/memory-systems/references/implementation.md +551 -0
- package/.agents/skills/memory-systems/scripts/memory_store.py +616 -0
- package/.agents/skills/multi-agent-patterns/SKILL.md +257 -0
- package/.agents/skills/multi-agent-patterns/references/frameworks.md +433 -0
- package/.agents/skills/multi-agent-patterns/scripts/coordination.py +613 -0
- package/.agents/skills/normalize/SKILL.md +70 -0
- package/.agents/skills/onboard/SKILL.md +245 -0
- package/.agents/skills/opentui/SKILL.md +201 -0
- package/.agents/skills/opentui/references/animation/REFERENCE.md +431 -0
- package/.agents/skills/opentui/references/components/REFERENCE.md +144 -0
- package/.agents/skills/opentui/references/components/code-diff.md +672 -0
- package/.agents/skills/opentui/references/components/containers.md +417 -0
- package/.agents/skills/opentui/references/components/inputs.md +531 -0
- package/.agents/skills/opentui/references/components/text-display.md +386 -0
- package/.agents/skills/opentui/references/core/REFERENCE.md +145 -0
- package/.agents/skills/opentui/references/core/api.md +543 -0
- package/.agents/skills/opentui/references/core/configuration.md +168 -0
- package/.agents/skills/opentui/references/core/gotchas.md +393 -0
- package/.agents/skills/opentui/references/core/patterns.md +449 -0
- package/.agents/skills/opentui/references/keyboard/REFERENCE.md +617 -0
- package/.agents/skills/opentui/references/layout/REFERENCE.md +337 -0
- package/.agents/skills/opentui/references/layout/patterns.md +444 -0
- package/.agents/skills/opentui/references/react/REFERENCE.md +174 -0
- package/.agents/skills/opentui/references/react/api.md +436 -0
- package/.agents/skills/opentui/references/react/configuration.md +302 -0
- package/.agents/skills/opentui/references/react/gotchas.md +443 -0
- package/.agents/skills/opentui/references/react/patterns.md +501 -0
- package/.agents/skills/opentui/references/solid/REFERENCE.md +201 -0
- package/.agents/skills/opentui/references/solid/api.md +564 -0
- package/.agents/skills/opentui/references/solid/configuration.md +316 -0
- package/.agents/skills/opentui/references/solid/gotchas.md +427 -0
- package/.agents/skills/opentui/references/solid/patterns.md +560 -0
- package/.agents/skills/opentui/references/testing/REFERENCE.md +614 -0
- package/.agents/skills/optimize/SKILL.md +266 -0
- package/.agents/skills/overdrive/SKILL.md +142 -0
- package/.agents/skills/pdf/LICENSE.txt +30 -0
- package/.agents/skills/pdf/SKILL.md +314 -0
- package/.agents/skills/pdf/forms.md +294 -0
- package/.agents/skills/pdf/reference.md +612 -0
- package/.agents/skills/pdf/scripts/check_bounding_boxes.py +65 -0
- package/.agents/skills/pdf/scripts/check_fillable_fields.py +11 -0
- package/.agents/skills/pdf/scripts/convert_pdf_to_images.py +33 -0
- package/.agents/skills/pdf/scripts/create_validation_image.py +37 -0
- package/.agents/skills/pdf/scripts/extract_form_field_info.py +122 -0
- package/.agents/skills/pdf/scripts/extract_form_structure.py +115 -0
- package/.agents/skills/pdf/scripts/fill_fillable_fields.py +98 -0
- package/.agents/skills/pdf/scripts/fill_pdf_form_with_annotations.py +107 -0
- package/.agents/skills/playwright-cli/SKILL.md +344 -0
- package/.agents/skills/playwright-cli/references/element-attributes.md +23 -0
- package/.agents/skills/playwright-cli/references/playwright-tests.md +39 -0
- package/.agents/skills/playwright-cli/references/request-mocking.md +87 -0
- package/.agents/skills/playwright-cli/references/running-code.md +231 -0
- package/.agents/skills/playwright-cli/references/session-management.md +169 -0
- package/.agents/skills/playwright-cli/references/storage-state.md +275 -0
- package/.agents/skills/playwright-cli/references/test-generation.md +88 -0
- package/.agents/skills/playwright-cli/references/tracing.md +139 -0
- package/.agents/skills/playwright-cli/references/video-recording.md +143 -0
- package/.agents/skills/polish/SKILL.md +224 -0
- package/.agents/skills/pptx/LICENSE.txt +30 -0
- package/.agents/skills/pptx/SKILL.md +232 -0
- package/.agents/skills/pptx/editing.md +205 -0
- package/.agents/skills/pptx/pptxgenjs.md +420 -0
- package/.agents/skills/pptx/scripts/__init__.py +0 -0
- package/.agents/skills/pptx/scripts/add_slide.py +195 -0
- package/.agents/skills/pptx/scripts/clean.py +286 -0
- package/.agents/skills/pptx/scripts/office/helpers/__init__.py +0 -0
- package/.agents/skills/pptx/scripts/office/helpers/merge_runs.py +199 -0
- package/.agents/skills/pptx/scripts/office/helpers/simplify_redlines.py +197 -0
- package/.agents/skills/pptx/scripts/office/pack.py +159 -0
- package/.agents/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/.agents/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/.agents/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/.agents/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/.agents/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/.agents/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/.agents/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/.agents/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/.agents/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/.agents/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/.agents/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/.agents/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/.agents/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/.agents/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/.agents/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/.agents/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/.agents/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/.agents/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/.agents/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/.agents/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/.agents/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/.agents/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/.agents/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/.agents/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/.agents/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/.agents/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/.agents/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/.agents/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/.agents/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/.agents/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/.agents/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/.agents/skills/pptx/scripts/office/schemas/mce/mc.xsd +75 -0
- package/.agents/skills/pptx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
- package/.agents/skills/pptx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
- package/.agents/skills/pptx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
- package/.agents/skills/pptx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/.agents/skills/pptx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/.agents/skills/pptx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/.agents/skills/pptx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/.agents/skills/pptx/scripts/office/soffice.py +183 -0
- package/.agents/skills/pptx/scripts/office/unpack.py +132 -0
- package/.agents/skills/pptx/scripts/office/validate.py +111 -0
- package/.agents/skills/pptx/scripts/office/validators/__init__.py +15 -0
- package/.agents/skills/pptx/scripts/office/validators/base.py +847 -0
- package/.agents/skills/pptx/scripts/office/validators/docx.py +446 -0
- package/.agents/skills/pptx/scripts/office/validators/pptx.py +275 -0
- package/.agents/skills/pptx/scripts/office/validators/redlining.py +247 -0
- package/.agents/skills/pptx/scripts/thumbnail.py +289 -0
- package/.agents/skills/project-development/SKILL.md +291 -0
- package/.agents/skills/project-development/references/case-studies.md +388 -0
- package/.agents/skills/project-development/references/pipeline-patterns.md +610 -0
- package/.agents/skills/project-development/scripts/pipeline_template.py +796 -0
- package/.agents/skills/prompt-engineer/SKILL.md +263 -0
- package/.agents/skills/prompt-engineer/references/advanced_patterns.md +271 -0
- package/.agents/skills/prompt-engineer/references/core_prompting.md +137 -0
- package/.agents/skills/prompt-engineer/references/quality_improvement.md +193 -0
- package/.agents/skills/quieter/SKILL.md +103 -0
- package/.agents/skills/research-codebase/SKILL.md +227 -0
- package/.agents/skills/shape/SKILL.md +96 -0
- package/.agents/skills/skill-creator/LICENSE.txt +202 -0
- package/.agents/skills/skill-creator/SKILL.md +485 -0
- package/.agents/skills/skill-creator/agents/analyzer.md +274 -0
- package/.agents/skills/skill-creator/agents/comparator.md +202 -0
- package/.agents/skills/skill-creator/agents/grader.md +223 -0
- package/.agents/skills/skill-creator/assets/eval_review.html +146 -0
- package/.agents/skills/skill-creator/eval-viewer/generate_review.py +471 -0
- package/.agents/skills/skill-creator/eval-viewer/viewer.html +1325 -0
- package/.agents/skills/skill-creator/references/schemas.md +430 -0
- package/.agents/skills/skill-creator/scripts/__init__.py +0 -0
- package/.agents/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
- package/.agents/skills/skill-creator/scripts/generate_report.py +326 -0
- package/.agents/skills/skill-creator/scripts/improve_description.py +247 -0
- package/.agents/skills/skill-creator/scripts/package_skill.py +136 -0
- package/.agents/skills/skill-creator/scripts/quick_validate.py +103 -0
- package/.agents/skills/skill-creator/scripts/run_eval.py +310 -0
- package/.agents/skills/skill-creator/scripts/run_loop.py +328 -0
- package/.agents/skills/skill-creator/scripts/utils.py +47 -0
- package/.agents/skills/sl-commit/SKILL.md +51 -0
- package/.agents/skills/sl-submit-diff/SKILL.md +55 -0
- package/.agents/skills/teach-impeccable/SKILL.md +71 -0
- package/.agents/skills/test-driven-development/SKILL.md +371 -0
- package/.agents/skills/test-driven-development/testing-anti-patterns.md +299 -0
- package/.agents/skills/tool-design/SKILL.md +271 -0
- package/.agents/skills/tool-design/references/architectural_reduction.md +210 -0
- package/.agents/skills/tool-design/references/best_practices.md +176 -0
- package/.agents/skills/tool-design/scripts/description_generator.py +528 -0
- package/.agents/skills/typescript-advanced-types/SKILL.md +719 -0
- package/.agents/skills/typescript-expert/SKILL.md +428 -0
- package/.agents/skills/typescript-expert/references/tsconfig-strict.json +92 -0
- package/.agents/skills/typescript-expert/references/typescript-cheatsheet.md +383 -0
- package/.agents/skills/typescript-expert/references/utility-types.ts +335 -0
- package/.agents/skills/typescript-expert/scripts/ts_diagnostic.py +203 -0
- package/.agents/skills/typescript-react-reviewer/SKILL.md +200 -0
- package/.agents/skills/typescript-react-reviewer/references/antipatterns.md +510 -0
- package/.agents/skills/typescript-react-reviewer/references/checklist.md +267 -0
- package/.agents/skills/typescript-react-reviewer/references/react19-patterns.md +305 -0
- package/.agents/skills/typeset/SKILL.md +116 -0
- package/.agents/skills/workflow-creator/SKILL.md +337 -0
- package/.agents/skills/workflow-creator/references/agent-sessions.md +789 -0
- package/.agents/skills/workflow-creator/references/computation-and-validation.md +224 -0
- package/.agents/skills/workflow-creator/references/control-flow.md +450 -0
- package/.agents/skills/workflow-creator/references/discovery-and-verification.md +156 -0
- package/.agents/skills/workflow-creator/references/failure-modes.md +732 -0
- package/.agents/skills/workflow-creator/references/getting-started.md +289 -0
- package/.agents/skills/workflow-creator/references/session-config.md +355 -0
- package/.agents/skills/workflow-creator/references/state-and-data-flow.md +374 -0
- package/.agents/skills/workflow-creator/references/user-input.md +206 -0
- package/.agents/skills/workflow-creator/references/workflow-inputs.md +274 -0
- package/.agents/skills/xlsx/LICENSE.txt +30 -0
- package/.agents/skills/xlsx/SKILL.md +292 -0
- package/.agents/skills/xlsx/scripts/office/helpers/__init__.py +0 -0
- package/.agents/skills/xlsx/scripts/office/helpers/merge_runs.py +199 -0
- package/.agents/skills/xlsx/scripts/office/helpers/simplify_redlines.py +197 -0
- package/.agents/skills/xlsx/scripts/office/pack.py +159 -0
- package/.agents/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/.agents/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/.agents/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/.agents/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/.agents/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/.agents/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/.agents/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/.agents/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/.agents/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/.agents/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/.agents/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/.agents/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/.agents/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/.agents/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/.agents/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/.agents/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/.agents/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/.agents/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/.agents/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/.agents/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/.agents/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/.agents/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/.agents/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/.agents/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/.agents/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/.agents/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/.agents/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/.agents/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/.agents/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/.agents/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/.agents/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/.agents/skills/xlsx/scripts/office/schemas/mce/mc.xsd +75 -0
- package/.agents/skills/xlsx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
- package/.agents/skills/xlsx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
- package/.agents/skills/xlsx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
- package/.agents/skills/xlsx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/.agents/skills/xlsx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/.agents/skills/xlsx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/.agents/skills/xlsx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/.agents/skills/xlsx/scripts/office/soffice.py +183 -0
- package/.agents/skills/xlsx/scripts/office/unpack.py +132 -0
- package/.agents/skills/xlsx/scripts/office/validate.py +111 -0
- package/.agents/skills/xlsx/scripts/office/validators/__init__.py +15 -0
- package/.agents/skills/xlsx/scripts/office/validators/base.py +847 -0
- package/.agents/skills/xlsx/scripts/office/validators/docx.py +446 -0
- package/.agents/skills/xlsx/scripts/office/validators/pptx.py +275 -0
- package/.agents/skills/xlsx/scripts/office/validators/redlining.py +247 -0
- package/.agents/skills/xlsx/scripts/recalc.py +184 -0
- package/.claude/agents/reviewer.md +1 -0
- package/.github/agents/reviewer.md +1 -0
- package/.opencode/agents/reviewer.md +1 -0
- package/README.md +274 -169
- package/package.json +6 -7
- package/src/commands/cli/init/index.ts +2 -2
- package/src/commands/cli/init/scm.ts +7 -8
- package/src/commands/cli/workflow-command.test.ts +74 -0
- package/src/commands/cli/workflow.ts +7 -2
- package/src/scripts/bundle-configs.ts +128 -0
- package/src/sdk/components/compact-switcher.tsx +1 -1
- package/src/sdk/components/orchestrator-panel-store.ts +13 -0
- package/src/sdk/components/orchestrator-panel.tsx +10 -0
- package/src/sdk/components/statusline.tsx +13 -1
- package/src/sdk/components/workflow-picker-panel.tsx +407 -296
- package/src/sdk/providers/claude.ts +50 -0
- package/src/sdk/runtime/executor.ts +111 -32
- package/src/sdk/types.ts +7 -0
- package/src/sdk/workflows/builtin/ralph/claude/index.ts +132 -76
- package/src/sdk/workflows/builtin/ralph/copilot/index.ts +129 -71
- package/src/sdk/workflows/builtin/ralph/helpers/git.ts +184 -17
- package/src/sdk/workflows/builtin/ralph/helpers/prompts.ts +463 -79
- package/src/sdk/workflows/builtin/ralph/opencode/index.ts +124 -80
- package/src/services/system/auto-sync.ts +31 -51
- package/src/services/system/skills.ts +56 -60
- package/dist/lib/path-root-guard.d.ts +0 -4
- package/dist/lib/path-root-guard.d.ts.map +0 -1
- package/dist/sdk/components/color-utils.d.ts +0 -4
- package/dist/sdk/components/color-utils.d.ts.map +0 -1
- package/dist/sdk/components/compact-switcher.d.ts +0 -10
- package/dist/sdk/components/compact-switcher.d.ts.map +0 -1
- package/dist/sdk/components/connectors.d.ts +0 -15
- package/dist/sdk/components/connectors.d.ts.map +0 -1
- package/dist/sdk/components/connectors.test.d.ts +0 -2
- package/dist/sdk/components/connectors.test.d.ts.map +0 -1
- package/dist/sdk/components/edge.d.ts +0 -4
- package/dist/sdk/components/edge.d.ts.map +0 -1
- package/dist/sdk/components/error-boundary.d.ts +0 -23
- package/dist/sdk/components/error-boundary.d.ts.map +0 -1
- package/dist/sdk/components/graph-theme.d.ts +0 -17
- package/dist/sdk/components/graph-theme.d.ts.map +0 -1
- package/dist/sdk/components/header.d.ts +0 -3
- package/dist/sdk/components/header.d.ts.map +0 -1
- package/dist/sdk/components/hooks.d.ts +0 -15
- package/dist/sdk/components/hooks.d.ts.map +0 -1
- package/dist/sdk/components/layout.d.ts +0 -27
- package/dist/sdk/components/layout.d.ts.map +0 -1
- package/dist/sdk/components/layout.test.d.ts +0 -2
- package/dist/sdk/components/layout.test.d.ts.map +0 -1
- package/dist/sdk/components/node-card.d.ts +0 -10
- package/dist/sdk/components/node-card.d.ts.map +0 -1
- package/dist/sdk/components/orchestrator-panel-contexts.d.ts +0 -16
- package/dist/sdk/components/orchestrator-panel-contexts.d.ts.map +0 -1
- package/dist/sdk/components/orchestrator-panel-store.d.ts +0 -46
- package/dist/sdk/components/orchestrator-panel-store.d.ts.map +0 -1
- package/dist/sdk/components/orchestrator-panel-store.test.d.ts +0 -2
- package/dist/sdk/components/orchestrator-panel-store.test.d.ts.map +0 -1
- package/dist/sdk/components/orchestrator-panel-types.d.ts +0 -18
- package/dist/sdk/components/orchestrator-panel-types.d.ts.map +0 -1
- package/dist/sdk/components/orchestrator-panel.d.ts +0 -52
- package/dist/sdk/components/orchestrator-panel.d.ts.map +0 -1
- package/dist/sdk/components/session-graph-panel.d.ts +0 -7
- package/dist/sdk/components/session-graph-panel.d.ts.map +0 -1
- package/dist/sdk/components/status-helpers.d.ts +0 -6
- package/dist/sdk/components/status-helpers.d.ts.map +0 -1
- package/dist/sdk/components/statusline.d.ts +0 -7
- package/dist/sdk/components/statusline.d.ts.map +0 -1
- package/dist/sdk/components/workflow-picker-panel.d.ts +0 -123
- package/dist/sdk/components/workflow-picker-panel.d.ts.map +0 -1
- package/dist/sdk/define-workflow.d.ts +0 -78
- package/dist/sdk/define-workflow.d.ts.map +0 -1
- package/dist/sdk/define-workflow.test.d.ts +0 -2
- package/dist/sdk/define-workflow.test.d.ts.map +0 -1
- package/dist/sdk/errors.d.ts +0 -24
- package/dist/sdk/errors.d.ts.map +0 -1
- package/dist/sdk/errors.test.d.ts +0 -2
- package/dist/sdk/errors.test.d.ts.map +0 -1
- package/dist/sdk/index.d.ts +0 -13
- package/dist/sdk/index.d.ts.map +0 -1
- package/dist/sdk/providers/claude.d.ts +0 -170
- package/dist/sdk/providers/claude.d.ts.map +0 -1
- package/dist/sdk/providers/copilot.d.ts +0 -11
- package/dist/sdk/providers/copilot.d.ts.map +0 -1
- package/dist/sdk/providers/opencode.d.ts +0 -11
- package/dist/sdk/providers/opencode.d.ts.map +0 -1
- package/dist/sdk/runtime/discovery.d.ts +0 -86
- package/dist/sdk/runtime/discovery.d.ts.map +0 -1
- package/dist/sdk/runtime/executor-entry.d.ts +0 -11
- package/dist/sdk/runtime/executor-entry.d.ts.map +0 -1
- package/dist/sdk/runtime/executor.d.ts +0 -72
- package/dist/sdk/runtime/executor.d.ts.map +0 -1
- package/dist/sdk/runtime/executor.test.d.ts +0 -2
- package/dist/sdk/runtime/executor.test.d.ts.map +0 -1
- package/dist/sdk/runtime/graph-inference.d.ts +0 -35
- package/dist/sdk/runtime/graph-inference.d.ts.map +0 -1
- package/dist/sdk/runtime/loader.d.ts +0 -70
- package/dist/sdk/runtime/loader.d.ts.map +0 -1
- package/dist/sdk/runtime/panel.d.ts +0 -9
- package/dist/sdk/runtime/panel.d.ts.map +0 -1
- package/dist/sdk/runtime/theme.d.ts +0 -28
- package/dist/sdk/runtime/theme.d.ts.map +0 -1
- package/dist/sdk/runtime/tmux.d.ts +0 -297
- package/dist/sdk/runtime/tmux.d.ts.map +0 -1
- package/dist/sdk/types.d.ts +0 -295
- package/dist/sdk/types.d.ts.map +0 -1
- package/dist/sdk/workflows/builtin/deep-research-codebase/claude/index.d.ts +0 -62
- package/dist/sdk/workflows/builtin/deep-research-codebase/claude/index.d.ts.map +0 -1
- package/dist/sdk/workflows/builtin/deep-research-codebase/copilot/index.d.ts +0 -46
- package/dist/sdk/workflows/builtin/deep-research-codebase/copilot/index.d.ts.map +0 -1
- package/dist/sdk/workflows/builtin/deep-research-codebase/helpers/heuristic.d.ts +0 -26
- package/dist/sdk/workflows/builtin/deep-research-codebase/helpers/heuristic.d.ts.map +0 -1
- package/dist/sdk/workflows/builtin/deep-research-codebase/helpers/prompts.d.ts +0 -92
- package/dist/sdk/workflows/builtin/deep-research-codebase/helpers/prompts.d.ts.map +0 -1
- package/dist/sdk/workflows/builtin/deep-research-codebase/helpers/scout.d.ts +0 -57
- package/dist/sdk/workflows/builtin/deep-research-codebase/helpers/scout.d.ts.map +0 -1
- package/dist/sdk/workflows/builtin/deep-research-codebase/opencode/index.d.ts +0 -49
- package/dist/sdk/workflows/builtin/deep-research-codebase/opencode/index.d.ts.map +0 -1
- package/dist/sdk/workflows/builtin/ralph/claude/index.d.ts +0 -14
- package/dist/sdk/workflows/builtin/ralph/claude/index.d.ts.map +0 -1
- package/dist/sdk/workflows/builtin/ralph/copilot/index.d.ts +0 -14
- package/dist/sdk/workflows/builtin/ralph/copilot/index.d.ts.map +0 -1
- package/dist/sdk/workflows/builtin/ralph/helpers/git.d.ts +0 -17
- package/dist/sdk/workflows/builtin/ralph/helpers/git.d.ts.map +0 -1
- package/dist/sdk/workflows/builtin/ralph/helpers/prompts.d.ts +0 -119
- package/dist/sdk/workflows/builtin/ralph/helpers/prompts.d.ts.map +0 -1
- package/dist/sdk/workflows/builtin/ralph/helpers/review.d.ts +0 -20
- package/dist/sdk/workflows/builtin/ralph/helpers/review.d.ts.map +0 -1
- package/dist/sdk/workflows/builtin/ralph/opencode/index.d.ts +0 -14
- package/dist/sdk/workflows/builtin/ralph/opencode/index.d.ts.map +0 -1
- package/dist/sdk/workflows/index.d.ts +0 -24
- package/dist/sdk/workflows/index.d.ts.map +0 -1
- package/dist/services/config/definitions.d.ts +0 -85
- package/dist/services/config/definitions.d.ts.map +0 -1
- package/dist/services/system/copy.d.ts +0 -77
- package/dist/services/system/copy.d.ts.map +0 -1
- package/dist/services/system/detect.d.ts +0 -75
- package/dist/services/system/detect.d.ts.map +0 -1
- package/tsconfig.json +0 -33
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: adapt
|
|
3
|
+
description: Adapt designs to work across different screen sizes, devices, contexts, or platforms. Implements breakpoints, fluid layouts, and touch targets. Use when the user mentions responsive design, mobile layouts, breakpoints, viewport adaptation, or cross-device compatibility.
|
|
4
|
+
version: 2.1.1
|
|
5
|
+
user-invocable: true
|
|
6
|
+
argument-hint: "[target] [context (mobile, tablet, print...)]"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
Adapt existing designs to work effectively across different contexts - different screen sizes, devices, platforms, or use cases.
|
|
10
|
+
|
|
11
|
+
## MANDATORY PREPARATION
|
|
12
|
+
|
|
13
|
+
Invoke /impeccable — it contains design principles, anti-patterns, and the **Context Gathering Protocol**. Follow the protocol before proceeding — if no design context exists yet, you MUST run /impeccable teach first. Additionally gather: target platforms/devices and usage contexts.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Assess Adaptation Challenge
|
|
18
|
+
|
|
19
|
+
Understand what needs adaptation and why:
|
|
20
|
+
|
|
21
|
+
1. **Identify the source context**:
|
|
22
|
+
- What was it designed for originally? (Desktop web? Mobile app?)
|
|
23
|
+
- What assumptions were made? (Large screen? Mouse input? Fast connection?)
|
|
24
|
+
- What works well in current context?
|
|
25
|
+
|
|
26
|
+
2. **Understand target context**:
|
|
27
|
+
- **Device**: Mobile, tablet, desktop, TV, watch, print?
|
|
28
|
+
- **Input method**: Touch, mouse, keyboard, voice, gamepad?
|
|
29
|
+
- **Screen constraints**: Size, resolution, orientation?
|
|
30
|
+
- **Connection**: Fast wifi, slow 3G, offline?
|
|
31
|
+
- **Usage context**: On-the-go vs desk, quick glance vs focused reading?
|
|
32
|
+
- **User expectations**: What do users expect on this platform?
|
|
33
|
+
|
|
34
|
+
3. **Identify adaptation challenges**:
|
|
35
|
+
- What won't fit? (Content, navigation, features)
|
|
36
|
+
- What won't work? (Hover states on touch, tiny touch targets)
|
|
37
|
+
- What's inappropriate? (Desktop patterns on mobile, mobile patterns on desktop)
|
|
38
|
+
|
|
39
|
+
**CRITICAL**: Adaptation is not just scaling - it's rethinking the experience for the new context.
|
|
40
|
+
|
|
41
|
+
## Plan Adaptation Strategy
|
|
42
|
+
|
|
43
|
+
Create context-appropriate strategy:
|
|
44
|
+
|
|
45
|
+
### Mobile Adaptation (Desktop → Mobile)
|
|
46
|
+
|
|
47
|
+
**Layout Strategy**:
|
|
48
|
+
- Single column instead of multi-column
|
|
49
|
+
- Vertical stacking instead of side-by-side
|
|
50
|
+
- Full-width components instead of fixed widths
|
|
51
|
+
- Bottom navigation instead of top/side navigation
|
|
52
|
+
|
|
53
|
+
**Interaction Strategy**:
|
|
54
|
+
- Touch targets 44x44px minimum (not hover-dependent)
|
|
55
|
+
- Swipe gestures where appropriate (lists, carousels)
|
|
56
|
+
- Bottom sheets instead of dropdowns
|
|
57
|
+
- Thumbs-first design (controls within thumb reach)
|
|
58
|
+
- Larger tap areas with more spacing
|
|
59
|
+
|
|
60
|
+
**Content Strategy**:
|
|
61
|
+
- Progressive disclosure (don't show everything at once)
|
|
62
|
+
- Prioritize primary content (secondary content in tabs/accordions)
|
|
63
|
+
- Shorter text (more concise)
|
|
64
|
+
- Larger text (16px minimum)
|
|
65
|
+
|
|
66
|
+
**Navigation Strategy**:
|
|
67
|
+
- Hamburger menu or bottom navigation
|
|
68
|
+
- Reduce navigation complexity
|
|
69
|
+
- Sticky headers for context
|
|
70
|
+
- Back button in navigation flow
|
|
71
|
+
|
|
72
|
+
### Tablet Adaptation (Hybrid Approach)
|
|
73
|
+
|
|
74
|
+
**Layout Strategy**:
|
|
75
|
+
- Two-column layouts (not single or three-column)
|
|
76
|
+
- Side panels for secondary content
|
|
77
|
+
- Master-detail views (list + detail)
|
|
78
|
+
- Adaptive based on orientation (portrait vs landscape)
|
|
79
|
+
|
|
80
|
+
**Interaction Strategy**:
|
|
81
|
+
- Support both touch and pointer
|
|
82
|
+
- Touch targets 44x44px but allow denser layouts than phone
|
|
83
|
+
- Side navigation drawers
|
|
84
|
+
- Multi-column forms where appropriate
|
|
85
|
+
|
|
86
|
+
### Desktop Adaptation (Mobile → Desktop)
|
|
87
|
+
|
|
88
|
+
**Layout Strategy**:
|
|
89
|
+
- Multi-column layouts (use horizontal space)
|
|
90
|
+
- Side navigation always visible
|
|
91
|
+
- Multiple information panels simultaneously
|
|
92
|
+
- Fixed widths with max-width constraints (don't stretch to 4K)
|
|
93
|
+
|
|
94
|
+
**Interaction Strategy**:
|
|
95
|
+
- Hover states for additional information
|
|
96
|
+
- Keyboard shortcuts
|
|
97
|
+
- Right-click context menus
|
|
98
|
+
- Drag and drop where helpful
|
|
99
|
+
- Multi-select with Shift/Cmd
|
|
100
|
+
|
|
101
|
+
**Content Strategy**:
|
|
102
|
+
- Show more information upfront (less progressive disclosure)
|
|
103
|
+
- Data tables with many columns
|
|
104
|
+
- Richer visualizations
|
|
105
|
+
- More detailed descriptions
|
|
106
|
+
|
|
107
|
+
### Print Adaptation (Screen → Print)
|
|
108
|
+
|
|
109
|
+
**Layout Strategy**:
|
|
110
|
+
- Page breaks at logical points
|
|
111
|
+
- Remove navigation, footer, interactive elements
|
|
112
|
+
- Black and white (or limited color)
|
|
113
|
+
- Proper margins for binding
|
|
114
|
+
|
|
115
|
+
**Content Strategy**:
|
|
116
|
+
- Expand shortened content (show full URLs, hidden sections)
|
|
117
|
+
- Add page numbers, headers, footers
|
|
118
|
+
- Include metadata (print date, page title)
|
|
119
|
+
- Convert charts to print-friendly versions
|
|
120
|
+
|
|
121
|
+
### Email Adaptation (Web → Email)
|
|
122
|
+
|
|
123
|
+
**Layout Strategy**:
|
|
124
|
+
- Narrow width (600px max)
|
|
125
|
+
- Single column only
|
|
126
|
+
- Inline CSS (no external stylesheets)
|
|
127
|
+
- Table-based layouts (for email client compatibility)
|
|
128
|
+
|
|
129
|
+
**Interaction Strategy**:
|
|
130
|
+
- Large, obvious CTAs (buttons not text links)
|
|
131
|
+
- No hover states (not reliable)
|
|
132
|
+
- Deep links to web app for complex interactions
|
|
133
|
+
|
|
134
|
+
## Implement Adaptations
|
|
135
|
+
|
|
136
|
+
Apply changes systematically:
|
|
137
|
+
|
|
138
|
+
### Responsive Breakpoints
|
|
139
|
+
|
|
140
|
+
Choose appropriate breakpoints:
|
|
141
|
+
- Mobile: 320px-767px
|
|
142
|
+
- Tablet: 768px-1023px
|
|
143
|
+
- Desktop: 1024px+
|
|
144
|
+
- Or content-driven breakpoints (where design breaks)
|
|
145
|
+
|
|
146
|
+
### Layout Adaptation Techniques
|
|
147
|
+
|
|
148
|
+
- **CSS Grid/Flexbox**: Reflow layouts automatically
|
|
149
|
+
- **Container Queries**: Adapt based on container, not viewport
|
|
150
|
+
- **`clamp()`**: Fluid sizing between min and max
|
|
151
|
+
- **Media queries**: Different styles for different contexts
|
|
152
|
+
- **Display properties**: Show/hide elements per context
|
|
153
|
+
|
|
154
|
+
### Touch Adaptation
|
|
155
|
+
|
|
156
|
+
- Increase touch target sizes (44x44px minimum)
|
|
157
|
+
- Add more spacing between interactive elements
|
|
158
|
+
- Remove hover-dependent interactions
|
|
159
|
+
- Add touch feedback (ripples, highlights)
|
|
160
|
+
- Consider thumb zones (easier to reach bottom than top)
|
|
161
|
+
|
|
162
|
+
### Content Adaptation
|
|
163
|
+
|
|
164
|
+
- Use `display: none` sparingly (still downloads)
|
|
165
|
+
- Progressive enhancement (core content first, enhancements on larger screens)
|
|
166
|
+
- Lazy loading for off-screen content
|
|
167
|
+
- Responsive images (`srcset`, `picture` element)
|
|
168
|
+
|
|
169
|
+
### Navigation Adaptation
|
|
170
|
+
|
|
171
|
+
- Transform complex nav to hamburger/drawer on mobile
|
|
172
|
+
- Bottom nav bar for mobile apps
|
|
173
|
+
- Persistent side navigation on desktop
|
|
174
|
+
- Breadcrumbs on smaller screens for context
|
|
175
|
+
|
|
176
|
+
**IMPORTANT**: Test on real devices, not just browser DevTools. Device emulation is helpful but not perfect.
|
|
177
|
+
|
|
178
|
+
**NEVER**:
|
|
179
|
+
- Hide core functionality on mobile (if it matters, make it work)
|
|
180
|
+
- Assume desktop = powerful device (consider accessibility, older machines)
|
|
181
|
+
- Use different information architecture across contexts (confusing)
|
|
182
|
+
- Break user expectations for platform (mobile users expect mobile patterns)
|
|
183
|
+
- Forget landscape orientation on mobile/tablet
|
|
184
|
+
- Use generic breakpoints blindly (use content-driven breakpoints)
|
|
185
|
+
- Ignore touch on desktop (many desktop devices have touch)
|
|
186
|
+
|
|
187
|
+
## Verify Adaptations
|
|
188
|
+
|
|
189
|
+
Test thoroughly across contexts:
|
|
190
|
+
|
|
191
|
+
- **Real devices**: Test on actual phones, tablets, desktops
|
|
192
|
+
- **Different orientations**: Portrait and landscape
|
|
193
|
+
- **Different browsers**: Safari, Chrome, Firefox, Edge
|
|
194
|
+
- **Different OS**: iOS, Android, Windows, macOS
|
|
195
|
+
- **Different input methods**: Touch, mouse, keyboard
|
|
196
|
+
- **Edge cases**: Very small screens (320px), very large screens (4K)
|
|
197
|
+
- **Slow connections**: Test on throttled network
|
|
198
|
+
|
|
199
|
+
Remember: You're a cross-platform design expert. Make experiences that feel native to each context while maintaining brand and functionality consistency. Adapt intentionally, test thoroughly.
|
|
@@ -0,0 +1,402 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: advanced-evaluation
|
|
3
|
+
description: This skill should be used when the user asks to "implement LLM-as-judge", "compare model outputs", "create evaluation rubrics", "mitigate evaluation bias", or mentions direct scoring, pairwise comparison, position bias, evaluation pipelines, or automated quality assessment. Part of the context engineering skill suite — also activates when the user mentions "context engineering" or "context-engineering" in the context of evaluating LLM output quality.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Advanced Evaluation
|
|
7
|
+
|
|
8
|
+
This skill covers production-grade techniques for evaluating LLM outputs using LLMs as judges. It synthesizes research from academic papers, industry practices, and practical implementation experience into actionable patterns for building reliable evaluation systems.
|
|
9
|
+
|
|
10
|
+
**Key insight**: LLM-as-a-Judge is not a single technique but a family of approaches, each suited to different evaluation contexts. Choosing the right approach and mitigating known biases is the core competency this skill develops.
|
|
11
|
+
|
|
12
|
+
## When to Activate
|
|
13
|
+
|
|
14
|
+
Activate this skill when:
|
|
15
|
+
|
|
16
|
+
- Building automated evaluation pipelines for LLM outputs
|
|
17
|
+
- Comparing multiple model responses to select the best one
|
|
18
|
+
- Establishing consistent quality standards across evaluation teams
|
|
19
|
+
- Debugging evaluation systems that show inconsistent results
|
|
20
|
+
- Designing A/B tests for prompt or model changes
|
|
21
|
+
- Creating rubrics for human or automated evaluation
|
|
22
|
+
- Analyzing correlation between automated and human judgments
|
|
23
|
+
|
|
24
|
+
## Core Concepts
|
|
25
|
+
|
|
26
|
+
### The Evaluation Taxonomy
|
|
27
|
+
|
|
28
|
+
Select between two primary approaches based on whether ground truth exists:
|
|
29
|
+
|
|
30
|
+
**Direct Scoring** — Use when objective criteria exist (factual accuracy, instruction following, toxicity). A single LLM rates one response on a defined scale. Achieves moderate-to-high reliability for well-defined criteria. Watch for score calibration drift and inconsistent scale interpretation.
|
|
31
|
+
|
|
32
|
+
**Pairwise Comparison** — Use for subjective preferences (tone, style, persuasiveness). An LLM compares two responses and selects the better one. Achieves higher human-judge agreement than direct scoring for preference tasks (Zheng et al., 2023). Watch for position bias and length bias.
|
|
33
|
+
|
|
34
|
+
### The Bias Landscape
|
|
35
|
+
|
|
36
|
+
Mitigate these systematic biases in every evaluation system:
|
|
37
|
+
|
|
38
|
+
**Position Bias**: First-position responses get preferential treatment. Mitigate by evaluating twice with swapped positions, then apply majority vote or consistency check.
|
|
39
|
+
|
|
40
|
+
**Length Bias**: Longer responses score higher regardless of quality. Mitigate by explicitly prompting to ignore length and applying length-normalized scoring.
|
|
41
|
+
|
|
42
|
+
**Self-Enhancement Bias**: Models rate their own outputs higher. Mitigate by using different models for generation and evaluation.
|
|
43
|
+
|
|
44
|
+
**Verbosity Bias**: Excessive detail scores higher even when unnecessary. Mitigate with criteria-specific rubrics that penalize irrelevant detail.
|
|
45
|
+
|
|
46
|
+
**Authority Bias**: Confident tone scores higher regardless of accuracy. Mitigate by requiring evidence citation and adding a fact-checking layer.
|
|
47
|
+
|
|
48
|
+
### Metric Selection Framework
|
|
49
|
+
|
|
50
|
+
Match metrics to the evaluation task structure:
|
|
51
|
+
|
|
52
|
+
| Task Type | Primary Metrics | Secondary Metrics |
|
|
53
|
+
|-----------|-----------------|-------------------|
|
|
54
|
+
| Binary classification (pass/fail) | Recall, Precision, F1 | Cohen's kappa |
|
|
55
|
+
| Ordinal scale (1-5 rating) | Spearman's rho, Kendall's tau | Cohen's kappa (weighted) |
|
|
56
|
+
| Pairwise preference | Agreement rate, Position consistency | Confidence calibration |
|
|
57
|
+
| Multi-label | Macro-F1, Micro-F1 | Per-label precision/recall |
|
|
58
|
+
|
|
59
|
+
Prioritize systematic disagreement patterns over absolute agreement rates because a judge that consistently disagrees with humans on specific criteria is more problematic than one with random noise.
|
|
60
|
+
|
|
61
|
+
## Evaluation Approaches
|
|
62
|
+
|
|
63
|
+
### Direct Scoring Implementation
|
|
64
|
+
|
|
65
|
+
Build direct scoring with three components: clear criteria, a calibrated scale, and structured output format.
|
|
66
|
+
|
|
67
|
+
**Criteria Definition Pattern**:
|
|
68
|
+
```
|
|
69
|
+
Criterion: [Name]
|
|
70
|
+
Description: [What this criterion measures]
|
|
71
|
+
Weight: [Relative importance, 0-1]
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
**Scale Calibration** — Choose scale granularity based on rubric detail:
|
|
75
|
+
- 1-3: Binary with neutral option, lowest cognitive load
|
|
76
|
+
- 1-5: Standard Likert, best balance of granularity and reliability
|
|
77
|
+
- 1-10: Use only with detailed per-level rubrics because calibration is harder
|
|
78
|
+
|
|
79
|
+
**Prompt Structure for Direct Scoring**:
|
|
80
|
+
```
|
|
81
|
+
You are an expert evaluator assessing response quality.
|
|
82
|
+
|
|
83
|
+
## Task
|
|
84
|
+
Evaluate the following response against each criterion.
|
|
85
|
+
|
|
86
|
+
## Original Prompt
|
|
87
|
+
{prompt}
|
|
88
|
+
|
|
89
|
+
## Response to Evaluate
|
|
90
|
+
{response}
|
|
91
|
+
|
|
92
|
+
## Criteria
|
|
93
|
+
{for each criterion: name, description, weight}
|
|
94
|
+
|
|
95
|
+
## Instructions
|
|
96
|
+
For each criterion:
|
|
97
|
+
1. Find specific evidence in the response
|
|
98
|
+
2. Score according to the rubric (1-{max} scale)
|
|
99
|
+
3. Justify your score with evidence
|
|
100
|
+
4. Suggest one specific improvement
|
|
101
|
+
|
|
102
|
+
## Output Format
|
|
103
|
+
Respond with structured JSON containing scores, justifications, and summary.
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Always require justification before the score in all scoring prompts because research shows this improves reliability by 15-25% compared to score-first approaches.
|
|
107
|
+
|
|
108
|
+
### Pairwise Comparison Implementation
|
|
109
|
+
|
|
110
|
+
Apply position bias mitigation in every pairwise evaluation:
|
|
111
|
+
|
|
112
|
+
1. First pass: Response A in first position, Response B in second
|
|
113
|
+
2. Second pass: Response B in first position, Response A in second
|
|
114
|
+
3. Consistency check: If passes disagree, return TIE with reduced confidence
|
|
115
|
+
4. Final verdict: Consistent winner with averaged confidence
|
|
116
|
+
|
|
117
|
+
**Prompt Structure for Pairwise Comparison**:
|
|
118
|
+
```
|
|
119
|
+
You are an expert evaluator comparing two AI responses.
|
|
120
|
+
|
|
121
|
+
## Critical Instructions
|
|
122
|
+
- Do NOT prefer responses because they are longer
|
|
123
|
+
- Do NOT prefer responses based on position (first vs second)
|
|
124
|
+
- Focus ONLY on quality according to the specified criteria
|
|
125
|
+
- Ties are acceptable when responses are genuinely equivalent
|
|
126
|
+
|
|
127
|
+
## Original Prompt
|
|
128
|
+
{prompt}
|
|
129
|
+
|
|
130
|
+
## Response A
|
|
131
|
+
{response_a}
|
|
132
|
+
|
|
133
|
+
## Response B
|
|
134
|
+
{response_b}
|
|
135
|
+
|
|
136
|
+
## Comparison Criteria
|
|
137
|
+
{criteria list}
|
|
138
|
+
|
|
139
|
+
## Instructions
|
|
140
|
+
1. Analyze each response independently first
|
|
141
|
+
2. Compare them on each criterion
|
|
142
|
+
3. Determine overall winner with confidence level
|
|
143
|
+
|
|
144
|
+
## Output Format
|
|
145
|
+
JSON with per-criterion comparison, overall winner, confidence (0-1), and reasoning.
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
**Confidence Calibration** — Map confidence to position consistency:
|
|
149
|
+
- Both passes agree: confidence = average of individual confidences
|
|
150
|
+
- Passes disagree: confidence = 0.5, verdict = TIE
|
|
151
|
+
|
|
152
|
+
### Rubric Generation
|
|
153
|
+
|
|
154
|
+
Generate rubrics to reduce evaluation variance by 40-60% compared to open-ended scoring.
|
|
155
|
+
|
|
156
|
+
**Include these rubric components**:
|
|
157
|
+
1. **Level descriptions**: Clear boundaries for each score level
|
|
158
|
+
2. **Characteristics**: Observable features that define each level
|
|
159
|
+
3. **Examples**: Representative text for each level (optional but valuable)
|
|
160
|
+
4. **Edge cases**: Guidance for ambiguous situations
|
|
161
|
+
5. **Scoring guidelines**: General principles for consistent application
|
|
162
|
+
|
|
163
|
+
**Set strictness calibration** for the use case:
|
|
164
|
+
- **Lenient**: Lower passing bar, appropriate for encouraging iteration
|
|
165
|
+
- **Balanced**: Typical production expectations
|
|
166
|
+
- **Strict**: High standards for safety-critical or high-stakes evaluation
|
|
167
|
+
|
|
168
|
+
Adapt rubrics to the domain — use domain-specific terminology. A code readability rubric mentions variables, functions, and comments. A medical accuracy rubric references clinical terminology and evidence standards.
|
|
169
|
+
|
|
170
|
+
## Practical Guidance
|
|
171
|
+
|
|
172
|
+
### Evaluation Pipeline Design
|
|
173
|
+
|
|
174
|
+
Build production evaluation systems with these layers: Criteria Loader (rubrics + weights) -> Primary Scorer (direct or pairwise) -> Bias Mitigation (position swap, etc.) -> Confidence Scoring (calibration) -> Output (scores + justifications + confidence). See [Evaluation Pipeline Diagram](./references/evaluation-pipeline.md) for the full visual layout.
|
|
175
|
+
|
|
176
|
+
### Decision Framework: Direct vs. Pairwise
|
|
177
|
+
|
|
178
|
+
Apply this decision tree:
|
|
179
|
+
|
|
180
|
+
```
|
|
181
|
+
Is there an objective ground truth?
|
|
182
|
+
+-- Yes -> Direct Scoring
|
|
183
|
+
| Examples: factual accuracy, instruction following, format compliance
|
|
184
|
+
|
|
|
185
|
+
+-- No -> Is it a preference or quality judgment?
|
|
186
|
+
+-- Yes -> Pairwise Comparison
|
|
187
|
+
| Examples: tone, style, persuasiveness, creativity
|
|
188
|
+
|
|
|
189
|
+
+-- No -> Consider reference-based evaluation
|
|
190
|
+
Examples: summarization (compare to source), translation (compare to reference)
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
### Scaling Evaluation
|
|
194
|
+
|
|
195
|
+
For high-volume evaluation, apply one of these strategies:
|
|
196
|
+
|
|
197
|
+
1. **Panel of LLMs (PoLL)**: Use multiple models as judges and aggregate votes to reduce individual model bias. More expensive but more reliable for high-stakes decisions.
|
|
198
|
+
|
|
199
|
+
2. **Hierarchical evaluation**: Use a fast cheap model for screening and an expensive model for edge cases. Requires calibration of the screening threshold.
|
|
200
|
+
|
|
201
|
+
3. **Human-in-the-loop**: Automate clear cases and route low-confidence decisions to human review. Design feedback loops to improve automated evaluation over time.
|
|
202
|
+
|
|
203
|
+
## Examples
|
|
204
|
+
|
|
205
|
+
### Example 1: Direct Scoring for Accuracy
|
|
206
|
+
|
|
207
|
+
**Input**:
|
|
208
|
+
```
|
|
209
|
+
Prompt: "What causes seasons on Earth?"
|
|
210
|
+
Response: "Seasons are caused by Earth's tilted axis. As Earth orbits the Sun,
|
|
211
|
+
different hemispheres receive more direct sunlight at different times of year."
|
|
212
|
+
Criterion: Factual Accuracy (weight: 1.0)
|
|
213
|
+
Scale: 1-5
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
**Output**:
|
|
217
|
+
```json
|
|
218
|
+
{
|
|
219
|
+
"criterion": "Factual Accuracy",
|
|
220
|
+
"score": 5,
|
|
221
|
+
"evidence": [
|
|
222
|
+
"Correctly identifies axial tilt as primary cause",
|
|
223
|
+
"Correctly explains differential sunlight by hemisphere",
|
|
224
|
+
"No factual errors present"
|
|
225
|
+
],
|
|
226
|
+
"justification": "Response accurately explains the cause of seasons with correct
|
|
227
|
+
scientific reasoning. Both the axial tilt and its effect on sunlight distribution
|
|
228
|
+
are correctly described.",
|
|
229
|
+
"improvement": "Could add the specific tilt angle (23.5 degrees) for completeness."
|
|
230
|
+
}
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
### Example 2: Pairwise Comparison with Position Swap
|
|
234
|
+
|
|
235
|
+
**Input**:
|
|
236
|
+
```
|
|
237
|
+
Prompt: "Explain machine learning to a beginner"
|
|
238
|
+
Response A: [Technical explanation with jargon]
|
|
239
|
+
Response B: [Simple analogy-based explanation]
|
|
240
|
+
Criteria: ["clarity", "accessibility"]
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
**First Pass (A first)**:
|
|
244
|
+
```json
|
|
245
|
+
{ "winner": "B", "confidence": 0.8 }
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
**Second Pass (B first)**:
|
|
249
|
+
```json
|
|
250
|
+
{ "winner": "A", "confidence": 0.6 }
|
|
251
|
+
```
|
|
252
|
+
(Note: Winner is A because B was in first position)
|
|
253
|
+
|
|
254
|
+
**Mapped Second Pass**:
|
|
255
|
+
```json
|
|
256
|
+
{ "winner": "B", "confidence": 0.6 }
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
**Final Result**:
|
|
260
|
+
```json
|
|
261
|
+
{
|
|
262
|
+
"winner": "B",
|
|
263
|
+
"confidence": 0.7,
|
|
264
|
+
"positionConsistency": {
|
|
265
|
+
"consistent": true,
|
|
266
|
+
"firstPassWinner": "B",
|
|
267
|
+
"secondPassWinner": "B"
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
### Example 3: Rubric Generation
|
|
273
|
+
|
|
274
|
+
**Input**:
|
|
275
|
+
```
|
|
276
|
+
criterionName: "Code Readability"
|
|
277
|
+
criterionDescription: "How easy the code is to understand and maintain"
|
|
278
|
+
domain: "software engineering"
|
|
279
|
+
scale: "1-5"
|
|
280
|
+
strictness: "balanced"
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
**Output** (abbreviated):
|
|
284
|
+
```json
|
|
285
|
+
{
|
|
286
|
+
"levels": [
|
|
287
|
+
{
|
|
288
|
+
"score": 1,
|
|
289
|
+
"label": "Poor",
|
|
290
|
+
"description": "Code is difficult to understand without significant effort",
|
|
291
|
+
"characteristics": [
|
|
292
|
+
"No meaningful variable or function names",
|
|
293
|
+
"No comments or documentation",
|
|
294
|
+
"Deeply nested or convoluted logic"
|
|
295
|
+
]
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"score": 3,
|
|
299
|
+
"label": "Adequate",
|
|
300
|
+
"description": "Code is understandable with some effort",
|
|
301
|
+
"characteristics": [
|
|
302
|
+
"Most variables have meaningful names",
|
|
303
|
+
"Basic comments present for complex sections",
|
|
304
|
+
"Logic is followable but could be cleaner"
|
|
305
|
+
]
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"score": 5,
|
|
309
|
+
"label": "Excellent",
|
|
310
|
+
"description": "Code is immediately clear and maintainable",
|
|
311
|
+
"characteristics": [
|
|
312
|
+
"All names are descriptive and consistent",
|
|
313
|
+
"Comprehensive documentation",
|
|
314
|
+
"Clean, modular structure"
|
|
315
|
+
]
|
|
316
|
+
}
|
|
317
|
+
],
|
|
318
|
+
"edgeCases": [
|
|
319
|
+
{
|
|
320
|
+
"situation": "Code is well-structured but uses domain-specific abbreviations",
|
|
321
|
+
"guidance": "Score based on readability for domain experts, not general audience"
|
|
322
|
+
}
|
|
323
|
+
]
|
|
324
|
+
}
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
## Guidelines
|
|
328
|
+
|
|
329
|
+
1. **Always require justification before scores** - Chain-of-thought prompting improves reliability by 15-25%
|
|
330
|
+
|
|
331
|
+
2. **Always swap positions in pairwise comparison** - Single-pass comparison is corrupted by position bias
|
|
332
|
+
|
|
333
|
+
3. **Match scale granularity to rubric specificity** - Don't use 1-10 without detailed level descriptions
|
|
334
|
+
|
|
335
|
+
4. **Separate objective and subjective criteria** - Use direct scoring for objective, pairwise for subjective
|
|
336
|
+
|
|
337
|
+
5. **Include confidence scores** - Calibrate to position consistency and evidence strength
|
|
338
|
+
|
|
339
|
+
6. **Define edge cases explicitly** - Ambiguous situations cause the most evaluation variance
|
|
340
|
+
|
|
341
|
+
7. **Use domain-specific rubrics** - Generic rubrics produce generic (less useful) evaluations
|
|
342
|
+
|
|
343
|
+
8. **Validate against human judgments** - Automated evaluation is only valuable if it correlates with human assessment
|
|
344
|
+
|
|
345
|
+
9. **Monitor for systematic bias** - Track disagreement patterns by criterion, response type, model
|
|
346
|
+
|
|
347
|
+
10. **Design for iteration** - Evaluation systems improve with feedback loops
|
|
348
|
+
|
|
349
|
+
## Gotchas
|
|
350
|
+
|
|
351
|
+
1. **Scoring without justification**: Scores lack grounding and are difficult to debug. Always require evidence-based justification before the score.
|
|
352
|
+
|
|
353
|
+
2. **Single-pass pairwise comparison**: Position bias corrupts results when positions are not swapped. Always evaluate twice with swapped positions and check consistency.
|
|
354
|
+
|
|
355
|
+
3. **Overloaded criteria**: Criteria that measure multiple things at once produce unreliable scores. Enforce one criterion = one measurable aspect.
|
|
356
|
+
|
|
357
|
+
4. **Missing edge case guidance**: Evaluators handle ambiguous cases inconsistently without explicit instructions. Include edge cases in rubrics with clear resolution rules.
|
|
358
|
+
|
|
359
|
+
5. **Ignoring confidence calibration**: High-confidence wrong judgments are worse than low-confidence ones. Calibrate confidence to position consistency and evidence strength.
|
|
360
|
+
|
|
361
|
+
6. **Rubric drift**: Rubrics become miscalibrated as quality standards evolve or model capabilities improve. Schedule periodic rubric reviews and re-anchor score levels against fresh human-annotated examples.
|
|
362
|
+
|
|
363
|
+
7. **Evaluation prompt sensitivity**: Minor wording changes in evaluation prompts (e.g., reordering instructions, changing phrasing) can cause 10-20% score swings. Version-control evaluation prompts and run regression tests before deploying prompt changes.
|
|
364
|
+
|
|
365
|
+
8. **Uncontrolled length bias**: Longer responses systematically score higher even when conciseness is preferred. Add explicit length-neutrality instructions to evaluation prompts and validate with length-controlled test pairs.
|
|
366
|
+
|
|
367
|
+
## Integration
|
|
368
|
+
|
|
369
|
+
This skill integrates with:
|
|
370
|
+
|
|
371
|
+
- **context-fundamentals** - Evaluation prompts require effective context structure
|
|
372
|
+
- **tool-design** - Evaluation tools need proper schemas and error handling
|
|
373
|
+
- **context-optimization** - Evaluation prompts can be optimized for token efficiency
|
|
374
|
+
- **evaluation** (foundational) - This skill extends the foundational evaluation concepts
|
|
375
|
+
|
|
376
|
+
## References
|
|
377
|
+
|
|
378
|
+
Internal reference:
|
|
379
|
+
- [LLM-as-Judge Implementation Patterns](./references/implementation-patterns.md) - Read when: building an evaluation pipeline from scratch or integrating LLM judges into CI/CD
|
|
380
|
+
- [Bias Mitigation Techniques](./references/bias-mitigation.md) - Read when: evaluation results show inconsistent or suspicious scoring patterns
|
|
381
|
+
- [Metric Selection Guide](./references/metrics-guide.md) - Read when: choosing statistical metrics to validate evaluation reliability
|
|
382
|
+
- [Evaluation Pipeline Diagram](./references/evaluation-pipeline.md) - Read when: designing the architecture of a multi-stage evaluation system
|
|
383
|
+
|
|
384
|
+
External research:
|
|
385
|
+
- [Eugene Yan: Evaluating the Effectiveness of LLM-Evaluators](https://eugeneyan.com/writing/llm-evaluators/) - Read when: surveying the state of the art in LLM evaluation
|
|
386
|
+
- [Judging LLM-as-a-Judge (Zheng et al., 2023)](https://arxiv.org/abs/2306.05685) - Read when: understanding position bias and MT-Bench methodology
|
|
387
|
+
- [G-Eval: NLG Evaluation using GPT-4 (Liu et al., 2023)](https://arxiv.org/abs/2303.16634) - Read when: implementing chain-of-thought evaluation scoring
|
|
388
|
+
- [Large Language Models are not Fair Evaluators (Wang et al., 2023)](https://arxiv.org/abs/2305.17926) - Read when: diagnosing systematic bias in evaluation outputs
|
|
389
|
+
|
|
390
|
+
Related skills in this collection:
|
|
391
|
+
- evaluation - Foundational evaluation concepts
|
|
392
|
+
- context-fundamentals - Context structure for evaluation prompts
|
|
393
|
+
- tool-design - Building evaluation tools
|
|
394
|
+
|
|
395
|
+
---
|
|
396
|
+
|
|
397
|
+
## Skill Metadata
|
|
398
|
+
|
|
399
|
+
**Created**: 2025-12-24
|
|
400
|
+
**Last Updated**: 2026-03-17
|
|
401
|
+
**Author**: Agent Skills for Context Engineering Contributors
|
|
402
|
+
**Version**: 2.0.0
|