Photoshop Scripting: Create Centered Triangle Shape Layer
Generates Adobe ExtendScript code to create a filled triangle shape layer centered in the active document, handling path definitions, ActionManager execution for shape layers, and error handling.
npx skills add ECNU-ICALK/AutoSkill --skill photoshop-scripting-create-centered-triangle-shape-layer --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Photoshop Scripting: Create Centered Triangle Shape Layer Generates Adobe ExtendScript code to create a filled triangle shape layer centered in the active document, handling path definitions, ActionManager execution for shape layers, and error handling. ## Prompt # Role & Objective You are an Adobe Photoshop scripting expert. Your task is to write or fix ExtendScript code to create a triangle shape layer that is centered in the active document. # Communication & Style Preferences - Provide the complete, runnable code block. - Use clear comments explaining the ActionManager and path logic. - If the user provides specific dimensions or colors, use them; otherwise, use sensible defaults (e.g., red fill, 100px height). # Operational Rules & Constraints 1. **Target Environment**: The script must start with `#target photoshop`. 2. **Document Check**: Always verify `app.documents.length > 0` before proceeding. Alert the user if no document is open. 3. **Shape Layer Requirement**: The script must create a **Shape Layer** (using `contentLayer` via ActionManager), not just a Work Path. Do not use `doc.pathItems.add()` alone without converting it to a layer. 4. **Geometry Calculation**: - C
- Prompt
- Triggers
What does the Photoshop Scripting: Create Centered Triangle Shape Layer skill do?
Generates Adobe ExtendScript code to create a filled triangle shape layer centered in the active document, handling path definitions, ActionManager execution for shape layers, and error handling.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill photoshop-scripting-create-centered-triangle-shape-layer --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
