sumulige-claude 1.0.9 → 1.1.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/.claude/.version +1 -0
- package/.claude/AGENTS.md +9 -9
- package/.claude/commands/commit-push-pr.md +23 -3
- package/.claude/commands/todos.md +41 -6
- package/.claude/hooks/session-restore.cjs +102 -0
- package/.claude/hooks/session-save.cjs +164 -0
- package/.claude/hooks/todo-manager.cjs +262 -141
- package/.claude/settings.local.json +25 -1
- package/.claude/skills/algorithmic-art/LICENSE.txt +202 -0
- package/.claude/skills/algorithmic-art/SKILL.md +405 -0
- package/.claude/skills/algorithmic-art/templates/generator_template.js +223 -0
- package/.claude/skills/algorithmic-art/templates/viewer.html +599 -0
- package/.claude/skills/api-tester/SKILL.md +52 -23
- package/.claude/skills/brand-guidelines/LICENSE.txt +202 -0
- package/.claude/skills/brand-guidelines/SKILL.md +73 -0
- package/.claude/skills/canvas-design/LICENSE.txt +202 -0
- package/.claude/skills/canvas-design/SKILL.md +130 -0
- package/.claude/skills/canvas-design/canvas-fonts/ArsenalSC-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/ArsenalSC-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/BigShoulders-Bold.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/BigShoulders-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/BigShoulders-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/Boldonse-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/Boldonse-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/CrimsonPro-Bold.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/CrimsonPro-Italic.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/CrimsonPro-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/CrimsonPro-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/DMMono-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/DMMono-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/EricaOne-OFL.txt +94 -0
- package/.claude/skills/canvas-design/canvas-fonts/EricaOne-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/GeistMono-Bold.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/GeistMono-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/GeistMono-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/Gloock-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/Gloock-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/IBMPlexMono-Bold.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/IBMPlexMono-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/IBMPlexSerif-Bold.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/IBMPlexSerif-BoldItalic.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/IBMPlexSerif-Italic.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/IBMPlexSerif-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/InstrumentSans-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/Italiana-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/Italiana-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/Jura-Light.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/Jura-Medium.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/Jura-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/LibreBaskerville-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/Lora-Bold.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/Lora-BoldItalic.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/Lora-Italic.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/Lora-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/Lora-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/NationalPark-Bold.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/NationalPark-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/NationalPark-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/Outfit-Bold.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/Outfit-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/Outfit-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/PixelifySans-Medium.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/PixelifySans-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/PoiretOne-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/PoiretOne-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/RedHatMono-Bold.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/RedHatMono-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/RedHatMono-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/Silkscreen-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/Silkscreen-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/SmoochSans-Medium.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/SmoochSans-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/Tektur-Medium.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/Tektur-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/Tektur-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/WorkSans-Bold.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/WorkSans-BoldItalic.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/WorkSans-Italic.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/WorkSans-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/WorkSans-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/YoungSerif-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/YoungSerif-Regular.ttf +0 -0
- package/.claude/skills/doc-coauthoring/SKILL.md +375 -0
- package/.claude/skills/docx/LICENSE.txt +30 -0
- package/.claude/skills/docx/SKILL.md +197 -0
- package/.claude/skills/docx/docx-js.md +350 -0
- package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/.claude/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/.claude/skills/docx/ooxml/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/.claude/skills/docx/ooxml/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/.claude/skills/docx/ooxml/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/.claude/skills/docx/ooxml/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/.claude/skills/docx/ooxml/schemas/mce/mc.xsd +75 -0
- package/.claude/skills/docx/ooxml/schemas/microsoft/wml-2010.xsd +560 -0
- package/.claude/skills/docx/ooxml/schemas/microsoft/wml-2012.xsd +67 -0
- package/.claude/skills/docx/ooxml/schemas/microsoft/wml-2018.xsd +14 -0
- package/.claude/skills/docx/ooxml/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/.claude/skills/docx/ooxml/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/.claude/skills/docx/ooxml/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/.claude/skills/docx/ooxml/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/.claude/skills/docx/ooxml/scripts/pack.py +159 -0
- package/.claude/skills/docx/ooxml/scripts/unpack.py +29 -0
- package/.claude/skills/docx/ooxml/scripts/validate.py +69 -0
- package/.claude/skills/docx/ooxml/scripts/validation/__init__.py +15 -0
- package/.claude/skills/docx/ooxml/scripts/validation/base.py +951 -0
- package/.claude/skills/docx/ooxml/scripts/validation/docx.py +274 -0
- package/.claude/skills/docx/ooxml/scripts/validation/pptx.py +315 -0
- package/.claude/skills/docx/ooxml/scripts/validation/redlining.py +279 -0
- package/.claude/skills/docx/ooxml.md +610 -0
- package/.claude/skills/docx/scripts/__init__.py +1 -0
- package/.claude/skills/docx/scripts/document.py +1276 -0
- package/.claude/skills/docx/scripts/templates/comments.xml +3 -0
- package/.claude/skills/docx/scripts/templates/commentsExtended.xml +3 -0
- package/.claude/skills/docx/scripts/templates/commentsExtensible.xml +3 -0
- package/.claude/skills/docx/scripts/templates/commentsIds.xml +3 -0
- package/.claude/skills/docx/scripts/templates/people.xml +3 -0
- package/.claude/skills/docx/scripts/utilities.py +374 -0
- package/.claude/skills/frontend-design/LICENSE.txt +177 -0
- package/.claude/skills/frontend-design/SKILL.md +42 -0
- package/.claude/skills/internal-comms/LICENSE.txt +202 -0
- package/.claude/skills/internal-comms/SKILL.md +32 -0
- package/.claude/skills/internal-comms/examples/3p-updates.md +47 -0
- package/.claude/skills/internal-comms/examples/company-newsletter.md +65 -0
- package/.claude/skills/internal-comms/examples/faq-answers.md +30 -0
- package/.claude/skills/internal-comms/examples/general-comms.md +16 -0
- package/.claude/skills/mcp-builder/LICENSE.txt +202 -0
- package/.claude/skills/mcp-builder/SKILL.md +236 -0
- package/.claude/skills/mcp-builder/reference/evaluation.md +602 -0
- package/.claude/skills/mcp-builder/reference/mcp_best_practices.md +249 -0
- package/.claude/skills/mcp-builder/reference/node_mcp_server.md +970 -0
- package/.claude/skills/mcp-builder/reference/python_mcp_server.md +719 -0
- package/.claude/skills/mcp-builder/scripts/connections.py +151 -0
- package/.claude/skills/mcp-builder/scripts/evaluation.py +373 -0
- package/.claude/skills/mcp-builder/scripts/example_evaluation.xml +22 -0
- package/.claude/skills/mcp-builder/scripts/requirements.txt +2 -0
- package/.claude/skills/pdf/LICENSE.txt +30 -0
- package/.claude/skills/pdf/SKILL.md +294 -0
- package/.claude/skills/pdf/forms.md +205 -0
- package/.claude/skills/pdf/reference.md +612 -0
- package/.claude/skills/pdf/scripts/check_bounding_boxes.py +70 -0
- package/.claude/skills/pdf/scripts/check_bounding_boxes_test.py +226 -0
- package/.claude/skills/pdf/scripts/check_fillable_fields.py +12 -0
- package/.claude/skills/pdf/scripts/convert_pdf_to_images.py +35 -0
- package/.claude/skills/pdf/scripts/create_validation_image.py +41 -0
- package/.claude/skills/pdf/scripts/extract_form_field_info.py +152 -0
- package/.claude/skills/pdf/scripts/fill_fillable_fields.py +114 -0
- package/.claude/skills/pdf/scripts/fill_pdf_form_with_annotations.py +108 -0
- package/.claude/skills/pptx/LICENSE.txt +30 -0
- package/.claude/skills/pptx/SKILL.md +484 -0
- package/.claude/skills/pptx/html2pptx.md +625 -0
- package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/.claude/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/.claude/skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/.claude/skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/.claude/skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/.claude/skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/.claude/skills/pptx/ooxml/schemas/mce/mc.xsd +75 -0
- package/.claude/skills/pptx/ooxml/schemas/microsoft/wml-2010.xsd +560 -0
- package/.claude/skills/pptx/ooxml/schemas/microsoft/wml-2012.xsd +67 -0
- package/.claude/skills/pptx/ooxml/schemas/microsoft/wml-2018.xsd +14 -0
- package/.claude/skills/pptx/ooxml/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/.claude/skills/pptx/ooxml/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/.claude/skills/pptx/ooxml/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/.claude/skills/pptx/ooxml/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/.claude/skills/pptx/ooxml/scripts/pack.py +159 -0
- package/.claude/skills/pptx/ooxml/scripts/unpack.py +29 -0
- package/.claude/skills/pptx/ooxml/scripts/validate.py +69 -0
- package/.claude/skills/pptx/ooxml/scripts/validation/__init__.py +15 -0
- package/.claude/skills/pptx/ooxml/scripts/validation/base.py +951 -0
- package/.claude/skills/pptx/ooxml/scripts/validation/docx.py +274 -0
- package/.claude/skills/pptx/ooxml/scripts/validation/pptx.py +315 -0
- package/.claude/skills/pptx/ooxml/scripts/validation/redlining.py +279 -0
- package/.claude/skills/pptx/ooxml.md +427 -0
- package/.claude/skills/pptx/scripts/html2pptx.js +979 -0
- package/.claude/skills/pptx/scripts/inventory.py +1020 -0
- package/.claude/skills/pptx/scripts/rearrange.py +231 -0
- package/.claude/skills/pptx/scripts/replace.py +385 -0
- package/.claude/skills/pptx/scripts/thumbnail.py +450 -0
- package/.claude/skills/skill-creator/LICENSE.txt +202 -0
- package/.claude/skills/skill-creator/SKILL.md +356 -0
- package/.claude/skills/skill-creator/references/output-patterns.md +82 -0
- package/.claude/skills/skill-creator/references/workflows.md +28 -0
- package/.claude/skills/skill-creator/scripts/init_skill.py +303 -0
- package/.claude/skills/skill-creator/scripts/package_skill.py +110 -0
- package/.claude/skills/skill-creator/scripts/quick_validate.py +95 -0
- package/.claude/skills/slack-gif-creator/LICENSE.txt +202 -0
- package/.claude/skills/slack-gif-creator/SKILL.md +254 -0
- package/.claude/skills/slack-gif-creator/core/easing.py +234 -0
- package/.claude/skills/slack-gif-creator/core/frame_composer.py +176 -0
- package/.claude/skills/slack-gif-creator/core/gif_builder.py +269 -0
- package/.claude/skills/slack-gif-creator/core/validators.py +136 -0
- package/.claude/skills/slack-gif-creator/requirements.txt +4 -0
- package/.claude/skills/template/SKILL.md +6 -0
- package/.claude/skills/test-workflow/SKILL.md +191 -0
- package/.claude/skills/theme-factory/LICENSE.txt +202 -0
- package/.claude/skills/theme-factory/SKILL.md +59 -0
- package/.claude/skills/theme-factory/theme-showcase.pdf +0 -0
- package/.claude/skills/theme-factory/themes/arctic-frost.md +19 -0
- package/.claude/skills/theme-factory/themes/botanical-garden.md +19 -0
- package/.claude/skills/theme-factory/themes/desert-rose.md +19 -0
- package/.claude/skills/theme-factory/themes/forest-canopy.md +19 -0
- package/.claude/skills/theme-factory/themes/golden-hour.md +19 -0
- package/.claude/skills/theme-factory/themes/midnight-galaxy.md +19 -0
- package/.claude/skills/theme-factory/themes/modern-minimalist.md +19 -0
- package/.claude/skills/theme-factory/themes/ocean-depths.md +19 -0
- package/.claude/skills/theme-factory/themes/sunset-boulevard.md +19 -0
- package/.claude/skills/theme-factory/themes/tech-innovation.md +19 -0
- package/.claude/skills/web-artifacts-builder/LICENSE.txt +202 -0
- package/.claude/skills/web-artifacts-builder/SKILL.md +74 -0
- package/.claude/skills/web-artifacts-builder/scripts/bundle-artifact.sh +54 -0
- package/.claude/skills/web-artifacts-builder/scripts/init-artifact.sh +322 -0
- package/.claude/skills/web-artifacts-builder/scripts/shadcn-components.tar.gz +0 -0
- package/.claude/skills/webapp-testing/LICENSE.txt +202 -0
- package/.claude/skills/webapp-testing/SKILL.md +96 -0
- package/.claude/skills/webapp-testing/examples/console_logging.py +35 -0
- package/.claude/skills/webapp-testing/examples/element_discovery.py +40 -0
- package/.claude/skills/webapp-testing/examples/static_html_automation.py +33 -0
- package/.claude/skills/webapp-testing/scripts/with_server.py +106 -0
- package/.claude/skills/xlsx/LICENSE.txt +30 -0
- package/.claude/skills/xlsx/SKILL.md +289 -0
- package/.claude/skills/xlsx/recalc.py +178 -0
- package/.claude/templates/tasks/develop.md +69 -0
- package/.claude/templates/tasks/research.md +64 -0
- package/.claude/templates/tasks/test.md +96 -0
- package/.claude-plugin/marketplace.json +2 -2
- package/.versionrc +25 -0
- package/AGENTS.md +171 -86
- package/CHANGELOG.md +83 -4
- package/PROJECT_STRUCTURE.md +40 -3
- package/Q&A.md +184 -0
- package/README.md +74 -2
- package/cli.js +79 -5
- package/config/official-skills.json +183 -0
- package/development/todos/.state.json +4 -0
- package/development/todos/INDEX.md +67 -32
- package/docs/RELEASE.md +93 -0
- package/jest.config.js +61 -0
- package/lib/commands.js +1724 -39
- package/lib/migrations.js +154 -0
- package/lib/utils.js +102 -14
- package/lib/version-check.js +169 -0
- package/package.json +13 -3
- package/scripts/fix-hooks.mjs +97 -0
- package/template/.claude/commands/commit-push-pr.md +23 -3
- package/template/.claude/hooks/project-kickoff.cjs +190 -1
- package/template/.claude/hooks/session-restore.cjs +102 -0
- package/template/.claude/hooks/session-save.cjs +164 -0
- package/template/.claude/settings.json +114 -50
- package/tests/README.md +263 -0
- package/tests/commands.test.js +163 -0
- package/tests/config.test.js +100 -0
- package/tests/marketplace.test.js +304 -0
- package/tests/migrations.test.js +187 -0
- package/tests/utils.test.js +167 -0
|
@@ -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.
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: slack-gif-creator
|
|
3
|
+
description: Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."
|
|
4
|
+
license: Complete terms in LICENSE.txt
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Slack GIF Creator
|
|
8
|
+
|
|
9
|
+
A toolkit providing utilities and knowledge for creating animated GIFs optimized for Slack.
|
|
10
|
+
|
|
11
|
+
## Slack Requirements
|
|
12
|
+
|
|
13
|
+
**Dimensions:**
|
|
14
|
+
- Emoji GIFs: 128x128 (recommended)
|
|
15
|
+
- Message GIFs: 480x480
|
|
16
|
+
|
|
17
|
+
**Parameters:**
|
|
18
|
+
- FPS: 10-30 (lower is smaller file size)
|
|
19
|
+
- Colors: 48-128 (fewer = smaller file size)
|
|
20
|
+
- Duration: Keep under 3 seconds for emoji GIFs
|
|
21
|
+
|
|
22
|
+
## Core Workflow
|
|
23
|
+
|
|
24
|
+
```python
|
|
25
|
+
from core.gif_builder import GIFBuilder
|
|
26
|
+
from PIL import Image, ImageDraw
|
|
27
|
+
|
|
28
|
+
# 1. Create builder
|
|
29
|
+
builder = GIFBuilder(width=128, height=128, fps=10)
|
|
30
|
+
|
|
31
|
+
# 2. Generate frames
|
|
32
|
+
for i in range(12):
|
|
33
|
+
frame = Image.new('RGB', (128, 128), (240, 248, 255))
|
|
34
|
+
draw = ImageDraw.Draw(frame)
|
|
35
|
+
|
|
36
|
+
# Draw your animation using PIL primitives
|
|
37
|
+
# (circles, polygons, lines, etc.)
|
|
38
|
+
|
|
39
|
+
builder.add_frame(frame)
|
|
40
|
+
|
|
41
|
+
# 3. Save with optimization
|
|
42
|
+
builder.save('output.gif', num_colors=48, optimize_for_emoji=True)
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Drawing Graphics
|
|
46
|
+
|
|
47
|
+
### Working with User-Uploaded Images
|
|
48
|
+
If a user uploads an image, consider whether they want to:
|
|
49
|
+
- **Use it directly** (e.g., "animate this", "split this into frames")
|
|
50
|
+
- **Use it as inspiration** (e.g., "make something like this")
|
|
51
|
+
|
|
52
|
+
Load and work with images using PIL:
|
|
53
|
+
```python
|
|
54
|
+
from PIL import Image
|
|
55
|
+
|
|
56
|
+
uploaded = Image.open('file.png')
|
|
57
|
+
# Use directly, or just as reference for colors/style
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Drawing from Scratch
|
|
61
|
+
When drawing graphics from scratch, use PIL ImageDraw primitives:
|
|
62
|
+
|
|
63
|
+
```python
|
|
64
|
+
from PIL import ImageDraw
|
|
65
|
+
|
|
66
|
+
draw = ImageDraw.Draw(frame)
|
|
67
|
+
|
|
68
|
+
# Circles/ovals
|
|
69
|
+
draw.ellipse([x1, y1, x2, y2], fill=(r, g, b), outline=(r, g, b), width=3)
|
|
70
|
+
|
|
71
|
+
# Stars, triangles, any polygon
|
|
72
|
+
points = [(x1, y1), (x2, y2), (x3, y3), ...]
|
|
73
|
+
draw.polygon(points, fill=(r, g, b), outline=(r, g, b), width=3)
|
|
74
|
+
|
|
75
|
+
# Lines
|
|
76
|
+
draw.line([(x1, y1), (x2, y2)], fill=(r, g, b), width=5)
|
|
77
|
+
|
|
78
|
+
# Rectangles
|
|
79
|
+
draw.rectangle([x1, y1, x2, y2], fill=(r, g, b), outline=(r, g, b), width=3)
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
**Don't use:** Emoji fonts (unreliable across platforms) or assume pre-packaged graphics exist in this skill.
|
|
83
|
+
|
|
84
|
+
### Making Graphics Look Good
|
|
85
|
+
|
|
86
|
+
Graphics should look polished and creative, not basic. Here's how:
|
|
87
|
+
|
|
88
|
+
**Use thicker lines** - Always set `width=2` or higher for outlines and lines. Thin lines (width=1) look choppy and amateurish.
|
|
89
|
+
|
|
90
|
+
**Add visual depth**:
|
|
91
|
+
- Use gradients for backgrounds (`create_gradient_background`)
|
|
92
|
+
- Layer multiple shapes for complexity (e.g., a star with a smaller star inside)
|
|
93
|
+
|
|
94
|
+
**Make shapes more interesting**:
|
|
95
|
+
- Don't just draw a plain circle - add highlights, rings, or patterns
|
|
96
|
+
- Stars can have glows (draw larger, semi-transparent versions behind)
|
|
97
|
+
- Combine multiple shapes (stars + sparkles, circles + rings)
|
|
98
|
+
|
|
99
|
+
**Pay attention to colors**:
|
|
100
|
+
- Use vibrant, complementary colors
|
|
101
|
+
- Add contrast (dark outlines on light shapes, light outlines on dark shapes)
|
|
102
|
+
- Consider the overall composition
|
|
103
|
+
|
|
104
|
+
**For complex shapes** (hearts, snowflakes, etc.):
|
|
105
|
+
- Use combinations of polygons and ellipses
|
|
106
|
+
- Calculate points carefully for symmetry
|
|
107
|
+
- Add details (a heart can have a highlight curve, snowflakes have intricate branches)
|
|
108
|
+
|
|
109
|
+
Be creative and detailed! A good Slack GIF should look polished, not like placeholder graphics.
|
|
110
|
+
|
|
111
|
+
## Available Utilities
|
|
112
|
+
|
|
113
|
+
### GIFBuilder (`core.gif_builder`)
|
|
114
|
+
Assembles frames and optimizes for Slack:
|
|
115
|
+
```python
|
|
116
|
+
builder = GIFBuilder(width=128, height=128, fps=10)
|
|
117
|
+
builder.add_frame(frame) # Add PIL Image
|
|
118
|
+
builder.add_frames(frames) # Add list of frames
|
|
119
|
+
builder.save('out.gif', num_colors=48, optimize_for_emoji=True, remove_duplicates=True)
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### Validators (`core.validators`)
|
|
123
|
+
Check if GIF meets Slack requirements:
|
|
124
|
+
```python
|
|
125
|
+
from core.validators import validate_gif, is_slack_ready
|
|
126
|
+
|
|
127
|
+
# Detailed validation
|
|
128
|
+
passes, info = validate_gif('my.gif', is_emoji=True, verbose=True)
|
|
129
|
+
|
|
130
|
+
# Quick check
|
|
131
|
+
if is_slack_ready('my.gif'):
|
|
132
|
+
print("Ready!")
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### Easing Functions (`core.easing`)
|
|
136
|
+
Smooth motion instead of linear:
|
|
137
|
+
```python
|
|
138
|
+
from core.easing import interpolate
|
|
139
|
+
|
|
140
|
+
# Progress from 0.0 to 1.0
|
|
141
|
+
t = i / (num_frames - 1)
|
|
142
|
+
|
|
143
|
+
# Apply easing
|
|
144
|
+
y = interpolate(start=0, end=400, t=t, easing='ease_out')
|
|
145
|
+
|
|
146
|
+
# Available: linear, ease_in, ease_out, ease_in_out,
|
|
147
|
+
# bounce_out, elastic_out, back_out
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
### Frame Helpers (`core.frame_composer`)
|
|
151
|
+
Convenience functions for common needs:
|
|
152
|
+
```python
|
|
153
|
+
from core.frame_composer import (
|
|
154
|
+
create_blank_frame, # Solid color background
|
|
155
|
+
create_gradient_background, # Vertical gradient
|
|
156
|
+
draw_circle, # Helper for circles
|
|
157
|
+
draw_text, # Simple text rendering
|
|
158
|
+
draw_star # 5-pointed star
|
|
159
|
+
)
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
## Animation Concepts
|
|
163
|
+
|
|
164
|
+
### Shake/Vibrate
|
|
165
|
+
Offset object position with oscillation:
|
|
166
|
+
- Use `math.sin()` or `math.cos()` with frame index
|
|
167
|
+
- Add small random variations for natural feel
|
|
168
|
+
- Apply to x and/or y position
|
|
169
|
+
|
|
170
|
+
### Pulse/Heartbeat
|
|
171
|
+
Scale object size rhythmically:
|
|
172
|
+
- Use `math.sin(t * frequency * 2 * math.pi)` for smooth pulse
|
|
173
|
+
- For heartbeat: two quick pulses then pause (adjust sine wave)
|
|
174
|
+
- Scale between 0.8 and 1.2 of base size
|
|
175
|
+
|
|
176
|
+
### Bounce
|
|
177
|
+
Object falls and bounces:
|
|
178
|
+
- Use `interpolate()` with `easing='bounce_out'` for landing
|
|
179
|
+
- Use `easing='ease_in'` for falling (accelerating)
|
|
180
|
+
- Apply gravity by increasing y velocity each frame
|
|
181
|
+
|
|
182
|
+
### Spin/Rotate
|
|
183
|
+
Rotate object around center:
|
|
184
|
+
- PIL: `image.rotate(angle, resample=Image.BICUBIC)`
|
|
185
|
+
- For wobble: use sine wave for angle instead of linear
|
|
186
|
+
|
|
187
|
+
### Fade In/Out
|
|
188
|
+
Gradually appear or disappear:
|
|
189
|
+
- Create RGBA image, adjust alpha channel
|
|
190
|
+
- Or use `Image.blend(image1, image2, alpha)`
|
|
191
|
+
- Fade in: alpha from 0 to 1
|
|
192
|
+
- Fade out: alpha from 1 to 0
|
|
193
|
+
|
|
194
|
+
### Slide
|
|
195
|
+
Move object from off-screen to position:
|
|
196
|
+
- Start position: outside frame bounds
|
|
197
|
+
- End position: target location
|
|
198
|
+
- Use `interpolate()` with `easing='ease_out'` for smooth stop
|
|
199
|
+
- For overshoot: use `easing='back_out'`
|
|
200
|
+
|
|
201
|
+
### Zoom
|
|
202
|
+
Scale and position for zoom effect:
|
|
203
|
+
- Zoom in: scale from 0.1 to 2.0, crop center
|
|
204
|
+
- Zoom out: scale from 2.0 to 1.0
|
|
205
|
+
- Can add motion blur for drama (PIL filter)
|
|
206
|
+
|
|
207
|
+
### Explode/Particle Burst
|
|
208
|
+
Create particles radiating outward:
|
|
209
|
+
- Generate particles with random angles and velocities
|
|
210
|
+
- Update each particle: `x += vx`, `y += vy`
|
|
211
|
+
- Add gravity: `vy += gravity_constant`
|
|
212
|
+
- Fade out particles over time (reduce alpha)
|
|
213
|
+
|
|
214
|
+
## Optimization Strategies
|
|
215
|
+
|
|
216
|
+
Only when asked to make the file size smaller, implement a few of the following methods:
|
|
217
|
+
|
|
218
|
+
1. **Fewer frames** - Lower FPS (10 instead of 20) or shorter duration
|
|
219
|
+
2. **Fewer colors** - `num_colors=48` instead of 128
|
|
220
|
+
3. **Smaller dimensions** - 128x128 instead of 480x480
|
|
221
|
+
4. **Remove duplicates** - `remove_duplicates=True` in save()
|
|
222
|
+
5. **Emoji mode** - `optimize_for_emoji=True` auto-optimizes
|
|
223
|
+
|
|
224
|
+
```python
|
|
225
|
+
# Maximum optimization for emoji
|
|
226
|
+
builder.save(
|
|
227
|
+
'emoji.gif',
|
|
228
|
+
num_colors=48,
|
|
229
|
+
optimize_for_emoji=True,
|
|
230
|
+
remove_duplicates=True
|
|
231
|
+
)
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
## Philosophy
|
|
235
|
+
|
|
236
|
+
This skill provides:
|
|
237
|
+
- **Knowledge**: Slack's requirements and animation concepts
|
|
238
|
+
- **Utilities**: GIFBuilder, validators, easing functions
|
|
239
|
+
- **Flexibility**: Create the animation logic using PIL primitives
|
|
240
|
+
|
|
241
|
+
It does NOT provide:
|
|
242
|
+
- Rigid animation templates or pre-made functions
|
|
243
|
+
- Emoji font rendering (unreliable across platforms)
|
|
244
|
+
- A library of pre-packaged graphics built into the skill
|
|
245
|
+
|
|
246
|
+
**Note on user uploads**: This skill doesn't include pre-built graphics, but if a user uploads an image, use PIL to load and work with it - interpret based on their request whether they want it used directly or just as inspiration.
|
|
247
|
+
|
|
248
|
+
Be creative! Combine concepts (bouncing + rotating, pulsing + sliding, etc.) and use PIL's full capabilities.
|
|
249
|
+
|
|
250
|
+
## Dependencies
|
|
251
|
+
|
|
252
|
+
```bash
|
|
253
|
+
pip install pillow imageio numpy
|
|
254
|
+
```
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
Easing Functions - Timing functions for smooth animations.
|
|
4
|
+
|
|
5
|
+
Provides various easing functions for natural motion and timing.
|
|
6
|
+
All functions take a value t (0.0 to 1.0) and return eased value (0.0 to 1.0).
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
import math
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def linear(t: float) -> float:
|
|
13
|
+
"""Linear interpolation (no easing)."""
|
|
14
|
+
return t
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def ease_in_quad(t: float) -> float:
|
|
18
|
+
"""Quadratic ease-in (slow start, accelerating)."""
|
|
19
|
+
return t * t
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def ease_out_quad(t: float) -> float:
|
|
23
|
+
"""Quadratic ease-out (fast start, decelerating)."""
|
|
24
|
+
return t * (2 - t)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def ease_in_out_quad(t: float) -> float:
|
|
28
|
+
"""Quadratic ease-in-out (slow start and end)."""
|
|
29
|
+
if t < 0.5:
|
|
30
|
+
return 2 * t * t
|
|
31
|
+
return -1 + (4 - 2 * t) * t
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def ease_in_cubic(t: float) -> float:
|
|
35
|
+
"""Cubic ease-in (slow start)."""
|
|
36
|
+
return t * t * t
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def ease_out_cubic(t: float) -> float:
|
|
40
|
+
"""Cubic ease-out (fast start)."""
|
|
41
|
+
return (t - 1) * (t - 1) * (t - 1) + 1
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def ease_in_out_cubic(t: float) -> float:
|
|
45
|
+
"""Cubic ease-in-out."""
|
|
46
|
+
if t < 0.5:
|
|
47
|
+
return 4 * t * t * t
|
|
48
|
+
return (t - 1) * (2 * t - 2) * (2 * t - 2) + 1
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def ease_in_bounce(t: float) -> float:
|
|
52
|
+
"""Bounce ease-in (bouncy start)."""
|
|
53
|
+
return 1 - ease_out_bounce(1 - t)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def ease_out_bounce(t: float) -> float:
|
|
57
|
+
"""Bounce ease-out (bouncy end)."""
|
|
58
|
+
if t < 1 / 2.75:
|
|
59
|
+
return 7.5625 * t * t
|
|
60
|
+
elif t < 2 / 2.75:
|
|
61
|
+
t -= 1.5 / 2.75
|
|
62
|
+
return 7.5625 * t * t + 0.75
|
|
63
|
+
elif t < 2.5 / 2.75:
|
|
64
|
+
t -= 2.25 / 2.75
|
|
65
|
+
return 7.5625 * t * t + 0.9375
|
|
66
|
+
else:
|
|
67
|
+
t -= 2.625 / 2.75
|
|
68
|
+
return 7.5625 * t * t + 0.984375
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def ease_in_out_bounce(t: float) -> float:
|
|
72
|
+
"""Bounce ease-in-out."""
|
|
73
|
+
if t < 0.5:
|
|
74
|
+
return ease_in_bounce(t * 2) * 0.5
|
|
75
|
+
return ease_out_bounce(t * 2 - 1) * 0.5 + 0.5
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
def ease_in_elastic(t: float) -> float:
|
|
79
|
+
"""Elastic ease-in (spring effect)."""
|
|
80
|
+
if t == 0 or t == 1:
|
|
81
|
+
return t
|
|
82
|
+
return -math.pow(2, 10 * (t - 1)) * math.sin((t - 1.1) * 5 * math.pi)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def ease_out_elastic(t: float) -> float:
|
|
86
|
+
"""Elastic ease-out (spring effect)."""
|
|
87
|
+
if t == 0 or t == 1:
|
|
88
|
+
return t
|
|
89
|
+
return math.pow(2, -10 * t) * math.sin((t - 0.1) * 5 * math.pi) + 1
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
def ease_in_out_elastic(t: float) -> float:
|
|
93
|
+
"""Elastic ease-in-out."""
|
|
94
|
+
if t == 0 or t == 1:
|
|
95
|
+
return t
|
|
96
|
+
t = t * 2 - 1
|
|
97
|
+
if t < 0:
|
|
98
|
+
return -0.5 * math.pow(2, 10 * t) * math.sin((t - 0.1) * 5 * math.pi)
|
|
99
|
+
return math.pow(2, -10 * t) * math.sin((t - 0.1) * 5 * math.pi) * 0.5 + 1
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
# Convenience mapping
|
|
103
|
+
EASING_FUNCTIONS = {
|
|
104
|
+
"linear": linear,
|
|
105
|
+
"ease_in": ease_in_quad,
|
|
106
|
+
"ease_out": ease_out_quad,
|
|
107
|
+
"ease_in_out": ease_in_out_quad,
|
|
108
|
+
"bounce_in": ease_in_bounce,
|
|
109
|
+
"bounce_out": ease_out_bounce,
|
|
110
|
+
"bounce": ease_in_out_bounce,
|
|
111
|
+
"elastic_in": ease_in_elastic,
|
|
112
|
+
"elastic_out": ease_out_elastic,
|
|
113
|
+
"elastic": ease_in_out_elastic,
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
def get_easing(name: str = "linear"):
|
|
118
|
+
"""Get easing function by name."""
|
|
119
|
+
return EASING_FUNCTIONS.get(name, linear)
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
def interpolate(start: float, end: float, t: float, easing: str = "linear") -> float:
|
|
123
|
+
"""
|
|
124
|
+
Interpolate between two values with easing.
|
|
125
|
+
|
|
126
|
+
Args:
|
|
127
|
+
start: Start value
|
|
128
|
+
end: End value
|
|
129
|
+
t: Progress from 0.0 to 1.0
|
|
130
|
+
easing: Name of easing function
|
|
131
|
+
|
|
132
|
+
Returns:
|
|
133
|
+
Interpolated value
|
|
134
|
+
"""
|
|
135
|
+
ease_func = get_easing(easing)
|
|
136
|
+
eased_t = ease_func(t)
|
|
137
|
+
return start + (end - start) * eased_t
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
def ease_back_in(t: float) -> float:
|
|
141
|
+
"""Back ease-in (slight overshoot backward before forward motion)."""
|
|
142
|
+
c1 = 1.70158
|
|
143
|
+
c3 = c1 + 1
|
|
144
|
+
return c3 * t * t * t - c1 * t * t
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
def ease_back_out(t: float) -> float:
|
|
148
|
+
"""Back ease-out (overshoot forward then settle back)."""
|
|
149
|
+
c1 = 1.70158
|
|
150
|
+
c3 = c1 + 1
|
|
151
|
+
return 1 + c3 * pow(t - 1, 3) + c1 * pow(t - 1, 2)
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
def ease_back_in_out(t: float) -> float:
|
|
155
|
+
"""Back ease-in-out (overshoot at both ends)."""
|
|
156
|
+
c1 = 1.70158
|
|
157
|
+
c2 = c1 * 1.525
|
|
158
|
+
if t < 0.5:
|
|
159
|
+
return (pow(2 * t, 2) * ((c2 + 1) * 2 * t - c2)) / 2
|
|
160
|
+
return (pow(2 * t - 2, 2) * ((c2 + 1) * (t * 2 - 2) + c2) + 2) / 2
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
def apply_squash_stretch(
|
|
164
|
+
base_scale: tuple[float, float], intensity: float, direction: str = "vertical"
|
|
165
|
+
) -> tuple[float, float]:
|
|
166
|
+
"""
|
|
167
|
+
Calculate squash and stretch scales for more dynamic animation.
|
|
168
|
+
|
|
169
|
+
Args:
|
|
170
|
+
base_scale: (width_scale, height_scale) base scales
|
|
171
|
+
intensity: Squash/stretch intensity (0.0-1.0)
|
|
172
|
+
direction: 'vertical', 'horizontal', or 'both'
|
|
173
|
+
|
|
174
|
+
Returns:
|
|
175
|
+
(width_scale, height_scale) with squash/stretch applied
|
|
176
|
+
"""
|
|
177
|
+
width_scale, height_scale = base_scale
|
|
178
|
+
|
|
179
|
+
if direction == "vertical":
|
|
180
|
+
# Compress vertically, expand horizontally (preserve volume)
|
|
181
|
+
height_scale *= 1 - intensity * 0.5
|
|
182
|
+
width_scale *= 1 + intensity * 0.5
|
|
183
|
+
elif direction == "horizontal":
|
|
184
|
+
# Compress horizontally, expand vertically
|
|
185
|
+
width_scale *= 1 - intensity * 0.5
|
|
186
|
+
height_scale *= 1 + intensity * 0.5
|
|
187
|
+
elif direction == "both":
|
|
188
|
+
# General squash (both dimensions)
|
|
189
|
+
width_scale *= 1 - intensity * 0.3
|
|
190
|
+
height_scale *= 1 - intensity * 0.3
|
|
191
|
+
|
|
192
|
+
return (width_scale, height_scale)
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
def calculate_arc_motion(
|
|
196
|
+
start: tuple[float, float], end: tuple[float, float], height: float, t: float
|
|
197
|
+
) -> tuple[float, float]:
|
|
198
|
+
"""
|
|
199
|
+
Calculate position along a parabolic arc (natural motion path).
|
|
200
|
+
|
|
201
|
+
Args:
|
|
202
|
+
start: (x, y) starting position
|
|
203
|
+
end: (x, y) ending position
|
|
204
|
+
height: Arc height at midpoint (positive = upward)
|
|
205
|
+
t: Progress (0.0-1.0)
|
|
206
|
+
|
|
207
|
+
Returns:
|
|
208
|
+
(x, y) position along arc
|
|
209
|
+
"""
|
|
210
|
+
x1, y1 = start
|
|
211
|
+
x2, y2 = end
|
|
212
|
+
|
|
213
|
+
# Linear interpolation for x
|
|
214
|
+
x = x1 + (x2 - x1) * t
|
|
215
|
+
|
|
216
|
+
# Parabolic interpolation for y
|
|
217
|
+
# y = start + progress * (end - start) + arc_offset
|
|
218
|
+
# Arc offset peaks at t=0.5
|
|
219
|
+
arc_offset = 4 * height * t * (1 - t)
|
|
220
|
+
y = y1 + (y2 - y1) * t - arc_offset
|
|
221
|
+
|
|
222
|
+
return (x, y)
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
# Add new easing functions to the convenience mapping
|
|
226
|
+
EASING_FUNCTIONS.update(
|
|
227
|
+
{
|
|
228
|
+
"back_in": ease_back_in,
|
|
229
|
+
"back_out": ease_back_out,
|
|
230
|
+
"back_in_out": ease_back_in_out,
|
|
231
|
+
"anticipate": ease_back_in, # Alias
|
|
232
|
+
"overshoot": ease_back_out, # Alias
|
|
233
|
+
}
|
|
234
|
+
)
|