@bastani/atomic 0.5.11 → 0.5.12-0
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/providers/claude.ts +42 -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,148 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: audit
|
|
3
|
+
description: Run technical quality checks across accessibility, performance, theming, responsive design, and anti-patterns. Generates a scored report with P0-P3 severity ratings and actionable plan. Use when the user wants an accessibility check, performance audit, or technical quality review.
|
|
4
|
+
version: 2.1.1
|
|
5
|
+
user-invocable: true
|
|
6
|
+
argument-hint: "[area (feature, page, component...)]"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## MANDATORY PREPARATION
|
|
10
|
+
|
|
11
|
+
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.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
Run systematic **technical** quality checks and generate a comprehensive report. Don't fix issues — document them for other commands to address.
|
|
16
|
+
|
|
17
|
+
This is a code-level audit, not a design critique. Check what's measurable and verifiable in the implementation.
|
|
18
|
+
|
|
19
|
+
## Diagnostic Scan
|
|
20
|
+
|
|
21
|
+
Run comprehensive checks across 5 dimensions. Score each dimension 0-4 using the criteria below.
|
|
22
|
+
|
|
23
|
+
### 1. Accessibility (A11y)
|
|
24
|
+
|
|
25
|
+
**Check for**:
|
|
26
|
+
- **Contrast issues**: Text contrast ratios < 4.5:1 (or 7:1 for AAA)
|
|
27
|
+
- **Missing ARIA**: Interactive elements without proper roles, labels, or states
|
|
28
|
+
- **Keyboard navigation**: Missing focus indicators, illogical tab order, keyboard traps
|
|
29
|
+
- **Semantic HTML**: Improper heading hierarchy, missing landmarks, divs instead of buttons
|
|
30
|
+
- **Alt text**: Missing or poor image descriptions
|
|
31
|
+
- **Form issues**: Inputs without labels, poor error messaging, missing required indicators
|
|
32
|
+
|
|
33
|
+
**Score 0-4**: 0=Inaccessible (fails WCAG A), 1=Major gaps (few ARIA labels, no keyboard nav), 2=Partial (some a11y effort, significant gaps), 3=Good (WCAG AA mostly met, minor gaps), 4=Excellent (WCAG AA fully met, approaches AAA)
|
|
34
|
+
|
|
35
|
+
### 2. Performance
|
|
36
|
+
|
|
37
|
+
**Check for**:
|
|
38
|
+
- **Layout thrashing**: Reading/writing layout properties in loops
|
|
39
|
+
- **Expensive animations**: Animating layout properties (width, height, top, left) instead of transform/opacity
|
|
40
|
+
- **Missing optimization**: Images without lazy loading, unoptimized assets, missing will-change
|
|
41
|
+
- **Bundle size**: Unnecessary imports, unused dependencies
|
|
42
|
+
- **Render performance**: Unnecessary re-renders, missing memoization
|
|
43
|
+
|
|
44
|
+
**Score 0-4**: 0=Severe issues (layout thrash, unoptimized everything), 1=Major problems (no lazy loading, expensive animations), 2=Partial (some optimization, gaps remain), 3=Good (mostly optimized, minor improvements possible), 4=Excellent (fast, lean, well-optimized)
|
|
45
|
+
|
|
46
|
+
### 3. Theming
|
|
47
|
+
|
|
48
|
+
**Check for**:
|
|
49
|
+
- **Hard-coded colors**: Colors not using design tokens
|
|
50
|
+
- **Broken dark mode**: Missing dark mode variants, poor contrast in dark theme
|
|
51
|
+
- **Inconsistent tokens**: Using wrong tokens, mixing token types
|
|
52
|
+
- **Theme switching issues**: Values that don't update on theme change
|
|
53
|
+
|
|
54
|
+
**Score 0-4**: 0=No theming (hard-coded everything), 1=Minimal tokens (mostly hard-coded), 2=Partial (tokens exist but inconsistently used), 3=Good (tokens used, minor hard-coded values), 4=Excellent (full token system, dark mode works perfectly)
|
|
55
|
+
|
|
56
|
+
### 4. Responsive Design
|
|
57
|
+
|
|
58
|
+
**Check for**:
|
|
59
|
+
- **Fixed widths**: Hard-coded widths that break on mobile
|
|
60
|
+
- **Touch targets**: Interactive elements < 44x44px
|
|
61
|
+
- **Horizontal scroll**: Content overflow on narrow viewports
|
|
62
|
+
- **Text scaling**: Layouts that break when text size increases
|
|
63
|
+
- **Missing breakpoints**: No mobile/tablet variants
|
|
64
|
+
|
|
65
|
+
**Score 0-4**: 0=Desktop-only (breaks on mobile), 1=Major issues (some breakpoints, many failures), 2=Partial (works on mobile, rough edges), 3=Good (responsive, minor touch target or overflow issues), 4=Excellent (fluid, all viewports, proper touch targets)
|
|
66
|
+
|
|
67
|
+
### 5. Anti-Patterns (CRITICAL)
|
|
68
|
+
|
|
69
|
+
Check against ALL the **DON'T** guidelines in the impeccable skill. Look for AI slop tells (AI color palette, gradient text, glassmorphism, hero metrics, card grids, generic fonts) and general design anti-patterns (gray on color, nested cards, bounce easing, redundant copy).
|
|
70
|
+
|
|
71
|
+
**Score 0-4**: 0=AI slop gallery (5+ tells), 1=Heavy AI aesthetic (3-4 tells), 2=Some tells (1-2 noticeable), 3=Mostly clean (subtle issues only), 4=No AI tells (distinctive, intentional design)
|
|
72
|
+
|
|
73
|
+
## Generate Report
|
|
74
|
+
|
|
75
|
+
### Audit Health Score
|
|
76
|
+
|
|
77
|
+
| # | Dimension | Score | Key Finding |
|
|
78
|
+
|---|-----------|-------|-------------|
|
|
79
|
+
| 1 | Accessibility | ? | [most critical a11y issue or "--"] |
|
|
80
|
+
| 2 | Performance | ? | |
|
|
81
|
+
| 3 | Responsive Design | ? | |
|
|
82
|
+
| 4 | Theming | ? | |
|
|
83
|
+
| 5 | Anti-Patterns | ? | |
|
|
84
|
+
| **Total** | | **??/20** | **[Rating band]** |
|
|
85
|
+
|
|
86
|
+
**Rating bands**: 18-20 Excellent (minor polish), 14-17 Good (address weak dimensions), 10-13 Acceptable (significant work needed), 6-9 Poor (major overhaul), 0-5 Critical (fundamental issues)
|
|
87
|
+
|
|
88
|
+
### Anti-Patterns Verdict
|
|
89
|
+
**Start here.** Pass/fail: Does this look AI-generated? List specific tells. Be brutally honest.
|
|
90
|
+
|
|
91
|
+
### Executive Summary
|
|
92
|
+
- Audit Health Score: **??/20** ([rating band])
|
|
93
|
+
- Total issues found (count by severity: P0/P1/P2/P3)
|
|
94
|
+
- Top 3-5 critical issues
|
|
95
|
+
- Recommended next steps
|
|
96
|
+
|
|
97
|
+
### Detailed Findings by Severity
|
|
98
|
+
|
|
99
|
+
Tag every issue with **P0-P3 severity**:
|
|
100
|
+
- **P0 Blocking**: Prevents task completion — fix immediately
|
|
101
|
+
- **P1 Major**: Significant difficulty or WCAG AA violation — fix before release
|
|
102
|
+
- **P2 Minor**: Annoyance, workaround exists — fix in next pass
|
|
103
|
+
- **P3 Polish**: Nice-to-fix, no real user impact — fix if time permits
|
|
104
|
+
|
|
105
|
+
For each issue, document:
|
|
106
|
+
- **[P?] Issue name**
|
|
107
|
+
- **Location**: Component, file, line
|
|
108
|
+
- **Category**: Accessibility / Performance / Theming / Responsive / Anti-Pattern
|
|
109
|
+
- **Impact**: How it affects users
|
|
110
|
+
- **WCAG/Standard**: Which standard it violates (if applicable)
|
|
111
|
+
- **Recommendation**: How to fix it
|
|
112
|
+
- **Suggested command**: Which command to use (prefer: /animate, /quieter, /shape, /optimize, /adapt, /clarify, /layout, /distill, /delight, /audit, /harden, /polish, /bolder, /typeset, /critique, /colorize, /overdrive)
|
|
113
|
+
|
|
114
|
+
### Patterns & Systemic Issues
|
|
115
|
+
|
|
116
|
+
Identify recurring problems that indicate systemic gaps rather than one-off mistakes:
|
|
117
|
+
- "Hard-coded colors appear in 15+ components, should use design tokens"
|
|
118
|
+
- "Touch targets consistently too small (<44px) throughout mobile experience"
|
|
119
|
+
|
|
120
|
+
### Positive Findings
|
|
121
|
+
|
|
122
|
+
Note what's working well — good practices to maintain and replicate.
|
|
123
|
+
|
|
124
|
+
## Recommended Actions
|
|
125
|
+
|
|
126
|
+
List recommended commands in priority order (P0 first, then P1, then P2):
|
|
127
|
+
|
|
128
|
+
1. **[P?] `/command-name`** — Brief description (specific context from audit findings)
|
|
129
|
+
2. **[P?] `/command-name`** — Brief description (specific context)
|
|
130
|
+
|
|
131
|
+
**Rules**: Only recommend commands from: /animate, /quieter, /shape, /optimize, /adapt, /clarify, /layout, /distill, /delight, /audit, /harden, /polish, /bolder, /typeset, /critique, /colorize, /overdrive. Map findings to the most appropriate command. End with `/polish` as the final step if any fixes were recommended.
|
|
132
|
+
|
|
133
|
+
After presenting the summary, tell the user:
|
|
134
|
+
|
|
135
|
+
> You can ask me to run these one at a time, all at once, or in any order you prefer.
|
|
136
|
+
>
|
|
137
|
+
> Re-run `/audit` after fixes to see your score improve.
|
|
138
|
+
|
|
139
|
+
**IMPORTANT**: Be thorough but actionable. Too many P3 issues creates noise. Focus on what actually matters.
|
|
140
|
+
|
|
141
|
+
**NEVER**:
|
|
142
|
+
- Report issues without explaining impact (why does this matter?)
|
|
143
|
+
- Provide generic recommendations (be specific and actionable)
|
|
144
|
+
- Skip positive findings (celebrate what works)
|
|
145
|
+
- Forget to prioritize (everything can't be P0)
|
|
146
|
+
- Report false positives without verification
|
|
147
|
+
|
|
148
|
+
Remember: You're a technical quality auditor. Document systematically, prioritize ruthlessly, cite specific code locations, and provide clear paths to improvement.
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: bdi-mental-states
|
|
3
|
+
description: This skill should be used when the user asks to "model agent mental states", "implement BDI architecture", "create belief-desire-intention models", "transform RDF to beliefs", "build cognitive agent", or mentions BDI ontology, mental state modeling, rational agency, or neuro-symbolic AI integration. Part of the context engineering skill suite — also activates when the user mentions "context engineering" or "context-engineering" in the context of belief-based agent reasoning.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# BDI Mental State Modeling
|
|
7
|
+
|
|
8
|
+
Transform external RDF context into agent mental states (beliefs, desires, intentions) using formal BDI ontology patterns. This skill enables agents to reason about context through cognitive architecture, supporting deliberative reasoning, explainability, and semantic interoperability within multi-agent systems.
|
|
9
|
+
|
|
10
|
+
## When to Activate
|
|
11
|
+
|
|
12
|
+
Activate this skill when:
|
|
13
|
+
- Processing external RDF context into agent beliefs about world states
|
|
14
|
+
- Modeling rational agency with perception, deliberation, and action cycles
|
|
15
|
+
- Enabling explainability through traceable reasoning chains
|
|
16
|
+
- Implementing BDI frameworks (SEMAS, JADE, JADEX)
|
|
17
|
+
- Augmenting LLMs with formal cognitive structures (Logic Augmented Generation)
|
|
18
|
+
- Coordinating mental states across multi-agent platforms
|
|
19
|
+
- Tracking temporal evolution of beliefs, desires, and intentions
|
|
20
|
+
- Linking motivational states to action plans
|
|
21
|
+
|
|
22
|
+
## Core Concepts
|
|
23
|
+
|
|
24
|
+
### Mental Reality Architecture
|
|
25
|
+
|
|
26
|
+
Separate mental states into two ontological categories because BDI reasoning requires distinguishing what persists from what happens:
|
|
27
|
+
|
|
28
|
+
**Mental States (Endurants)** -- model these as persistent cognitive attributes that hold over time intervals:
|
|
29
|
+
- `Belief`: Represent what the agent holds true about the world. Ground every belief in a world state reference.
|
|
30
|
+
- `Desire`: Represent what the agent wishes to bring about. Link each desire back to the beliefs that motivate it.
|
|
31
|
+
- `Intention`: Represent what the agent commits to achieving. An intention must fulfil a desire and specify a plan.
|
|
32
|
+
|
|
33
|
+
**Mental Processes (Perdurants)** -- model these as events that create or modify mental states, because tracking causal transitions enables explainability:
|
|
34
|
+
- `BeliefProcess`: Triggers belief formation/update from perception. Always connect to a generating world state.
|
|
35
|
+
- `DesireProcess`: Generates desires from existing beliefs. Preserves the motivational chain.
|
|
36
|
+
- `IntentionProcess`: Commits to selected desires as actionable intentions.
|
|
37
|
+
|
|
38
|
+
### Cognitive Chain Pattern
|
|
39
|
+
|
|
40
|
+
Wire beliefs, desires, and intentions into directed chains using bidirectional properties (`motivates`/`isMotivatedBy`, `fulfils`/`isFulfilledBy`) because this enables both forward reasoning (what should the agent do?) and backward tracing (why did the agent act?):
|
|
41
|
+
|
|
42
|
+
```turtle
|
|
43
|
+
:Belief_store_open a bdi:Belief ;
|
|
44
|
+
rdfs:comment "Store is open" ;
|
|
45
|
+
bdi:motivates :Desire_buy_groceries .
|
|
46
|
+
|
|
47
|
+
:Desire_buy_groceries a bdi:Desire ;
|
|
48
|
+
rdfs:comment "I desire to buy groceries" ;
|
|
49
|
+
bdi:isMotivatedBy :Belief_store_open .
|
|
50
|
+
|
|
51
|
+
:Intention_go_shopping a bdi:Intention ;
|
|
52
|
+
rdfs:comment "I will buy groceries" ;
|
|
53
|
+
bdi:fulfils :Desire_buy_groceries ;
|
|
54
|
+
bdi:isSupportedBy :Belief_store_open ;
|
|
55
|
+
bdi:specifies :Plan_shopping .
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### World State Grounding
|
|
59
|
+
|
|
60
|
+
Always ground mental states in world state references rather than free-text descriptions, because ungrounded beliefs break semantic querying and cross-agent interoperability:
|
|
61
|
+
|
|
62
|
+
```turtle
|
|
63
|
+
:Agent_A a bdi:Agent ;
|
|
64
|
+
bdi:perceives :WorldState_WS1 ;
|
|
65
|
+
bdi:hasMentalState :Belief_B1 .
|
|
66
|
+
|
|
67
|
+
:WorldState_WS1 a bdi:WorldState ;
|
|
68
|
+
rdfs:comment "Meeting scheduled at 10am in Room 5" ;
|
|
69
|
+
bdi:atTime :TimeInstant_10am .
|
|
70
|
+
|
|
71
|
+
:Belief_B1 a bdi:Belief ;
|
|
72
|
+
bdi:refersTo :WorldState_WS1 .
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Goal-Directed Planning
|
|
76
|
+
|
|
77
|
+
Connect intentions to plans via `bdi:specifies`, and decompose plans into ordered task sequences using `bdi:precedes`, because this separation allows plan reuse across different intentions while keeping execution order explicit:
|
|
78
|
+
|
|
79
|
+
```turtle
|
|
80
|
+
:Intention_I1 bdi:specifies :Plan_P1 .
|
|
81
|
+
|
|
82
|
+
:Plan_P1 a bdi:Plan ;
|
|
83
|
+
bdi:addresses :Goal_G1 ;
|
|
84
|
+
bdi:beginsWith :Task_T1 ;
|
|
85
|
+
bdi:endsWith :Task_T3 .
|
|
86
|
+
|
|
87
|
+
:Task_T1 bdi:precedes :Task_T2 .
|
|
88
|
+
:Task_T2 bdi:precedes :Task_T3 .
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## T2B2T Paradigm
|
|
92
|
+
|
|
93
|
+
Implement Triples-to-Beliefs-to-Triples as a bidirectional pipeline because agents must both consume external RDF context and produce new RDF assertions. Structure every T2B2T implementation in two explicit phases:
|
|
94
|
+
|
|
95
|
+
**Phase 1: Triples-to-Beliefs** -- Translate incoming RDF triples into belief instances. Use `bdi:triggers` to connect the external world state to a `BeliefProcess`, and `bdi:generates` to produce the resulting belief. This preserves provenance from source data through to internal cognition:
|
|
96
|
+
```turtle
|
|
97
|
+
:WorldState_notification a bdi:WorldState ;
|
|
98
|
+
rdfs:comment "Push notification: Payment request $250" ;
|
|
99
|
+
bdi:triggers :BeliefProcess_BP1 .
|
|
100
|
+
|
|
101
|
+
:BeliefProcess_BP1 a bdi:BeliefProcess ;
|
|
102
|
+
bdi:generates :Belief_payment_request .
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
**Phase 2: Beliefs-to-Triples** -- After BDI deliberation selects an intention and executes a plan, project the results back into RDF using `bdi:bringsAbout`. This closes the loop so downstream systems can consume agent outputs as standard linked data:
|
|
106
|
+
```turtle
|
|
107
|
+
:Intention_pay a bdi:Intention ;
|
|
108
|
+
bdi:specifies :Plan_payment .
|
|
109
|
+
|
|
110
|
+
:PlanExecution_PE1 a bdi:PlanExecution ;
|
|
111
|
+
bdi:satisfies :Plan_payment ;
|
|
112
|
+
bdi:bringsAbout :WorldState_payment_complete .
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## Notation Selection by Level
|
|
116
|
+
|
|
117
|
+
Choose notation based on the C4 abstraction level being modeled, because mixing notations at the wrong level obscures rather than clarifies the cognitive architecture:
|
|
118
|
+
|
|
119
|
+
| C4 Level | Notation | Mental State Representation |
|
|
120
|
+
|----------|----------|----------------------------|
|
|
121
|
+
| L1 Context | ArchiMate | Agent boundaries, external perception sources |
|
|
122
|
+
| L2 Container | ArchiMate | BDI reasoning engine, belief store, plan executor |
|
|
123
|
+
| L3 Component | UML | Mental state managers, process handlers |
|
|
124
|
+
| L4 Code | UML/RDF | Belief/Desire/Intention classes, ontology instances |
|
|
125
|
+
|
|
126
|
+
## Justification and Explainability
|
|
127
|
+
|
|
128
|
+
Attach `bdi:Justification` instances to every mental entity using `bdi:isJustifiedBy`, because unjustified mental states make agent reasoning opaque and untraceable. Each justification should capture the evidence or rule that produced the mental state:
|
|
129
|
+
|
|
130
|
+
```turtle
|
|
131
|
+
:Belief_B1 a bdi:Belief ;
|
|
132
|
+
bdi:isJustifiedBy :Justification_J1 .
|
|
133
|
+
|
|
134
|
+
:Justification_J1 a bdi:Justification ;
|
|
135
|
+
rdfs:comment "Official announcement received via email" .
|
|
136
|
+
|
|
137
|
+
:Intention_I1 a bdi:Intention ;
|
|
138
|
+
bdi:isJustifiedBy :Justification_J2 .
|
|
139
|
+
|
|
140
|
+
:Justification_J2 a bdi:Justification ;
|
|
141
|
+
rdfs:comment "Location precondition satisfied" .
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
## Temporal Dimensions
|
|
145
|
+
|
|
146
|
+
Assign validity intervals to every mental state using `bdi:hasValidity` with `TimeInterval` instances, because beliefs without temporal bounds cannot be garbage-collected or conflict-checked during diachronic reasoning:
|
|
147
|
+
|
|
148
|
+
```turtle
|
|
149
|
+
:Belief_B1 a bdi:Belief ;
|
|
150
|
+
bdi:hasValidity :TimeInterval_TI1 .
|
|
151
|
+
|
|
152
|
+
:TimeInterval_TI1 a bdi:TimeInterval ;
|
|
153
|
+
bdi:hasStartTime :TimeInstant_9am ;
|
|
154
|
+
bdi:hasEndTime :TimeInstant_11am .
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
Query mental states active at a specific moment using SPARQL temporal filters. Use this pattern to resolve conflicts when multiple beliefs about the same world state overlap in time:
|
|
158
|
+
|
|
159
|
+
```sparql
|
|
160
|
+
SELECT ?mentalState WHERE {
|
|
161
|
+
?mentalState bdi:hasValidity ?interval .
|
|
162
|
+
?interval bdi:hasStartTime ?start ;
|
|
163
|
+
bdi:hasEndTime ?end .
|
|
164
|
+
FILTER(?start <= "2025-01-04T10:00:00"^^xsd:dateTime &&
|
|
165
|
+
?end >= "2025-01-04T10:00:00"^^xsd:dateTime)
|
|
166
|
+
}
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
## Compositional Mental Entities
|
|
170
|
+
|
|
171
|
+
Decompose complex beliefs into constituent parts using `bdi:hasPart` relations, because monolithic beliefs force full replacement on partial updates. Structure composite beliefs so that each sub-belief can be independently updated, queried, or invalidated:
|
|
172
|
+
|
|
173
|
+
```turtle
|
|
174
|
+
:Belief_meeting a bdi:Belief ;
|
|
175
|
+
rdfs:comment "Meeting at 10am in Room 5" ;
|
|
176
|
+
bdi:hasPart :Belief_meeting_time , :Belief_meeting_location .
|
|
177
|
+
|
|
178
|
+
# Update only location component without touching time
|
|
179
|
+
:BeliefProcess_update a bdi:BeliefProcess ;
|
|
180
|
+
bdi:modifies :Belief_meeting_location .
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
## Integration Patterns
|
|
184
|
+
|
|
185
|
+
### Logic Augmented Generation (LAG)
|
|
186
|
+
|
|
187
|
+
Use LAG to constrain LLM outputs with ontological structure, because unconstrained generation produces triples that violate BDI class restrictions. Serialize the ontology into the prompt context, then validate generated triples against it before accepting them:
|
|
188
|
+
|
|
189
|
+
```python
|
|
190
|
+
def augment_llm_with_bdi_ontology(prompt, ontology_graph):
|
|
191
|
+
ontology_context = serialize_ontology(ontology_graph, format='turtle')
|
|
192
|
+
augmented_prompt = f"{ontology_context}\n\n{prompt}"
|
|
193
|
+
|
|
194
|
+
response = llm.generate(augmented_prompt)
|
|
195
|
+
triples = extract_rdf_triples(response)
|
|
196
|
+
|
|
197
|
+
is_consistent = validate_triples(triples, ontology_graph)
|
|
198
|
+
return triples if is_consistent else retry_with_feedback()
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
### SEMAS Rule Translation
|
|
202
|
+
|
|
203
|
+
Translate BDI ontology patterns into executable production rules when deploying to rule-based agent platforms. Map each cognitive chain link (belief-to-desire, desire-to-intention) to a HEAD/CONDITIONALS/TAIL rule, because this preserves the deliberative semantics while enabling runtime execution:
|
|
204
|
+
|
|
205
|
+
```prolog
|
|
206
|
+
% Belief triggers desire formation
|
|
207
|
+
[HEAD: belief(agent_a, store_open)] /
|
|
208
|
+
[CONDITIONALS: time(weekday_afternoon)] »
|
|
209
|
+
[TAIL: generate_desire(agent_a, buy_groceries)].
|
|
210
|
+
|
|
211
|
+
% Desire triggers intention commitment
|
|
212
|
+
[HEAD: desire(agent_a, buy_groceries)] /
|
|
213
|
+
[CONDITIONALS: belief(agent_a, has_shopping_list)] »
|
|
214
|
+
[TAIL: commit_intention(agent_a, buy_groceries)].
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
## Guidelines
|
|
218
|
+
|
|
219
|
+
1. Model world states as configurations independent of agent perspectives, providing referential substrate for mental states.
|
|
220
|
+
|
|
221
|
+
2. Distinguish endurants (persistent mental states) from perdurants (temporal mental processes), aligning with DOLCE ontology.
|
|
222
|
+
|
|
223
|
+
3. Treat goals as descriptions rather than mental states, maintaining separation between cognitive and planning layers.
|
|
224
|
+
|
|
225
|
+
4. Use `hasPart` relations for meronymic structures enabling selective belief updates.
|
|
226
|
+
|
|
227
|
+
5. Associate every mental entity with temporal constructs via `atTime` or `hasValidity`.
|
|
228
|
+
|
|
229
|
+
6. Use bidirectional property pairs (`motivates`/`isMotivatedBy`, `generates`/`isGeneratedBy`) for flexible querying.
|
|
230
|
+
|
|
231
|
+
7. Link mental entities to `Justification` instances for explainability and trust.
|
|
232
|
+
|
|
233
|
+
8. Implement T2B2T through: (1) translate RDF to beliefs, (2) execute BDI reasoning, (3) project mental states back to RDF.
|
|
234
|
+
|
|
235
|
+
9. Define existential restrictions on mental processes (e.g., `BeliefProcess ⊑ ∃generates.Belief`).
|
|
236
|
+
|
|
237
|
+
10. Reuse established ODPs (EventCore, Situation, TimeIndexedSituation, BasicPlan, Provenance) for interoperability.
|
|
238
|
+
|
|
239
|
+
## Competency Questions
|
|
240
|
+
|
|
241
|
+
Validate implementation against these SPARQL queries:
|
|
242
|
+
|
|
243
|
+
```sparql
|
|
244
|
+
# CQ1: What beliefs motivated formation of a given desire?
|
|
245
|
+
SELECT ?belief WHERE {
|
|
246
|
+
:Desire_D1 bdi:isMotivatedBy ?belief .
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
# CQ2: Which desire does a particular intention fulfill?
|
|
250
|
+
SELECT ?desire WHERE {
|
|
251
|
+
:Intention_I1 bdi:fulfils ?desire .
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
# CQ3: Which mental process generated a belief?
|
|
255
|
+
SELECT ?process WHERE {
|
|
256
|
+
?process bdi:generates :Belief_B1 .
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
# CQ4: What is the ordered sequence of tasks in a plan?
|
|
260
|
+
SELECT ?task ?nextTask WHERE {
|
|
261
|
+
:Plan_P1 bdi:hasComponent ?task .
|
|
262
|
+
OPTIONAL { ?task bdi:precedes ?nextTask }
|
|
263
|
+
} ORDER BY ?task
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
## Gotchas
|
|
267
|
+
|
|
268
|
+
1. **Conflating mental states with world states**: Mental states reference world states via `bdi:refersTo`, they are not world states themselves. Mixing them collapses the perception-cognition boundary and breaks SPARQL queries that filter by type.
|
|
269
|
+
|
|
270
|
+
2. **Missing temporal bounds**: Every mental state needs validity intervals for diachronic reasoning. Without them, stale beliefs persist indefinitely and conflict detection becomes impossible.
|
|
271
|
+
|
|
272
|
+
3. **Flat belief structures**: Use compositional modeling with `hasPart` for complex beliefs. Monolithic beliefs force full replacement when only one attribute changes.
|
|
273
|
+
|
|
274
|
+
4. **Implicit justifications**: Always link mental entities to explicit `Justification` instances. Unjustified mental states cannot be audited or traced.
|
|
275
|
+
|
|
276
|
+
5. **Direct intention-to-action mapping**: Intentions specify plans which contain tasks; actions execute tasks. Skipping the plan layer removes the ability to reuse, reorder, or share execution strategies.
|
|
277
|
+
|
|
278
|
+
6. **Ontology over-complexity**: Start with 5-10 core classes and properties (Belief, Desire, Intention, WorldState, Plan, plus key relations). Expanding the ontology prematurely inflates prompt context and slows SPARQL queries without improving reasoning quality.
|
|
279
|
+
|
|
280
|
+
7. **Reasoning cost explosion**: Keep belief chains to 3 levels or fewer (belief -> desire -> intention). Deeper chains become prohibitively expensive for LLM inference and rarely improve decision quality over shallower alternatives.
|
|
281
|
+
|
|
282
|
+
## Integration
|
|
283
|
+
|
|
284
|
+
- **RDF Processing**: Apply after parsing external RDF context to construct cognitive representations
|
|
285
|
+
- **Semantic Reasoning**: Combine with ontology reasoning to infer implicit mental state relationships
|
|
286
|
+
- **Multi-Agent Communication**: Integrate with FIPA ACL for cross-platform belief sharing
|
|
287
|
+
- **Temporal Context**: Coordinate with temporal reasoning for mental state evolution
|
|
288
|
+
- **Explainable AI**: Feed into explanation systems tracing perception through deliberation to action
|
|
289
|
+
- **Neuro-Symbolic AI**: Apply in LAG pipelines to constrain LLM outputs with cognitive structures
|
|
290
|
+
|
|
291
|
+
## References
|
|
292
|
+
|
|
293
|
+
Internal references:
|
|
294
|
+
- [BDI Ontology Core](./references/bdi-ontology-core.md) - Read when: implementing BDI class hierarchies or defining ontology properties from scratch
|
|
295
|
+
- [RDF Examples](./references/rdf-examples.md) - Read when: writing Turtle serializations of mental states or debugging triple structure
|
|
296
|
+
- [SPARQL Competency Queries](./references/sparql-competency.md) - Read when: validating an implementation against competency questions or building custom queries
|
|
297
|
+
- [Framework Integration](./references/framework-integration.md) - Read when: deploying BDI models to SEMAS, JADE, or LAG pipelines
|
|
298
|
+
|
|
299
|
+
Primary sources:
|
|
300
|
+
- Zuppiroli et al. "The Belief-Desire-Intention Ontology" (2025) — Read when: implementing formal BDI class hierarchies or validating ontology alignment
|
|
301
|
+
- Rao & Georgeff "BDI agents: From theory to practice" (1995) — Read when: understanding the theoretical foundations of practical reasoning agents
|
|
302
|
+
- Bratman "Intention, plans, and practical reason" (1987) — Read when: grounding implementation decisions in the philosophical basis of intentionality
|
|
303
|
+
|
|
304
|
+
---
|
|
305
|
+
|
|
306
|
+
## Skill Metadata
|
|
307
|
+
|
|
308
|
+
**Created**: 2026-01-07
|
|
309
|
+
**Last Updated**: 2026-03-17
|
|
310
|
+
**Author**: Agent Skills for Context Engineering Contributors
|
|
311
|
+
**Version**: 2.0.0
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
# BDI Ontology Core Patterns
|
|
2
|
+
|
|
3
|
+
Core ontology design patterns for Belief-Desire-Intention mental state modeling.
|
|
4
|
+
|
|
5
|
+
## Class Hierarchy
|
|
6
|
+
|
|
7
|
+
### Mental Entities (Endurants)
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
bdi:MentalEntity
|
|
11
|
+
├── bdi:Belief # Informational dimension
|
|
12
|
+
├── bdi:Desire # Motivational dimension
|
|
13
|
+
├── bdi:Intention # Deliberative dimension
|
|
14
|
+
├── bdi:Goal # Description of desired end state
|
|
15
|
+
└── bdi:Plan # Structured action sequence
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### Mental Processes (Perdurants)
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
bdi:MentalProcess
|
|
22
|
+
├── bdi:BeliefProcess # Forms/updates beliefs from perception
|
|
23
|
+
├── bdi:DesireProcess # Generates desires from beliefs
|
|
24
|
+
├── bdi:IntentionProcess # Commits to desires as intentions
|
|
25
|
+
├── bdi:Planning # Transforms intentions into plans
|
|
26
|
+
└── bdi:PlanExecution # Executes plan actions
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Supporting Entities
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
bdi:WorldState # Configuration of environment
|
|
33
|
+
bdi:Justification # Evidential basis for mental states
|
|
34
|
+
bdi:Task # Atomic unit of planned action
|
|
35
|
+
bdi:Action # Execution of a task
|
|
36
|
+
bdi:TimeInterval # Temporal validity bounds
|
|
37
|
+
bdi:TimeInstant # Point in time reference
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Object Properties
|
|
41
|
+
|
|
42
|
+
### Motivational Relations
|
|
43
|
+
|
|
44
|
+
| Property | Domain | Range | Description |
|
|
45
|
+
|----------|--------|-------|-------------|
|
|
46
|
+
| `motivates` | Belief | Desire | Belief provides reason for desire |
|
|
47
|
+
| `isMotivatedBy` | Desire | Belief | Inverse of motivates |
|
|
48
|
+
| `fulfils` | Intention | Desire | Intention commits to achieving desire |
|
|
49
|
+
| `isFulfilledBy` | Desire | Intention | Inverse of fulfils |
|
|
50
|
+
| `isSupportedBy` | Intention | Belief | Beliefs supporting intention viability |
|
|
51
|
+
|
|
52
|
+
### Generative Relations
|
|
53
|
+
|
|
54
|
+
| Property | Domain | Range | Description |
|
|
55
|
+
|----------|--------|-------|-------------|
|
|
56
|
+
| `generates` | MentalProcess | MentalEntity | Process creates mental state |
|
|
57
|
+
| `isGeneratedBy` | MentalEntity | MentalProcess | Inverse of generates |
|
|
58
|
+
| `modifies` | MentalProcess | MentalEntity | Process updates existing state |
|
|
59
|
+
| `suppresses` | MentalProcess | MentalEntity | Process deactivates state |
|
|
60
|
+
| `isTriggeredBy` | MentalProcess | MentalEntity | State initiates process |
|
|
61
|
+
|
|
62
|
+
### Referential Relations
|
|
63
|
+
|
|
64
|
+
| Property | Domain | Range | Description |
|
|
65
|
+
|----------|--------|-------|-------------|
|
|
66
|
+
| `refersTo` | MentalEntity | WorldState | Mental state about world |
|
|
67
|
+
| `perceives` | Agent | WorldState | Agent observes world |
|
|
68
|
+
| `bringsAbout` | Action | WorldState | Action causes world change |
|
|
69
|
+
| `reasonsUpon` | MentalProcess | MentalEntity | Input to reasoning |
|
|
70
|
+
|
|
71
|
+
### Structural Relations
|
|
72
|
+
|
|
73
|
+
| Property | Domain | Range | Description |
|
|
74
|
+
|----------|--------|-------|-------------|
|
|
75
|
+
| `hasPart` | MentalEntity | MentalEntity | Meronymic composition |
|
|
76
|
+
| `specifies` | Intention | Plan | Intention defines plan |
|
|
77
|
+
| `addresses` | Plan | Goal | Plan achieves goal |
|
|
78
|
+
| `hasComponent` | Plan | Task | Plan contains tasks |
|
|
79
|
+
| `precedes` | Task | Task | Task ordering |
|
|
80
|
+
|
|
81
|
+
### Temporal Relations
|
|
82
|
+
|
|
83
|
+
| Property | Domain | Range | Description |
|
|
84
|
+
|----------|--------|-------|-------------|
|
|
85
|
+
| `atTime` | Entity | TimeInstant | Point occurrence |
|
|
86
|
+
| `hasValidity` | MentalEntity | TimeInterval | Persistence bounds |
|
|
87
|
+
| `hasStartTime` | TimeInterval | TimeInstant | Interval start |
|
|
88
|
+
| `hasEndTime` | TimeInterval | TimeInstant | Interval end |
|
|
89
|
+
|
|
90
|
+
### Justification Relations
|
|
91
|
+
|
|
92
|
+
| Property | Domain | Range | Description |
|
|
93
|
+
|----------|--------|-------|-------------|
|
|
94
|
+
| `isJustifiedBy` | MentalEntity | Justification | Evidential support |
|
|
95
|
+
| `justifies` | Justification | MentalEntity | Inverse relation |
|
|
96
|
+
|
|
97
|
+
## Ontological Restrictions
|
|
98
|
+
|
|
99
|
+
### Belief Restrictions
|
|
100
|
+
|
|
101
|
+
```turtle
|
|
102
|
+
bdi:Belief rdfs:subClassOf [
|
|
103
|
+
a owl:Restriction ;
|
|
104
|
+
owl:onProperty bdi:refersTo ;
|
|
105
|
+
owl:someValuesFrom bdi:WorldState
|
|
106
|
+
] .
|
|
107
|
+
|
|
108
|
+
bdi:Belief rdfs:subClassOf [
|
|
109
|
+
a owl:Restriction ;
|
|
110
|
+
owl:onProperty bdi:hasValidity ;
|
|
111
|
+
owl:maxCardinality 1
|
|
112
|
+
] .
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### Desire Restrictions
|
|
116
|
+
|
|
117
|
+
```turtle
|
|
118
|
+
bdi:Desire rdfs:subClassOf [
|
|
119
|
+
a owl:Restriction ;
|
|
120
|
+
owl:onProperty bdi:isMotivatedBy ;
|
|
121
|
+
owl:someValuesFrom bdi:Belief
|
|
122
|
+
] .
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### Intention Restrictions
|
|
126
|
+
|
|
127
|
+
```turtle
|
|
128
|
+
bdi:Intention rdfs:subClassOf [
|
|
129
|
+
a owl:Restriction ;
|
|
130
|
+
owl:onProperty bdi:fulfils ;
|
|
131
|
+
owl:cardinality 1
|
|
132
|
+
] .
|
|
133
|
+
|
|
134
|
+
bdi:Intention rdfs:subClassOf [
|
|
135
|
+
a owl:Restriction ;
|
|
136
|
+
owl:onProperty bdi:isSupportedBy ;
|
|
137
|
+
owl:someValuesFrom bdi:Belief
|
|
138
|
+
] .
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
### Mental Process Restrictions
|
|
142
|
+
|
|
143
|
+
```turtle
|
|
144
|
+
bdi:BeliefProcess rdfs:subClassOf [
|
|
145
|
+
a owl:Restriction ;
|
|
146
|
+
owl:onProperty bdi:generates ;
|
|
147
|
+
owl:allValuesFrom bdi:Belief
|
|
148
|
+
] .
|
|
149
|
+
|
|
150
|
+
bdi:DesireProcess rdfs:subClassOf [
|
|
151
|
+
a owl:Restriction ;
|
|
152
|
+
owl:onProperty bdi:generates ;
|
|
153
|
+
owl:allValuesFrom bdi:Desire
|
|
154
|
+
] .
|
|
155
|
+
|
|
156
|
+
bdi:IntentionProcess rdfs:subClassOf [
|
|
157
|
+
a owl:Restriction ;
|
|
158
|
+
owl:onProperty bdi:generates ;
|
|
159
|
+
owl:allValuesFrom bdi:Intention
|
|
160
|
+
] .
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
## DOLCE Alignment
|
|
164
|
+
|
|
165
|
+
The BDI ontology aligns with DOLCE Ultra Lite (DUL) foundational ontology:
|
|
166
|
+
|
|
167
|
+
| BDI Class | DUL Superclass | Rationale |
|
|
168
|
+
|-----------|----------------|-----------|
|
|
169
|
+
| `Agent` | `dul:Agent` | Intentional entity capable of action |
|
|
170
|
+
| `Belief` | `dul:InformationObject` | Information-bearing entity |
|
|
171
|
+
| `Desire` | `dul:Description` | Describes desired state |
|
|
172
|
+
| `Intention` | `dul:Description` | Describes committed course |
|
|
173
|
+
| `Goal` | `dul:Goal` | Desired end state description |
|
|
174
|
+
| `Plan` | `dul:Plan` | Organized action sequence |
|
|
175
|
+
| `WorldState` | `dul:Situation` | Configuration of entities |
|
|
176
|
+
| `MentalProcess` | `dul:Event` | Temporally extended occurrence |
|
|
177
|
+
| `Task` | `dul:Task` | Unit of planned work |
|
|
178
|
+
| `Action` | `dul:Action` | Performed task instance |
|
|
179
|
+
|
|
180
|
+
## Reused Ontology Design Patterns
|
|
181
|
+
|
|
182
|
+
### EventCore Pattern
|
|
183
|
+
Used for mental processes with temporal aspects and participant roles.
|
|
184
|
+
|
|
185
|
+
### Situation Pattern
|
|
186
|
+
Used for world state configurations that mental states reference.
|
|
187
|
+
|
|
188
|
+
### TimeIndexedSituation Pattern
|
|
189
|
+
Used for associating mental states with validity intervals.
|
|
190
|
+
|
|
191
|
+
### BasicPlan Pattern
|
|
192
|
+
Used for goal-plan-task structures linking intentions to actions.
|
|
193
|
+
|
|
194
|
+
### Provenance Pattern
|
|
195
|
+
Used for justification tracking and evidential chains.
|
|
196
|
+
|
|
197
|
+
## Namespace Declarations
|
|
198
|
+
|
|
199
|
+
```turtle
|
|
200
|
+
@prefix bdi: <https://w3id.org/fossr/ontology/bdi/> .
|
|
201
|
+
@prefix dul: <http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#> .
|
|
202
|
+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
|
203
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
204
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
205
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
206
|
+
```
|
|
207
|
+
|