opencode-skills-collection 4.0.53 → 4.0.55
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/bundled-skills/.antigravity-install-manifest.json +3 -2
- package/bundled-skills/00-andruia-consultant/SKILL.md +6 -0
- package/bundled-skills/007/SKILL.md +2 -610
- package/bundled-skills/007/references/detailed-guide.md +647 -0
- package/bundled-skills/10-andruia-skill-smith/SKILL.md +6 -0
- package/bundled-skills/20-andruia-niche-intelligence/SKILL.md +6 -0
- package/bundled-skills/2slides-ppt-generator/SKILL.md +2 -741
- package/bundled-skills/2slides-ppt-generator/references/detailed-guide.md +761 -0
- package/bundled-skills/ab-test-setup/SKILL.md +59 -27
- package/bundled-skills/ab-testing/SKILL.md +1 -1
- package/bundled-skills/acceptance-orchestrator/SKILL.md +6 -0
- package/bundled-skills/accint-commitments/SKILL.md +6 -0
- package/bundled-skills/accint-frames/SKILL.md +6 -0
- package/bundled-skills/accint-solve/SKILL.md +6 -0
- package/bundled-skills/advogado-criminal/SKILL.md +2 -912
- package/bundled-skills/advogado-criminal/references/detailed-guide.md +946 -0
- package/bundled-skills/advogado-especialista/SKILL.md +2 -1071
- package/bundled-skills/advogado-especialista/references/detailed-guide.md +1114 -0
- package/bundled-skills/agent-evaluation/SKILL.md +53 -1102
- package/bundled-skills/agent-evaluation/references/architecture-sketches.md +1112 -0
- package/bundled-skills/agent-memory/SKILL.md +6 -0
- package/bundled-skills/agent-memory-systems/SKILL.md +8 -1042
- package/bundled-skills/agent-memory-systems/references/detailed-guide.md +1088 -0
- package/bundled-skills/agent-squad/SKILL.md +1 -0
- package/bundled-skills/agent-tool-builder/SKILL.md +2 -624
- package/bundled-skills/agent-tool-builder/references/detailed-guide.md +650 -0
- package/bundled-skills/agentic-actions-auditor/SKILL.md +6 -0
- package/bundled-skills/agentmail/SKILL.md +1 -0
- package/bundled-skills/agentphone/SKILL.md +5 -1323
- package/bundled-skills/agentphone/references/detailed-guide.md +1333 -0
- package/bundled-skills/agents-v2-py/SKILL.md +23 -5
- package/bundled-skills/ai-agents-architect/SKILL.md +25 -25
- package/bundled-skills/ai-analyzer/SKILL.md +1 -0
- package/bundled-skills/ai-md/SKILL.md +25 -0
- package/bundled-skills/ai-md/references/detailed-guide.md +512 -0
- package/bundled-skills/ai-product/SKILL.md +2 -726
- package/bundled-skills/ai-product/references/detailed-guide.md +746 -0
- package/bundled-skills/ai-wrapper-product/SKILL.md +2 -641
- package/bundled-skills/ai-wrapper-product/references/detailed-guide.md +659 -0
- package/bundled-skills/airtable-automation/SKILL.md +6 -0
- package/bundled-skills/algolia-search/SKILL.md +2 -893
- package/bundled-skills/algolia-search/references/detailed-guide.md +901 -0
- package/bundled-skills/alpha-vantage/SKILL.md +1 -0
- package/bundled-skills/alternatives-pages/SKILL.md +7 -1
- package/bundled-skills/amazon-alexa/SKILL.md +2 -627
- package/bundled-skills/amazon-alexa/references/detailed-guide.md +644 -0
- package/bundled-skills/analytics/SKILL.md +1 -1
- package/bundled-skills/analytics-product/SKILL.md +57 -44
- package/bundled-skills/analytics-tracking/SKILL.md +21 -12
- package/bundled-skills/analyze-project/SKILL.md +1 -0
- package/bundled-skills/android-dev/SKILL.md +2 -490
- package/bundled-skills/android-dev/references/detailed-guide.md +506 -0
- package/bundled-skills/angular/SKILL.md +4 -783
- package/bundled-skills/angular/references/detailed-guide.md +801 -0
- package/bundled-skills/angular-best-practices/SKILL.md +4 -535
- package/bundled-skills/angular-best-practices/references/detailed-guide.md +549 -0
- package/bundled-skills/angular-state-management/SKILL.md +4 -608
- package/bundled-skills/angular-state-management/references/detailed-guide.md +618 -0
- package/bundled-skills/angular-ui-patterns/SKILL.md +2 -498
- package/bundled-skills/angular-ui-patterns/references/detailed-guide.md +513 -0
- package/bundled-skills/animejs-animation/SKILL.md +6 -0
- package/bundled-skills/anti-deception/SKILL.md +7 -1
- package/bundled-skills/antigravity-design-expert/SKILL.md +6 -0
- package/bundled-skills/antigravity-maintainer-batch-release/SKILL.md +16 -0
- package/bundled-skills/antigravity-workflows/SKILL.md +20 -3
- package/bundled-skills/antigravity-workflows/references/workflow-cards.md +78 -0
- package/bundled-skills/api-analyzer/SKILL.md +1 -1
- package/bundled-skills/api-designer/SKILL.md +1 -1
- package/bundled-skills/api-integration/SKILL.md +1 -1
- package/bundled-skills/api-onboarding/SKILL.md +1 -1
- package/bundled-skills/api-patterns/SKILL.md +19 -8
- package/bundled-skills/api-patterns/api-style.md +2 -2
- package/bundled-skills/api-patterns/auth.md +3 -2
- package/bundled-skills/api-patterns/graphql.md +1 -1
- package/bundled-skills/api-patterns/scripts/api_validator.py +9 -7
- package/bundled-skills/api-patterns/trpc.md +2 -2
- package/bundled-skills/api-patterns/versioning.md +1 -1
- package/bundled-skills/api-sdk-generator/SKILL.md +1 -1
- package/bundled-skills/api-security-best-practices/SKILL.md +179 -879
- package/bundled-skills/apify-actor-development/SKILL.md +1 -0
- package/bundled-skills/apify-actorization/SKILL.md +1 -0
- package/bundled-skills/apify-audience-analysis/SKILL.md +1 -0
- package/bundled-skills/apify-brand-reputation-monitoring/SKILL.md +1 -0
- package/bundled-skills/apify-competitor-intelligence/SKILL.md +1 -0
- package/bundled-skills/apify-content-analytics/SKILL.md +1 -0
- package/bundled-skills/apify-ecommerce/SKILL.md +1 -0
- package/bundled-skills/apify-influencer-discovery/SKILL.md +1 -0
- package/bundled-skills/apify-lead-generation/SKILL.md +1 -0
- package/bundled-skills/apify-market-research/SKILL.md +1 -0
- package/bundled-skills/apify-trend-analysis/SKILL.md +1 -0
- package/bundled-skills/apify-ultimate-scraper/SKILL.md +1 -0
- package/bundled-skills/appium-skill/SKILL.md +1 -1
- package/bundled-skills/apple-notes-search/SKILL.md +6 -0
- package/bundled-skills/application-performance-performance-optimization/SKILL.md +6 -0
- package/bundled-skills/applicationinsights-web-ts/SKILL.md +1 -1
- package/bundled-skills/ask-matt/SKILL.md +5 -0
- package/bundled-skills/ask-questions-if-underspecified/SKILL.md +1 -0
- package/bundled-skills/astropy/SKILL.md +1 -0
- package/bundled-skills/atlas-contract/SKILL.md +117 -0
- package/bundled-skills/atlas-contract/references/detailed-guide.md +572 -0
- package/bundled-skills/audio-transcriber/SKILL.md +2 -425
- package/bundled-skills/audio-transcriber/references/detailed-guide.md +430 -0
- package/bundled-skills/audit-context-building/SKILL.md +1 -0
- package/bundled-skills/auri-core/SKILL.md +5 -562
- package/bundled-skills/auri-core/references/detailed-guide.md +623 -0
- package/bundled-skills/auth-implementation-patterns/SKILL.md +14 -4
- package/bundled-skills/auth-implementation-patterns/resources/implementation-playbook.md +72 -180
- package/bundled-skills/automated-triage/SKILL.md +6 -0
- package/bundled-skills/autonomous-agent-patterns/SKILL.md +4 -741
- package/bundled-skills/autonomous-agent-patterns/references/detailed-guide.md +751 -0
- package/bundled-skills/autonomous-agents/SKILL.md +8 -1010
- package/bundled-skills/autonomous-agents/references/detailed-guide.md +1065 -0
- package/bundled-skills/awareness-stage-mapper/SKILL.md +6 -0
- package/bundled-skills/aws-agentic-ai/SKILL.md +7 -1
- package/bundled-skills/aws-cdk-development/SKILL.md +1 -1
- package/bundled-skills/aws-cost-operations/SKILL.md +1 -1
- package/bundled-skills/aws-mcp-setup/SKILL.md +1 -1
- package/bundled-skills/aws-serverless/SKILL.md +2 -1305
- package/bundled-skills/aws-serverless/references/detailed-guide.md +1340 -0
- package/bundled-skills/aws-serverless-eda/SKILL.md +1 -1
- package/bundled-skills/aws-skills/SKILL.md +6 -0
- package/bundled-skills/aws-sst-development/SKILL.md +7 -1
- package/bundled-skills/awt-e2e-testing/SKILL.md +7 -0
- package/bundled-skills/azure-functions/SKILL.md +2 -1321
- package/bundled-skills/azure-functions/references/detailed-guide.md +1356 -0
- package/bundled-skills/azure-maps-search-dotnet/SKILL.md +2 -482
- package/bundled-skills/azure-maps-search-dotnet/references/detailed-guide.md +496 -0
- package/bundled-skills/azure-search-documents-py/SKILL.md +2 -515
- package/bundled-skills/azure-search-documents-py/references/detailed-guide.md +548 -0
- package/bundled-skills/azure-storage-file-share-ts/SKILL.md +2 -481
- package/bundled-skills/azure-storage-file-share-ts/references/detailed-guide.md +500 -0
- package/bundled-skills/azure-storage-queue-ts/SKILL.md +2 -512
- package/bundled-skills/azure-storage-queue-ts/references/detailed-guide.md +530 -0
- package/bundled-skills/backend-development-feature-development/SKILL.md +6 -0
- package/bundled-skills/backend-security-coder/resources/implementation-playbook.md +23 -0
- package/bundled-skills/basecamp-automation/SKILL.md +6 -0
- package/bundled-skills/baseline-ui/SKILL.md +6 -0
- package/bundled-skills/bash-pro/SKILL.md +6 -0
- package/bundled-skills/bdi-mental-states/SKILL.md +1 -0
- package/bundled-skills/beautiful-prose/SKILL.md +1 -0
- package/bundled-skills/bill-gates/SKILL.md +2 -778
- package/bundled-skills/bill-gates/references/detailed-guide.md +784 -0
- package/bundled-skills/biopython/SKILL.md +1 -0
- package/bundled-skills/bitbucket-automation/SKILL.md +6 -0
- package/bundled-skills/blog-writing-guide/SKILL.md +6 -0
- package/bundled-skills/box-automation/SKILL.md +6 -0
- package/bundled-skills/brain-to-docs/SKILL.md +6 -0
- package/bundled-skills/brainstorming/SKILL.md +6 -0
- package/bundled-skills/brand-guidelines/SKILL.md +1 -0
- package/bundled-skills/brand-guidelines-anthropic/SKILL.md +23 -8
- package/bundled-skills/brand-guidelines-community/SKILL.md +23 -8
- package/bundled-skills/brand-perception-psychologist/SKILL.md +6 -0
- package/bundled-skills/brooks-audit/SKILL.md +1 -1
- package/bundled-skills/brooks-debt/SKILL.md +1 -1
- package/bundled-skills/brooks-harness/SKILL.md +1 -1
- package/bundled-skills/brooks-review/SKILL.md +7 -1
- package/bundled-skills/brooks-sweep/SKILL.md +1 -1
- package/bundled-skills/brooks-test/SKILL.md +1 -1
- package/bundled-skills/browser-automation/SKILL.md +18 -1044
- package/bundled-skills/browser-automation/references/detailed-guide.md +852 -0
- package/bundled-skills/bug-hunt-swarm/SKILL.md +7 -1
- package/bundled-skills/build/SKILL.md +5 -627
- package/bundled-skills/build/references/detailed-guide.md +637 -0
- package/bundled-skills/bun-development/SKILL.md +4 -678
- package/bundled-skills/bun-development/references/detailed-guide.md +691 -0
- package/bundled-skills/burpsuite-project-parser/SKILL.md +1 -0
- package/bundled-skills/business-analyst/resources/implementation-playbook.md +23 -0
- package/bundled-skills/c-pro/SKILL.md +6 -0
- package/bundled-skills/calendly-automation/SKILL.md +6 -0
- package/bundled-skills/cc-skill-backend-patterns/SKILL.md +2 -572
- package/bundled-skills/cc-skill-backend-patterns/references/detailed-guide.md +584 -0
- package/bundled-skills/cc-skill-coding-standards/SKILL.md +2 -510
- package/bundled-skills/cc-skill-coding-standards/references/detailed-guide.md +523 -0
- package/bundled-skills/cc-skill-continuous-learning/SKILL.md +49 -7
- package/bundled-skills/cc-skill-continuous-learning/config.json +1 -16
- package/bundled-skills/cc-skill-continuous-learning/evaluate-session.sh +56 -59
- package/bundled-skills/cc-skill-frontend-patterns/SKILL.md +2 -621
- package/bundled-skills/cc-skill-frontend-patterns/references/detailed-guide.md +633 -0
- package/bundled-skills/cc-skill-security-review/SKILL.md +4 -36
- package/bundled-skills/cc-skill-security-review/references/detailed-guide.md +40 -0
- package/bundled-skills/cc-skill-strategic-compact/SKILL.md +53 -7
- package/bundled-skills/cc-skill-strategic-compact/suggest-compact.sh +20 -51
- package/bundled-skills/changelog-updates/SKILL.md +6 -528
- package/bundled-skills/changelog-updates/references/detailed-guide.md +540 -0
- package/bundled-skills/chat-widget/SKILL.md +5 -879
- package/bundled-skills/chat-widget/references/detailed-guide.md +890 -0
- package/bundled-skills/cirq/SKILL.md +1 -0
- package/bundled-skills/citation-management/SKILL.md +3 -960
- package/bundled-skills/citation-management/references/detailed-guide.md +975 -0
- package/bundled-skills/ckw-design/SKILL.md +6 -0
- package/bundled-skills/claimable-postgres/SKILL.md +1 -1
- package/bundled-skills/clarity-gate/SKILL.md +3 -635
- package/bundled-skills/clarity-gate/references/detailed-guide.md +653 -0
- package/bundled-skills/claude-ally-health/SKILL.md +6 -0
- package/bundled-skills/claude-code-expert/SKILL.md +2 -527
- package/bundled-skills/claude-code-expert/references/detailed-guide.md +548 -0
- package/bundled-skills/claude-d3js-skill/SKILL.md +2 -798
- package/bundled-skills/claude-d3js-skill/references/detailed-guide.md +811 -0
- package/bundled-skills/claude-in-chrome-troubleshooting/SKILL.md +1 -0
- package/bundled-skills/claude-scientific-skills/SKILL.md +6 -0
- package/bundled-skills/claude-settings-audit/SKILL.md +1 -0
- package/bundled-skills/claude-speed-reader/SKILL.md +6 -0
- package/bundled-skills/claude-win11-speckit-update-skill/SKILL.md +6 -0
- package/bundled-skills/clean-code/SKILL.md +6 -0
- package/bundled-skills/clerk-auth/SKILL.md +2 -812
- package/bundled-skills/clerk-auth/references/detailed-guide.md +820 -0
- package/bundled-skills/clickup-automation/SKILL.md +6 -0
- package/bundled-skills/closed-loop-delivery/SKILL.md +6 -0
- package/bundled-skills/co-marketing/SKILL.md +1 -1
- package/bundled-skills/code-documentation-doc-generate/SKILL.md +16 -1
- package/bundled-skills/code-documentation-doc-generate/resources/implementation-playbook.md +33 -55
- package/bundled-skills/code-refactoring-context-restore/SKILL.md +40 -177
- package/bundled-skills/code-refactoring-tech-debt/SKILL.md +20 -9
- package/bundled-skills/code-simplifier/SKILL.md +1 -0
- package/bundled-skills/codebase-cleanup-tech-debt/SKILL.md +20 -9
- package/bundled-skills/cold-email/SKILL.md +6 -0
- package/bundled-skills/commit/SKILL.md +1 -0
- package/bundled-skills/community-building/SKILL.md +1 -1
- package/bundled-skills/competitor-alternatives/SKILL.md +2 -740
- package/bundled-skills/competitor-alternatives/references/detailed-guide.md +756 -0
- package/bundled-skills/competitor-profiling/SKILL.md +1 -1
- package/bundled-skills/competitor-tracking/SKILL.md +1 -1
- package/bundled-skills/comprehensive-review-full-review/SKILL.md +6 -0
- package/bundled-skills/comprehensive-review-pr-enhance/SKILL.md +1 -0
- package/bundled-skills/computer-use-agents/SKILL.md +2 -2131
- package/bundled-skills/computer-use-agents/references/detailed-guide.md +2158 -0
- package/bundled-skills/computer-vision-expert/SKILL.md +6 -0
- package/bundled-skills/conductor-setup/SKILL.md +1 -0
- package/bundled-skills/confluence-automation/SKILL.md +6 -0
- package/bundled-skills/constant-time-analysis/SKILL.md +1 -0
- package/bundled-skills/container-security-hardening/SKILL.md +4 -915
- package/bundled-skills/container-security-hardening/references/detailed-guide.md +927 -0
- package/bundled-skills/content-creator/SKILL.md +53 -23
- package/bundled-skills/content-creator/assets/content_calendar_template.md +5 -2
- package/bundled-skills/content-creator/references/brand_guidelines.md +7 -3
- package/bundled-skills/content-creator/references/content_frameworks.md +12 -7
- package/bundled-skills/content-creator/references/social_media_optimization.md +61 -317
- package/bundled-skills/content-creator/scripts/brand_voice_analyzer.py +14 -9
- package/bundled-skills/content-creator/scripts/seo_optimizer.py +31 -94
- package/bundled-skills/context-compression/SKILL.md +1 -0
- package/bundled-skills/context-degradation/SKILL.md +1 -0
- package/bundled-skills/context-fundamentals/SKILL.md +1 -0
- package/bundled-skills/context-management-context-restore/SKILL.md +40 -177
- package/bundled-skills/context-optimization/SKILL.md +1 -0
- package/bundled-skills/convex/SKILL.md +4 -766
- package/bundled-skills/convex/references/detailed-guide.md +772 -0
- package/bundled-skills/copilot-sdk/SKILL.md +4 -496
- package/bundled-skills/copilot-sdk/references/detailed-guide.md +516 -0
- package/bundled-skills/copy-editing/SKILL.md +6 -0
- package/bundled-skills/copywriting/SKILL.md +6 -0
- package/bundled-skills/copywriting-psychologist/SKILL.md +6 -0
- package/bundled-skills/create-branch/SKILL.md +1 -0
- package/bundled-skills/create-pr/SKILL.md +7 -0
- package/bundled-skills/cred-omega/SKILL.md +2 -847
- package/bundled-skills/cred-omega/references/detailed-guide.md +872 -0
- package/bundled-skills/cro/SKILL.md +1 -1
- package/bundled-skills/csharp-pro/SKILL.md +6 -0
- package/bundled-skills/cucumber-skill/SKILL.md +1 -1
- package/bundled-skills/customer-psychographic-profiler/SKILL.md +6 -0
- package/bundled-skills/customer-research/SKILL.md +1 -1
- package/bundled-skills/cv-generator/SKILL.md +4 -828
- package/bundled-skills/cv-generator/references/detailed-guide.md +845 -0
- package/bundled-skills/cypress-skill/SKILL.md +1 -1
- package/bundled-skills/daily-gift/SKILL.md +6 -0
- package/bundled-skills/debug-buttercup/SKILL.md +1 -0
- package/bundled-skills/debugger/SKILL.md +6 -0
- package/bundled-skills/debugging-code/SKILL.md +1 -1
- package/bundled-skills/deepapi/SKILL.md +4 -619
- package/bundled-skills/deepapi/references/detailed-guide.md +627 -0
- package/bundled-skills/delegating-to-agents/SKILL.md +6 -0
- package/bundled-skills/deployment-validation-config-validate/SKILL.md +4 -478
- package/bundled-skills/deployment-validation-config-validate/references/detailed-guide.md +484 -0
- package/bundled-skills/design-it/SKILL.md +6 -0
- package/bundled-skills/design-orchestration/SKILL.md +6 -0
- package/bundled-skills/design-spells/SKILL.md +6 -0
- package/bundled-skills/design-system/SKILL.md +7 -1
- package/bundled-skills/design-taste-frontend/SKILL.md +6 -0
- package/bundled-skills/design-thinking/SKILL.md +6 -0
- package/bundled-skills/design-ux/SKILL.md +7 -1
- package/bundled-skills/deterministic-design/SKILL.md +6 -0
- package/bundled-skills/developer-advocacy/SKILL.md +1 -1
- package/bundled-skills/developer-audience-context/SKILL.md +1 -1
- package/bundled-skills/developer-churn/SKILL.md +5 -625
- package/bundled-skills/developer-churn/references/detailed-guide.md +639 -0
- package/bundled-skills/developer-listening/SKILL.md +7 -1
- package/bundled-skills/developer-onboarding/SKILL.md +6 -474
- package/bundled-skills/developer-onboarding/references/detailed-guide.md +486 -0
- package/bundled-skills/developer-sandbox/SKILL.md +6 -414
- package/bundled-skills/developer-sandbox/references/detailed-guide.md +425 -0
- package/bundled-skills/developer-seo/SKILL.md +1 -1
- package/bundled-skills/developer-signup-flow/SKILL.md +1 -1
- package/bundled-skills/devops-troubleshooter/resources/implementation-playbook.md +23 -0
- package/bundled-skills/devrel-content/SKILL.md +1 -1
- package/bundled-skills/diagnosing-bugs/SKILL.md +5 -0
- package/bundled-skills/diary/SKILL.md +1 -0
- package/bundled-skills/differential-review/SKILL.md +1 -0
- package/bundled-skills/discord-automation/SKILL.md +6 -0
- package/bundled-skills/discord-bot-architect/SKILL.md +2 -1434
- package/bundled-skills/discord-bot-architect/references/detailed-guide.md +1465 -0
- package/bundled-skills/distributed-tracing/SKILL.md +22 -435
- package/bundled-skills/distributed-tracing/references/instrumentation.md +13 -0
- package/bundled-skills/distributed-tracing/references/jaeger-setup.md +13 -0
- package/bundled-skills/distributed-tracing/resources/implementation-playbook.md +23 -0
- package/bundled-skills/django-access-review/SKILL.md +1 -0
- package/bundled-skills/django-perf-review/SKILL.md +1 -0
- package/bundled-skills/django-pro/resources/implementation-playbook.md +23 -0
- package/bundled-skills/doc-coauthoring/SKILL.md +6 -0
- package/bundled-skills/docs-architect/SKILL.md +6 -0
- package/bundled-skills/docs-as-marketing/SKILL.md +1 -1
- package/bundled-skills/documentation-generation-doc-generate/SKILL.md +16 -1
- package/bundled-skills/documentation-generation-doc-generate/resources/implementation-playbook.md +33 -55
- package/bundled-skills/doubt-driven-development/SKILL.md +1 -1
- package/bundled-skills/dropbox-automation/SKILL.md +6 -0
- package/bundled-skills/dwarf-expert/SKILL.md +1 -0
- package/bundled-skills/dx-optimizer/SKILL.md +6 -0
- package/bundled-skills/e2e-testing-patterns/SKILL.md +14 -4
- package/bundled-skills/e2e-testing-patterns/resources/implementation-playbook.md +22 -41
- package/bundled-skills/eas-update-insights/SKILL.md +1 -1
- package/bundled-skills/ecl-harness-engineer/SKILL.md +4 -681
- package/bundled-skills/ecl-harness-engineer/references/detailed-guide.md +691 -0
- package/bundled-skills/efficient-web-research/SKILL.md +1 -0
- package/bundled-skills/electron-development/SKILL.md +4 -820
- package/bundled-skills/electron-development/references/detailed-guide.md +828 -0
- package/bundled-skills/elixir-pro/SKILL.md +6 -0
- package/bundled-skills/elon-musk/SKILL.md +5 -1278
- package/bundled-skills/elon-musk/references/detailed-guide.md +1293 -0
- package/bundled-skills/email-sequence/SKILL.md +2 -915
- package/bundled-skills/email-sequence/references/detailed-guide.md +932 -0
- package/bundled-skills/email-systems/SKILL.md +2 -654
- package/bundled-skills/email-systems/references/detailed-guide.md +669 -0
- package/bundled-skills/embedding-strategies/SKILL.md +40 -64
- package/bundled-skills/embedding-strategies/resources/implementation-playbook.md +23 -0
- package/bundled-skills/emergency-card/SKILL.md +1 -0
- package/bundled-skills/emil-design-eng/SKILL.md +4 -673
- package/bundled-skills/emil-design-eng/references/detailed-guide.md +690 -0
- package/bundled-skills/emotional-arc-designer/SKILL.md +6 -0
- package/bundled-skills/enhance-prompt/SKILL.md +1 -0
- package/bundled-skills/error-debugging-error-analysis/SKILL.md +15 -0
- package/bundled-skills/error-debugging-error-analysis/resources/implementation-playbook.md +122 -1125
- package/bundled-skills/error-debugging-multi-agent-review/SKILL.md +42 -214
- package/bundled-skills/error-detective/SKILL.md +6 -0
- package/bundled-skills/error-diagnostics-error-analysis/SKILL.md +15 -0
- package/bundled-skills/error-diagnostics-error-analysis/resources/implementation-playbook.md +122 -1125
- package/bundled-skills/event-sourcing-architect/SKILL.md +6 -0
- package/bundled-skills/event-staffing-compliance/SKILL.md +6 -0
- package/bundled-skills/event-staffing-ordering/SKILL.md +6 -0
- package/bundled-skills/evolution/SKILL.md +1 -0
- package/bundled-skills/executing-plans/SKILL.md +6 -0
- package/bundled-skills/explain-like-socrates/SKILL.md +6 -0
- package/bundled-skills/expo-deployment/SKILL.md +1 -1
- package/bundled-skills/expo-examples/SKILL.md +1 -1
- package/bundled-skills/expo-module/SKILL.md +1 -1
- package/bundled-skills/expo-observe/SKILL.md +1 -1
- package/bundled-skills/expo-ui/SKILL.md +1 -1
- package/bundled-skills/expo-ui-jetpack-compose/SKILL.md +1 -0
- package/bundled-skills/expo-ui-swift-ui/SKILL.md +1 -0
- package/bundled-skills/fable-safe-prompt/SKILL.md +6 -0
- package/bundled-skills/fal-audio/SKILL.md +6 -0
- package/bundled-skills/fal-generate/SKILL.md +6 -0
- package/bundled-skills/fal-image-edit/SKILL.md +6 -0
- package/bundled-skills/fal-platform/SKILL.md +6 -0
- package/bundled-skills/fal-upscale/SKILL.md +6 -0
- package/bundled-skills/fal-workflow/SKILL.md +6 -0
- package/bundled-skills/family-health-analyzer/SKILL.md +1 -0
- package/bundled-skills/fastapi-pro/resources/implementation-playbook.md +23 -0
- package/bundled-skills/favicon/SKILL.md +1 -0
- package/bundled-skills/fda-food-safety-auditor/SKILL.md +1 -0
- package/bundled-skills/fda-medtech-compliance-auditor/SKILL.md +1 -0
- package/bundled-skills/ffuf-claude-skill/SKILL.md +6 -0
- package/bundled-skills/ffuf-web-fuzzing/SKILL.md +5 -492
- package/bundled-skills/ffuf-web-fuzzing/references/detailed-guide.md +510 -0
- package/bundled-skills/file-organizer/SKILL.md +6 -0
- package/bundled-skills/file-uploads/SKILL.md +6 -0
- package/bundled-skills/filesystem-context/SKILL.md +1 -0
- package/bundled-skills/find-bugs/SKILL.md +7 -0
- package/bundled-skills/find-complementary-founders/scripts/assess_profile.py +7 -1
- package/bundled-skills/firebase/SKILL.md +8 -651
- package/bundled-skills/firebase/references/detailed-guide.md +662 -0
- package/bundled-skills/fitness-analyzer/SKILL.md +1 -0
- package/bundled-skills/fix-review/SKILL.md +6 -0
- package/bundled-skills/fixing-metadata/SKILL.md +7 -1
- package/bundled-skills/food-database-query/SKILL.md +5 -772
- package/bundled-skills/food-database-query/references/detailed-guide.md +785 -0
- package/bundled-skills/form-cro/SKILL.md +6 -0
- package/bundled-skills/fp-async/SKILL.md +5 -716
- package/bundled-skills/fp-async/references/detailed-guide.md +726 -0
- package/bundled-skills/fp-backend/SKILL.md +5 -1313
- package/bundled-skills/fp-backend/references/detailed-guide.md +1323 -0
- package/bundled-skills/fp-data-transforms/SKILL.md +5 -1181
- package/bundled-skills/fp-data-transforms/references/detailed-guide.md +1190 -0
- package/bundled-skills/fp-either-ref/SKILL.md +1 -0
- package/bundled-skills/fp-errors/SKILL.md +5 -835
- package/bundled-skills/fp-errors/references/detailed-guide.md +846 -0
- package/bundled-skills/fp-option-ref/SKILL.md +1 -0
- package/bundled-skills/fp-pipe-ref/SKILL.md +1 -0
- package/bundled-skills/fp-pragmatic/SKILL.md +5 -500
- package/bundled-skills/fp-pragmatic/references/detailed-guide.md +510 -0
- package/bundled-skills/fp-react/SKILL.md +3 -761
- package/bundled-skills/fp-react/references/detailed-guide.md +775 -0
- package/bundled-skills/fp-refactor/SKILL.md +5 -1761
- package/bundled-skills/fp-refactor/references/detailed-guide.md +1775 -0
- package/bundled-skills/fp-taskeither-ref/SKILL.md +1 -0
- package/bundled-skills/fp-ts-errors/SKILL.md +4 -835
- package/bundled-skills/fp-ts-errors/references/detailed-guide.md +846 -0
- package/bundled-skills/fp-ts-pragmatic/SKILL.md +4 -500
- package/bundled-skills/fp-ts-pragmatic/references/detailed-guide.md +510 -0
- package/bundled-skills/fp-ts-react/SKILL.md +4 -763
- package/bundled-skills/fp-ts-react/references/detailed-guide.md +775 -0
- package/bundled-skills/fp-types-ref/SKILL.md +1 -0
- package/bundled-skills/framework-migration-legacy-modernize/SKILL.md +6 -0
- package/bundled-skills/free-tool-strategy/SKILL.md +2 -532
- package/bundled-skills/free-tool-strategy/references/detailed-guide.md +550 -0
- package/bundled-skills/freshdesk-automation/SKILL.md +6 -0
- package/bundled-skills/frontend-architecture/SKILL.md +1 -1
- package/bundled-skills/frontend-data-contracts/SKILL.md +1 -1
- package/bundled-skills/frontend-design/SKILL.md +33 -34
- package/bundled-skills/frontend-observability/SKILL.md +1 -1
- package/bundled-skills/frontend-optimistic-mutations/SKILL.md +1 -1
- package/bundled-skills/frontend-security-coder/SKILL.md +5 -5
- package/bundled-skills/frontend-security-coder/resources/implementation-playbook.md +23 -0
- package/bundled-skills/frontend-seo/SKILL.md +6 -675
- package/bundled-skills/frontend-seo/references/detailed-guide.md +688 -0
- package/bundled-skills/frontend-slides-frontend-slides/SKILL.md +7 -1
- package/bundled-skills/frontend-ui-dark-ts/SKILL.md +2 -561
- package/bundled-skills/frontend-ui-dark-ts/references/detailed-guide.md +573 -0
- package/bundled-skills/full-stack-orchestration-full-stack-feature/SKILL.md +6 -0
- package/bundled-skills/game-development/2d-games/SKILL.md +6 -0
- package/bundled-skills/game-development/mobile-games/SKILL.md +6 -0
- package/bundled-skills/game-development/vr-ar/SKILL.md +6 -0
- package/bundled-skills/gcp-cloud-run/SKILL.md +2 -1303
- package/bundled-skills/gcp-cloud-run/references/detailed-guide.md +1350 -0
- package/bundled-skills/gemini-api-dev/SKILL.md +1 -1
- package/bundled-skills/gemini-live-api-dev/SKILL.md +1 -1
- package/bundled-skills/gemini-omni-flash-api/SKILL.md +1 -1
- package/bundled-skills/geo-fundamentals/SKILL.md +6 -0
- package/bundled-skills/geoffrey-hinton/SKILL.md +5 -1235
- package/bundled-skills/geoffrey-hinton/references/detailed-guide.md +1324 -0
- package/bundled-skills/gh-review-requests/SKILL.md +1 -0
- package/bundled-skills/github-actions-advanced/SKILL.md +4 -971
- package/bundled-skills/github-actions-advanced/references/detailed-guide.md +991 -0
- package/bundled-skills/github-actions-templates/SKILL.md +34 -314
- package/bundled-skills/github-actions-templates/references/common-workflows.md +13 -0
- package/bundled-skills/github-actions-templates/resources/implementation-playbook.md +23 -0
- package/bundled-skills/github-automation/SKILL.md +6 -0
- package/bundled-skills/github-workflow-automation/SKILL.md +4 -826
- package/bundled-skills/github-workflow-automation/references/detailed-guide.md +832 -0
- package/bundled-skills/gitlab-automation/SKILL.md +6 -0
- package/bundled-skills/gmail-automation/SKILL.md +1 -0
- package/bundled-skills/go-rod-master/SKILL.md +2 -496
- package/bundled-skills/go-rod-master/references/detailed-guide.md +508 -0
- package/bundled-skills/goal-analyzer/SKILL.md +5 -596
- package/bundled-skills/goal-analyzer/references/detailed-guide.md +602 -0
- package/bundled-skills/google-calendar-automation/SKILL.md +1 -0
- package/bundled-skills/google-docs-automation/SKILL.md +20 -69
- package/bundled-skills/google-drive-automation/SKILL.md +1 -0
- package/bundled-skills/google-sheets-automation/SKILL.md +21 -128
- package/bundled-skills/google-slides-automation/SKILL.md +20 -128
- package/bundled-skills/googlesheets-automation/SKILL.md +6 -0
- package/bundled-skills/gpt-taste/SKILL.md +6 -0
- package/bundled-skills/grafana-dashboards/SKILL.md +6 -6
- package/bundled-skills/grafana-dashboards/references/dashboard-design.md +13 -0
- package/bundled-skills/grafana-dashboards/resources/implementation-playbook.md +23 -0
- package/bundled-skills/graphql/SKILL.md +8 -1031
- package/bundled-skills/graphql/references/detailed-guide.md +1044 -0
- package/bundled-skills/grill-me/SKILL.md +5 -0
- package/bundled-skills/grill-with-docs/SKILL.md +5 -0
- package/bundled-skills/grilling/SKILL.md +5 -0
- package/bundled-skills/growth-engine/SKILL.md +6 -0
- package/bundled-skills/handoff/SKILL.md +5 -0
- package/bundled-skills/haskell-pro/SKILL.md +6 -0
- package/bundled-skills/headline-psychologist/SKILL.md +6 -0
- package/bundled-skills/health-trend-analyzer/SKILL.md +1 -0
- package/bundled-skills/hig-components-content/SKILL.md +6 -0
- package/bundled-skills/hig-components-controls/SKILL.md +6 -0
- package/bundled-skills/hig-components-dialogs/SKILL.md +6 -0
- package/bundled-skills/hig-components-layout/SKILL.md +6 -0
- package/bundled-skills/hig-components-menus/SKILL.md +6 -0
- package/bundled-skills/hig-components-search/SKILL.md +6 -0
- package/bundled-skills/hig-components-status/SKILL.md +6 -0
- package/bundled-skills/hig-components-system/SKILL.md +6 -0
- package/bundled-skills/hig-foundations/SKILL.md +6 -0
- package/bundled-skills/hig-inputs/SKILL.md +6 -0
- package/bundled-skills/hig-patterns/SKILL.md +6 -0
- package/bundled-skills/hig-platforms/SKILL.md +6 -0
- package/bundled-skills/hig-technologies/SKILL.md +6 -0
- package/bundled-skills/high-end-visual-design/SKILL.md +6 -0
- package/bundled-skills/hosted-agents/SKILL.md +7 -0
- package/bundled-skills/hosted-agents-v2-py/SKILL.md +23 -5
- package/bundled-skills/html-injection-testing/SKILL.md +2 -453
- package/bundled-skills/html-injection-testing/references/detailed-guide.md +462 -0
- package/bundled-skills/hubspot-automation/SKILL.md +6 -0
- package/bundled-skills/hubspot-integration/SKILL.md +8 -807
- package/bundled-skills/hubspot-integration/references/detailed-guide.md +815 -0
- package/bundled-skills/hugging-face-cli/SKILL.md +7 -1
- package/bundled-skills/hugging-face-community-evals/SKILL.md +1 -1
- package/bundled-skills/hugging-face-datasets/SKILL.md +5 -430
- package/bundled-skills/hugging-face-datasets/references/detailed-guide.md +442 -0
- package/bundled-skills/hugging-face-evaluation/SKILL.md +5 -640
- package/bundled-skills/hugging-face-evaluation/references/detailed-guide.md +652 -0
- package/bundled-skills/hugging-face-jobs/SKILL.md +3 -801
- package/bundled-skills/hugging-face-jobs/references/detailed-guide.md +821 -0
- package/bundled-skills/hugging-face-model-trainer/SKILL.md +3 -681
- package/bundled-skills/hugging-face-model-trainer/references/detailed-guide.md +702 -0
- package/bundled-skills/hugging-face-paper-publisher/SKILL.md +5 -617
- package/bundled-skills/hugging-face-paper-publisher/references/detailed-guide.md +624 -0
- package/bundled-skills/hugging-face-papers/SKILL.md +1 -1
- package/bundled-skills/hugging-face-tool-builder/SKILL.md +1 -0
- package/bundled-skills/hugging-face-trackio/SKILL.md +1 -1
- package/bundled-skills/hugging-face-vision-trainer/SKILL.md +5 -534
- package/bundled-skills/hugging-face-vision-trainer/references/detailed-guide.md +549 -0
- package/bundled-skills/huggingface-best/SKILL.md +1 -1
- package/bundled-skills/huggingface-lora-space-builder/SKILL.md +1 -1
- package/bundled-skills/huggingface-spaces/SKILL.md +1 -1
- package/bundled-skills/huggingface-tool-builder/SKILL.md +1 -1
- package/bundled-skills/huggingface-zerogpu/SKILL.md +1 -1
- package/bundled-skills/hugo-to-markdown/SKILL.md +1 -1
- package/bundled-skills/hyperexecute-skill/SKILL.md +7 -1
- package/bundled-skills/iconsax-library/SKILL.md +6 -0
- package/bundled-skills/idea-refine/SKILL.md +1 -1
- package/bundled-skills/identity-mirror/SKILL.md +6 -0
- package/bundled-skills/ilya-sutskever/SKILL.md +2 -1126
- package/bundled-skills/ilya-sutskever/references/detailed-guide.md +1167 -0
- package/bundled-skills/image-generator/SKILL.md +4 -320
- package/bundled-skills/image-generator/references/detailed-guide.md +332 -0
- package/bundled-skills/implement/SKILL.md +6 -0
- package/bundled-skills/incident-responder/SKILL.md +6 -0
- package/bundled-skills/incident-responder/resources/implementation-playbook.md +23 -0
- package/bundled-skills/incident-response-incident-response/SKILL.md +6 -0
- package/bundled-skills/industrial-brutalist-ui/SKILL.md +6 -0
- package/bundled-skills/instagram/scripts/config.py +33 -8
- package/bundled-skills/interactive-portfolio/SKILL.md +2 -482
- package/bundled-skills/interactive-portfolio/references/detailed-guide.md +500 -0
- package/bundled-skills/internal-comms/SKILL.md +20 -1
- package/bundled-skills/internal-comms/examples/3p-updates.md +5 -4
- package/bundled-skills/internal-comms/examples/company-newsletter.md +3 -2
- package/bundled-skills/internal-comms/examples/faq-answers.md +1 -0
- package/bundled-skills/internal-comms/examples/general-comms.md +1 -0
- package/bundled-skills/internal-comms-anthropic/SKILL.md +21 -2
- package/bundled-skills/internal-comms-anthropic/examples/3p-updates.md +5 -4
- package/bundled-skills/internal-comms-anthropic/examples/company-newsletter.md +3 -2
- package/bundled-skills/internal-comms-anthropic/examples/faq-answers.md +1 -0
- package/bundled-skills/internal-comms-anthropic/examples/general-comms.md +1 -0
- package/bundled-skills/internal-comms-community/SKILL.md +21 -2
- package/bundled-skills/internal-comms-community/examples/3p-updates.md +48 -0
- package/bundled-skills/internal-comms-community/examples/company-newsletter.md +66 -0
- package/bundled-skills/internal-comms-community/examples/faq-answers.md +31 -0
- package/bundled-skills/internal-comms-community/examples/general-comms.md +17 -0
- package/bundled-skills/ios-debugger-agent/SKILL.md +6 -0
- package/bundled-skills/ios-developer/resources/implementation-playbook.md +23 -0
- package/bundled-skills/issues/SKILL.md +1 -0
- package/bundled-skills/iterate-pr/SKILL.md +1 -0
- package/bundled-skills/javascript-mastery/SKILL.md +4 -625
- package/bundled-skills/javascript-mastery/references/detailed-guide.md +636 -0
- package/bundled-skills/javascript-pro/SKILL.md +6 -0
- package/bundled-skills/jest-skill/SKILL.md +1 -1
- package/bundled-skills/jira-automation/SKILL.md +6 -0
- package/bundled-skills/jobs-to-be-done-analyst/SKILL.md +6 -0
- package/bundled-skills/junit-5-skill/SKILL.md +1 -1
- package/bundled-skills/junta-leiloeiros/scripts/.snyk +5 -0
- package/bundled-skills/junta-leiloeiros/scripts/requirements.txt +2 -0
- package/bundled-skills/k6-load-testing/SKILL.md +2 -544
- package/bundled-skills/k6-load-testing/references/detailed-guide.md +563 -0
- package/bundled-skills/kaizen/SKILL.md +2 -711
- package/bundled-skills/kaizen/references/detailed-guide.md +720 -0
- package/bundled-skills/kpi-dashboard-design/SKILL.md +7 -67
- package/bundled-skills/kpi-dashboard-design/resources/implementation-playbook.md +23 -0
- package/bundled-skills/kpi-dashboard-design/resources/metric-queries.sql +30 -0
- package/bundled-skills/langfuse/SKILL.md +41 -468
- package/bundled-skills/langgraph/SKILL.md +2 -445
- package/bundled-skills/langgraph/references/detailed-guide.md +455 -0
- package/bundled-skills/laravel-expert/SKILL.md +6 -0
- package/bundled-skills/launch-strategy/SKILL.md +6 -0
- package/bundled-skills/lead-magnets/SKILL.md +6 -0
- package/bundled-skills/learn/SKILL.md +5 -0
- package/bundled-skills/legacy-modernizer/SKILL.md +6 -0
- package/bundled-skills/legal-advisor/SKILL.md +6 -0
- package/bundled-skills/leiloeiro-avaliacao/SKILL.md +2 -469
- package/bundled-skills/leiloeiro-avaliacao/references/detailed-guide.md +503 -0
- package/bundled-skills/leiloeiro-edital/SKILL.md +2 -468
- package/bundled-skills/leiloeiro-edital/references/detailed-guide.md +491 -0
- package/bundled-skills/leiloeiro-mercado/SKILL.md +2 -458
- package/bundled-skills/leiloeiro-mercado/references/detailed-guide.md +488 -0
- package/bundled-skills/leiloeiro-risco/SKILL.md +2 -457
- package/bundled-skills/leiloeiro-risco/references/detailed-guide.md +482 -0
- package/bundled-skills/lesson-generator/SKILL.md +5 -0
- package/bundled-skills/lightning-architecture-review/SKILL.md +6 -0
- package/bundled-skills/lightning-channel-factories/SKILL.md +6 -0
- package/bundled-skills/lightning-factory-explainer/SKILL.md +6 -0
- package/bundled-skills/linear-claude-skill/SKILL.md +4 -502
- package/bundled-skills/linear-claude-skill/references/detailed-guide.md +517 -0
- package/bundled-skills/linkedin-cli/SKILL.md +4 -513
- package/bundled-skills/linkedin-cli/references/detailed-guide.md +520 -0
- package/bundled-skills/lint-and-validate/SKILL.md +17 -39
- package/bundled-skills/lint-and-validate/scripts/lint_runner.py +17 -8
- package/bundled-skills/lint-and-validate/scripts/type_coverage.py +77 -167
- package/bundled-skills/linux-privilege-escalation/SKILL.md +2 -426
- package/bundled-skills/linux-privilege-escalation/references/detailed-guide.md +436 -0
- package/bundled-skills/linux-shell-scripting/SKILL.md +2 -473
- package/bundled-skills/linux-shell-scripting/references/detailed-guide.md +481 -0
- package/bundled-skills/llm-app-patterns/SKILL.md +16 -741
- package/bundled-skills/llm-app-patterns/references/detailed-guide.md +760 -0
- package/bundled-skills/llm-council/SKILL.md +4 -550
- package/bundled-skills/llm-council/references/detailed-guide.md +556 -0
- package/bundled-skills/llm-ops/SKILL.md +6 -0
- package/bundled-skills/local-legal-seo-audit/SKILL.md +6 -0
- package/bundled-skills/logic-diff/SKILL.md +1 -1
- package/bundled-skills/logic-explain/SKILL.md +7 -1
- package/bundled-skills/logic-fix-all/SKILL.md +1 -1
- package/bundled-skills/logic-locate/SKILL.md +1 -1
- package/bundled-skills/logic-review/SKILL.md +1 -1
- package/bundled-skills/loki-mode/SKILL.md +4 -696
- package/bundled-skills/loki-mode/references/detailed-guide.md +717 -0
- package/bundled-skills/longbridge-content/SKILL.md +1 -1
- package/bundled-skills/longbridge-fundamentals/SKILL.md +1 -1
- package/bundled-skills/longbridge-market-data/SKILL.md +1 -1
- package/bundled-skills/lookdev-auto/SKILL.md +6 -0
- package/bundled-skills/loopy/SKILL.md +1 -1
- package/bundled-skills/loss-aversion-designer/SKILL.md +6 -0
- package/bundled-skills/machine-learning-ops-ml-pipeline/SKILL.md +6 -0
- package/bundled-skills/magic-animator/SKILL.md +6 -0
- package/bundled-skills/magic-ui-generator/SKILL.md +6 -0
- package/bundled-skills/mailtrap-setting-up-sending-domain/SKILL.md +6 -0
- package/bundled-skills/makepad-animation/SKILL.md +1 -0
- package/bundled-skills/makepad-basics/SKILL.md +1 -0
- package/bundled-skills/makepad-deployment/SKILL.md +1 -0
- package/bundled-skills/makepad-dsl/SKILL.md +1 -0
- package/bundled-skills/makepad-event-action/SKILL.md +1 -0
- package/bundled-skills/makepad-font/SKILL.md +1 -0
- package/bundled-skills/makepad-layout/SKILL.md +1 -0
- package/bundled-skills/makepad-platform/SKILL.md +1 -0
- package/bundled-skills/makepad-reference/SKILL.md +1 -0
- package/bundled-skills/makepad-shaders/SKILL.md +1 -0
- package/bundled-skills/makepad-skills/SKILL.md +6 -0
- package/bundled-skills/makepad-splash/SKILL.md +1 -0
- package/bundled-skills/makepad-widgets/SKILL.md +1 -0
- package/bundled-skills/manage-skills/SKILL.md +1 -0
- package/bundled-skills/marketing-plan/SKILL.md +1 -1
- package/bundled-skills/matematico-tao/SKILL.md +2 -632
- package/bundled-skills/matematico-tao/references/detailed-guide.md +651 -0
- package/bundled-skills/matplotlib/SKILL.md +1 -0
- package/bundled-skills/maxia/SKILL.md +1 -0
- package/bundled-skills/mcp-builder/SKILL.md +46 -14
- package/bundled-skills/mcp-builder/reference/evaluation.md +69 -226
- package/bundled-skills/mcp-builder/reference/mcp_best_practices.md +8 -5
- package/bundled-skills/mcp-builder/reference/node_mcp_server.md +46 -144
- package/bundled-skills/mcp-builder/reference/python_mcp_server.md +42 -80
- package/bundled-skills/mcp-builder/scripts/connections.py +18 -11
- package/bundled-skills/mcp-builder/scripts/evaluation.py +88 -95
- package/bundled-skills/mcp-builder/scripts/example_evaluation.xml +1 -1
- package/bundled-skills/mcp-builder/scripts/requirements.txt +4 -2
- package/bundled-skills/mental-health-analyzer/SKILL.md +5 -974
- package/bundled-skills/mental-health-analyzer/references/detailed-guide.md +1014 -0
- package/bundled-skills/micro-saas-launcher/SKILL.md +2 -473
- package/bundled-skills/micro-saas-launcher/references/detailed-guide.md +491 -0
- package/bundled-skills/minecraft-bukkit-pro/SKILL.md +6 -0
- package/bundled-skills/minimalist-ui/SKILL.md +6 -0
- package/bundled-skills/moatmri/SKILL.md +6 -0
- package/bundled-skills/mobile-developer/resources/implementation-playbook.md +23 -0
- package/bundled-skills/molykit/SKILL.md +1 -0
- package/bundled-skills/monday-automation/SKILL.md +6 -0
- package/bundled-skills/monopoly/SKILL.md +1 -0
- package/bundled-skills/monopoly/patterns/SKILL.md +1 -0
- package/bundled-skills/monopoly/scale-benchmarks/SKILL.md +1 -0
- package/bundled-skills/monopoly/security-checklist/SKILL.md +6 -0
- package/bundled-skills/monopoly/tech-matrix/SKILL.md +1 -0
- package/bundled-skills/monorepo-architect/SKILL.md +6 -0
- package/bundled-skills/monte-carlo-analyze-root-cause/SKILL.md +1 -1
- package/bundled-skills/monte-carlo-performance-diagnosis/SKILL.md +7 -1
- package/bundled-skills/monte-carlo-validation-notebook/SKILL.md +4 -601
- package/bundled-skills/monte-carlo-validation-notebook/references/detailed-guide.md +613 -0
- package/bundled-skills/moodle-external-api-development/SKILL.md +4 -517
- package/bundled-skills/moodle-external-api-development/references/detailed-guide.md +529 -0
- package/bundled-skills/multi-agent-architect/SKILL.md +1 -0
- package/bundled-skills/multi-agent-brainstorming/SKILL.md +6 -0
- package/bundled-skills/multi-agent-patterns/SKILL.md +1 -0
- package/bundled-skills/multi-platform-apps-multi-platform/SKILL.md +6 -0
- package/bundled-skills/multi-platform-apps-multi-platform/resources/implementation-playbook.md +23 -0
- package/bundled-skills/n8n-code-javascript/SKILL.md +3 -667
- package/bundled-skills/n8n-code-javascript/references/detailed-guide.md +683 -0
- package/bundled-skills/n8n-code-python/SKILL.md +3 -664
- package/bundled-skills/n8n-code-python/references/detailed-guide.md +682 -0
- package/bundled-skills/n8n-expression-syntax/SKILL.md +5 -401
- package/bundled-skills/n8n-expression-syntax/references/detailed-guide.md +416 -0
- package/bundled-skills/n8n-mcp-tools-expert/SKILL.md +5 -485
- package/bundled-skills/n8n-mcp-tools-expert/references/detailed-guide.md +499 -0
- package/bundled-skills/n8n-node-configuration/SKILL.md +5 -775
- package/bundled-skills/n8n-node-configuration/references/detailed-guide.md +789 -0
- package/bundled-skills/n8n-validation-expert/SKILL.md +5 -679
- package/bundled-skills/n8n-validation-expert/references/detailed-guide.md +694 -0
- package/bundled-skills/n8n-workflow-patterns/SKILL.md +1 -0
- package/bundled-skills/nanobanana-ppt-skills/SKILL.md +6 -0
- package/bundled-skills/native-data-fetching/SKILL.md +2 -456
- package/bundled-skills/native-data-fetching/references/detailed-guide.md +465 -0
- package/bundled-skills/neon-ai-gateway/SKILL.md +1 -1
- package/bundled-skills/neon-functions/SKILL.md +1 -1
- package/bundled-skills/neon-object-storage/SKILL.md +1 -1
- package/bundled-skills/neon-postgres/SKILL.md +1 -1
- package/bundled-skills/neon-postgres-branches/SKILL.md +1 -1
- package/bundled-skills/neon-postgres-egress-optimizer/SKILL.md +1 -1
- package/bundled-skills/nerdzao-elite/SKILL.md +6 -0
- package/bundled-skills/nerdzao-elite-gemini-high/SKILL.md +6 -0
- package/bundled-skills/nestjs-expert/SKILL.md +2 -524
- package/bundled-skills/nestjs-expert/references/detailed-guide.md +539 -0
- package/bundled-skills/networkx/SKILL.md +1 -0
- package/bundled-skills/new-rails-project/SKILL.md +7 -0
- package/bundled-skills/newman-cicd-integration/SKILL.md +1 -1
- package/bundled-skills/nika/SKILL.md +1 -0
- package/bundled-skills/nosql-expert/SKILL.md +6 -0
- package/bundled-skills/not-a-vibe-coder/SKILL.md +7 -0
- package/bundled-skills/notebooklm/scripts/config.py +33 -11
- package/bundled-skills/notion-template-business/SKILL.md +2 -505
- package/bundled-skills/notion-template-business/references/detailed-guide.md +523 -0
- package/bundled-skills/nutrition-analyzer/SKILL.md +5 -766
- package/bundled-skills/nutrition-analyzer/references/detailed-guide.md +775 -0
- package/bundled-skills/objection-preemptor/SKILL.md +6 -0
- package/bundled-skills/observability-and-instrumentation/SKILL.md +5 -2
- package/bundled-skills/observability-and-instrumentation/references/observability-checklist.md +13 -0
- package/bundled-skills/observability-engineer/SKILL.md +16 -8
- package/bundled-skills/obsidian-bases/SKILL.md +4 -366
- package/bundled-skills/obsidian-bases/references/detailed-guide.md +380 -0
- package/bundled-skills/occupational-health-analyzer/SKILL.md +1 -0
- package/bundled-skills/odoo-accounting-setup/SKILL.md +1 -0
- package/bundled-skills/odoo-automated-tests/SKILL.md +1 -0
- package/bundled-skills/odoo-backup-strategy/SKILL.md +1 -0
- package/bundled-skills/odoo-docker-deployment/SKILL.md +1 -0
- package/bundled-skills/odoo-ecommerce-configurator/SKILL.md +1 -0
- package/bundled-skills/odoo-edi-connector/SKILL.md +1 -0
- package/bundled-skills/odoo-hr-payroll-setup/SKILL.md +1 -0
- package/bundled-skills/odoo-inventory-optimizer/SKILL.md +1 -0
- package/bundled-skills/odoo-l10n-compliance/SKILL.md +1 -0
- package/bundled-skills/odoo-manufacturing-advisor/SKILL.md +1 -0
- package/bundled-skills/odoo-migration-helper/SKILL.md +1 -0
- package/bundled-skills/odoo-module-developer/SKILL.md +1 -0
- package/bundled-skills/odoo-orm-expert/SKILL.md +1 -0
- package/bundled-skills/odoo-performance-tuner/SKILL.md +1 -0
- package/bundled-skills/odoo-project-timesheet/SKILL.md +1 -0
- package/bundled-skills/odoo-purchase-workflow/SKILL.md +1 -0
- package/bundled-skills/odoo-qweb-templates/SKILL.md +1 -0
- package/bundled-skills/odoo-rpc-api/SKILL.md +1 -0
- package/bundled-skills/odoo-sales-crm-expert/SKILL.md +1 -0
- package/bundled-skills/odoo-security-rules/SKILL.md +1 -0
- package/bundled-skills/odoo-shopify-integration/SKILL.md +1 -0
- package/bundled-skills/odoo-upgrade-advisor/SKILL.md +1 -0
- package/bundled-skills/odoo-woocommerce-bridge/SKILL.md +1 -0
- package/bundled-skills/odoo-xml-views-builder/SKILL.md +1 -0
- package/bundled-skills/odw/SKILL.md +6 -0
- package/bundled-skills/offers/SKILL.md +1 -1
- package/bundled-skills/onboarding/SKILL.md +1 -1
- package/bundled-skills/onboarding-psychologist/SKILL.md +6 -0
- package/bundled-skills/one-drive-automation/SKILL.md +6 -0
- package/bundled-skills/openapi-spec-generator/SKILL.md +1 -1
- package/bundled-skills/oral-health-analyzer/SKILL.md +8 -515
- package/bundled-skills/oral-health-analyzer/references/detailed-guide.md +529 -0
- package/bundled-skills/outlook-automation/SKILL.md +6 -0
- package/bundled-skills/pagespeed-enhancer/SKILL.md +4 -520
- package/bundled-skills/pagespeed-enhancer/references/detailed-guide.md +533 -0
- package/bundled-skills/paid-ads/SKILL.md +2 -541
- package/bundled-skills/paid-ads/references/detailed-guide.md +558 -0
- package/bundled-skills/parallel-search-mcp/SKILL.md +134 -0
- package/bundled-skills/payment-integration/SKILL.md +6 -0
- package/bundled-skills/paywall-upgrade-cro/SKILL.md +2 -560
- package/bundled-skills/paywall-upgrade-cro/references/detailed-guide.md +579 -0
- package/bundled-skills/pci-compliance/SKILL.md +23 -469
- package/bundled-skills/pci-compliance/resources/implementation-playbook.md +23 -0
- package/bundled-skills/performance-testing-review-multi-agent-review/SKILL.md +42 -214
- package/bundled-skills/personal-tool-builder/SKILL.md +2 -688
- package/bundled-skills/personal-tool-builder/references/detailed-guide.md +705 -0
- package/bundled-skills/phase-gated-debugging/SKILL.md +6 -0
- package/bundled-skills/photopea-embedded-editor/SKILL.md +3 -1218
- package/bundled-skills/photopea-embedded-editor/references/detailed-guide.md +1252 -0
- package/bundled-skills/php-pro/SKILL.md +6 -0
- package/bundled-skills/pi-custom-model/SKILL.md +6 -0
- package/bundled-skills/pipedrive-automation/SKILL.md +6 -0
- package/bundled-skills/pitch-psychologist/SKILL.md +6 -0
- package/bundled-skills/plaid-fintech/SKILL.md +8 -829
- package/bundled-skills/plaid-fintech/references/detailed-guide.md +837 -0
- package/bundled-skills/plotly/SKILL.md +1 -0
- package/bundled-skills/polars/SKILL.md +1 -0
- package/bundled-skills/popup-cro/SKILL.md +6 -0
- package/bundled-skills/posix-shell-pro/SKILL.md +6 -0
- package/bundled-skills/postgresql-cli/SKILL.md +1 -1
- package/bundled-skills/postman-collection-generator/SKILL.md +1 -1
- package/bundled-skills/postman-newman-automation/SKILL.md +1 -1
- package/bundled-skills/postman-openapi-converter/SKILL.md +1 -1
- package/bundled-skills/postmortem-writing/SKILL.md +1 -1
- package/bundled-skills/postmortem-writing/resources/implementation-playbook.md +23 -0
- package/bundled-skills/power-user-cultivation/SKILL.md +6 -572
- package/bundled-skills/power-user-cultivation/references/detailed-guide.md +585 -0
- package/bundled-skills/pr-writer/SKILL.md +1 -0
- package/bundled-skills/price-psychology-strategist/SKILL.md +6 -0
- package/bundled-skills/pricing/SKILL.md +1 -1
- package/bundled-skills/privacy-mask/SKILL.md +1 -1
- package/bundled-skills/product-decision-agent/SKILL.md +6 -0
- package/bundled-skills/product-inventor/SKILL.md +2 -627
- package/bundled-skills/product-inventor/references/detailed-guide.md +646 -0
- package/bundled-skills/product-manager/SKILL.md +6 -0
- package/bundled-skills/product-marketing/SKILL.md +1 -1
- package/bundled-skills/production-code-audit/SKILL.md +2 -264
- package/bundled-skills/production-code-audit/references/detailed-guide.md +277 -0
- package/bundled-skills/professional-proofreader/SKILL.md +6 -0
- package/bundled-skills/programmatic-seo/SKILL.md +6 -0
- package/bundled-skills/project-development/SKILL.md +1 -0
- package/bundled-skills/project-skill-audit/SKILL.md +6 -0
- package/bundled-skills/public-relations/SKILL.md +1 -1
- package/bundled-skills/pubmed-database/SKILL.md +1 -0
- package/bundled-skills/push-skill-to-github/SKILL.md +6 -0
- package/bundled-skills/pydantic-models-py/SKILL.md +1 -3
- package/bundled-skills/pypict-skill/SKILL.md +6 -0
- package/bundled-skills/pytest-skill/SKILL.md +1 -1
- package/bundled-skills/qiskit/SKILL.md +1 -0
- package/bundled-skills/quant-analyst/SKILL.md +6 -0
- package/bundled-skills/radix-ui-design-system/SKILL.md +2 -693
- package/bundled-skills/radix-ui-design-system/references/detailed-guide.md +711 -0
- package/bundled-skills/rag-engineer/SKILL.md +6 -0
- package/bundled-skills/rclone-cli/SKILL.md +1 -1
- package/bundled-skills/react-flow-architect/SKILL.md +2 -507
- package/bundled-skills/react-flow-architect/references/detailed-guide.md +517 -0
- package/bundled-skills/react-patterns/SKILL.md +6 -0
- package/bundled-skills/read-all-adrs/SKILL.md +6 -0
- package/bundled-skills/readme/SKILL.md +4 -822
- package/bundled-skills/readme/references/detailed-guide.md +829 -0
- package/bundled-skills/redesign-existing-projects/SKILL.md +6 -0
- package/bundled-skills/redis-cli/SKILL.md +1 -1
- package/bundled-skills/referral-program/SKILL.md +2 -508
- package/bundled-skills/referral-program/references/detailed-guide.md +524 -0
- package/bundled-skills/rehabilitation-analyzer/SKILL.md +5 -629
- package/bundled-skills/rehabilitation-analyzer/references/detailed-guide.md +641 -0
- package/bundled-skills/remotion/SKILL.md +1 -0
- package/bundled-skills/research-prompt/SKILL.md +6 -0
- package/bundled-skills/resolving-merge-conflicts/SKILL.md +6 -0
- package/bundled-skills/review-and-simplify-changes/SKILL.md +7 -1
- package/bundled-skills/review-swarm/SKILL.md +7 -1
- package/bundled-skills/risk-manager/SKILL.md +6 -0
- package/bundled-skills/robius-app-architecture/SKILL.md +1 -0
- package/bundled-skills/robius-event-action/SKILL.md +1 -0
- package/bundled-skills/robius-matrix-integration/SKILL.md +1 -0
- package/bundled-skills/robius-state-management/SKILL.md +1 -0
- package/bundled-skills/robius-widget-patterns/SKILL.md +1 -0
- package/bundled-skills/robot-framework-skill/SKILL.md +1 -1
- package/bundled-skills/ruby-pro/SKILL.md +6 -0
- package/bundled-skills/saga-orchestration/SKILL.md +4 -482
- package/bundled-skills/saga-orchestration/references/detailed-guide.md +491 -0
- package/bundled-skills/sales-automator/SKILL.md +6 -0
- package/bundled-skills/salesforce-development/SKILL.md +2 -985
- package/bundled-skills/salesforce-development/references/detailed-guide.md +994 -0
- package/bundled-skills/sam-altman/SKILL.md +5 -1040
- package/bundled-skills/sam-altman/references/detailed-guide.md +1102 -0
- package/bundled-skills/scala-pro/SKILL.md +6 -0
- package/bundled-skills/scanning-tools/SKILL.md +2 -546
- package/bundled-skills/scanning-tools/references/detailed-guide.md +555 -0
- package/bundled-skills/scanpy/SKILL.md +1 -0
- package/bundled-skills/scarcity-urgency-psychologist/SKILL.md +6 -0
- package/bundled-skills/scientific-writing/SKILL.md +3 -691
- package/bundled-skills/scientific-writing/references/detailed-guide.md +702 -0
- package/bundled-skills/scikit-learn/SKILL.md +3 -462
- package/bundled-skills/scikit-learn/references/detailed-guide.md +475 -0
- package/bundled-skills/scroll-experience/SKILL.md +2 -560
- package/bundled-skills/scroll-experience/references/detailed-guide.md +578 -0
- package/bundled-skills/sdk-dx/SKILL.md +6 -517
- package/bundled-skills/sdk-dx/references/detailed-guide.md +530 -0
- package/bundled-skills/seaborn/SKILL.md +5 -661
- package/bundled-skills/seaborn/references/detailed-guide.md +677 -0
- package/bundled-skills/search-specialist/SKILL.md +6 -0
- package/bundled-skills/secrets-management/SKILL.md +24 -349
- package/bundled-skills/secrets-management/references/github-secrets.md +13 -0
- package/bundled-skills/secrets-management/references/vault-setup.md +13 -0
- package/bundled-skills/security/aws-compliance-checker/SKILL.md +4 -492
- package/bundled-skills/security/aws-compliance-checker/references/detailed-guide.md +502 -0
- package/bundled-skills/security-and-hardening/SKILL.md +8 -6
- package/bundled-skills/security-and-hardening/references/security-checklist.md +13 -0
- package/bundled-skills/security-bluebook-builder/SKILL.md +7 -0
- package/bundled-skills/security-scanning-security-hardening/SKILL.md +6 -0
- package/bundled-skills/security-scanning-security-sast/SKILL.md +2 -463
- package/bundled-skills/security-scanning-security-sast/references/detailed-guide.md +476 -0
- package/bundled-skills/segment-cdp/SKILL.md +8 -822
- package/bundled-skills/segment-cdp/references/detailed-guide.md +830 -0
- package/bundled-skills/selenium-skill/SKILL.md +1 -1
- package/bundled-skills/semgrep-rule-creator/SKILL.md +1 -0
- package/bundled-skills/semgrep-rule-variant-creator/SKILL.md +1 -0
- package/bundled-skills/sendgrid-automation/SKILL.md +6 -0
- package/bundled-skills/seo-audit/SKILL.md +33 -44
- package/bundled-skills/seo-content/SKILL.md +6 -0
- package/bundled-skills/seo-content-auditor/SKILL.md +6 -0
- package/bundled-skills/seo-content-planner/resources/implementation-playbook.md +23 -0
- package/bundled-skills/seo-content-writer/SKILL.md +8 -2
- package/bundled-skills/seo-content-writer/resources/implementation-playbook.md +23 -0
- package/bundled-skills/seo-forensic-incident-response/SKILL.md +6 -0
- package/bundled-skills/seo-fundamentals/SKILL.md +6 -0
- package/bundled-skills/seo-programmatic/SKILL.md +6 -0
- package/bundled-skills/sequence-psychologist/SKILL.md +6 -0
- package/bundled-skills/server-management/SKILL.md +6 -0
- package/bundled-skills/service-mesh-expert/SKILL.md +6 -0
- package/bundled-skills/setup-help/SKILL.md +6 -0
- package/bundled-skills/sexual-health-analyzer/SKILL.md +8 -1109
- package/bundled-skills/sexual-health-analyzer/references/detailed-guide.md +1123 -0
- package/bundled-skills/sharp-coder/SKILL.md +1 -0
- package/bundled-skills/sharp-edges/SKILL.md +1 -0
- package/bundled-skills/shodan-reconnaissance/SKILL.md +2 -356
- package/bundled-skills/shodan-reconnaissance/references/detailed-guide.md +366 -0
- package/bundled-skills/shopify-apps/SKILL.md +2 -1477
- package/bundled-skills/shopify-apps/references/detailed-guide.md +1512 -0
- package/bundled-skills/shopify-development/scripts/.snyk +3 -0
- package/bundled-skills/short/SKILL.md +6 -0
- package/bundled-skills/signup-flow-cro/SKILL.md +6 -0
- package/bundled-skills/simplify-code/SKILL.md +6 -0
- package/bundled-skills/skill-creator/SKILL.md +2 -568
- package/bundled-skills/skill-creator/references/detailed-guide.md +581 -0
- package/bundled-skills/skill-creator-ms/SKILL.md +2 -601
- package/bundled-skills/skill-creator-ms/references/detailed-guide.md +614 -0
- package/bundled-skills/skill-improver/SKILL.md +1 -0
- package/bundled-skills/skill-router/SKILL.md +1 -0
- package/bundled-skills/skill-scanner/SKILL.md +1 -0
- package/bundled-skills/skill-security-audit/SKILL.md +87 -0
- package/bundled-skills/skill-seekers/SKILL.md +6 -0
- package/bundled-skills/skill-writer/SKILL.md +1 -0
- package/bundled-skills/skin-health-analyzer/SKILL.md +8 -696
- package/bundled-skills/skin-health-analyzer/references/detailed-guide.md +710 -0
- package/bundled-skills/slack-automation/SKILL.md +6 -0
- package/bundled-skills/slack-bot-builder/SKILL.md +2 -1372
- package/bundled-skills/slack-bot-builder/references/detailed-guide.md +1395 -0
- package/bundled-skills/slack-gif-creator/.snyk +5 -0
- package/bundled-skills/slack-gif-creator/requirements.txt +2 -2
- package/bundled-skills/sleep-analyzer/SKILL.md +5 -764
- package/bundled-skills/sleep-analyzer/references/detailed-guide.md +773 -0
- package/bundled-skills/slo-implementation/SKILL.md +24 -9
- package/bundled-skills/slo-implementation/references/error-budget.md +13 -0
- package/bundled-skills/slo-implementation/references/slo-definitions.md +13 -0
- package/bundled-skills/slo-implementation/resources/implementation-playbook.md +23 -0
- package/bundled-skills/smartui-skill/SKILL.md +1 -1
- package/bundled-skills/smtp-penetration-testing/SKILL.md +2 -346
- package/bundled-skills/smtp-penetration-testing/references/detailed-guide.md +355 -0
- package/bundled-skills/social-content/SKILL.md +2 -797
- package/bundled-skills/social-content/references/detailed-guide.md +816 -0
- package/bundled-skills/social-proof-architect/SKILL.md +6 -0
- package/bundled-skills/software-architecture/SKILL.md +6 -0
- package/bundled-skills/spec-to-code-compliance/SKILL.md +7 -0
- package/bundled-skills/speckit-updater/SKILL.md +1 -0
- package/bundled-skills/speed/SKILL.md +7 -0
- package/bundled-skills/sql-optimization-patterns/SKILL.md +10 -6
- package/bundled-skills/sql-optimization-patterns/resources/implementation-playbook.md +52 -56
- package/bundled-skills/sred-project-organizer/SKILL.md +1 -0
- package/bundled-skills/sred-work-summary/SKILL.md +1 -0
- package/bundled-skills/statsmodels/SKILL.md +3 -586
- package/bundled-skills/statsmodels/references/detailed-guide.md +600 -0
- package/bundled-skills/steve-jobs/SKILL.md +2 -564
- package/bundled-skills/steve-jobs/references/detailed-guide.md +574 -0
- package/bundled-skills/stitch-loop/SKILL.md +1 -0
- package/bundled-skills/stripe-automation/SKILL.md +6 -0
- package/bundled-skills/stripe-integration/SKILL.md +60 -79
- package/bundled-skills/styleseed-design-review/SKILL.md +1 -1
- package/bundled-skills/subagent-orchestrator/SKILL.md +1 -0
- package/bundled-skills/subject-line-psychologist/SKILL.md +6 -0
- package/bundled-skills/supabase/SKILL.md +1 -1
- package/bundled-skills/supabase-automation/SKILL.md +6 -0
- package/bundled-skills/superpowers-lab/SKILL.md +6 -0
- package/bundled-skills/supply-chain-risk-auditor/SKILL.md +7 -0
- package/bundled-skills/swiftui-expert-skill/SKILL.md +1 -1
- package/bundled-skills/sympy/SKILL.md +3 -426
- package/bundled-skills/sympy/references/detailed-guide.md +439 -0
- package/bundled-skills/systematic-debugging/CREATION-LOG.md +3 -0
- package/bundled-skills/systematic-debugging/SKILL.md +30 -34
- package/bundled-skills/systematic-debugging/condition-based-waiting.md +9 -6
- package/bundled-skills/systematic-debugging/defense-in-depth.md +13 -7
- package/bundled-skills/systematic-debugging/find-polluter.sh +77 -57
- package/bundled-skills/systematic-debugging/root-cause-tracing.md +7 -5
- package/bundled-skills/systematic-debugging/test-academic.md +3 -0
- package/bundled-skills/systematic-debugging/test-pressure-1.md +3 -0
- package/bundled-skills/systematic-debugging/test-pressure-2.md +3 -0
- package/bundled-skills/systematic-debugging/test-pressure-3.md +3 -0
- package/bundled-skills/tcm-constitution-analyzer/SKILL.md +5 -655
- package/bundled-skills/tcm-constitution-analyzer/references/detailed-guide.md +660 -0
- package/bundled-skills/tdd-workflows-tdd-cycle/SKILL.md +6 -0
- package/bundled-skills/technical-tutorials/SKILL.md +5 -483
- package/bundled-skills/technical-tutorials/references/detailed-guide.md +496 -0
- package/bundled-skills/telegram/SKILL.md +2 -541
- package/bundled-skills/telegram/assets/boilerplate/nodejs/package-lock.json +1888 -0
- package/bundled-skills/telegram/assets/boilerplate/nodejs/package.json +3 -0
- package/bundled-skills/telegram/references/detailed-guide.md +569 -0
- package/bundled-skills/telegram-mini-app/SKILL.md +2 -643
- package/bundled-skills/telegram-mini-app/references/detailed-guide.md +661 -0
- package/bundled-skills/temporal-python-pro/SKILL.md +6 -0
- package/bundled-skills/terraform-skill/SKILL.md +4 -417
- package/bundled-skills/terraform-skill/references/detailed-guide.md +430 -0
- package/bundled-skills/test-driven-development/SKILL.md +21 -124
- package/bundled-skills/test-driven-development/testing-anti-patterns.md +6 -6
- package/bundled-skills/test-framework-migration-skill/SKILL.md +7 -1
- package/bundled-skills/threat-modeling-expert/SKILL.md +6 -0
- package/bundled-skills/threejs-animation/SKILL.md +5 -551
- package/bundled-skills/threejs-animation/references/detailed-guide.md +566 -0
- package/bundled-skills/threejs-fundamentals/SKILL.md +5 -525
- package/bundled-skills/threejs-fundamentals/references/detailed-guide.md +535 -0
- package/bundled-skills/threejs-geometry/SKILL.md +5 -572
- package/bundled-skills/threejs-geometry/references/detailed-guide.md +587 -0
- package/bundled-skills/threejs-interaction/SKILL.md +5 -666
- package/bundled-skills/threejs-interaction/references/detailed-guide.md +679 -0
- package/bundled-skills/threejs-lighting/SKILL.md +1 -0
- package/bundled-skills/threejs-loaders/SKILL.md +5 -637
- package/bundled-skills/threejs-loaders/references/detailed-guide.md +651 -0
- package/bundled-skills/threejs-materials/SKILL.md +3 -535
- package/bundled-skills/threejs-materials/references/detailed-guide.md +560 -0
- package/bundled-skills/threejs-postprocessing/SKILL.md +5 -617
- package/bundled-skills/threejs-postprocessing/references/detailed-guide.md +630 -0
- package/bundled-skills/threejs-shaders/SKILL.md +5 -679
- package/bundled-skills/threejs-shaders/references/detailed-guide.md +695 -0
- package/bundled-skills/threejs-skills/SKILL.md +4 -683
- package/bundled-skills/threejs-skills/references/detailed-guide.md +693 -0
- package/bundled-skills/threejs-textures/SKILL.md +5 -630
- package/bundled-skills/threejs-textures/references/detailed-guide.md +649 -0
- package/bundled-skills/to-issues/SKILL.md +5 -0
- package/bundled-skills/to-prd/SKILL.md +5 -0
- package/bundled-skills/todoist-automation/SKILL.md +6 -0
- package/bundled-skills/tools-page-seo-optimizer/SKILL.md +2 -580
- package/bundled-skills/tools-page-seo-optimizer/references/detailed-guide.md +602 -0
- package/bundled-skills/top-web-vulnerabilities/SKILL.md +2 -513
- package/bundled-skills/top-web-vulnerabilities/references/detailed-guide.md +523 -0
- package/bundled-skills/train-sentence-transformers/SKILL.md +1 -1
- package/bundled-skills/transformers-js/SKILL.md +5 -669
- package/bundled-skills/transformers-js/references/detailed-guide.md +683 -0
- package/bundled-skills/travel-health-analyzer/SKILL.md +1 -0
- package/bundled-skills/trello-automation/SKILL.md +6 -0
- package/bundled-skills/trigger-dev/SKILL.md +2 -937
- package/bundled-skills/trigger-dev/references/detailed-guide.md +950 -0
- package/bundled-skills/trust-calibrator/SKILL.md +6 -0
- package/bundled-skills/tutorial-engineer/SKILL.md +6 -0
- package/bundled-skills/twilio-communications/SKILL.md +2 -1549
- package/bundled-skills/twilio-communications/references/detailed-guide.md +1574 -0
- package/bundled-skills/typescript-pro/SKILL.md +6 -0
- package/bundled-skills/ui-a11y/SKILL.md +6 -0
- package/bundled-skills/ui-component/SKILL.md +6 -0
- package/bundled-skills/ui-motion/SKILL.md +7 -1
- package/bundled-skills/ui-pattern/SKILL.md +6 -0
- package/bundled-skills/ui-review/SKILL.md +6 -0
- package/bundled-skills/ui-skills/SKILL.md +6 -0
- package/bundled-skills/ui-tokens/SKILL.md +6 -0
- package/bundled-skills/uniprot-database/SKILL.md +1 -0
- package/bundled-skills/unslop-commit/SKILL.md +1 -1
- package/bundled-skills/unslop-file/SKILL.md +1 -1
- package/bundled-skills/unslop-review/SKILL.md +1 -1
- package/bundled-skills/unsplash-integration/SKILL.md +6 -0
- package/bundled-skills/update-swiftui-apis/SKILL.md +1 -1
- package/bundled-skills/upstash-qstash/SKILL.md +2 -919
- package/bundled-skills/upstash-qstash/references/detailed-guide.md +932 -0
- package/bundled-skills/usage-based-pricing/SKILL.md +5 -395
- package/bundled-skills/usage-based-pricing/references/detailed-guide.md +407 -0
- package/bundled-skills/ux-audit/SKILL.md +6 -0
- package/bundled-skills/ux-flow/SKILL.md +6 -0
- package/bundled-skills/ux-persuasion-engineer/SKILL.md +6 -0
- package/bundled-skills/variant-analysis/SKILL.md +1 -0
- package/bundled-skills/varlock/SKILL.md +1 -0
- package/bundled-skills/varlock-claude-skill/SKILL.md +6 -0
- package/bundled-skills/vector-database-engineer/SKILL.md +6 -0
- package/bundled-skills/vector-database-engineer/resources/implementation-playbook.md +23 -0
- package/bundled-skills/vercel-deployment/SKILL.md +2 -650
- package/bundled-skills/vercel-deployment/references/detailed-guide.md +660 -0
- package/bundled-skills/vexor/SKILL.md +6 -0
- package/bundled-skills/vexor-cli/SKILL.md +1 -0
- package/bundled-skills/videodb/scripts/ws_listener.py +8 -1
- package/bundled-skills/visual-emotion-engineer/SKILL.md +6 -0
- package/bundled-skills/vizcom/SKILL.md +6 -0
- package/bundled-skills/voice-agents/SKILL.md +2 -867
- package/bundled-skills/voice-agents/references/detailed-guide.md +890 -0
- package/bundled-skills/voice-ai-development/SKILL.md +2 -583
- package/bundled-skills/voice-ai-development/references/detailed-guide.md +594 -0
- package/bundled-skills/voice-ai-engine-development/SKILL.md +2 -702
- package/bundled-skills/voice-ai-engine-development/references/detailed-guide.md +720 -0
- package/bundled-skills/warren-buffett/SKILL.md +2 -577
- package/bundled-skills/warren-buffett/references/detailed-guide.md +583 -0
- package/bundled-skills/web-performance-optimization/SKILL.md +2 -214
- package/bundled-skills/web-performance-optimization/references/detailed-guide.md +226 -0
- package/bundled-skills/web-scraper/SKILL.md +2 -728
- package/bundled-skills/web-scraper/references/detailed-guide.md +792 -0
- package/bundled-skills/webflow-automation/SKILL.md +6 -0
- package/bundled-skills/weightloss-analyzer/SKILL.md +1 -0
- package/bundled-skills/wellally-tech/SKILL.md +5 -367
- package/bundled-skills/wellally-tech/references/detailed-guide.md +379 -0
- package/bundled-skills/whatsapp-cloud-api/assets/boilerplate/nodejs/package-lock.json +1881 -0
- package/bundled-skills/whatsapp-cloud-api/assets/boilerplate/nodejs/package.json +3 -0
- package/bundled-skills/whatsapp-cloud-api/assets/boilerplate/python/.snyk +3 -0
- package/bundled-skills/wiki-architect/SKILL.md +6 -0
- package/bundled-skills/wiki-changelog/SKILL.md +6 -0
- package/bundled-skills/wiki-onboarding/SKILL.md +6 -0
- package/bundled-skills/wiki-qa/SKILL.md +6 -0
- package/bundled-skills/wiki-researcher/SKILL.md +6 -0
- package/bundled-skills/windows-privilege-escalation/SKILL.md +131 -0
- package/bundled-skills/windows-privilege-escalation/references/detailed-guide.md +397 -0
- package/bundled-skills/wireshark-analysis/SKILL.md +2 -419
- package/bundled-skills/wireshark-analysis/references/detailed-guide.md +429 -0
- package/bundled-skills/wjttc-builder/SKILL.md +1 -1
- package/bundled-skills/wjttc-tester/SKILL.md +1 -1
- package/bundled-skills/wordpress/SKILL.md +2 -572
- package/bundled-skills/wordpress/references/detailed-guide.md +582 -0
- package/bundled-skills/wordpress-penetration-testing/SKILL.md +68 -0
- package/bundled-skills/wordpress-penetration-testing/references/detailed-guide.md +555 -0
- package/bundled-skills/wordpress-plugin-development/SKILL.md +2 -474
- package/bundled-skills/wordpress-plugin-development/references/detailed-guide.md +485 -0
- package/bundled-skills/wordpress-theme-development/SKILL.md +2 -479
- package/bundled-skills/wordpress-theme-development/references/detailed-guide.md +490 -0
- package/bundled-skills/wordpress-woocommerce-development/SKILL.md +2 -605
- package/bundled-skills/wordpress-woocommerce-development/references/detailed-guide.md +615 -0
- package/bundled-skills/workflow-automation/SKILL.md +2 -875
- package/bundled-skills/workflow-automation/references/detailed-guide.md +902 -0
- package/bundled-skills/writing-great-skills/SKILL.md +5 -0
- package/bundled-skills/x-article-publisher-skill/SKILL.md +6 -0
- package/bundled-skills/x402-express-wrapper/SKILL.md +1 -0
- package/bundled-skills/xss-html-injection/SKILL.md +2 -389
- package/bundled-skills/xss-html-injection/references/detailed-guide.md +399 -0
- package/bundled-skills/yann-lecun/SKILL.md +2 -1431
- package/bundled-skills/yann-lecun/references/detailed-guide.md +1484 -0
- package/bundled-skills/yann-lecun-filosofia/SKILL.md +6 -0
- package/bundled-skills/yann-lecun-tecnico/SKILL.md +2 -485
- package/bundled-skills/yann-lecun-tecnico/references/detailed-guide.md +502 -0
- package/bundled-skills/youtube-seo-optimizer/SKILL.md +4 -884
- package/bundled-skills/youtube-seo-optimizer/references/detailed-guide.md +907 -0
- package/bundled-skills/zapier-make-patterns/SKILL.md +2 -728
- package/bundled-skills/zapier-make-patterns/references/detailed-guide.md +752 -0
- package/bundled-skills/zipai-optimizer/SKILL.md +7 -0
- package/bundled-skills/zoom-automation/SKILL.md +6 -0
- package/package.json +1 -1
- package/skills_index.json +541 -383
- package/bundled-skills/docs/AUDIT.md +0 -3
- package/bundled-skills/docs/BUNDLES.md +0 -3
- package/bundled-skills/docs/CATEGORIZATION_IMPLEMENTATION.md +0 -3
- package/bundled-skills/docs/CI_DRIFT_FIX.md +0 -3
- package/bundled-skills/docs/COMMUNITY_GUIDELINES.md +0 -3
- package/bundled-skills/docs/DATE_TRACKING_IMPLEMENTATION.md +0 -3
- package/bundled-skills/docs/EXAMPLES.md +0 -3
- package/bundled-skills/docs/FAQ.md +0 -3
- package/bundled-skills/docs/GETTING_STARTED.md +0 -3
- package/bundled-skills/docs/KIRO_INTEGRATION.md +0 -3
- package/bundled-skills/docs/QUALITY_BAR.md +0 -3
- package/bundled-skills/docs/README.md +0 -51
- package/bundled-skills/docs/SECURITY_GUARDRAILS.md +0 -3
- package/bundled-skills/docs/SEC_SKILLS.md +0 -3
- package/bundled-skills/docs/SKILLS_DATE_TRACKING.md +0 -3
- package/bundled-skills/docs/SKILL_ANATOMY.md +0 -3
- package/bundled-skills/docs/SKILL_TEMPLATE.md +0 -3
- package/bundled-skills/docs/SMART_AUTO_CATEGORIZATION.md +0 -3
- package/bundled-skills/docs/SOURCES.md +0 -3
- package/bundled-skills/docs/USAGE.md +0 -3
- package/bundled-skills/docs/VISUAL_GUIDE.md +0 -3
- package/bundled-skills/docs/WORKFLOWS.md +0 -3
- package/bundled-skills/docs/contributors/community-guidelines.md +0 -4
- package/bundled-skills/docs/contributors/examples.md +0 -760
- package/bundled-skills/docs/contributors/quality-bar.md +0 -104
- package/bundled-skills/docs/contributors/security-guardrails.md +0 -70
- package/bundled-skills/docs/contributors/skill-anatomy.md +0 -637
- package/bundled-skills/docs/contributors/skill-template.md +0 -93
- package/bundled-skills/docs/integrations/jetski-cortex.md +0 -282
- package/bundled-skills/docs/integrations/jetski-gemini-loader/README.md +0 -103
- package/bundled-skills/docs/integrations/jetski-gemini-loader/loader.mjs +0 -154
- package/bundled-skills/docs/integrations/jetski-gemini-loader/package.json +0 -1
- package/bundled-skills/docs/maintainers/aas-agent-first-control-plane-preview-profile.md +0 -63
- package/bundled-skills/docs/maintainers/aas-agent-first-control-plane-v1-design.md +0 -304
- package/bundled-skills/docs/maintainers/aas-agent-first-control-plane-v1-goal.md +0 -171
- package/bundled-skills/docs/maintainers/aas-agent-first-control-plane-v1-worklog.md +0 -104
- package/bundled-skills/docs/maintainers/audit.md +0 -89
- package/bundled-skills/docs/maintainers/backups/README-2026-06-02.md +0 -687
- package/bundled-skills/docs/maintainers/categorization-implementation.md +0 -160
- package/bundled-skills/docs/maintainers/ci-drift-fix.md +0 -64
- package/bundled-skills/docs/maintainers/date-tracking-implementation.md +0 -66
- package/bundled-skills/docs/maintainers/full-repo-audit-2026-05-23.md +0 -289
- package/bundled-skills/docs/maintainers/legacy-redirect-bridge.md +0 -46
- package/bundled-skills/docs/maintainers/merge-batch.md +0 -81
- package/bundled-skills/docs/maintainers/merging-prs.md +0 -79
- package/bundled-skills/docs/maintainers/pr-autonomy.md +0 -102
- package/bundled-skills/docs/maintainers/provenance-identity-exceptions.json +0 -14
- package/bundled-skills/docs/maintainers/release-notes-7.2.0.md +0 -32
- package/bundled-skills/docs/maintainers/release-process.md +0 -124
- package/bundled-skills/docs/maintainers/repo-growth-seo.md +0 -133
- package/bundled-skills/docs/maintainers/rollback-procedure.md +0 -43
- package/bundled-skills/docs/maintainers/security-findings-triage-2026-03-15.csv +0 -34
- package/bundled-skills/docs/maintainers/security-findings-triage-2026-03-15.md +0 -60
- package/bundled-skills/docs/maintainers/security-findings-triage-2026-03-18-addendum.md +0 -22
- package/bundled-skills/docs/maintainers/security-findings-triage-2026-03-29-addendum.md +0 -48
- package/bundled-skills/docs/maintainers/security-findings-triage-2026-03-29-refresh.csv +0 -34
- package/bundled-skills/docs/maintainers/security-findings-triage-2026-03-29-refresh.md +0 -86
- package/bundled-skills/docs/maintainers/skills-date-tracking.md +0 -228
- package/bundled-skills/docs/maintainers/skills-import-2026-03-21.md +0 -81
- package/bundled-skills/docs/maintainers/skills-update-guide.md +0 -92
- package/bundled-skills/docs/maintainers/smart-auto-categorization.md +0 -218
- package/bundled-skills/docs/plugin-submissions/aas-agent-mcp-builder/README.md +0 -19
- package/bundled-skills/docs/plugin-submissions/aas-agent-mcp-builder/evaluation-cases.json +0 -74
- package/bundled-skills/docs/plugin-submissions/aas-agent-mcp-builder/evaluation-results.json +0 -86
- package/bundled-skills/docs/plugin-submissions/aas-agent-mcp-builder/submission.json +0 -41
- package/bundled-skills/docs/sources/LICENSE-MICROSOFT +0 -21
- package/bundled-skills/docs/sources/microsoft-skills-attribution.json +0 -709
- package/bundled-skills/docs/sources/sources.md +0 -179
- package/bundled-skills/docs/users/aas-core.md +0 -225
- package/bundled-skills/docs/users/agent-overload-recovery.md +0 -54
- package/bundled-skills/docs/users/agentic-awesome-skills-vs-awesome-claude-skills.md +0 -44
- package/bundled-skills/docs/users/ai-agent-skills.md +0 -48
- package/bundled-skills/docs/users/best-claude-code-skills-github.md +0 -62
- package/bundled-skills/docs/users/best-cursor-skills-github.md +0 -62
- package/bundled-skills/docs/users/bundles.md +0 -1067
- package/bundled-skills/docs/users/claude-code-skills.md +0 -89
- package/bundled-skills/docs/users/codex-cli-skills.md +0 -88
- package/bundled-skills/docs/users/cursor-skills.md +0 -56
- package/bundled-skills/docs/users/discovery-manifest.md +0 -65
- package/bundled-skills/docs/users/faq.md +0 -521
- package/bundled-skills/docs/users/gemini-cli-skills.md +0 -56
- package/bundled-skills/docs/users/getting-started.md +0 -233
- package/bundled-skills/docs/users/kiro-integration.md +0 -304
- package/bundled-skills/docs/users/local-config.md +0 -152
- package/bundled-skills/docs/users/plugins.md +0 -201
- package/bundled-skills/docs/users/security-and-antivirus.md +0 -63
- package/bundled-skills/docs/users/security-skills.md +0 -1722
- package/bundled-skills/docs/users/skills-library-overview.md +0 -87
- package/bundled-skills/docs/users/skills-vs-mcp-tools.md +0 -108
- package/bundled-skills/docs/users/specialized-plugin-roadmap.md +0 -101
- package/bundled-skills/docs/users/usage.md +0 -465
- package/bundled-skills/docs/users/visual-guide.md +0 -515
- package/bundled-skills/docs/users/walkthrough.md +0 -46
- package/bundled-skills/docs/users/windows-truncation-recovery.md +0 -135
- package/bundled-skills/docs/users/workflows.md +0 -215
- package/bundled-skills/docs/vietnamese/AAS_CORE.vi.md +0 -28
- package/bundled-skills/docs/vietnamese/BUNDLES.vi.md +0 -124
- package/bundled-skills/docs/vietnamese/CONTRIBUTING.vi.md +0 -242
- package/bundled-skills/docs/vietnamese/EXAMPLES.vi.md +0 -56
- package/bundled-skills/docs/vietnamese/FAQ.vi.md +0 -195
- package/bundled-skills/docs/vietnamese/GETTING_STARTED.vi.md +0 -123
- package/bundled-skills/docs/vietnamese/QUALITY_BAR.vi.md +0 -69
- package/bundled-skills/docs/vietnamese/README.vi.md +0 -191
- package/bundled-skills/docs/vietnamese/SECURITY.vi.md +0 -19
- package/bundled-skills/docs/vietnamese/SECURITY_GUARDRAILS.vi.md +0 -51
- package/bundled-skills/docs/vietnamese/SKILLS_README.vi.md +0 -106
- package/bundled-skills/docs/vietnamese/SKILL_ANATOMY.vi.md +0 -633
- package/bundled-skills/docs/vietnamese/SOURCES.vi.md +0 -21
- package/bundled-skills/docs/vietnamese/TRANSLATION_PLAN.vi.md +0 -65
- package/bundled-skills/docs/vietnamese/VISUAL_GUIDE.vi.md +0 -511
- package/bundled-skills/docs/walkthrough.md +0 -3
|
@@ -11,9 +11,10 @@ date_added: 2026-05-20
|
|
|
11
11
|
---
|
|
12
12
|
|
|
13
13
|
# Photopea Embedded Editor Skill
|
|
14
|
-
## Using photopea.js (yikuansun/PhotopeaAPI) in Websites & Apps
|
|
15
14
|
|
|
16
|
-
|
|
15
|
+
## Detailed Guide
|
|
16
|
+
|
|
17
|
+
Read [the detailed guide](references/detailed-guide.md) before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.
|
|
17
18
|
|
|
18
19
|
## When to Use This Skill
|
|
19
20
|
|
|
@@ -28,1194 +29,6 @@ Use this skill for **every task** that involves:
|
|
|
28
29
|
|
|
29
30
|
---
|
|
30
31
|
|
|
31
|
-
## Library: photopea.js
|
|
32
|
-
|
|
33
|
-
`photopea.js` is a Promises-based JavaScript wrapper around the Photopea Live Messaging API.
|
|
34
|
-
Repository: https://github.com/yikuansun/PhotopeaAPI
|
|
35
|
-
npm package: https://www.npmjs.com/package/photopea
|
|
36
|
-
|
|
37
|
-
### Installation
|
|
38
|
-
|
|
39
|
-
**CDN (no build step)**
|
|
40
|
-
```html
|
|
41
|
-
<script src="https://cdn.jsdelivr.net/npm/photopea@1.1.1/dist/photopea.min.js"></script>
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
**Self-hosted**
|
|
45
|
-
```html
|
|
46
|
-
<script src="./photopea.min.js"></script>
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
**npm (Webpack / Vite / Rollup)**
|
|
50
|
-
```bash
|
|
51
|
-
npm install photopea
|
|
52
|
-
```
|
|
53
|
-
```js
|
|
54
|
-
import Photopea from "photopea";
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
---
|
|
58
|
-
|
|
59
|
-
## Core API: The `Photopea` Class
|
|
60
|
-
|
|
61
|
-
| Method | Description |
|
|
62
|
-
|--------|-------------|
|
|
63
|
-
| `Photopea.createEmbed(container)` | Creates + injects the iframe, resolves when ready |
|
|
64
|
-
| `new Photopea(window.parent)` | Plugin mode: wrap the parent window |
|
|
65
|
-
| `pea.runScript(script)` | Run JS string inside Photopea; returns output array |
|
|
66
|
-
| `pea.loadAsset(arrayBuffer)` | Load binary file (image, font, brush, etc.) |
|
|
67
|
-
| `pea.openFromURL(url, asSmart)` | Open remote URL as new doc or smart object layer |
|
|
68
|
-
| `pea.exportImage(type)` | Export current doc; returns `Blob` (`"png"` or `"jpg"`) |
|
|
69
|
-
|
|
70
|
-
All methods return Promises — always `await` or `.then()`.
|
|
71
|
-
|
|
72
|
-
---
|
|
73
|
-
|
|
74
|
-
## Step 1 — Embed
|
|
75
|
-
|
|
76
|
-
The container `<div>` **must** have a fixed width and height before calling `createEmbed`.
|
|
77
|
-
|
|
78
|
-
```html
|
|
79
|
-
<div id="editor" style="width:1000px; height:650px;"></div>
|
|
80
|
-
<script src="https://cdn.jsdelivr.net/npm/photopea@1.1.1/dist/photopea.min.js"></script>
|
|
81
|
-
<script>
|
|
82
|
-
Photopea.createEmbed(document.getElementById("editor")).then(async (pea) => {
|
|
83
|
-
// pea is ready
|
|
84
|
-
});
|
|
85
|
-
</script>
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
**React:**
|
|
89
|
-
```jsx
|
|
90
|
-
import { useEffect, useRef } from "react";
|
|
91
|
-
import Photopea from "photopea";
|
|
92
|
-
|
|
93
|
-
export default function Editor() {
|
|
94
|
-
const containerRef = useRef(null);
|
|
95
|
-
const peaRef = useRef(null);
|
|
96
|
-
|
|
97
|
-
useEffect(() => {
|
|
98
|
-
if (!containerRef.current || peaRef.current) return;
|
|
99
|
-
Photopea.createEmbed(containerRef.current).then((pea) => {
|
|
100
|
-
peaRef.current = pea;
|
|
101
|
-
});
|
|
102
|
-
}, []);
|
|
103
|
-
|
|
104
|
-
return <div ref={containerRef} style={{ width: "100%", height: "650px" }} />;
|
|
105
|
-
}
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
---
|
|
109
|
-
|
|
110
|
-
## Step 2 — Opening Files
|
|
111
|
-
|
|
112
|
-
```js
|
|
113
|
-
// Remote URL → new document
|
|
114
|
-
await pea.openFromURL("https://example.com/design.psd", false);
|
|
115
|
-
|
|
116
|
-
// Remote URL → smart object layer inside current document
|
|
117
|
-
await pea.openFromURL("https://example.com/overlay.png", true);
|
|
118
|
-
|
|
119
|
-
// Local file (user input → ArrayBuffer → loadAsset)
|
|
120
|
-
document.getElementById("fileInput").addEventListener("change", async (e) => {
|
|
121
|
-
const buf = await e.target.files[0].arrayBuffer();
|
|
122
|
-
await pea.loadAsset(buf);
|
|
123
|
-
});
|
|
124
|
-
|
|
125
|
-
// Base64 data URI via runScript
|
|
126
|
-
await pea.runScript(`app.open("data:image/png;base64,iVBORw0...");`);
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
---
|
|
130
|
-
|
|
131
|
-
## Step 3 — Running Scripts
|
|
132
|
-
|
|
133
|
-
`runScript` sends a JS string, returns an array of `app.echoToOE(...)` values + `"done"` last.
|
|
134
|
-
|
|
135
|
-
```js
|
|
136
|
-
const result = await pea.runScript(`app.echoToOE("hello");`);
|
|
137
|
-
// result → ["hello", "done"]
|
|
138
|
-
|
|
139
|
-
// Return structured data
|
|
140
|
-
const out = await pea.runScript(`
|
|
141
|
-
app.echoToOE(JSON.stringify({
|
|
142
|
-
width: app.activeDocument.width,
|
|
143
|
-
height: app.activeDocument.height,
|
|
144
|
-
layers: app.activeDocument.layers.length
|
|
145
|
-
}));
|
|
146
|
-
`);
|
|
147
|
-
const info = JSON.parse(out[0]);
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
---
|
|
151
|
-
|
|
152
|
-
## Step 4 — Exporting
|
|
153
|
-
|
|
154
|
-
```js
|
|
155
|
-
// PNG Blob (via exportImage)
|
|
156
|
-
const blob = await pea.exportImage("png");
|
|
157
|
-
document.getElementById("preview").src = URL.createObjectURL(blob);
|
|
158
|
-
|
|
159
|
-
// JPEG Blob
|
|
160
|
-
const blob = await pea.exportImage("jpg");
|
|
161
|
-
|
|
162
|
-
// WebP / PSD / quality-controlled JPEG via saveToOE
|
|
163
|
-
const result = await pea.runScript(`app.activeDocument.saveToOE("webp:0.85");`);
|
|
164
|
-
const webpBlob = new Blob([result[0]], { type: "image/webp" });
|
|
165
|
-
|
|
166
|
-
const result = await pea.runScript(`app.activeDocument.saveToOE("psd:true");`);
|
|
167
|
-
const psdBlob = new Blob([result[0]], { type: "application/octet-stream" });
|
|
168
|
-
|
|
169
|
-
// Trigger download
|
|
170
|
-
async function download(pea, filename = "export.png") {
|
|
171
|
-
const blob = await pea.exportImage("png");
|
|
172
|
-
const a = Object.assign(document.createElement("a"), {
|
|
173
|
-
href: URL.createObjectURL(blob),
|
|
174
|
-
download: filename
|
|
175
|
-
});
|
|
176
|
-
a.click();
|
|
177
|
-
}
|
|
178
|
-
```
|
|
179
|
-
|
|
180
|
-
**Export format strings for `saveToOE`:**
|
|
181
|
-
|
|
182
|
-
| String | Format |
|
|
183
|
-
|--------|--------|
|
|
184
|
-
| `"png"` | PNG lossless |
|
|
185
|
-
| `"jpg"` | JPEG default |
|
|
186
|
-
| `"jpg:0.8"` | JPEG quality 0.0–1.0 |
|
|
187
|
-
| `"webp:0.7"` | WebP quality 0.0–1.0 |
|
|
188
|
-
| `"psd"` | Full PSD |
|
|
189
|
-
| `"psd:true"` | Minified PSD |
|
|
190
|
-
| `"svg:true"` | SVG |
|
|
191
|
-
|
|
192
|
-
---
|
|
193
|
-
|
|
194
|
-
## Step 5 — Loading Assets
|
|
195
|
-
|
|
196
|
-
```js
|
|
197
|
-
// Font
|
|
198
|
-
const buf = await (await fetch("https://example.com/MyFont.otf")).arrayBuffer();
|
|
199
|
-
await pea.loadAsset(buf);
|
|
200
|
-
// Now usable in textItem.font
|
|
201
|
-
|
|
202
|
-
// Brush
|
|
203
|
-
await pea.loadAsset(await (await fetch("Nature.ABR")).arrayBuffer());
|
|
204
|
-
|
|
205
|
-
// Gradient
|
|
206
|
-
await pea.loadAsset(await (await fetch("Gradients.GRD")).arrayBuffer());
|
|
207
|
-
```
|
|
208
|
-
|
|
209
|
-
---
|
|
210
|
-
|
|
211
|
-
## Step 6 — Plugin Mode
|
|
212
|
-
|
|
213
|
-
```js
|
|
214
|
-
// Your page is inside Photopea's sidebar iframe
|
|
215
|
-
const pea = new Photopea(window.parent);
|
|
216
|
-
|
|
217
|
-
const out = await pea.runScript(`app.echoToOE(app.activeDocument.width);`);
|
|
218
|
-
console.log("Width:", out[0]);
|
|
219
|
-
|
|
220
|
-
// Load an asset from your plugin
|
|
221
|
-
const buf = await (await fetch("https://my-assets.com/sticker.png")).arrayBuffer();
|
|
222
|
-
await pea.loadAsset(buf);
|
|
223
|
-
```
|
|
224
|
-
|
|
225
|
-
Plugin config:
|
|
226
|
-
```json
|
|
227
|
-
{
|
|
228
|
-
"environment": {
|
|
229
|
-
"plugins": [{
|
|
230
|
-
"name": "My Plugin",
|
|
231
|
-
"url": "https://my-plugin.example.com",
|
|
232
|
-
"icon": "===https://my-plugin.example.com/icon.png"
|
|
233
|
-
}]
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
```
|
|
237
|
-
|
|
238
|
-
---
|
|
239
|
-
|
|
240
|
-
## Utility Patterns
|
|
241
|
-
|
|
242
|
-
### addImageAndWait — robust async layer insertion
|
|
243
|
-
```js
|
|
244
|
-
async function addImageAndWait(pea, imgURI) {
|
|
245
|
-
let count = "done";
|
|
246
|
-
while (count === "done")
|
|
247
|
-
count = (await pea.runScript(`app.echoToOE(app.activeDocument.layers.length)`))[0];
|
|
248
|
-
count = parseInt(count);
|
|
249
|
-
|
|
250
|
-
const imageUrlLiteral = JSON.stringify(imgURI);
|
|
251
|
-
await pea.runScript(`app.open(${imageUrlLiteral}, null, true);`);
|
|
252
|
-
|
|
253
|
-
return new Promise((resolve) => {
|
|
254
|
-
const check = async () => {
|
|
255
|
-
const n = parseInt((await pea.runScript(
|
|
256
|
-
`app.echoToOE(app.activeDocument.layers.length)`
|
|
257
|
-
))[0]);
|
|
258
|
-
n === count + 1 ? resolve() : setTimeout(check, 50);
|
|
259
|
-
};
|
|
260
|
-
check();
|
|
261
|
-
});
|
|
262
|
-
}
|
|
263
|
-
```
|
|
264
|
-
|
|
265
|
-
### getDocumentAsImage — returns `<img>` element
|
|
266
|
-
```js
|
|
267
|
-
async function getDocumentAsImage(pea) {
|
|
268
|
-
const result = await pea.runScript(`app.activeDocument.saveToOE('png')`);
|
|
269
|
-
return new Promise((resolve) => {
|
|
270
|
-
const fr = new FileReader();
|
|
271
|
-
fr.addEventListener("load", (e) => {
|
|
272
|
-
const img = new Image(); img.src = e.target.result; resolve(img);
|
|
273
|
-
});
|
|
274
|
-
fr.readAsDataURL(new Blob([result[0]], { type: "image/png" }));
|
|
275
|
-
});
|
|
276
|
-
}
|
|
277
|
-
```
|
|
278
|
-
|
|
279
|
-
---
|
|
280
|
-
|
|
281
|
-
## Real-World Patterns
|
|
282
|
-
|
|
283
|
-
### Pattern A — Open + Export UI
|
|
284
|
-
```html
|
|
285
|
-
<input type="file" id="fileInput" accept="image/*,.psd">
|
|
286
|
-
<button id="exportBtn">Export PNG</button>
|
|
287
|
-
<div id="editor" style="width:100%;height:600px;"></div>
|
|
288
|
-
<script src="https://cdn.jsdelivr.net/npm/photopea@1.1.1/dist/photopea.min.js"></script>
|
|
289
|
-
<script>
|
|
290
|
-
let pea;
|
|
291
|
-
Photopea.createEmbed(document.getElementById("editor")).then(p => pea = p);
|
|
292
|
-
|
|
293
|
-
document.getElementById("fileInput").addEventListener("change", async e => {
|
|
294
|
-
await pea.loadAsset(await e.target.files[0].arrayBuffer());
|
|
295
|
-
});
|
|
296
|
-
document.getElementById("exportBtn").addEventListener("click", async () => {
|
|
297
|
-
const blob = await pea.exportImage("png");
|
|
298
|
-
const a = Object.assign(document.createElement("a"), {
|
|
299
|
-
href: URL.createObjectURL(blob), download: "export.png"
|
|
300
|
-
});
|
|
301
|
-
a.click();
|
|
302
|
-
});
|
|
303
|
-
</script>
|
|
304
|
-
```
|
|
305
|
-
|
|
306
|
-
### Pattern B — Template + Text Edit + Export
|
|
307
|
-
```js
|
|
308
|
-
async function generateCard(pea, name, tagline) {
|
|
309
|
-
await pea.openFromURL("https://example.com/card.psd", false);
|
|
310
|
-
const nameLiteral = JSON.stringify(name);
|
|
311
|
-
const taglineLiteral = JSON.stringify(tagline);
|
|
312
|
-
await pea.runScript(`
|
|
313
|
-
app.activeDocument.layers.getByName("Name").textItem.contents = ${nameLiteral};
|
|
314
|
-
app.activeDocument.layers.getByName("Tagline").textItem.contents = ${taglineLiteral};
|
|
315
|
-
`);
|
|
316
|
-
return await pea.exportImage("png");
|
|
317
|
-
}
|
|
318
|
-
```
|
|
319
|
-
|
|
320
|
-
### Pattern C — Batch Watermark
|
|
321
|
-
```js
|
|
322
|
-
async function batchWatermark(pea, imageURLs, watermarkURL) {
|
|
323
|
-
const results = [];
|
|
324
|
-
for (const url of imageURLs) {
|
|
325
|
-
await pea.openFromURL(url, false);
|
|
326
|
-
await pea.openFromURL(watermarkURL, true);
|
|
327
|
-
await pea.runScript(`
|
|
328
|
-
var doc = app.activeDocument, wm = doc.activeLayer;
|
|
329
|
-
wm.translate(doc.width - wm.bounds[2] - 20, doc.height - wm.bounds[3] - 20);
|
|
330
|
-
wm.opacity = 70;
|
|
331
|
-
`);
|
|
332
|
-
results.push(await pea.exportImage("png"));
|
|
333
|
-
await pea.runScript(`app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);`);
|
|
334
|
-
}
|
|
335
|
-
return results;
|
|
336
|
-
}
|
|
337
|
-
```
|
|
338
|
-
|
|
339
|
-
---
|
|
340
|
-
|
|
341
|
-
# FULL SCRIPTING API REFERENCE
|
|
342
|
-
|
|
343
|
-
> All code in this section runs **inside `pea.runScript("...")`** strings.
|
|
344
|
-
> Photopea implements the Adobe Photoshop CC 2015 JavaScript scripting interface.
|
|
345
|
-
> Any Photoshop script targeting that version should work in Photopea.
|
|
346
|
-
|
|
347
|
-
---
|
|
348
|
-
|
|
349
|
-
## `app` — Application Object
|
|
350
|
-
|
|
351
|
-
### Properties
|
|
352
|
-
|
|
353
|
-
| Property | Type | R/W | Description |
|
|
354
|
-
|----------|------|-----|-------------|
|
|
355
|
-
| `app.activeDocument` | Document | R/W | The currently active document |
|
|
356
|
-
| `app.documents` | Documents | R | Collection of all open documents |
|
|
357
|
-
| `app.documents.length` | number | R | Count of open documents |
|
|
358
|
-
| `app.documents[i]` | Document | R | Access by zero-based index |
|
|
359
|
-
| `app.foregroundColor` | SolidColor | R/W | Current foreground color |
|
|
360
|
-
| `app.backgroundColor` | SolidColor | R/W | Current background color |
|
|
361
|
-
| `app.preferences.rulerUnits` | Units | R/W | `Units.PIXELS`, `Units.CM`, `Units.INCHES`, `Units.MM`, `Units.PICAS`, `Units.POINTS`, `Units.PERCENT` |
|
|
362
|
-
| `app.preferences.typeUnits` | TypeUnits | R/W | `TypeUnits.PIXELS`, `TypeUnits.MM`, `TypeUnits.POINTS` |
|
|
363
|
-
| `app.displayDialogs` | DialogModes | R/W | `DialogModes.NO`, `DialogModes.ALL`, `DialogModes.ERROR` |
|
|
364
|
-
|
|
365
|
-
### Methods
|
|
366
|
-
|
|
367
|
-
| Method | Description |
|
|
368
|
-
|--------|-------------|
|
|
369
|
-
| `app.open(url)` | Open URL as new document |
|
|
370
|
-
| `app.open(url, null, true)` | Open URL as smart object layer in active document |
|
|
371
|
-
| `app.echoToOE(string)` | **Photopea extension** — send string to host page (captured by `runScript`) |
|
|
372
|
-
| `app.showWindow("magiccut")` | **Photopea extension** — open Magic Cut panel |
|
|
373
|
-
| `app.showWindow("vbitmap")` | **Photopea extension** — open Vectorize Bitmap panel |
|
|
374
|
-
| `app.UI.zoomIn()` | Zoom in |
|
|
375
|
-
| `app.UI.zoomOut()` | Zoom out |
|
|
376
|
-
| `app.UI.fitTheArea()` | Fit canvas to viewport |
|
|
377
|
-
| `app.UI.pixelToPixel()` | 100% zoom |
|
|
378
|
-
| `app.UI.switchFullscreen()` | Toggle fullscreen |
|
|
379
|
-
| `app.UI.scroll(dx, dy)` | Scroll by delta |
|
|
380
|
-
| `app.UI.scrollTo(x, y)` | Scroll to absolute position |
|
|
381
|
-
|
|
382
|
-
**Important:** Always set ruler units to pixels at the start of any script that uses pixel measurements:
|
|
383
|
-
```js
|
|
384
|
-
var savedUnits = app.preferences.rulerUnits;
|
|
385
|
-
app.preferences.rulerUnits = Units.PIXELS;
|
|
386
|
-
// ... your code ...
|
|
387
|
-
app.preferences.rulerUnits = savedUnits;
|
|
388
|
-
```
|
|
389
|
-
|
|
390
|
-
---
|
|
391
|
-
|
|
392
|
-
## `Document` — Document Object
|
|
393
|
-
|
|
394
|
-
Access via `app.activeDocument` or `app.documents[i]`.
|
|
395
|
-
|
|
396
|
-
### Properties
|
|
397
|
-
|
|
398
|
-
| Property | Type | R/W | Description |
|
|
399
|
-
|----------|------|-----|-------------|
|
|
400
|
-
| `width` | number | R | Document width in current ruler units |
|
|
401
|
-
| `height` | number | R | Document height in current ruler units |
|
|
402
|
-
| `resolution` | number | R | DPI (pixels per inch) |
|
|
403
|
-
| `name` | string | **R/W** | **Photopea extension** — display label (no history step) |
|
|
404
|
-
| `source` | string | **R/W** | **Photopea extension** — file origin URL or `"local,X,NAME"` |
|
|
405
|
-
| `mode` | DocumentMode | R | `DocumentMode.RGB`, `GRAYSCALE`, `CMYK`, `LAB`, `BITMAP`, `INDEXEDCOLOR`, `MULTICHANNEL` |
|
|
406
|
-
| `bitsPerChannel` | BitsPerChannelType | R | `BitsPerChannelType.EIGHT`, `SIXTEEN`, `THIRTYTWO` |
|
|
407
|
-
| `colorProfileName` | string | R | Name of embedded color profile |
|
|
408
|
-
| `activeLayer` | Layer/ArtLayer/LayerSet | R/W | Set to activate a layer |
|
|
409
|
-
| `currentLayer` | ArtLayer | R/W | Alias for `activeLayer` |
|
|
410
|
-
| `layers` | Layers | R | All top-level layers (both art + group) |
|
|
411
|
-
| `artLayers` | ArtLayers | R | All top-level art layers only |
|
|
412
|
-
| `layerSets` | LayerSets | R | All top-level group layers only |
|
|
413
|
-
| `selection` | Selection | R | The current selection |
|
|
414
|
-
| `channels` | Channels | R | All channels |
|
|
415
|
-
| `historyStates` | HistoryStates | R | Undo history |
|
|
416
|
-
| `activeHistoryState` | HistoryState | R/W | Current history position |
|
|
417
|
-
| `layerComps` | LayerComps | R | Layer comps collection |
|
|
418
|
-
| `guides` | Guides | R | Guides collection |
|
|
419
|
-
| `pathItems` | PathItems | R | Vector paths |
|
|
420
|
-
| `id` | number | R | Unique document ID |
|
|
421
|
-
| `saved` | boolean | R | Whether document has unsaved changes |
|
|
422
|
-
| `quickMaskMode` | boolean | R | Whether in Quick Mask mode |
|
|
423
|
-
| `backgroundLayer` | ArtLayer | R | The background layer |
|
|
424
|
-
| `pixelAspectRatio` | number | R | Custom pixel aspect ratio (0.1–10.0) |
|
|
425
|
-
| `histogram` | array | R | 256-element histogram array |
|
|
426
|
-
|
|
427
|
-
### Methods
|
|
428
|
-
|
|
429
|
-
| Method | Signature | Description |
|
|
430
|
-
|--------|-----------|-------------|
|
|
431
|
-
| `resizeImage` | `(w, h, res, resampleMethod)` | Resize image pixels. ResampleMethod: `BICUBIC`, `BILINEAR`, `NEARESTNEIGHBOR`, `NONE`, `BICUBICSHARPER`, `BICUBICSMOOTHER` |
|
|
432
|
-
| `resizeCanvas` | `(w, h, anchor)` | Resize canvas without scaling. AnchorPosition: `TOPLEFT`, `TOPCENTER`, `TOPRIGHT`, `MIDDLELEFT`, `MIDDLECENTER`, `MIDDLERIGHT`, `BOTTOMLEFT`, `BOTTOMCENTER`, `BOTTOMRIGHT` |
|
|
433
|
-
| `rotateCanvas` | `(degrees)` | Rotate entire canvas. Positive = clockwise |
|
|
434
|
-
| `flipCanvas` | `(direction)` | `Direction.HORIZONTAL` or `Direction.VERTICAL` |
|
|
435
|
-
| `crop` | `([x1,y1,x2,y2], angle, w, h)` | Crop canvas. Angle and dimensions are optional |
|
|
436
|
-
| `trim` | `(trimType, top, left, bottom, right)` | Trim transparent/background-color borders. TrimType: `TRANSPARENT`, `TOPLEFT`, `BOTTOMRIGHT` |
|
|
437
|
-
| `revealAll` | `()` | Expand canvas to show clipped content |
|
|
438
|
-
| `flatten` | `()` | Merge all layers into one |
|
|
439
|
-
| `mergeVisibleLayers` | `()` | Merge all visible layers |
|
|
440
|
-
| `rasterizeAllLayers` | `()` | Rasterize all vector/text layers |
|
|
441
|
-
| `changeMode` | `(mode, options)` | Convert color mode (e.g., `ChangeMode.GRAYSCALE`) |
|
|
442
|
-
| `convertProfile` | `(profileName, renderingIntent, blackPointCompensation, dither)` | Convert color profile |
|
|
443
|
-
| `duplicate` | `(name, mergedLayers)` | Duplicate the document |
|
|
444
|
-
| `close` | `(saveOptions)` | Close document. SaveOptions: `DONOTSAVECHANGES`, `SAVECHANGES`, `PROMPTTOSAVECHANGES` |
|
|
445
|
-
| `save` | `()` | Save (requires server config in embed) |
|
|
446
|
-
| `saveToOE` | `(format)` | **Photopea extension** — send binary to host. Formats: `"png"`, `"jpg:0.8"`, `"webp:0.7"`, `"psd:true"`, `"svg:true"` |
|
|
447
|
-
| `clearHistory` | `()` | **Photopea extension** — clear undo history to free RAM |
|
|
448
|
-
| `exportDocument` | `(file, exportType, options)` | Export to filesystem (triggers ZIP). ExportType: `SAVEFORWEB` |
|
|
449
|
-
| `paste` | `(intoSelection)` | Paste clipboard into document |
|
|
450
|
-
| `suspendHistory` | `(historyName, callback)` | Wrap multiple ops in one history state |
|
|
451
|
-
|
|
452
|
-
**Practical examples:**
|
|
453
|
-
```js
|
|
454
|
-
var doc = app.activeDocument;
|
|
455
|
-
|
|
456
|
-
// Resize image to 1920×1080 at 72dpi bicubic
|
|
457
|
-
doc.resizeImage(1920, 1080, 72, ResampleMethod.BICUBIC);
|
|
458
|
-
|
|
459
|
-
// Expand canvas to 2000px wide, keeping content centered
|
|
460
|
-
doc.resizeCanvas(2000, doc.height, AnchorPosition.MIDDLECENTER);
|
|
461
|
-
|
|
462
|
-
// Crop to a region
|
|
463
|
-
doc.crop([100, 100, 900, 600]);
|
|
464
|
-
|
|
465
|
-
// Trim transparent edges
|
|
466
|
-
doc.trim(TrimType.TRANSPARENT, true, true, true, true);
|
|
467
|
-
|
|
468
|
-
// Flip horizontal
|
|
469
|
-
doc.flipCanvas(Direction.HORIZONTAL);
|
|
470
|
-
|
|
471
|
-
// Change to grayscale
|
|
472
|
-
doc.changeMode(ChangeMode.GRAYSCALE);
|
|
473
|
-
|
|
474
|
-
// One undo step for many operations
|
|
475
|
-
doc.suspendHistory("Batch Edit", "action");
|
|
476
|
-
// (Inside Photopea, all ops become one history state)
|
|
477
|
-
|
|
478
|
-
// Export PNG to filesystem (triggers ZIP download)
|
|
479
|
-
var opts = new ExportOptionsSaveForWeb();
|
|
480
|
-
opts.format = SaveDocumentType.PNG;
|
|
481
|
-
opts.PNG8 = false;
|
|
482
|
-
opts.quality = 100;
|
|
483
|
-
doc.exportDocument(new File("/output.png"), ExportType.SAVEFORWEB, opts);
|
|
484
|
-
|
|
485
|
-
// Close without saving
|
|
486
|
-
doc.close(SaveOptions.DONOTSAVECHANGES);
|
|
487
|
-
```
|
|
488
|
-
|
|
489
|
-
---
|
|
490
|
-
|
|
491
|
-
## `Layers` / `ArtLayers` / `LayerSets` Collections
|
|
492
|
-
|
|
493
|
-
These collections exist on `Document`, `LayerSet` (groups within groups), and can be iterated.
|
|
494
|
-
|
|
495
|
-
```js
|
|
496
|
-
var doc = app.activeDocument;
|
|
497
|
-
|
|
498
|
-
// Access
|
|
499
|
-
doc.layers // all top-level (art + groups)
|
|
500
|
-
doc.artLayers // top-level art layers only
|
|
501
|
-
doc.layerSets // top-level group layers only
|
|
502
|
-
|
|
503
|
-
// By index (0 = topmost)
|
|
504
|
-
doc.layers[0]
|
|
505
|
-
doc.layers[doc.layers.length - 1] // bottommost
|
|
506
|
-
|
|
507
|
-
// By name (throws if not found)
|
|
508
|
-
doc.layers.getByName("Background")
|
|
509
|
-
doc.artLayers.getByName("Logo")
|
|
510
|
-
doc.layerSets.getByName("Header Group")
|
|
511
|
-
|
|
512
|
-
// Add
|
|
513
|
-
var newLayer = doc.artLayers.add(); // new blank art layer
|
|
514
|
-
var newGroup = doc.layerSets.add(); // new group
|
|
515
|
-
var innerLayer = newGroup.artLayers.add(); // layer inside a group
|
|
516
|
-
|
|
517
|
-
// Remove
|
|
518
|
-
doc.artLayers.getByName("Temp").remove();
|
|
519
|
-
|
|
520
|
-
// Iterate all layers recursively
|
|
521
|
-
function walkLayers(parent) {
|
|
522
|
-
for (var i = 0; i < parent.layers.length; i++) {
|
|
523
|
-
var l = parent.layers[i];
|
|
524
|
-
if (l.typename === "LayerSet") walkLayers(l);
|
|
525
|
-
else /* ArtLayer */ processLayer(l);
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
walkLayers(doc);
|
|
529
|
-
```
|
|
530
|
-
|
|
531
|
-
---
|
|
532
|
-
|
|
533
|
-
## `ArtLayer` — Individual Layer
|
|
534
|
-
|
|
535
|
-
### Properties
|
|
536
|
-
|
|
537
|
-
| Property | Type | R/W | Description |
|
|
538
|
-
|----------|------|-----|-------------|
|
|
539
|
-
| `name` | string | R/W | Layer name |
|
|
540
|
-
| `visible` | boolean | R/W | Layer visibility |
|
|
541
|
-
| `opacity` | number | R/W | Layer opacity 0–100 |
|
|
542
|
-
| `fillOpacity` | number | R | Fill opacity 0–100 |
|
|
543
|
-
| `blendMode` | BlendMode | R/W | Blend mode (see enum below) |
|
|
544
|
-
| `kind` | LayerKind | R/W | Layer type (can set to `LayerKind.TEXT` on empty layer) |
|
|
545
|
-
| `textItem` | TextItem | R | Text object (only when `kind === LayerKind.TEXT`) |
|
|
546
|
-
| `bounds` | array | R | `[left, top, right, bottom]` in current ruler units |
|
|
547
|
-
| `parent` | Document/LayerSet | R | Containing object |
|
|
548
|
-
| `typename` | string | R | Always `"ArtLayer"` |
|
|
549
|
-
| `selected` | boolean | R | **Photopea extension** — is layer highlighted in panel |
|
|
550
|
-
| `isBackgroundLayer` | boolean | R | Is this the locked background layer |
|
|
551
|
-
| `grouped` | boolean | R | Is clipping mask applied |
|
|
552
|
-
| `pixelsLocked` | boolean | R | Pixels locked |
|
|
553
|
-
| `positionLocked` | boolean | R | Position locked |
|
|
554
|
-
| `transparentPixelsLocked` | boolean | R | Transparent pixels locked |
|
|
555
|
-
| `layerMaskDensity` | number | R | Layer mask density 0–100 |
|
|
556
|
-
| `layerMaskFeather` | number | R | Layer mask feather 0–250 |
|
|
557
|
-
| `vectorMaskDensity` | number | R | Vector mask density 0–100 |
|
|
558
|
-
| `vectorMaskFeather` | number | R | Vector mask feather 0–250 |
|
|
559
|
-
|
|
560
|
-
### Transform Methods
|
|
561
|
-
|
|
562
|
-
| Method | Signature | Description |
|
|
563
|
-
|--------|-----------|-------------|
|
|
564
|
-
| `translate` | `(deltaX, deltaY)` | Move layer by offset |
|
|
565
|
-
| `rotate` | `(angle, anchor)` | Rotate by degrees. AnchorPosition optional (default center) |
|
|
566
|
-
| `resize` | `(widthPct, heightPct, anchor)` | Scale as percentage of current size |
|
|
567
|
-
| `rasterize` | `(target)` | Rasterize. RasterizeType: `ENTIRE`, `FILLCONTENT`, `LAYERCLIPPINGMASK`, `LINKEDLAYERS`, `SHAPE`, `TEXTCONTENTS`, `VECTORMASK` |
|
|
568
|
-
|
|
569
|
-
### Layer Management Methods
|
|
570
|
-
|
|
571
|
-
| Method | Signature | Description |
|
|
572
|
-
|--------|-----------|-------------|
|
|
573
|
-
| `duplicate` | `()` | Duplicate to same document, returns new layer |
|
|
574
|
-
| `duplicate` | `(doc, placement)` | Duplicate to another document |
|
|
575
|
-
| `remove` | `()` | Delete the layer |
|
|
576
|
-
| `merge` | `()` | Merge down; returns the merged ArtLayer |
|
|
577
|
-
| `move` | `(relativeLayer, placement)` | Reorder. ElementPlacement: `PLACEBEFORE`, `PLACEAFTER`, `PLACEATBEGINNING`, `PLACEATEND`, `INSIDE` |
|
|
578
|
-
| `copy` | `(merged)` | Copy to clipboard |
|
|
579
|
-
| `cut` | `()` | Cut to clipboard |
|
|
580
|
-
| `clear` | `()` | Cut without clipboard |
|
|
581
|
-
|
|
582
|
-
### Adjustment Methods on ArtLayer
|
|
583
|
-
|
|
584
|
-
| Method | Signature | Description |
|
|
585
|
-
|--------|-----------|-------------|
|
|
586
|
-
| `adjustBrightnessContrast` | `(brightness, contrast)` | Brightness -100–100, Contrast -100–100 |
|
|
587
|
-
| `adjustColorBalance` | `(shadows, midtones, highlights, preserveLuminosity)` | Each is `[cyan-red, magenta-green, yellow-blue]` array |
|
|
588
|
-
| `adjustCurves` | `(curveShape)` | Array of `[input,output]` pairs per channel |
|
|
589
|
-
| `adjustLevels` | `(inputRangeStart, inputRangeEnd, gamma, outputRangeStart, outputRangeEnd)` | Levels adjustment |
|
|
590
|
-
| `autoLevels` | `()` | Auto levels |
|
|
591
|
-
| `autoContrast` | `()` | Auto contrast |
|
|
592
|
-
| `desaturate` | `()` | Convert to grayscale values in current mode |
|
|
593
|
-
| `equalize` | `()` | Equalize brightness distribution |
|
|
594
|
-
| `invert` | `()` | Invert pixel colors |
|
|
595
|
-
| `posterize` | `(levels)` | Posterize (2–255 levels) |
|
|
596
|
-
| `threshold` | `(level)` | B&W threshold (1–255) |
|
|
597
|
-
| `shadowHighlight` | `(shadowAmount, shadowWidth, shadowRadius, highlightAmount, highlightWidth, highlightRadius, colorCorrection, midtoneContrast, blackClip, whiteClip)` | Shadows/Highlights |
|
|
598
|
-
| `photoFilter` | `(fillColor, density, luminosity)` | Photo filter |
|
|
599
|
-
| `mixChannels` | `(outputChannels, monochrome)` | Channel mixer |
|
|
600
|
-
| `selectiveColor` | `(colors, cyan, magenta, yellow, black, method)` | Selective color |
|
|
601
|
-
|
|
602
|
-
### Filter Methods on ArtLayer
|
|
603
|
-
|
|
604
|
-
| Method | Signature | Description |
|
|
605
|
-
|--------|-----------|-------------|
|
|
606
|
-
| `applyGaussianBlur` | `(radius)` | Gaussian blur (0.1–250 px radius) |
|
|
607
|
-
| `applyMotionBlur` | `(angle, distance)` | Motion blur |
|
|
608
|
-
| `applyRadialBlur` | `(amount, blurMethod, blurQuality)` | Radial blur |
|
|
609
|
-
| `applySmartBlur` | `(radius, threshold, blurQuality, blurMode)` | Smart blur |
|
|
610
|
-
| `applyBlur` | `()` | Simple blur |
|
|
611
|
-
| `applyBlurMore` | `()` | Blur more |
|
|
612
|
-
| `applyUnSharpMask` | `(amount, radius, threshold)` | Unsharp mask |
|
|
613
|
-
| `applySharpen` | `()` | Sharpen |
|
|
614
|
-
| `applySharpenEdges` | `()` | Sharpen edges |
|
|
615
|
-
| `applySharpenMore` | `()` | Sharpen more |
|
|
616
|
-
| `applyAddNoise` | `(amount, distribution, monochromatic)` | Add noise. NoiseDistribution: `GAUSSIAN`, `UNIFORM` |
|
|
617
|
-
| `applyDespeckle` | `()` | Despeckle |
|
|
618
|
-
| `applyDustAndScratches` | `(radius, threshold)` | Dust and scratches |
|
|
619
|
-
| `applyMedianNoise` | `(radius)` | Median noise reduction |
|
|
620
|
-
| `applyMaximum` | `(radius)` | Maximum filter (dilate) |
|
|
621
|
-
| `applyMinimum` | `(radius)` | Minimum filter (erode) |
|
|
622
|
-
| `applyHighPass` | `(radius)` | High pass |
|
|
623
|
-
| `applyOffset` | `(horizontal, vertical, undefinedAreas)` | Offset. UndefinedAreas: `SETTOBACKGROUND`, `WRAPAROUND`, `REPEATEDGEPIXELS` |
|
|
624
|
-
| `applyRipple` | `(amount, size)` | Ripple. RippleSize: `SMALL`, `MEDIUM`, `LARGE` |
|
|
625
|
-
| `applyWave` | `(generators, minWavelength, maxWavelength, minAmplitude, maxAmplitude, horizScale, vertScale, waveType, undefinedAreas, randomSeed)` | Wave filter |
|
|
626
|
-
| `applyZigZag` | `(amount, ridges, style)` | Zig-Zag |
|
|
627
|
-
| `applyTwirl` | `(angle)` | Twirl |
|
|
628
|
-
| `applyPolarCoordinates` | `(conversion)` | Polar coordinates |
|
|
629
|
-
| `applySpherize` | `(amount, mode)` | Spherize |
|
|
630
|
-
| `applyPinch` | `(amount)` | Pinch (-100–100) |
|
|
631
|
-
| `applyShear` | `(curve, undefinedAreas)` | Shear |
|
|
632
|
-
| `applyDisplace` | `(horizontalScale, verticalScale, displacementType, undefinedAreas, displacementMapFile)` | Displace |
|
|
633
|
-
| `applyClouds` | `()` | Render Clouds |
|
|
634
|
-
| `applyDifferenceClouds` | `()` | Difference Clouds |
|
|
635
|
-
| `applyLensFlare` | `(brightness, flareCenter, lensType)` | Lens Flare. LensType: `ZOOMWIDE, ZOOMNORMAL, MOVIE` |
|
|
636
|
-
| `applyDiffuseGlow` | `(graininess, glowAmount, clearAmount)` | Diffuse Glow |
|
|
637
|
-
| `applyGlassEffect` | `(distortion, smoothness, scaling, invert, texture, textureFile)` | Glass |
|
|
638
|
-
| `applyOceanRipple` | `(size, magnitude)` | Ocean Ripple |
|
|
639
|
-
| `applyLensBlur` | `(source, focalDistance, invertDepthMap, shape, radius, bladeCurvature, rotation, brightness, threshold, amount, distribution, monochromatic)` | Lens Blur |
|
|
640
|
-
| `applyAverage` | `()` | Average blur |
|
|
641
|
-
| `applyDeInterlace` | `(eliminateFields, createFields)` | De-interlace |
|
|
642
|
-
| `applyNTSC` | `()` | NTSC colors |
|
|
643
|
-
| `applyCustomFilter` | `(characteristics, scale, offset)` | Custom filter (5×5 matrix) |
|
|
644
|
-
| `applyTextureFill` | `(textureFile)` | Texture fill |
|
|
645
|
-
| `applyStyle` | `(styleName)` | Apply a layer style preset by name |
|
|
646
|
-
| `photoFilter` | `(fillColor, density, luminosity)` | Photo Filter |
|
|
647
|
-
|
|
648
|
-
**Practical examples:**
|
|
649
|
-
```js
|
|
650
|
-
var layer = app.activeDocument.activeLayer;
|
|
651
|
-
|
|
652
|
-
// Move to absolute position (layer.bounds[0] = current left edge)
|
|
653
|
-
layer.translate(200 - layer.bounds[0], 100 - layer.bounds[1]);
|
|
654
|
-
|
|
655
|
-
// Rotate 45° around center
|
|
656
|
-
layer.rotate(45);
|
|
657
|
-
|
|
658
|
-
// Scale to 50% keeping center
|
|
659
|
-
layer.resize(50, 50, AnchorPosition.MIDDLECENTER);
|
|
660
|
-
|
|
661
|
-
// Gaussian blur radius 10
|
|
662
|
-
layer.applyGaussianBlur(10);
|
|
663
|
-
|
|
664
|
-
// Unsharp mask
|
|
665
|
-
layer.applyUnSharpMask(50, 2, 0);
|
|
666
|
-
|
|
667
|
-
// Levels: input 0–200, gamma 1.2, output 0–255
|
|
668
|
-
layer.adjustLevels(0, 200, 1.2, 0, 255);
|
|
669
|
-
|
|
670
|
-
// Brightness +20, Contrast +10
|
|
671
|
-
layer.adjustBrightnessContrast(20, 10);
|
|
672
|
-
|
|
673
|
-
// Invert
|
|
674
|
-
layer.invert();
|
|
675
|
-
|
|
676
|
-
// Rasterize text
|
|
677
|
-
layer.rasterize(RasterizeType.TEXTCONTENTS);
|
|
678
|
-
|
|
679
|
-
// Duplicate layer
|
|
680
|
-
var copy = layer.duplicate();
|
|
681
|
-
copy.name = "Layer Copy";
|
|
682
|
-
|
|
683
|
-
// Move layer below another
|
|
684
|
-
var target = doc.layers.getByName("Background");
|
|
685
|
-
layer.move(target, ElementPlacement.PLACEAFTER);
|
|
686
|
-
```
|
|
687
|
-
|
|
688
|
-
---
|
|
689
|
-
|
|
690
|
-
## `LayerSet` — Group Layer
|
|
691
|
-
|
|
692
|
-
A LayerSet is a folder/group in the Layers panel. It has the same layer management methods as `Document`.
|
|
693
|
-
|
|
694
|
-
### Properties
|
|
695
|
-
|
|
696
|
-
| Property | Type | R/W | Description |
|
|
697
|
-
|----------|------|-----|-------------|
|
|
698
|
-
| `name` | string | R/W | Group name |
|
|
699
|
-
| `visible` | boolean | R/W | Group visibility |
|
|
700
|
-
| `opacity` | number | R/W | Group opacity 0–100 |
|
|
701
|
-
| `blendMode` | BlendMode | R/W | Group blend mode |
|
|
702
|
-
| `bounds` | array | R | Bounding box `[left,top,right,bottom]` |
|
|
703
|
-
| `layers` | Layers | R | All layers inside this group |
|
|
704
|
-
| `artLayers` | ArtLayers | R | Art layers inside this group |
|
|
705
|
-
| `layerSets` | LayerSets | R | Sub-groups inside this group |
|
|
706
|
-
| `parent` | Document/LayerSet | R | Parent container |
|
|
707
|
-
| `typename` | string | R | Always `"LayerSet"` |
|
|
708
|
-
|
|
709
|
-
### Methods
|
|
710
|
-
Same as Document for layer management: `layers.add()`, `artLayers.add()`, `layerSets.add()`, `.getByName()`, plus `duplicate()`, `remove()`, `move()`.
|
|
711
|
-
|
|
712
|
-
```js
|
|
713
|
-
// Create group with layers inside
|
|
714
|
-
var group = doc.layerSets.add();
|
|
715
|
-
group.name = "Product Card";
|
|
716
|
-
|
|
717
|
-
var bgLayer = group.artLayers.add(); bgLayer.name = "Background";
|
|
718
|
-
var textLayer = group.artLayers.add(); textLayer.kind = LayerKind.TEXT;
|
|
719
|
-
textLayer.textItem.contents = "Buy Now";
|
|
720
|
-
textLayer.textItem.size = 36;
|
|
721
|
-
|
|
722
|
-
// Collapse/expand group (Photopea specific, not in standard DOM)
|
|
723
|
-
// Use visibility as workaround
|
|
724
|
-
|
|
725
|
-
// Get specific layer inside a group
|
|
726
|
-
var innerLayer = doc.layerSets.getByName("Header Group").artLayers.getByName("Title");
|
|
727
|
-
```
|
|
728
|
-
|
|
729
|
-
---
|
|
730
|
-
|
|
731
|
-
## `TextItem` — Text Layer Content
|
|
732
|
-
|
|
733
|
-
Access via `layer.textItem` on any layer with `layer.kind === LayerKind.TEXT`.
|
|
734
|
-
|
|
735
|
-
### Core Properties (most commonly used)
|
|
736
|
-
|
|
737
|
-
| Property | Type | R/W | Description |
|
|
738
|
-
|----------|------|-----|-------------|
|
|
739
|
-
| `contents` | string | R/W | The actual text content |
|
|
740
|
-
| `font` | string | R/W | Font PostScript name (e.g. `"ArialMT"`, `"Verdana-Bold"`) |
|
|
741
|
-
| `size` | number | R/W | Font size in points |
|
|
742
|
-
| `color` | SolidColor | R/W | Text color |
|
|
743
|
-
| `position` | array | R/W | `[x, y]` origin of text (point text) or bounding box top-left |
|
|
744
|
-
| `justification` | Justification | R/W | `Justification.LEFT`, `CENTER`, `RIGHT`, `FULLJUSTIFY` |
|
|
745
|
-
| `kind` | TextType | R/W | `TextType.POINTTEXT` or `TextType.PARAGRAPHTEXT` |
|
|
746
|
-
| `width` | number | R/W | Width of bounding box (paragraph text only) |
|
|
747
|
-
| `height` | number | R/W | Height of bounding box (paragraph text only) |
|
|
748
|
-
| `direction` | Direction | R/W | `Direction.HORIZONTAL` or `Direction.VERTICAL` |
|
|
749
|
-
|
|
750
|
-
### Typography Properties
|
|
751
|
-
|
|
752
|
-
| Property | Type | R/W | Description |
|
|
753
|
-
|----------|------|-----|-------------|
|
|
754
|
-
| `leading` | number | R/W | Line spacing in points |
|
|
755
|
-
| `tracking` | number | R/W | Letter spacing -1000–10000 (1000 = 1 em) |
|
|
756
|
-
| `horizontalScale` | number | R/W | Horizontal scaling 0–1000% |
|
|
757
|
-
| `verticalScale` | number | R/W | Vertical scaling 0–1000% |
|
|
758
|
-
| `baselineShift` | number | R/W | Baseline offset in points |
|
|
759
|
-
| `capitalization` | Case | R/W | `Case.NORMAL`, `ALLCAPS`, `SMALLCAPS` |
|
|
760
|
-
| `fauxBold` | boolean | R/W | Simulated bold |
|
|
761
|
-
| `fauxItalic` | boolean | R/W | Simulated italic |
|
|
762
|
-
| `underline` | UnderlineType | R/W | `UnderlineType.NONE`, `UNDERLINELEFT`, `UNDERLINERIGHT` |
|
|
763
|
-
| `strikeThru` | StrikeThruType | R/W | `StrikeThruType.NONE`, `STRIKEBOX`, `STRIKEHEIGHT` |
|
|
764
|
-
| `antiAliasMethod` | AntiAlias | R/W | `AntiAlias.NONE`, `SHARP`, `CRISP`, `STRONG`, `SMOOTH` |
|
|
765
|
-
| `autoKerning` | AutoKernType | R/W | `AutoKernType.MANUAL`, `METRICS`, `OPTICAL` |
|
|
766
|
-
| `language` | Language | R/W | `Language.ENGLISH`, etc. |
|
|
767
|
-
| `ligatures` | boolean | R/W | Enable ligatures |
|
|
768
|
-
| `alternateLigatures` | boolean | R/W | Enable alternate ligatures |
|
|
769
|
-
| `oldStyle` | boolean | R/W | Old-style numerals |
|
|
770
|
-
| `noBreak` | boolean | R/W | Prevent line breaks in this text |
|
|
771
|
-
| `useAutoLeading` | boolean | R/W | Use font's built-in leading |
|
|
772
|
-
| `autoLeadingAmount` | number | R/W | Auto leading percentage 0.01–5000 |
|
|
773
|
-
| `hyphenation` | boolean | R/W | Enable hyphenation |
|
|
774
|
-
|
|
775
|
-
### Paragraph Properties
|
|
776
|
-
|
|
777
|
-
| Property | Type | R/W | Description |
|
|
778
|
-
|----------|------|-----|-------------|
|
|
779
|
-
| `leftIndent` | number | R/W | Left indent -1296–1296 |
|
|
780
|
-
| `rightIndent` | number | R/W | Right indent -1296–1296 |
|
|
781
|
-
| `firstLineIndent` | number | R/W | First line indent -1296–1296 |
|
|
782
|
-
| `spaceBefore` | number | R/W | Space before paragraph -1296–1296 |
|
|
783
|
-
| `spaceAfter` | number | R/W | Space after paragraph -1296–1296 |
|
|
784
|
-
| `hangingPuntuation` | boolean | R/W | Roman hanging punctuation |
|
|
785
|
-
| `textComposer` | TextComposer | R/W | `TextComposer.ADOBEEVERYLINE`, `ADOBESINGLELINE` |
|
|
786
|
-
|
|
787
|
-
### Warp Properties
|
|
788
|
-
|
|
789
|
-
| Property | Type | R/W | Description |
|
|
790
|
-
|----------|------|-----|-------------|
|
|
791
|
-
| `warpStyle` | WarpStyle | R/W | `WarpStyle.NONE`, `ARC`, `ARCH`, `BULGE`, `SHELLLOWER`, `SHELLUPPER`, `FLAG`, `WAVE`, `FISH`, `RISE`, `FISHEYE`, `INFLATE`, `SQUEEZE`, `TWIST` |
|
|
792
|
-
| `warpDirection` | Direction | R/W | `Direction.HORIZONTAL` or `Direction.VERTICAL` |
|
|
793
|
-
| `warpBend` | number | R/W | Warp bend -100–100 |
|
|
794
|
-
| `warpHorizontalDistortion` | number | R/W | Horizontal distortion -100–100 |
|
|
795
|
-
| `warpVerticalDistortion` | number | R/W | Vertical distortion -100–100 |
|
|
796
|
-
|
|
797
|
-
### Photopea Extensions
|
|
798
|
-
|
|
799
|
-
| Property | Type | Description |
|
|
800
|
-
|----------|------|-------------|
|
|
801
|
-
| `totalTextStyle` | string | JSON string with ALL style parameters of the text |
|
|
802
|
-
| `transform` | string | JSON array — the affine transform matrix of the text |
|
|
803
|
-
|
|
804
|
-
### Methods
|
|
805
|
-
|
|
806
|
-
| Method | Description |
|
|
807
|
-
|--------|-------------|
|
|
808
|
-
| `convertToShape()` | Convert text to a filled shape layer with text as clipping path |
|
|
809
|
-
| `createPath()` | Create work path from text outlines |
|
|
810
|
-
|
|
811
|
-
**Practical examples:**
|
|
812
|
-
```js
|
|
813
|
-
var layer = doc.layers.getByName("Headline");
|
|
814
|
-
var text = layer.textItem;
|
|
815
|
-
|
|
816
|
-
// Set content
|
|
817
|
-
text.contents = "Hello World";
|
|
818
|
-
|
|
819
|
-
// Style
|
|
820
|
-
text.font = "Verdana-Bold";
|
|
821
|
-
text.size = 72;
|
|
822
|
-
text.color.rgb.hexValue = "FF0000"; // red
|
|
823
|
-
|
|
824
|
-
// Position point text at (50, 100)
|
|
825
|
-
text.position = [50, 100];
|
|
826
|
-
|
|
827
|
-
// Center align
|
|
828
|
-
text.justification = Justification.CENTER;
|
|
829
|
-
|
|
830
|
-
// Paragraph text with bounding box
|
|
831
|
-
text.kind = TextType.PARAGRAPHTEXT;
|
|
832
|
-
text.width = new UnitValue("400 pixels");
|
|
833
|
-
text.height = new UnitValue("200 pixels");
|
|
834
|
-
|
|
835
|
-
// Letter spacing
|
|
836
|
-
text.tracking = 100; // 10% spacing
|
|
837
|
-
|
|
838
|
-
// Scale text horizontally to 80%
|
|
839
|
-
text.horizontalScale = 80;
|
|
840
|
-
|
|
841
|
-
// Warp arc
|
|
842
|
-
text.warpStyle = WarpStyle.ARC;
|
|
843
|
-
text.warpBend = 30;
|
|
844
|
-
|
|
845
|
-
// Read all text styles as JSON (Photopea extension)
|
|
846
|
-
var styles = JSON.parse(text.totalTextStyle);
|
|
847
|
-
app.echoToOE(JSON.stringify(styles));
|
|
848
|
-
```
|
|
849
|
-
|
|
850
|
-
---
|
|
851
|
-
|
|
852
|
-
## Creating a Text Layer from Scratch
|
|
853
|
-
|
|
854
|
-
```js
|
|
855
|
-
app.preferences.rulerUnits = Units.PIXELS;
|
|
856
|
-
|
|
857
|
-
var layer = doc.artLayers.add();
|
|
858
|
-
layer.kind = LayerKind.TEXT; // Convert blank layer to text
|
|
859
|
-
layer.name = "My Title";
|
|
860
|
-
|
|
861
|
-
var text = layer.textItem;
|
|
862
|
-
text.contents = "Welcome";
|
|
863
|
-
text.font = "ArialMT";
|
|
864
|
-
text.size = 48;
|
|
865
|
-
text.justification = Justification.CENTER;
|
|
866
|
-
text.position = [doc.width / 2, 100];
|
|
867
|
-
|
|
868
|
-
var color = new SolidColor();
|
|
869
|
-
color.rgb.red = 255;
|
|
870
|
-
color.rgb.green = 255;
|
|
871
|
-
color.rgb.blue = 255;
|
|
872
|
-
text.color = color;
|
|
873
|
-
```
|
|
874
|
-
|
|
875
|
-
---
|
|
876
|
-
|
|
877
|
-
## `SolidColor` — Color Object
|
|
878
|
-
|
|
879
|
-
```js
|
|
880
|
-
// RGB (most common in Photopea)
|
|
881
|
-
var c = new SolidColor();
|
|
882
|
-
c.rgb.red = 255; // 0–255
|
|
883
|
-
c.rgb.green = 128;
|
|
884
|
-
c.rgb.blue = 0;
|
|
885
|
-
c.rgb.hexValue = "FF8000"; // Set via hex string (no #)
|
|
886
|
-
|
|
887
|
-
// CMYK
|
|
888
|
-
var c2 = new SolidColor();
|
|
889
|
-
c2.cmyk.cyan = 0; // 0–100
|
|
890
|
-
c2.cmyk.magenta = 50;
|
|
891
|
-
c2.cmyk.yellow = 100;
|
|
892
|
-
c2.cmyk.black = 0;
|
|
893
|
-
|
|
894
|
-
// Grayscale
|
|
895
|
-
var c3 = new SolidColor();
|
|
896
|
-
c3.gray.gray = 50; // 0–100
|
|
897
|
-
|
|
898
|
-
// HSB
|
|
899
|
-
var c4 = new SolidColor();
|
|
900
|
-
c4.hsb.hue = 30; // 0–360
|
|
901
|
-
c4.hsb.saturation = 100; // 0–100
|
|
902
|
-
c4.hsb.brightness = 100; // 0–100
|
|
903
|
-
|
|
904
|
-
// Lab
|
|
905
|
-
var c5 = new SolidColor();
|
|
906
|
-
c5.lab.l = 50; // 0–100
|
|
907
|
-
c5.lab.a = 20; // -128–127
|
|
908
|
-
c5.lab.b = 40; // -128–127
|
|
909
|
-
|
|
910
|
-
// Set as foreground color
|
|
911
|
-
app.foregroundColor = c;
|
|
912
|
-
|
|
913
|
-
// Use with selection fill
|
|
914
|
-
doc.selection.selectAll();
|
|
915
|
-
doc.selection.fill(c);
|
|
916
|
-
doc.selection.deselect();
|
|
917
|
-
```
|
|
918
|
-
|
|
919
|
-
---
|
|
920
|
-
|
|
921
|
-
## `Selection` — Selection Object
|
|
922
|
-
|
|
923
|
-
Access via `doc.selection`.
|
|
924
|
-
|
|
925
|
-
### Properties
|
|
926
|
-
|
|
927
|
-
| Property | Type | Description |
|
|
928
|
-
|----------|------|-------------|
|
|
929
|
-
| `bounds` | array | `[left, top, right, bottom]` bounding rectangle |
|
|
930
|
-
| `solid` | boolean | Whether selection is a solid rectangle |
|
|
931
|
-
|
|
932
|
-
### Methods
|
|
933
|
-
|
|
934
|
-
| Method | Signature | Description |
|
|
935
|
-
|--------|-----------|-------------|
|
|
936
|
-
| `selectAll` | `()` | Select entire document |
|
|
937
|
-
| `deselect` | `()` | Remove selection |
|
|
938
|
-
| `invert` | `()` | Invert the selection |
|
|
939
|
-
| `select` | `(region, type, feather, antiAlias)` | Select polygon region. Region is array of `[x,y]` points. SelectionType: `REPLACE`, `ADD`, `SUBTRACT`, `INTERSECT` |
|
|
940
|
-
| `feather` | `(radius)` | Feather the selection edges |
|
|
941
|
-
| `contract` | `(radius)` | Contract (shrink) selection |
|
|
942
|
-
| `expand` | `(radius)` | Expand selection |
|
|
943
|
-
| `grow` | `(tolerance, antiAlias)` | Grow selection to similar adjacent pixels |
|
|
944
|
-
| `similar` | `(tolerance, antiAlias)` | Select similar pixels throughout document |
|
|
945
|
-
| `smooth` | `(radius)` | Smooth selection edges |
|
|
946
|
-
| `selectBorder` | `(width)` | Select only the border of the current selection |
|
|
947
|
-
| `resize` | `(widthPct, heightPct, anchor)` | Resize selection boundary |
|
|
948
|
-
| `rotate` | `(angle, anchor)` | Rotate selection boundary |
|
|
949
|
-
| `translate` | `(deltaX, deltaY)` | Move selection boundary |
|
|
950
|
-
| `fill` | `(fillWith, mode, opacity, preserveTransparency)` | Fill selection with color or content. fillWith is SolidColor or string |
|
|
951
|
-
| `stroke` | `(strokeColor, width, location, mode, opacity, preserveTransparency)` | Stroke selection border. StrokeLocation: `INSIDE`, `OUTSIDE`, `CENTER` |
|
|
952
|
-
| `copy` | `(merged)` | Copy selection to clipboard |
|
|
953
|
-
| `cut` | `()` | Cut selection to clipboard |
|
|
954
|
-
| `clear` | `()` | Delete selection content |
|
|
955
|
-
| `load` | `(from, type, invert)` | Load selection from channel |
|
|
956
|
-
| `store` | `(into, type)` | Save selection as channel |
|
|
957
|
-
| `makeWorkPath` | `(tolerance)` | Convert to work path |
|
|
958
|
-
|
|
959
|
-
**Practical examples:**
|
|
960
|
-
```js
|
|
961
|
-
var sel = doc.selection;
|
|
962
|
-
|
|
963
|
-
// Rectangle select (top-left to bottom-right)
|
|
964
|
-
sel.select([[0,0],[500,0],[500,300],[0,300]]);
|
|
965
|
-
|
|
966
|
-
// Select all
|
|
967
|
-
sel.selectAll();
|
|
968
|
-
|
|
969
|
-
// Add to existing selection
|
|
970
|
-
sel.select([[600,0],[900,0],[900,300],[600,300]], SelectionType.ADD);
|
|
971
|
-
|
|
972
|
-
// Feather 10px
|
|
973
|
-
sel.feather(10);
|
|
974
|
-
|
|
975
|
-
// Contract by 5px
|
|
976
|
-
sel.contract(5);
|
|
977
|
-
|
|
978
|
-
// Fill with red
|
|
979
|
-
var red = new SolidColor();
|
|
980
|
-
red.rgb.red = 255; red.rgb.green = 0; red.rgb.blue = 0;
|
|
981
|
-
sel.fill(red);
|
|
982
|
-
|
|
983
|
-
// Stroke selection with black, 3px, inside
|
|
984
|
-
var black = new SolidColor();
|
|
985
|
-
black.rgb.hexValue = "000000";
|
|
986
|
-
sel.stroke(black, 3, StrokeLocation.INSIDE);
|
|
987
|
-
|
|
988
|
-
// Copy, paste as new layer
|
|
989
|
-
sel.copy();
|
|
990
|
-
doc.paste();
|
|
991
|
-
|
|
992
|
-
// Invert and delete (remove background)
|
|
993
|
-
sel.invert();
|
|
994
|
-
sel.clear();
|
|
995
|
-
sel.deselect();
|
|
996
|
-
```
|
|
997
|
-
|
|
998
|
-
---
|
|
999
|
-
|
|
1000
|
-
## `BlendMode` Enum — All Values
|
|
1001
|
-
|
|
1002
|
-
Used in `layer.blendMode` (string form in Photopea) and `BlendMode` constant (standard):
|
|
1003
|
-
|
|
1004
|
-
| `BlendMode` Constant | Photopea String | Name |
|
|
1005
|
-
|----------------------|-----------------|------|
|
|
1006
|
-
| `BlendMode.NORMAL` | `"norm"` | Normal |
|
|
1007
|
-
| `BlendMode.DISSOLVE` | `"diss"` | Dissolve |
|
|
1008
|
-
| `BlendMode.DARKEN` | `"dark"` | Darken |
|
|
1009
|
-
| `BlendMode.MULTIPLY` | `"mul "` | Multiply |
|
|
1010
|
-
| `BlendMode.COLORBURN` | `"idiv"` | Color Burn |
|
|
1011
|
-
| `BlendMode.LINEARBURN` | `"lbrn"` | Linear Burn |
|
|
1012
|
-
| `BlendMode.DARKERCOLOR` | `"dkCl"` | Darker Color |
|
|
1013
|
-
| `BlendMode.LIGHTEN` | `"lite"` | Lighten |
|
|
1014
|
-
| `BlendMode.SCREEN` | `"scrn"` | Screen |
|
|
1015
|
-
| `BlendMode.COLORDODGE` | `"div "` | Color Dodge |
|
|
1016
|
-
| `BlendMode.LINEARDODGE` | `"lddg"` | Linear Dodge (Add) |
|
|
1017
|
-
| `BlendMode.LIGHTERCOLOR` | `"lgCl"` | Lighter Color |
|
|
1018
|
-
| `BlendMode.OVERLAY` | `"over"` | Overlay |
|
|
1019
|
-
| `BlendMode.SOFTLIGHT` | `"sLit"` | Soft Light |
|
|
1020
|
-
| `BlendMode.HARDLIGHT` | `"hLit"` | Hard Light |
|
|
1021
|
-
| `BlendMode.VIVIDLIGHT` | `"vLit"` | Vivid Light |
|
|
1022
|
-
| `BlendMode.LINEARLIGHT` | `"lLit"` | Linear Light |
|
|
1023
|
-
| `BlendMode.PINLIGHT` | `"pLit"` | Pin Light |
|
|
1024
|
-
| `BlendMode.HARDMIX` | `"hMix"` | Hard Mix |
|
|
1025
|
-
| `BlendMode.DIFFERENCE` | `"diff"` | Difference |
|
|
1026
|
-
| `BlendMode.EXCLUSION` | `"smud"` | Exclusion |
|
|
1027
|
-
| `BlendMode.SUBTRACT` | `"fsub"` | Subtract |
|
|
1028
|
-
| `BlendMode.DIVIDE` | `"fdiv"` | Divide |
|
|
1029
|
-
| `BlendMode.HUE` | `"hue "` | Hue |
|
|
1030
|
-
| `BlendMode.SATURATION` | `"sat "` | Saturation |
|
|
1031
|
-
| `BlendMode.COLOR` | `"colr"` | Color |
|
|
1032
|
-
| `BlendMode.LUMINOSITY` | `"lum "` | Luminosity |
|
|
1033
|
-
| `BlendMode.PASSTHROUGH` | `"pass"` | Pass Through (groups only) |
|
|
1034
|
-
|
|
1035
|
-
```js
|
|
1036
|
-
// Use either form:
|
|
1037
|
-
layer.blendMode = BlendMode.SCREEN; // constant
|
|
1038
|
-
layer.blendMode = "scrn"; // string (Photopea internal form)
|
|
1039
|
-
```
|
|
1040
|
-
|
|
1041
|
-
---
|
|
1042
|
-
|
|
1043
|
-
## `LayerKind` Enum
|
|
1044
|
-
|
|
1045
|
-
| Constant | Description |
|
|
1046
|
-
|----------|-------------|
|
|
1047
|
-
| `LayerKind.NORMAL` | Regular pixel layer |
|
|
1048
|
-
| `LayerKind.TEXT` | Text layer |
|
|
1049
|
-
| `LayerKind.SMARTOBJECT` | Smart Object / linked layer |
|
|
1050
|
-
| `LayerKind.SOLIDFILL` | Solid color fill layer |
|
|
1051
|
-
| `LayerKind.GRADIENTFILL` | Gradient fill layer |
|
|
1052
|
-
| `LayerKind.PATTERNFILL` | Pattern fill layer |
|
|
1053
|
-
| `LayerKind.BRIGHTNESSCONTRAST` | Brightness/Contrast adjustment layer |
|
|
1054
|
-
| `LayerKind.CURVES` | Curves adjustment layer |
|
|
1055
|
-
| `LayerKind.LEVELS` | Levels adjustment layer |
|
|
1056
|
-
| `LayerKind.HUESATURATION` | Hue/Saturation adjustment layer |
|
|
1057
|
-
| `LayerKind.COLORBALANCE` | Color Balance adjustment layer |
|
|
1058
|
-
| `LayerKind.CHANNELMIXER` | Channel Mixer adjustment layer |
|
|
1059
|
-
| `LayerKind.GRADIENTMAP` | Gradient Map adjustment layer |
|
|
1060
|
-
| `LayerKind.INVERSION` | Invert adjustment layer |
|
|
1061
|
-
| `LayerKind.POSTERIZE` | Posterize adjustment layer |
|
|
1062
|
-
| `LayerKind.THRESHOLD` | Threshold adjustment layer |
|
|
1063
|
-
| `LayerKind.SELECTIVECOLOR` | Selective Color adjustment layer |
|
|
1064
|
-
| `LayerKind.PHOTOFILTER` | Photo Filter adjustment layer |
|
|
1065
|
-
| `LayerKind.EXPOSURE` | Exposure adjustment layer |
|
|
1066
|
-
| `LayerKind.VIBRANCE` | Vibrance adjustment layer |
|
|
1067
|
-
| `LayerKind.COLORLOOKUP` | Color Lookup adjustment layer |
|
|
1068
|
-
| `LayerKind.LAYER3D` | 3D layer (not generally useful in Photopea) |
|
|
1069
|
-
| `LayerKind.VIDEO` | Video layer |
|
|
1070
|
-
|
|
1071
|
-
```js
|
|
1072
|
-
// Identify layer type
|
|
1073
|
-
var layer = doc.activeLayer;
|
|
1074
|
-
if (layer.kind === LayerKind.TEXT) /* text layer */;
|
|
1075
|
-
if (layer.kind === LayerKind.SMARTOBJECT) /* smart object */;
|
|
1076
|
-
if (layer.typename === "LayerSet") /* group */;
|
|
1077
|
-
|
|
1078
|
-
// Filter: collect all text layers recursively
|
|
1079
|
-
var textLayers = [];
|
|
1080
|
-
function collectText(parent) {
|
|
1081
|
-
for (var i = 0; i < parent.layers.length; i++) {
|
|
1082
|
-
var l = parent.layers[i];
|
|
1083
|
-
if (l.typename === "LayerSet") collectText(l);
|
|
1084
|
-
else if (l.kind === LayerKind.TEXT) textLayers.push(l);
|
|
1085
|
-
}
|
|
1086
|
-
}
|
|
1087
|
-
collectText(doc);
|
|
1088
|
-
```
|
|
1089
|
-
|
|
1090
|
-
---
|
|
1091
|
-
|
|
1092
|
-
## `AnchorPosition` Enum
|
|
1093
|
-
|
|
1094
|
-
| Constant | Position |
|
|
1095
|
-
|----------|----------|
|
|
1096
|
-
| `AnchorPosition.TOPLEFT` | Top left |
|
|
1097
|
-
| `AnchorPosition.TOPCENTER` | Top center |
|
|
1098
|
-
| `AnchorPosition.TOPRIGHT` | Top right |
|
|
1099
|
-
| `AnchorPosition.MIDDLELEFT` | Middle left |
|
|
1100
|
-
| `AnchorPosition.MIDDLECENTER` | Center |
|
|
1101
|
-
| `AnchorPosition.MIDDLERIGHT` | Middle right |
|
|
1102
|
-
| `AnchorPosition.BOTTOMLEFT` | Bottom left |
|
|
1103
|
-
| `AnchorPosition.BOTTOMCENTER` | Bottom center |
|
|
1104
|
-
| `AnchorPosition.BOTTOMRIGHT` | Bottom right |
|
|
1105
|
-
|
|
1106
|
-
---
|
|
1107
|
-
|
|
1108
|
-
## `ElementPlacement` Enum
|
|
1109
|
-
|
|
1110
|
-
Used with `layer.move(relativeObject, placement)`:
|
|
1111
|
-
|
|
1112
|
-
| Constant | Effect |
|
|
1113
|
-
|----------|--------|
|
|
1114
|
-
| `ElementPlacement.PLACEBEFORE` | Above the target layer in the panel |
|
|
1115
|
-
| `ElementPlacement.PLACEAFTER` | Below the target layer in the panel |
|
|
1116
|
-
| `ElementPlacement.PLACEATBEGINNING` | Top of the layer stack |
|
|
1117
|
-
| `ElementPlacement.PLACEATEND` | Bottom of the layer stack |
|
|
1118
|
-
| `ElementPlacement.INSIDE` | Into a LayerSet (makes layer a child) |
|
|
1119
|
-
|
|
1120
|
-
---
|
|
1121
|
-
|
|
1122
|
-
## `ResampleMethod` Enum
|
|
1123
|
-
|
|
1124
|
-
Used with `doc.resizeImage()`:
|
|
1125
|
-
|
|
1126
|
-
| Constant | Description |
|
|
1127
|
-
|----------|-------------|
|
|
1128
|
-
| `ResampleMethod.BICUBIC` | High quality, good for smooth gradients |
|
|
1129
|
-
| `ResampleMethod.BICUBICSHARPER` | Best for reduction |
|
|
1130
|
-
| `ResampleMethod.BICUBICSMOOTHER` | Best for enlargement |
|
|
1131
|
-
| `ResampleMethod.BILINEAR` | Medium quality |
|
|
1132
|
-
| `ResampleMethod.NEARESTNEIGHBOR` | No anti-aliasing, fastest |
|
|
1133
|
-
| `ResampleMethod.NONE` | No resampling (change resolution only) |
|
|
1134
|
-
|
|
1135
|
-
---
|
|
1136
|
-
|
|
1137
|
-
## `SaveOptions` Enum
|
|
1138
|
-
|
|
1139
|
-
Used with `doc.close(saveOption)`:
|
|
1140
|
-
|
|
1141
|
-
| Constant | Meaning |
|
|
1142
|
-
|----------|---------|
|
|
1143
|
-
| `SaveOptions.DONOTSAVECHANGES` | Discard all changes and close |
|
|
1144
|
-
| `SaveOptions.SAVECHANGES` | Save then close |
|
|
1145
|
-
| `SaveOptions.PROMPTTOSAVECHANGES` | Show dialog (may block in headless) |
|
|
1146
|
-
|
|
1147
|
-
---
|
|
1148
|
-
|
|
1149
|
-
## `ExportOptionsSaveForWeb` — Export to Filesystem
|
|
1150
|
-
|
|
1151
|
-
Used with `doc.exportDocument()` to write files that Photopea packages into a ZIP.
|
|
1152
|
-
|
|
1153
|
-
```js
|
|
1154
|
-
// Export PNG
|
|
1155
|
-
var pngOpts = new ExportOptionsSaveForWeb();
|
|
1156
|
-
pngOpts.format = SaveDocumentType.PNG;
|
|
1157
|
-
pngOpts.PNG8 = false; // PNG-24
|
|
1158
|
-
pngOpts.quality = 100;
|
|
1159
|
-
pngOpts.transparency = true;
|
|
1160
|
-
doc.exportDocument(new File("/export.png"), ExportType.SAVEFORWEB, pngOpts);
|
|
1161
|
-
|
|
1162
|
-
// Export JPEG
|
|
1163
|
-
var jpgOpts = new ExportOptionsSaveForWeb();
|
|
1164
|
-
jpgOpts.format = SaveDocumentType.JPEG;
|
|
1165
|
-
jpgOpts.quality = 80; // 0–100
|
|
1166
|
-
doc.exportDocument(new File("/export.jpg"), ExportType.SAVEFORWEB, jpgOpts);
|
|
1167
|
-
|
|
1168
|
-
// Export GIF
|
|
1169
|
-
var gifOpts = new ExportOptionsSaveForWeb();
|
|
1170
|
-
gifOpts.format = SaveDocumentType.GIF;
|
|
1171
|
-
gifOpts.colors = 256;
|
|
1172
|
-
gifOpts.dither = 100;
|
|
1173
|
-
gifOpts.transparency = true;
|
|
1174
|
-
doc.exportDocument(new File("/export.gif"), ExportType.SAVEFORWEB, gifOpts);
|
|
1175
|
-
```
|
|
1176
|
-
|
|
1177
|
-
---
|
|
1178
|
-
|
|
1179
|
-
## `executeAction` — Advanced Operations
|
|
1180
|
-
|
|
1181
|
-
Used for operations not exposed in the standard DOM (adjustments applied as adjustment layers,
|
|
1182
|
-
Smart Object editing, etc.). Takes the Photoshop Action Manager approach.
|
|
1183
|
-
|
|
1184
|
-
```js
|
|
1185
|
-
// Open Smart Object for editing
|
|
1186
|
-
var l = doc.layers.getByName("SmartObj");
|
|
1187
|
-
doc.activeLayer = l;
|
|
1188
|
-
executeAction(stringIDToTypeID("placedLayerEditContents"));
|
|
1189
|
-
// Smart Object is now the active document
|
|
1190
|
-
doc.activeLayer.rotate(90);
|
|
1191
|
-
doc.save();
|
|
1192
|
-
doc.close();
|
|
1193
|
-
|
|
1194
|
-
// Apply Hue/Saturation as destructive adjustment
|
|
1195
|
-
var desc = new ActionDescriptor();
|
|
1196
|
-
var list = new ActionList();
|
|
1197
|
-
var channel = new ActionDescriptor();
|
|
1198
|
-
channel.putEnumerated(stringIDToTypeID("presetKind"), stringIDToTypeID("presetKindType"), stringIDToTypeID("presetKindDefault"));
|
|
1199
|
-
channel.putInteger(stringIDToTypeID("hue"), 20); // hue shift
|
|
1200
|
-
channel.putInteger(stringIDToTypeID("saturation"), 30); // saturation
|
|
1201
|
-
channel.putInteger(stringIDToTypeID("lightness"), 0);
|
|
1202
|
-
list.putObject(stringIDToTypeID("hueSaturationAdjustmentV2Layer"), channel);
|
|
1203
|
-
desc.putList(stringIDToTypeID("adjustment"), list);
|
|
1204
|
-
executeAction(stringIDToTypeID("hueSaturation"), desc, DialogModes.NO);
|
|
1205
|
-
|
|
1206
|
-
// Select a layer by name using AM
|
|
1207
|
-
function selectLayerByName(name) {
|
|
1208
|
-
var desc = new ActionDescriptor();
|
|
1209
|
-
var ref = new ActionReference();
|
|
1210
|
-
ref.putName(charIDToTypeID("Lyr "), name);
|
|
1211
|
-
desc.putReference(charIDToTypeID("null"), ref);
|
|
1212
|
-
desc.putBoolean(charIDToTypeID("MkVs"), false);
|
|
1213
|
-
executeAction(charIDToTypeID("slct"), desc, DialogModes.NO);
|
|
1214
|
-
}
|
|
1215
|
-
```
|
|
1216
|
-
|
|
1217
|
-
---
|
|
1218
|
-
|
|
1219
32
|
## Complete Practical Script Examples
|
|
1220
33
|
|
|
1221
34
|
### 1. Rename all text layers based on their contents
|
|
@@ -1364,25 +177,6 @@ app.echoToOE(JSON.stringify(getLayerInfo(app.activeDocument)));
|
|
|
1364
177
|
|
|
1365
178
|
---
|
|
1366
179
|
|
|
1367
|
-
## Common Mistakes & Gotchas
|
|
1368
|
-
|
|
1369
|
-
| Problem | Cause | Fix |
|
|
1370
|
-
|---------|-------|-----|
|
|
1371
|
-
| `createEmbed` never resolves | Container has no size | Add `width` + `height` CSS to the container `<div>` |
|
|
1372
|
-
| `runScript` returns `["done"]` with no data | No `echoToOE` in script | Add `app.echoToOE(value)` for anything you want back |
|
|
1373
|
-
| `result[0]` is `"done"`, not the expected value | `echoToOE` not reached | Check script logic for early exit or errors |
|
|
1374
|
-
| Images won't load (network error) | CORS | Server must respond with `Access-Control-Allow-Origin: *` |
|
|
1375
|
-
| `openFromURL(url, true)` layer not ready | Async loading lag | Use `addImageAndWait` utility |
|
|
1376
|
-
| `exportImage` only PNG/JPG | `exportImage` limitation | Use `runScript("saveToOE('webp:0.85')")` for other formats |
|
|
1377
|
-
| Pixel coordinates behave unexpectedly | Wrong ruler units | Always set `app.preferences.rulerUnits = Units.PIXELS` first |
|
|
1378
|
-
| Text `size` set but looks different | Wrong type units | Set `app.preferences.typeUnits = TypeUnits.PIXELS` |
|
|
1379
|
-
| Layer not found by name | Wrong layer level | Layers are scoped; use recursive search for nested layers |
|
|
1380
|
-
| `layer.bounds[0]` returns a UnitValue, not number | Ruler units issue | Force `Units.PIXELS` before reading bounds |
|
|
1381
|
-
| Smart Object edit hangs | Missing `doc.save(); doc.close()` | Always save + close when done editing SO |
|
|
1382
|
-
| React double-mount in dev | Strict Mode | Use `if (peaRef.current) return` guard in `useEffect` |
|
|
1383
|
-
|
|
1384
|
-
---
|
|
1385
|
-
|
|
1386
180
|
## Limitations
|
|
1387
181
|
|
|
1388
182
|
- This skill covers host-page integration patterns; it does not replace Photopea's own terms, API documentation, or licensing guidance.
|
|
@@ -1392,12 +186,3 @@ app.echoToOE(JSON.stringify(getLayerInfo(app.activeDocument)));
|
|
|
1392
186
|
- Export behavior can vary by document size, browser memory limits, and the formats supported by the active Photopea runtime.
|
|
1393
187
|
|
|
1394
188
|
---
|
|
1395
|
-
|
|
1396
|
-
## Sources
|
|
1397
|
-
|
|
1398
|
-
- photopea.js: https://github.com/yikuansun/PhotopeaAPI
|
|
1399
|
-
- npm: https://www.npmjs.com/package/photopea
|
|
1400
|
-
- Photopea Live Messaging API: https://www.photopea.com/api/live
|
|
1401
|
-
- Photopea Script reference: https://www.photopea.com/learn/scripts
|
|
1402
|
-
- Photoshop JS Scripting reference (compatible): https://theiviaxx.github.io/photoshop-docs/Photoshop/index.html
|
|
1403
|
-
- Plugin dev gists (addImageAndWait, getDocumentAsImage): https://gist.github.com/yikuansun/c0f1a602b4e9d4e344a41c4f49ded3bf
|