@aslomon/effectum 0.3.3 → 0.3.4
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/bin/install.js +27 -0
- package/package.json +1 -1
- package/system/hooks/observe.sh +164 -0
- package/system/hooks/quick-diff.sh +87 -0
- package/system/hooks/save-results.sh +56 -0
- package/system/hooks/scan.sh +170 -0
- package/system/skills/README.md +86 -0
- package/system/skills/SKILL.md +117 -0
- package/system/skills/agents/observer.md +137 -0
- package/system/skills/agents/start-observer.sh +143 -0
- package/system/skills/algorithmic-art/LICENSE.txt +202 -0
- package/system/skills/algorithmic-art/SKILL.md +405 -0
- package/system/skills/algorithmic-art/templates/generator_template.js +223 -0
- package/system/skills/algorithmic-art/templates/viewer.html +599 -0
- package/system/skills/api-endpoint/SKILL.md +106 -0
- package/system/skills/canvas-design/LICENSE.txt +202 -0
- package/system/skills/canvas-design/SKILL.md +130 -0
- package/system/skills/canvas-design/canvas-fonts/ArsenalSC-OFL.txt +93 -0
- package/system/skills/canvas-design/canvas-fonts/ArsenalSC-Regular.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/BigShoulders-Bold.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/BigShoulders-OFL.txt +93 -0
- package/system/skills/canvas-design/canvas-fonts/BigShoulders-Regular.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/Boldonse-OFL.txt +93 -0
- package/system/skills/canvas-design/canvas-fonts/Boldonse-Regular.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
- package/system/skills/canvas-design/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/CrimsonPro-Bold.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/CrimsonPro-Italic.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/CrimsonPro-OFL.txt +93 -0
- package/system/skills/canvas-design/canvas-fonts/CrimsonPro-Regular.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/DMMono-OFL.txt +93 -0
- package/system/skills/canvas-design/canvas-fonts/DMMono-Regular.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/EricaOne-OFL.txt +94 -0
- package/system/skills/canvas-design/canvas-fonts/EricaOne-Regular.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/GeistMono-Bold.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/GeistMono-OFL.txt +93 -0
- package/system/skills/canvas-design/canvas-fonts/GeistMono-Regular.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/Gloock-OFL.txt +93 -0
- package/system/skills/canvas-design/canvas-fonts/Gloock-Regular.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/IBMPlexMono-Bold.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
- package/system/skills/canvas-design/canvas-fonts/IBMPlexMono-Regular.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/IBMPlexSerif-Bold.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/IBMPlexSerif-BoldItalic.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/IBMPlexSerif-Italic.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/IBMPlexSerif-Regular.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/InstrumentSans-OFL.txt +93 -0
- package/system/skills/canvas-design/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/Italiana-OFL.txt +93 -0
- package/system/skills/canvas-design/canvas-fonts/Italiana-Regular.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
- package/system/skills/canvas-design/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/Jura-Light.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/Jura-Medium.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/Jura-OFL.txt +93 -0
- package/system/skills/canvas-design/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
- package/system/skills/canvas-design/canvas-fonts/LibreBaskerville-Regular.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/Lora-Bold.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/Lora-BoldItalic.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/Lora-Italic.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/Lora-OFL.txt +93 -0
- package/system/skills/canvas-design/canvas-fonts/Lora-Regular.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/NationalPark-Bold.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/NationalPark-OFL.txt +93 -0
- package/system/skills/canvas-design/canvas-fonts/NationalPark-Regular.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
- package/system/skills/canvas-design/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/Outfit-Bold.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/Outfit-OFL.txt +93 -0
- package/system/skills/canvas-design/canvas-fonts/Outfit-Regular.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/PixelifySans-Medium.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/PixelifySans-OFL.txt +93 -0
- package/system/skills/canvas-design/canvas-fonts/PoiretOne-OFL.txt +93 -0
- package/system/skills/canvas-design/canvas-fonts/PoiretOne-Regular.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/RedHatMono-Bold.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/RedHatMono-OFL.txt +93 -0
- package/system/skills/canvas-design/canvas-fonts/RedHatMono-Regular.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/Silkscreen-OFL.txt +93 -0
- package/system/skills/canvas-design/canvas-fonts/Silkscreen-Regular.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/SmoochSans-Medium.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/SmoochSans-OFL.txt +93 -0
- package/system/skills/canvas-design/canvas-fonts/Tektur-Medium.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/Tektur-OFL.txt +93 -0
- package/system/skills/canvas-design/canvas-fonts/Tektur-Regular.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/WorkSans-Bold.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/WorkSans-BoldItalic.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/WorkSans-Italic.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/WorkSans-OFL.txt +93 -0
- package/system/skills/canvas-design/canvas-fonts/WorkSans-Regular.ttf +0 -0
- package/system/skills/canvas-design/canvas-fonts/YoungSerif-OFL.txt +93 -0
- package/system/skills/canvas-design/canvas-fonts/YoungSerif-Regular.ttf +0 -0
- package/system/skills/component/SKILL.md +103 -0
- package/system/skills/config.json +18 -0
- package/system/skills/doc-coauthoring/SKILL.md +375 -0
- package/system/skills/docx/LICENSE.txt +30 -0
- package/system/skills/docx/SKILL.md +590 -0
- package/system/skills/docx/scripts/__init__.py +1 -0
- package/system/skills/docx/scripts/accept_changes.py +135 -0
- package/system/skills/docx/scripts/comment.py +318 -0
- package/system/skills/docx/scripts/office/helpers/__init__.py +0 -0
- package/system/skills/docx/scripts/office/helpers/merge_runs.py +199 -0
- package/system/skills/docx/scripts/office/helpers/simplify_redlines.py +197 -0
- package/system/skills/docx/scripts/office/pack.py +159 -0
- package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/system/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/system/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/system/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/system/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/system/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/system/skills/docx/scripts/office/schemas/mce/mc.xsd +75 -0
- package/system/skills/docx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
- package/system/skills/docx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
- package/system/skills/docx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
- package/system/skills/docx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/system/skills/docx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/system/skills/docx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/system/skills/docx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/system/skills/docx/scripts/office/soffice.py +183 -0
- package/system/skills/docx/scripts/office/unpack.py +132 -0
- package/system/skills/docx/scripts/office/validate.py +111 -0
- package/system/skills/docx/scripts/office/validators/__init__.py +15 -0
- package/system/skills/docx/scripts/office/validators/base.py +847 -0
- package/system/skills/docx/scripts/office/validators/docx.py +446 -0
- package/system/skills/docx/scripts/office/validators/pptx.py +275 -0
- package/system/skills/docx/scripts/office/validators/redlining.py +247 -0
- package/system/skills/docx/scripts/templates/comments.xml +3 -0
- package/system/skills/docx/scripts/templates/commentsExtended.xml +3 -0
- package/system/skills/docx/scripts/templates/commentsExtensible.xml +3 -0
- package/system/skills/docx/scripts/templates/commentsIds.xml +3 -0
- package/system/skills/docx/scripts/templates/people.xml +3 -0
- package/system/skills/evaluate-session.sh +69 -0
- package/system/skills/feature/SKILL.md +73 -0
- package/system/skills/frontend-design/LICENSE.txt +177 -0
- package/system/skills/frontend-design/SKILL.md +52 -0
- package/system/skills/hooks/observe.sh +164 -0
- package/system/skills/mcp-builder/LICENSE.txt +202 -0
- package/system/skills/mcp-builder/SKILL.md +236 -0
- package/system/skills/mcp-builder/reference/evaluation.md +602 -0
- package/system/skills/mcp-builder/reference/mcp_best_practices.md +249 -0
- package/system/skills/mcp-builder/reference/node_mcp_server.md +970 -0
- package/system/skills/mcp-builder/reference/python_mcp_server.md +719 -0
- package/system/skills/mcp-builder/scripts/connections.py +151 -0
- package/system/skills/mcp-builder/scripts/evaluation.py +373 -0
- package/system/skills/mcp-builder/scripts/example_evaluation.xml +22 -0
- package/system/skills/mcp-builder/scripts/requirements.txt +2 -0
- package/system/skills/pdf/LICENSE.txt +30 -0
- package/system/skills/pdf/SKILL.md +314 -0
- package/system/skills/pdf/forms.md +294 -0
- package/system/skills/pdf/reference.md +612 -0
- package/system/skills/pdf/scripts/check_bounding_boxes.py +65 -0
- package/system/skills/pdf/scripts/check_fillable_fields.py +11 -0
- package/system/skills/pdf/scripts/convert_pdf_to_images.py +33 -0
- package/system/skills/pdf/scripts/create_validation_image.py +37 -0
- package/system/skills/pdf/scripts/extract_form_field_info.py +122 -0
- package/system/skills/pdf/scripts/extract_form_structure.py +115 -0
- package/system/skills/pdf/scripts/fill_fillable_fields.py +98 -0
- package/system/skills/pdf/scripts/fill_pdf_form_with_annotations.py +107 -0
- package/system/skills/pptx/LICENSE.txt +30 -0
- package/system/skills/pptx/SKILL.md +232 -0
- package/system/skills/pptx/editing.md +205 -0
- package/system/skills/pptx/pptxgenjs.md +420 -0
- package/system/skills/pptx/scripts/__init__.py +0 -0
- package/system/skills/pptx/scripts/add_slide.py +195 -0
- package/system/skills/pptx/scripts/clean.py +286 -0
- package/system/skills/pptx/scripts/office/helpers/__init__.py +0 -0
- package/system/skills/pptx/scripts/office/helpers/merge_runs.py +199 -0
- package/system/skills/pptx/scripts/office/helpers/simplify_redlines.py +197 -0
- package/system/skills/pptx/scripts/office/pack.py +159 -0
- package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/system/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/system/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/system/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/system/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/system/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/system/skills/pptx/scripts/office/schemas/mce/mc.xsd +75 -0
- package/system/skills/pptx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
- package/system/skills/pptx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
- package/system/skills/pptx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
- package/system/skills/pptx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/system/skills/pptx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/system/skills/pptx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/system/skills/pptx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/system/skills/pptx/scripts/office/soffice.py +183 -0
- package/system/skills/pptx/scripts/office/unpack.py +132 -0
- package/system/skills/pptx/scripts/office/validate.py +111 -0
- package/system/skills/pptx/scripts/office/validators/__init__.py +15 -0
- package/system/skills/pptx/scripts/office/validators/base.py +847 -0
- package/system/skills/pptx/scripts/office/validators/docx.py +446 -0
- package/system/skills/pptx/scripts/office/validators/pptx.py +275 -0
- package/system/skills/pptx/scripts/office/validators/redlining.py +247 -0
- package/system/skills/pptx/scripts/thumbnail.py +289 -0
- package/system/skills/scripts/quick-diff.sh +87 -0
- package/system/skills/scripts/save-results.sh +56 -0
- package/system/skills/scripts/scan.sh +170 -0
- package/system/skills/security-check/SKILL.md +70 -0
- package/system/skills/skill-creator/LICENSE.txt +202 -0
- package/system/skills/skill-creator/SKILL.md +479 -0
- package/system/skills/skill-creator/agents/analyzer.md +274 -0
- package/system/skills/skill-creator/agents/comparator.md +202 -0
- package/system/skills/skill-creator/agents/grader.md +223 -0
- package/system/skills/skill-creator/assets/eval_review.html +146 -0
- package/system/skills/skill-creator/eval-viewer/generate_review.py +471 -0
- package/system/skills/skill-creator/eval-viewer/viewer.html +1325 -0
- package/system/skills/skill-creator/references/schemas.md +430 -0
- package/system/skills/skill-creator/scripts/__init__.py +0 -0
- package/system/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
- package/system/skills/skill-creator/scripts/generate_report.py +326 -0
- package/system/skills/skill-creator/scripts/improve_description.py +248 -0
- package/system/skills/skill-creator/scripts/package_skill.py +136 -0
- package/system/skills/skill-creator/scripts/quick_validate.py +103 -0
- package/system/skills/skill-creator/scripts/run_eval.py +310 -0
- package/system/skills/skill-creator/scripts/run_loop.py +332 -0
- package/system/skills/skill-creator/scripts/utils.py +47 -0
- package/system/skills/suggest-compact.sh +54 -0
- package/system/skills/supabase-migration/SKILL.md +59 -0
- package/system/skills/theme-factory/LICENSE.txt +202 -0
- package/system/skills/theme-factory/SKILL.md +59 -0
- package/system/skills/theme-factory/theme-showcase.pdf +0 -0
- package/system/skills/theme-factory/themes/arctic-frost.md +19 -0
- package/system/skills/theme-factory/themes/botanical-garden.md +19 -0
- package/system/skills/theme-factory/themes/desert-rose.md +19 -0
- package/system/skills/theme-factory/themes/forest-canopy.md +19 -0
- package/system/skills/theme-factory/themes/golden-hour.md +19 -0
- package/system/skills/theme-factory/themes/midnight-galaxy.md +19 -0
- package/system/skills/theme-factory/themes/modern-minimalist.md +19 -0
- package/system/skills/theme-factory/themes/ocean-depths.md +19 -0
- package/system/skills/theme-factory/themes/sunset-boulevard.md +19 -0
- package/system/skills/theme-factory/themes/tech-innovation.md +19 -0
- package/system/skills/web-artifacts-builder/LICENSE.txt +202 -0
- package/system/skills/web-artifacts-builder/SKILL.md +74 -0
- package/system/skills/web-artifacts-builder/scripts/bundle-artifact.sh +54 -0
- package/system/skills/web-artifacts-builder/scripts/init-artifact.sh +322 -0
- package/system/skills/web-artifacts-builder/scripts/shadcn-components.tar.gz +0 -0
- package/system/skills/webapp-testing/LICENSE.txt +202 -0
- package/system/skills/webapp-testing/SKILL.md +96 -0
- package/system/skills/webapp-testing/examples/console_logging.py +35 -0
- package/system/skills/webapp-testing/examples/element_discovery.py +40 -0
- package/system/skills/webapp-testing/examples/static_html_automation.py +33 -0
- package/system/skills/webapp-testing/scripts/with_server.py +106 -0
- package/system/skills/xlsx/LICENSE.txt +30 -0
- package/system/skills/xlsx/SKILL.md +292 -0
- package/system/skills/xlsx/scripts/office/helpers/__init__.py +0 -0
- package/system/skills/xlsx/scripts/office/helpers/merge_runs.py +199 -0
- package/system/skills/xlsx/scripts/office/helpers/simplify_redlines.py +197 -0
- package/system/skills/xlsx/scripts/office/pack.py +159 -0
- package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/system/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/system/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/system/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/system/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/system/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/system/skills/xlsx/scripts/office/schemas/mce/mc.xsd +75 -0
- package/system/skills/xlsx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
- package/system/skills/xlsx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
- package/system/skills/xlsx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
- package/system/skills/xlsx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/system/skills/xlsx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/system/skills/xlsx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/system/skills/xlsx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/system/skills/xlsx/scripts/office/soffice.py +183 -0
- package/system/skills/xlsx/scripts/office/unpack.py +132 -0
- package/system/skills/xlsx/scripts/office/validate.py +111 -0
- package/system/skills/xlsx/scripts/office/validators/__init__.py +15 -0
- package/system/skills/xlsx/scripts/office/validators/base.py +847 -0
- package/system/skills/xlsx/scripts/office/validators/docx.py +446 -0
- package/system/skills/xlsx/scripts/office/validators/pptx.py +275 -0
- package/system/skills/xlsx/scripts/office/validators/redlining.py +247 -0
- package/system/skills/xlsx/scripts/recalc.py +184 -0
- package/system/teams/profiles.md +76 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: visa-doc-translate
|
|
3
|
+
description: Translate visa application documents (images) to English and create a bilingual PDF with original and translation
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
You are helping translate visa application documents for visa applications.
|
|
7
|
+
|
|
8
|
+
## Instructions
|
|
9
|
+
|
|
10
|
+
When the user provides an image file path, AUTOMATICALLY execute the following steps WITHOUT asking for confirmation:
|
|
11
|
+
|
|
12
|
+
1. **Image Conversion**: If the file is HEIC, convert it to PNG using `sips -s format png <input> --out <output>`
|
|
13
|
+
|
|
14
|
+
2. **Image Rotation**:
|
|
15
|
+
- Check EXIF orientation data
|
|
16
|
+
- Automatically rotate the image based on EXIF data
|
|
17
|
+
- If EXIF orientation is 6, rotate 90 degrees counterclockwise
|
|
18
|
+
- Apply additional rotation as needed (test 180 degrees if document appears upside down)
|
|
19
|
+
|
|
20
|
+
3. **OCR Text Extraction**:
|
|
21
|
+
- Try multiple OCR methods automatically:
|
|
22
|
+
- macOS Vision framework (preferred for macOS)
|
|
23
|
+
- EasyOCR (cross-platform, no tesseract required)
|
|
24
|
+
- Tesseract OCR (if available)
|
|
25
|
+
- Extract all text information from the document
|
|
26
|
+
- Identify document type (deposit certificate, employment certificate, retirement certificate, etc.)
|
|
27
|
+
|
|
28
|
+
4. **Translation**:
|
|
29
|
+
- Translate all text content to English professionally
|
|
30
|
+
- Maintain the original document structure and format
|
|
31
|
+
- Use professional terminology appropriate for visa applications
|
|
32
|
+
- Keep proper names in original language with English in parentheses
|
|
33
|
+
- For Chinese names, use pinyin format (e.g., WU Zhengye)
|
|
34
|
+
- Preserve all numbers, dates, and amounts accurately
|
|
35
|
+
|
|
36
|
+
5. **PDF Generation**:
|
|
37
|
+
- Create a Python script using PIL and reportlab libraries
|
|
38
|
+
- Page 1: Display the rotated original image, centered and scaled to fit A4 page
|
|
39
|
+
- Page 2: Display the English translation with proper formatting:
|
|
40
|
+
- Title centered and bold
|
|
41
|
+
- Content left-aligned with appropriate spacing
|
|
42
|
+
- Professional layout suitable for official documents
|
|
43
|
+
- Add a note at the bottom: "This is a certified English translation of the original document"
|
|
44
|
+
- Execute the script to generate the PDF
|
|
45
|
+
|
|
46
|
+
6. **Output**: Create a PDF file named `<original_filename>_Translated.pdf` in the same directory
|
|
47
|
+
|
|
48
|
+
## Supported Documents
|
|
49
|
+
|
|
50
|
+
- Bank deposit certificates (存款证明)
|
|
51
|
+
- Income certificates (收入证明)
|
|
52
|
+
- Employment certificates (在职证明)
|
|
53
|
+
- Retirement certificates (退休证明)
|
|
54
|
+
- Property certificates (房产证明)
|
|
55
|
+
- Business licenses (营业执照)
|
|
56
|
+
- ID cards and passports
|
|
57
|
+
- Other official documents
|
|
58
|
+
|
|
59
|
+
## Technical Implementation
|
|
60
|
+
|
|
61
|
+
### OCR Methods (tried in order)
|
|
62
|
+
|
|
63
|
+
1. **macOS Vision Framework** (macOS only):
|
|
64
|
+
```python
|
|
65
|
+
import Vision
|
|
66
|
+
from Foundation import NSURL
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
2. **EasyOCR** (cross-platform):
|
|
70
|
+
```bash
|
|
71
|
+
pip install easyocr
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
3. **Tesseract OCR** (if available):
|
|
75
|
+
```bash
|
|
76
|
+
brew install tesseract tesseract-lang
|
|
77
|
+
pip install pytesseract
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Required Python Libraries
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
pip install pillow reportlab
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
For macOS Vision framework:
|
|
87
|
+
```bash
|
|
88
|
+
pip install pyobjc-framework-Vision pyobjc-framework-Quartz
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Important Guidelines
|
|
92
|
+
|
|
93
|
+
- DO NOT ask for user confirmation at each step
|
|
94
|
+
- Automatically determine the best rotation angle
|
|
95
|
+
- Try multiple OCR methods if one fails
|
|
96
|
+
- Ensure all numbers, dates, and amounts are accurately translated
|
|
97
|
+
- Use clean, professional formatting
|
|
98
|
+
- Complete the entire process and report the final PDF location
|
|
99
|
+
|
|
100
|
+
## Example Usage
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
/visa-doc-translate RetirementCertificate.PNG
|
|
104
|
+
/visa-doc-translate BankStatement.HEIC
|
|
105
|
+
/visa-doc-translate EmploymentLetter.jpg
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
## Output Example
|
|
109
|
+
|
|
110
|
+
The skill will:
|
|
111
|
+
1. Extract text using available OCR method
|
|
112
|
+
2. Translate to professional English
|
|
113
|
+
3. Generate `<filename>_Translated.pdf` with:
|
|
114
|
+
- Page 1: Original document image
|
|
115
|
+
- Page 2: Professional English translation
|
|
116
|
+
|
|
117
|
+
Perfect for visa applications to Australia, USA, Canada, UK, and other countries requiring translated documents.
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: observer
|
|
3
|
+
description: Background agent that analyzes session observations to detect patterns and create instincts. Uses Haiku for cost-efficiency.
|
|
4
|
+
model: haiku
|
|
5
|
+
run_mode: background
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Observer Agent
|
|
9
|
+
|
|
10
|
+
A background agent that analyzes observations from Claude Code sessions to detect patterns and create instincts.
|
|
11
|
+
|
|
12
|
+
## When to Run
|
|
13
|
+
|
|
14
|
+
- After significant session activity (20+ tool calls)
|
|
15
|
+
- When user runs `/analyze-patterns`
|
|
16
|
+
- On a scheduled interval (configurable, default 5 minutes)
|
|
17
|
+
- When triggered by observation hook (SIGUSR1)
|
|
18
|
+
|
|
19
|
+
## Input
|
|
20
|
+
|
|
21
|
+
Reads observations from `~/.claude/homunculus/observations.jsonl`:
|
|
22
|
+
|
|
23
|
+
```jsonl
|
|
24
|
+
{"timestamp":"2025-01-22T10:30:00Z","event":"tool_start","session":"abc123","tool":"Edit","input":"..."}
|
|
25
|
+
{"timestamp":"2025-01-22T10:30:01Z","event":"tool_complete","session":"abc123","tool":"Edit","output":"..."}
|
|
26
|
+
{"timestamp":"2025-01-22T10:30:05Z","event":"tool_start","session":"abc123","tool":"Bash","input":"npm test"}
|
|
27
|
+
{"timestamp":"2025-01-22T10:30:10Z","event":"tool_complete","session":"abc123","tool":"Bash","output":"All tests pass"}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Pattern Detection
|
|
31
|
+
|
|
32
|
+
Look for these patterns in observations:
|
|
33
|
+
|
|
34
|
+
### 1. User Corrections
|
|
35
|
+
When a user's follow-up message corrects Claude's previous action:
|
|
36
|
+
- "No, use X instead of Y"
|
|
37
|
+
- "Actually, I meant..."
|
|
38
|
+
- Immediate undo/redo patterns
|
|
39
|
+
|
|
40
|
+
→ Create instinct: "When doing X, prefer Y"
|
|
41
|
+
|
|
42
|
+
### 2. Error Resolutions
|
|
43
|
+
When an error is followed by a fix:
|
|
44
|
+
- Tool output contains error
|
|
45
|
+
- Next few tool calls fix it
|
|
46
|
+
- Same error type resolved similarly multiple times
|
|
47
|
+
|
|
48
|
+
→ Create instinct: "When encountering error X, try Y"
|
|
49
|
+
|
|
50
|
+
### 3. Repeated Workflows
|
|
51
|
+
When the same sequence of tools is used multiple times:
|
|
52
|
+
- Same tool sequence with similar inputs
|
|
53
|
+
- File patterns that change together
|
|
54
|
+
- Time-clustered operations
|
|
55
|
+
|
|
56
|
+
→ Create workflow instinct: "When doing X, follow steps Y, Z, W"
|
|
57
|
+
|
|
58
|
+
### 4. Tool Preferences
|
|
59
|
+
When certain tools are consistently preferred:
|
|
60
|
+
- Always uses Grep before Edit
|
|
61
|
+
- Prefers Read over Bash cat
|
|
62
|
+
- Uses specific Bash commands for certain tasks
|
|
63
|
+
|
|
64
|
+
→ Create instinct: "When needing X, use tool Y"
|
|
65
|
+
|
|
66
|
+
## Output
|
|
67
|
+
|
|
68
|
+
Creates/updates instincts in `~/.claude/homunculus/instincts/personal/`:
|
|
69
|
+
|
|
70
|
+
```yaml
|
|
71
|
+
---
|
|
72
|
+
id: prefer-grep-before-edit
|
|
73
|
+
trigger: "when searching for code to modify"
|
|
74
|
+
confidence: 0.65
|
|
75
|
+
domain: "workflow"
|
|
76
|
+
source: "session-observation"
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
# Prefer Grep Before Edit
|
|
80
|
+
|
|
81
|
+
## Action
|
|
82
|
+
Always use Grep to find the exact location before using Edit.
|
|
83
|
+
|
|
84
|
+
## Evidence
|
|
85
|
+
- Observed 8 times in session abc123
|
|
86
|
+
- Pattern: Grep → Read → Edit sequence
|
|
87
|
+
- Last observed: 2025-01-22
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Confidence Calculation
|
|
91
|
+
|
|
92
|
+
Initial confidence based on observation frequency:
|
|
93
|
+
- 1-2 observations: 0.3 (tentative)
|
|
94
|
+
- 3-5 observations: 0.5 (moderate)
|
|
95
|
+
- 6-10 observations: 0.7 (strong)
|
|
96
|
+
- 11+ observations: 0.85 (very strong)
|
|
97
|
+
|
|
98
|
+
Confidence adjusts over time:
|
|
99
|
+
- +0.05 for each confirming observation
|
|
100
|
+
- -0.1 for each contradicting observation
|
|
101
|
+
- -0.02 per week without observation (decay)
|
|
102
|
+
|
|
103
|
+
## Important Guidelines
|
|
104
|
+
|
|
105
|
+
1. **Be Conservative**: Only create instincts for clear patterns (3+ observations)
|
|
106
|
+
2. **Be Specific**: Narrow triggers are better than broad ones
|
|
107
|
+
3. **Track Evidence**: Always include what observations led to the instinct
|
|
108
|
+
4. **Respect Privacy**: Never include actual code snippets, only patterns
|
|
109
|
+
5. **Merge Similar**: If a new instinct is similar to existing, update rather than duplicate
|
|
110
|
+
|
|
111
|
+
## Example Analysis Session
|
|
112
|
+
|
|
113
|
+
Given observations:
|
|
114
|
+
```jsonl
|
|
115
|
+
{"event":"tool_start","tool":"Grep","input":"pattern: useState"}
|
|
116
|
+
{"event":"tool_complete","tool":"Grep","output":"Found in 3 files"}
|
|
117
|
+
{"event":"tool_start","tool":"Read","input":"src/hooks/useAuth.ts"}
|
|
118
|
+
{"event":"tool_complete","tool":"Read","output":"[file content]"}
|
|
119
|
+
{"event":"tool_start","tool":"Edit","input":"src/hooks/useAuth.ts..."}
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Analysis:
|
|
123
|
+
- Detected workflow: Grep → Read → Edit
|
|
124
|
+
- Frequency: Seen 5 times this session
|
|
125
|
+
- Create instinct:
|
|
126
|
+
- trigger: "when modifying code"
|
|
127
|
+
- action: "Search with Grep, confirm with Read, then Edit"
|
|
128
|
+
- confidence: 0.6
|
|
129
|
+
- domain: "workflow"
|
|
130
|
+
|
|
131
|
+
## Integration with Skill Creator
|
|
132
|
+
|
|
133
|
+
When instincts are imported from Skill Creator (repo analysis), they have:
|
|
134
|
+
- `source: "repo-analysis"`
|
|
135
|
+
- `source_repo: "https://github.com/..."`
|
|
136
|
+
|
|
137
|
+
These should be treated as team/project conventions with higher initial confidence (0.7+).
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# Continuous Learning v2 - Observer Agent Launcher
|
|
3
|
+
#
|
|
4
|
+
# Starts the background observer agent that analyzes observations
|
|
5
|
+
# and creates instincts. Uses Haiku model for cost efficiency.
|
|
6
|
+
#
|
|
7
|
+
# Usage:
|
|
8
|
+
# start-observer.sh # Start observer in background
|
|
9
|
+
# start-observer.sh stop # Stop running observer
|
|
10
|
+
# start-observer.sh status # Check if observer is running
|
|
11
|
+
|
|
12
|
+
set -e
|
|
13
|
+
|
|
14
|
+
CONFIG_DIR="${HOME}/.claude/homunculus"
|
|
15
|
+
PID_FILE="${CONFIG_DIR}/.observer.pid"
|
|
16
|
+
LOG_FILE="${CONFIG_DIR}/observer.log"
|
|
17
|
+
OBSERVATIONS_FILE="${CONFIG_DIR}/observations.jsonl"
|
|
18
|
+
|
|
19
|
+
mkdir -p "$CONFIG_DIR"
|
|
20
|
+
|
|
21
|
+
case "${1:-start}" in
|
|
22
|
+
stop)
|
|
23
|
+
if [ -f "$PID_FILE" ]; then
|
|
24
|
+
pid=$(cat "$PID_FILE")
|
|
25
|
+
if kill -0 "$pid" 2>/dev/null; then
|
|
26
|
+
echo "Stopping observer (PID: $pid)..."
|
|
27
|
+
kill "$pid"
|
|
28
|
+
rm -f "$PID_FILE"
|
|
29
|
+
echo "Observer stopped."
|
|
30
|
+
else
|
|
31
|
+
echo "Observer not running (stale PID file)."
|
|
32
|
+
rm -f "$PID_FILE"
|
|
33
|
+
fi
|
|
34
|
+
else
|
|
35
|
+
echo "Observer not running."
|
|
36
|
+
fi
|
|
37
|
+
exit 0
|
|
38
|
+
;;
|
|
39
|
+
|
|
40
|
+
status)
|
|
41
|
+
if [ -f "$PID_FILE" ]; then
|
|
42
|
+
pid=$(cat "$PID_FILE")
|
|
43
|
+
if kill -0 "$pid" 2>/dev/null; then
|
|
44
|
+
echo "Observer is running (PID: $pid)"
|
|
45
|
+
echo "Log: $LOG_FILE"
|
|
46
|
+
echo "Observations: $(wc -l < "$OBSERVATIONS_FILE" 2>/dev/null || echo 0) lines"
|
|
47
|
+
exit 0
|
|
48
|
+
else
|
|
49
|
+
echo "Observer not running (stale PID file)"
|
|
50
|
+
rm -f "$PID_FILE"
|
|
51
|
+
exit 1
|
|
52
|
+
fi
|
|
53
|
+
else
|
|
54
|
+
echo "Observer not running"
|
|
55
|
+
exit 1
|
|
56
|
+
fi
|
|
57
|
+
;;
|
|
58
|
+
|
|
59
|
+
start)
|
|
60
|
+
# Check if already running
|
|
61
|
+
if [ -f "$PID_FILE" ]; then
|
|
62
|
+
pid=$(cat "$PID_FILE")
|
|
63
|
+
if kill -0 "$pid" 2>/dev/null; then
|
|
64
|
+
echo "Observer already running (PID: $pid)"
|
|
65
|
+
exit 0
|
|
66
|
+
fi
|
|
67
|
+
rm -f "$PID_FILE"
|
|
68
|
+
fi
|
|
69
|
+
|
|
70
|
+
echo "Starting observer agent..."
|
|
71
|
+
|
|
72
|
+
# The observer loop
|
|
73
|
+
(
|
|
74
|
+
trap 'rm -f "$PID_FILE"; exit 0' TERM INT
|
|
75
|
+
|
|
76
|
+
analyze_observations() {
|
|
77
|
+
# Only analyze if observations file exists and has enough entries
|
|
78
|
+
if [ ! -f "$OBSERVATIONS_FILE" ]; then
|
|
79
|
+
return
|
|
80
|
+
fi
|
|
81
|
+
obs_count=$(wc -l < "$OBSERVATIONS_FILE" 2>/dev/null || echo 0)
|
|
82
|
+
if [ "$obs_count" -lt 10 ]; then
|
|
83
|
+
return
|
|
84
|
+
fi
|
|
85
|
+
|
|
86
|
+
echo "[$(date)] Analyzing $obs_count observations..." >> "$LOG_FILE"
|
|
87
|
+
|
|
88
|
+
# Use Claude Code with Haiku to analyze observations
|
|
89
|
+
# This spawns a quick analysis session
|
|
90
|
+
if command -v claude &> /dev/null; then
|
|
91
|
+
exit_code=0
|
|
92
|
+
claude --model haiku --max-turns 3 --print \
|
|
93
|
+
"Read $OBSERVATIONS_FILE and identify patterns. If you find 3+ occurrences of the same pattern, create an instinct file in $CONFIG_DIR/instincts/personal/ following the format in the observer agent spec. Be conservative - only create instincts for clear patterns." \
|
|
94
|
+
>> "$LOG_FILE" 2>&1 || exit_code=$?
|
|
95
|
+
if [ "$exit_code" -ne 0 ]; then
|
|
96
|
+
echo "[$(date)] Claude analysis failed (exit $exit_code)" >> "$LOG_FILE"
|
|
97
|
+
fi
|
|
98
|
+
else
|
|
99
|
+
echo "[$(date)] claude CLI not found, skipping analysis" >> "$LOG_FILE"
|
|
100
|
+
fi
|
|
101
|
+
|
|
102
|
+
# Archive processed observations
|
|
103
|
+
if [ -f "$OBSERVATIONS_FILE" ]; then
|
|
104
|
+
archive_dir="${CONFIG_DIR}/observations.archive"
|
|
105
|
+
mkdir -p "$archive_dir"
|
|
106
|
+
mv "$OBSERVATIONS_FILE" "$archive_dir/processed-$(date +%Y%m%d-%H%M%S).jsonl" 2>/dev/null || true
|
|
107
|
+
touch "$OBSERVATIONS_FILE"
|
|
108
|
+
fi
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
# Handle SIGUSR1 for on-demand analysis
|
|
112
|
+
trap 'analyze_observations' USR1
|
|
113
|
+
|
|
114
|
+
echo "$$" > "$PID_FILE"
|
|
115
|
+
echo "[$(date)] Observer started (PID: $$)" >> "$LOG_FILE"
|
|
116
|
+
|
|
117
|
+
while true; do
|
|
118
|
+
# Check every 5 minutes
|
|
119
|
+
sleep 300
|
|
120
|
+
|
|
121
|
+
analyze_observations
|
|
122
|
+
done
|
|
123
|
+
) &
|
|
124
|
+
|
|
125
|
+
disown
|
|
126
|
+
|
|
127
|
+
# Wait a moment for PID file
|
|
128
|
+
sleep 1
|
|
129
|
+
|
|
130
|
+
if [ -f "$PID_FILE" ]; then
|
|
131
|
+
echo "Observer started (PID: $(cat "$PID_FILE"))"
|
|
132
|
+
echo "Log: $LOG_FILE"
|
|
133
|
+
else
|
|
134
|
+
echo "Failed to start observer"
|
|
135
|
+
exit 1
|
|
136
|
+
fi
|
|
137
|
+
;;
|
|
138
|
+
|
|
139
|
+
*)
|
|
140
|
+
echo "Usage: $0 {start|stop|status}"
|
|
141
|
+
exit 1
|
|
142
|
+
;;
|
|
143
|
+
esac
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|