[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M781BNWVFPWXQB4G0XF847SE":3,"skill-same:01M781BNWVFPWXQB4G0XF847SE":53},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":35,"ownerHtmlUrl":36,"ownerBlogUrl":6,"ownerDescription":37,"updatedAt":38,"install":39,"resources":52},"01M781BNWVFPWXQB4G0XF847SE","after-effects",null,"Automate Adobe After Effects via ExtendScript. Use when the user asks to create, modify, or query anything in an After Effects project — layers, keyframes, expressions, effects, compositions, assets, rendering, batch operations. Generates and executes JSX ExtendScript via osascript on macOS.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fskills_sh\u002Fs\u002Fskills-sh_aedev-tools_adobe-agent-skills_after-effects\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: after-effects\ndescription: >\n  Automate Adobe After Effects via ExtendScript. Use when the user asks to\n  create, modify, or query anything in an After Effects project — layers,\n  keyframes, expressions, effects, compositions, assets, rendering, batch\n  operations. Generates and executes JSX ExtendScript via osascript on macOS.\ncompatibility: Requires macOS with Adobe After Effects installed. Needs \"Allow Scripts to Write Files and Access Network\" enabled in AE Preferences > Scripting & Expressions.\nallowed-tools: Bash(osascript *) Bash(chmod *) Bash(bash *) Read Write\nmetadata:\n  author: aedev-tools\n  version: \"1.0\"\n---\n\n## Overview\n\nThis skill automates After Effects by generating ExtendScript (.jsx) and executing it via osascript. It reads project state through query scripts, uses rule files for domain knowledge, and wraps all mutations in undo groups.\n\n## First-Time Setup\n\n1. Run `scripts\u002Frunner.sh` with any query script to detect the AE version\n2. If multiple AE versions are installed, the user must choose one — runner.sh will prompt\n3. Ensure AE Preferences > Scripting & Expressions > \"Allow Scripts to Write Files and Access Network\" is enabled\n\n## Workflow\n\nFor every user request:\n\n### Step 1: Gather context (auto-run, no confirmation needed)\n\nUse `--background` for all query scripts — this skips `ae.activate()` so AE doesn't steal focus:\n\n```bash\nbash scripts\u002Frunner.sh --background scripts\u002Factive-state.jsx\n```\nThen read `\u002Ftmp\u002Fae-assistant-result.json` for active comp, selected layers, CTI.\n\nIf this is the first interaction or the project context is unknown, also run:\n```bash\nbash scripts\u002Frunner.sh --background scripts\u002Fproject-overview.jsx\n```\nThis returns a **summary** by default: folder tree with counts, all comps listed, footage grouped by file type. NOT every individual file.\n\nTo drill into a specific folder:\n```bash\nbash scripts\u002Frunner.sh --background scripts\u002Fproject-overview.jsx '{\"mode\": \"folder\", \"folderName\": \"Images\"}'\n```\n\nOnly use full mode when you actually need every item listed:\n```bash\nbash scripts\u002Frunner.sh --background scripts\u002Fproject-overview.jsx '{\"mode\": \"full\"}'\n```\n\n### Step 2: Drill down if needed (auto-run)\n\nIf the task targets a specific comp:\n```bash\nbash scripts\u002Frunner.sh --background scripts\u002Fcomp-detail.jsx '{\"compName\": \"Comp Name\"}'\n```\n\nIf the task targets specific layers:\n```bash\nbash scripts\u002Frunner.sh --background scripts\u002Flayer-detail.jsx '{\"layerNames\": [\"Layer 1\", \"Layer 2\"]}'\n```\n\nOmit `compName` to use the active comp. Omit `layerNames` to use selected layers.\n\n#### Additional query scripts\n\n**Expression errors** — scan for broken expressions:\n```bash\nbash scripts\u002Frunner.sh --background scripts\u002Fexpression-errors.jsx\nbash scripts\u002Frunner.sh --background scripts\u002Fexpression-errors.jsx '{\"compName\": \"Main Comp\"}'\n```\n\n**Font inventory** — list all fonts used across the project:\n```bash\nbash scripts\u002Frunner.sh --background scripts\u002Ffont-inventory.jsx\n```\n\n**Project audit** — comprehensive health check (unused footage, missing files, expression errors, duplicate solids, font issues, empty folders):\n```bash\nbash scripts\u002Frunner.sh --background scripts\u002Fproject-audit.jsx\nbash scripts\u002Frunner.sh --background scripts\u002Fproject-audit.jsx '{\"checks\": [\"unused\", \"missing\", \"expressions\"]}'\n```\n\n### Step 3: Load domain knowledge\n\nRead the relevant rule file from `rules\u002F`. Always read `rules\u002Fextendscript-fundamentals.md` — it contains ES3 constraints that apply to every generated script.\n\n| Task involves | Load rule file |\n|---|---|\n| Layers (create, move, parent, duplicate) | [rules\u002Flayer-manipulation.md](rules\u002Flayer-manipulation.md) |\n| Keyframes, animation, easing | [rules\u002Fkeyframes-animation.md](rules\u002Fkeyframes-animation.md) |\n| Expressions | [rules\u002Fexpressions.md](rules\u002Fexpressions.md) |\n| Compositions (create, precompose, nest) | [rules\u002Fcomposition-management.md](rules\u002Fcomposition-management.md) |\n| Effects and parameters | [rules\u002Feffects.md](rules\u002Feffects.md) |\n| Import, footage, assets | [rules\u002Fassets-footage.md](rules\u002Fassets-footage.md) |\n| Render queue, export | [rules\u002Frendering.md](rules\u002Frendering.md) |\n| Bulk\u002Fbatch operations | [rules\u002Fbatch-operations.md](rules\u002Fbatch-operations.md) |\n| Version-specific features | [references\u002Fae-api-versions.md](references\u002Fae-api-versions.md) |\n\n### Step 4: Generate the action script\n\n**CRITICAL: Resolve the skill's real path first**\n\nBefore writing or executing any action script, resolve the skill's real (non-symlinked) path. ExtendScript `#include` cannot follow symlinks, so you MUST use the real filesystem path.\n\nRun this once at the start of each session:\n```bash\nSKILL_SCRIPTS=\"$(readlink -f ~\u002F.claude\u002Fskills\u002Fafter-effects-assistant\u002Fscripts 2>\u002Fdev\u002Fnull || readlink ~\u002F.claude\u002Fskills\u002Fafter-effects-assistant\u002Fscripts)\"\necho \"$SKILL_SCRIPTS\"\n```\n\nUse the resolved path (`$SKILL_SCRIPTS`) for all subsequent Write and Bash commands in this session.\n\n**Why this matters:**\n- `~\u002F.claude\u002Fskills\u002F` is typically a symlink — ExtendScript `#include` fails through symlinks\n- Writing to the real `scripts\u002F` directory lets `#include \"lib\u002Fjson2.jsx\"` resolve correctly\n- The resolved path changes per machine, so never hardcode it\n\nEvery generated script MUST follow this template:\n\n```jsx\n#include \"lib\u002Fjson2.jsx\"\n#include \"lib\u002Futils.jsx\"\n\n(function() {\n    app.beginUndoGroup(\"AE Assistant: \u003Caction description>\");\n    try {\n        var args = readArgs();\n        var comp = getActiveComp();\n        if (!comp) return;\n\n        \u002F\u002F ... action code ...\n\n        writeResult({ success: true, message: \"\u003Cwhat was done>\" });\n    } catch (e) {\n        try { writeResult({ error: e.toString(), line: e.line, fileName: e.fileName }); }\n        catch(e2) { writeError(e.toString(), \"line:\" + e.line); }\n    } finally {\n        app.endUndoGroup();\n    }\n})();\n```\n\n#### utils.jsx helpers available for generated scripts\n\n| Function | Purpose |\n|----------|---------|\n| `writeResult(obj)` | Write JSON result to `\u002Ftmp\u002Fae-assistant-result.json` |\n| `writeError(msg, detail)` | Last-resort error capture when JSON.stringify fails |\n| `readArgs()` | Read args from `\u002Ftmp\u002Fae-assistant-args.json` |\n| `getLayerType(layer)` | Returns type string: \"shape\", \"text\", \"null\", \"precomp\", etc. |\n| `getBlendModeName(mode)` | BlendingMode enum → string name |\n| `getActiveComp()` | Returns active comp or writes error and returns null |\n| `getSelectedOrAllLayers(comp)` | Selected layers array, or all layers if none selected |\n| `hexToRGB(hex)` | `\"#ff0000\"` → `[1, 0, 0]` |\n| `getCompByName(name)` | Find comp in project items by name |\n| `walkProperties(group, leafFn, path)` | Recursive property tree walker — calls `leafFn(prop, path)` on leaves |\n| `bubbleSort(arr, compareFn)` | ES3-compatible in-place sort |\n| `framesToSeconds(frames, comp)` | Frame count → seconds via `comp.frameDuration` |\n| `appendLog(message)` | Append to `~\u002F.ae-assistant-extendscript.log` |\n\n**Write the script using the Write tool, then execute with a short bash command:**\n\n1. Use the **Write** tool to write the script to `$SKILL_SCRIPTS\u002Fae-action.jsx` (the resolved real path)\n2. Execute it with bash:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fae-action.jsx\"\n```\n\n**IMPORTANT:** Do NOT use `cat > file \u003C\u003C 'SCRIPT'` heredocs — they put the entire script in the bash command, cluttering the permission prompt. Always use the Write tool for the script content, then a short bash command to run it.\n\n### Step 5: Execute or confirm\n\n**Auto-run** (no confirmation needed):\n- All read-only queries (active-state, project-overview, comp-detail, layer-detail, expression-errors, font-inventory, project-audit)\n- Non-destructive additions: adding a keyframe, adding an effect, creating a layer, creating a comp\n\n**Confirm before running** (show the script and ask the user):\n- Deleting layers or comps\n- Removing keyframes\n- Replacing footage\n- Clearing expressions\n- Render queue operations\n- Project cleanup (removing unused items, consolidating solids)\n- Any operation the user might not expect\n\n### Built-in action scripts\n\nBefore generating a custom `ae-action.jsx`, check if a built-in script already handles the task. These are permanent, tested scripts with args-based behavior:\n\n**True Comp Duplicator** — deep-clone a comp with independent sub-comps (confirm before running):\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Ftrue-comp-duplicator.jsx\" '{\"compName\": \"Main Comp\", \"suffix\": \" COPY\"}'\n```\n\n**Font Replace** — find and replace fonts across the project. Always dryRun first:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Ffont-replace.jsx\" '{\"find\": \"Helvetica\", \"replace\": \"Inter-Regular\", \"dryRun\": true}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Ffont-replace.jsx\" '{\"find\": \"Helvetica\", \"replace\": \"Inter-Regular\"}'\n```\n\n**Project Cleanup** — remove unused footage, consolidate duplicate solids, remove empty folders. Always dryRun first:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fproject-cleanup.jsx\" '{\"dryRun\": true}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fproject-cleanup.jsx\"\n```\n\n**Batch Rename** — rename layers, comps, or project items in bulk:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fbatch-rename.jsx\" '{\"target\": \"layers\", \"mode\": \"find-replace\", \"find\": \"Layer\", \"replace\": \"Element\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fbatch-rename.jsx\" '{\"target\": \"layers\", \"mode\": \"prefix\", \"prefix\": \"BG_\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fbatch-rename.jsx\" '{\"target\": \"layers\", \"mode\": \"sequence\", \"base\": \"Card\", \"start\": 1}'\n```\n\n**Layer Stagger** — offset selected layers in time for cascade animations:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Flayer-stagger.jsx\" '{\"offset\": 0.1, \"unit\": \"seconds\", \"direction\": \"forward\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Flayer-stagger.jsx\" '{\"offset\": 2, \"unit\": \"frames\"}'\n```\n\n**Expression Replace** — find\u002Freplace text in expressions project-wide. Always dryRun first:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fexpression-replace.jsx\" '{\"find\": \"comp(\\\"Old\\\")\", \"replace\": \"comp(\\\"New\\\")\", \"dryRun\": true}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fexpression-replace.jsx\" '{\"find\": \"comp(\\\"Old\\\")\", \"replace\": \"comp(\\\"New\\\")\"}'\n```\n\n**Organize Project** — auto-sort project panel items into folders by type:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Forganize-project.jsx\" '{\"structure\": \"by-type\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Forganize-project.jsx\" '{\"structure\": \"by-extension\"}'\n```\n\n**Batch Comp Settings** — change fps, resolution, duration across multiple comps:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fbatch-comp-settings.jsx\" '{\"scope\": \"all\", \"fps\": 25}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fbatch-comp-settings.jsx\" '{\"compNames\": [\"Comp 1\", \"Comp 2\"], \"width\": 3840, \"height\": 2160}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fbatch-comp-settings.jsx\" '{\"scope\": \"nested\", \"fps\": 30, \"duration\": 10}'\n```\n\n**Easing Presets** — apply professional easing or bounce\u002Felastic expressions:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Feasing-presets.jsx\" '{\"preset\": \"smooth\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Feasing-presets.jsx\" '{\"preset\": \"snappy\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Feasing-presets.jsx\" '{\"preset\": \"bounce\"}'\n```\n\n**Anchor Point Mover** — reposition anchor point with visual position compensation:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fanchor-point-mover.jsx\" '{\"position\": \"center\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fanchor-point-mover.jsx\" '{\"position\": \"bottom-left\"}'\n```\n\n**Reverse Keyframes** — reverse animation on selected properties:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Freverse-keyframes.jsx\"\n```\n\n**Select Layers** — select layers by type, label, attribute, or name:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fselect-layers.jsx\" '{\"type\": \"text\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fselect-layers.jsx\" '{\"hasExpressions\": true}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fselect-layers.jsx\" '{\"nameContains\": \"BG\"}'\n```\n\n**Layer Sort** — reorder layers in timeline by name, position, in-point, type, or label:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Flayer-sort.jsx\" '{\"sortBy\": \"name\", \"order\": \"ascending\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Flayer-sort.jsx\" '{\"sortBy\": \"position-y\"}'\n```\n\n**Smart Precompose** — precompose with auto-trimmed duration:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fsmart-precompose.jsx\" '{\"name\": \"My Precomp\", \"trimToContent\": true}'\n```\n\n**Copy Ease** — copy easing from one keyframe and paste to others:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fcopy-ease.jsx\" '{\"mode\": \"both\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fcopy-ease.jsx\" '{\"sourceLayer\": \"Logo\", \"sourceProperty\": \"Position\", \"sourceKeyIndex\": 2}'\n```\n\n**Relink Footage** — batch-relink missing footage from search directories. Always dryRun first:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Frelink-footage.jsx\" '{\"searchPaths\": [\"\u002FVolumes\u002FProjects\u002Ffootage\"], \"dryRun\": true}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Frelink-footage.jsx\" '{\"searchPaths\": [\"\u002FVolumes\u002FProjects\u002Ffootage\"]}'\n```\n\n**SRT Import** — create timed subtitle text layers from an SRT file:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fsrt-import.jsx\" '{\"srtPath\": \"\u002Fpath\u002Fto\u002Fsubs.srt\", \"fontSize\": 48}'\n```\n\n**Text Export\u002FImport** — export all text to CSV, edit externally, reimport:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Ftext-export-import.jsx\" '{\"mode\": \"export\", \"csvPath\": \"\u002Ftmp\u002Ftext.csv\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Ftext-export-import.jsx\" '{\"mode\": \"import\", \"csvPath\": \"\u002Ftmp\u002Ftext.csv\"}'\n```\n\n**Batch Expression** — apply, remove, enable, or disable expressions in bulk:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fbatch-expression.jsx\" '{\"property\": \"opacity\", \"expression\": \"wiggle(2, 10)\", \"mode\": \"apply\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fbatch-expression.jsx\" '{\"mode\": \"remove\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fbatch-expression.jsx\" '{\"mode\": \"disable\"}'\n```\n\n**Randomize Properties** — apply random values to transform properties:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Frandomize-properties.jsx\" '{\"property\": \"rotation\", \"min\": -15, \"max\": 15}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Frandomize-properties.jsx\" '{\"property\": \"position\", \"minX\": 0, \"maxX\": 1920, \"minY\": 0, \"maxY\": 1080}'\n```\n\n**Un-PreCompose** — extract layers from a precomp back into parent (confirm before running):\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fun-precompose.jsx\" '{\"precompLayerName\": \"Precomp 1\"}'\n```\n\n**Comp from CSV** — generate comp variations from spreadsheet data (confirm before running):\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fcomp-from-csv.jsx\" '{\"templateComp\": \"Lower Third\", \"csvPath\": \"\u002Fpath\u002Fdata.csv\"}'\n```\n\n**Render Queue Batch** — add multiple comps to render queue (confirm before running):\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Frender-queue-batch.jsx\" '{\"compNames\": [\"Final_16x9\", \"Final_9x16\"], \"outputPath\": \"~\u002FDesktop\u002Frenders\u002F\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Frender-queue-batch.jsx\" '{\"scope\": \"folder\", \"folderName\": \"Finals\"}'\n```\n\n**Explode Shape Layer** — split shape groups into individual layers:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fexplode-shape-layer.jsx\" '{\"layerName\": \"AI Import\"}'\n```\n\n**Incremental Save** — save project with auto-incrementing version number:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fincremental-save.jsx\" '{\"comment\": \"before revisions\"}'\n```\n\n**Purge Cache** — clear memory caches, disk cache, and free resources. dryRun to check size first:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fpurge-cache.jsx\" '{\"dryRun\": true}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fpurge-cache.jsx\"\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fpurge-cache.jsx\" '{\"memory\": true, \"disk\": false}'\n```\n\n**Trim Comp to Content** — trim\u002Fextend comp duration to exactly fit layer content:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Ftrim-comp-to-content.jsx\"\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Ftrim-comp-to-content.jsx\" '{\"padding\": 0.5}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Ftrim-comp-to-content.jsx\" '{\"recursive\": true}'\n```\n\n**Null from Layers** — create a null at each selected layer's position, auto-parent:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fnull-from-layers.jsx\"\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fnull-from-layers.jsx\" '{\"naming\": \"custom\", \"prefix\": \"Driver\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fnull-from-layers.jsx\" '{\"position\": \"comp-center\"}'\n```\n\n**Fit to Comp** — scale selected layers to fit\u002Ffill comp dimensions:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Ffit-to-comp.jsx\" '{\"mode\": \"fit\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Ffit-to-comp.jsx\" '{\"mode\": \"fill\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Ffit-to-comp.jsx\" '{\"mode\": \"stretch\"}'\n```\n\n**Label Layers** — batch-set label colors on layers by type, name, or selection:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Flabel-layers.jsx\" '{\"label\": 3, \"target\": \"selected\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Flabel-layers.jsx\" '{\"label\": 1, \"target\": \"text\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Flabel-layers.jsx\" '{\"label\": 5, \"target\": \"all\", \"nameContains\": \"BG\"}'\n```\n\n**Blend Mode Set** — set blending mode on selected layers:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fblend-mode-set.jsx\" '{\"mode\": \"SCREEN\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fblend-mode-set.jsx\" '{\"mode\": \"MULTIPLY\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fblend-mode-set.jsx\" '{\"mode\": \"ADD\"}'\n```\n\n**Split Layer** — split selected layers at CTI (confirm before running — modifies layer timing):\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fsplit-layer.jsx\"\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fsplit-layer.jsx\" '{\"time\": 2.5}'\n```\n\n### Step 6: Execute and read result\n\n```bash\n# Execute the action script (already written to $SKILL_SCRIPTS\u002Fae-action.jsx in Step 4)\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fae-action.jsx\" '{\"arg1\": \"value1\"}'\n```\n\nRead `\u002Ftmp\u002Fae-assistant-result.json` for the result.\n\n### Debugging failures\n\nIf a script fails, check these in order:\n1. **`~\u002F.ae-assistant-log`** — runner.sh logs every execution, args, results, and errors here\n2. **`\u002Ftmp\u002Fae-assistant-error.txt`** — JXA-level errors (AE not responding, DoScriptFile failure)\n3. **`~\u002F.ae-assistant-extendscript.log`** — ExtendScript-level logs from `appendLog()` in utils.jsx\n4. **AE Preferences** — Ensure \"Allow Scripts to Write Files and Access Network\" is enabled\n\nWhen an error occurs, read `~\u002F.ae-assistant-log` to understand what happened, fix the script, and retry.\n\n## MUST\n\n- ALWAYS wrap mutations in `app.beginUndoGroup()` \u002F `app.endUndoGroup()`\n- ALWAYS use matchNames for property access, not display names (display names are localized)\n- ALWAYS use 1-based indexing for layers and project items\n- ALWAYS write action scripts to `$SKILL_SCRIPTS\u002Fae-action.jsx` (the resolved real path, NOT `\u002Ftmp\u002F`)\n- ALWAYS use relative `#include \"lib\u002Fjson2.jsx\"` and `#include \"lib\u002Futils.jsx\"` (NOT absolute paths)\n- ALWAYS wrap in an IIFE to avoid global scope pollution\n- ALWAYS use `var`, never `let` or `const` (ES3)\n- ALWAYS write results to \u002Ftmp\u002Fae-assistant-result.json via writeResult()\n- ALWAYS use `getActiveComp()` to get the active comp (handles the null\u002FCompItem check and writes error)\n- ALWAYS use `--background` flag for query scripts to avoid focus-steal\n\n## FORBIDDEN\n\n- NEVER use ES5+ syntax: let, const, arrow functions, template literals, destructuring\n- NEVER use Array.map, Array.filter, Array.reduce, Array.forEach (not in ES3)\n- NEVER use JSON.parse or JSON.stringify without including json2.jsx\n- NEVER write action scripts to `\u002Ftmp\u002F` — ExtendScript `#include` can't resolve paths from there\n- NEVER use absolute paths in `#include` — they break through symlinks\n- NEVER hardcode layer indices — use names, selection, or iteration\n- NEVER run destructive operations without user confirmation\n- NEVER assume a comp is active without checking\n- NEVER use `cat > file \u003C\u003C 'SCRIPT'` heredocs to write scripts — use the Write tool instead, then execute with a short bash command\n","## Overview\n\nThis skill automates After Effects by generating ExtendScript (.jsx) and executing it via osascript. It reads project state through query scripts, uses rule files for domain knowledge, and wraps all mutations in undo groups.\n\n## First-Time Setup\n\n1. Run `scripts\u002Frunner.sh` with any query script to detect the AE version\n2. If multiple AE versions are installed, the user must choose one — runner.sh will prompt\n3. Ensure AE Preferences > Scripting & Expressions > \"Allow Scripts to Write Files and Access Network\" is enabled\n\n## Workflow\n\nFor every user request:\n\n### Step 1: Gather context (auto-run, no confirmation needed)\n\nUse `--background` for all query scripts — this skips `ae.activate()` so AE doesn't steal focus:\n\n```bash\nbash scripts\u002Frunner.sh --background scripts\u002Factive-state.jsx\n```\nThen read `\u002Ftmp\u002Fae-assistant-result.json` for active comp, selected layers, CTI.\n\nIf this is the first interaction or the project context is unknown, also run:\n```bash\nbash scripts\u002Frunner.sh --background scripts\u002Fproject-overview.jsx\n```\nThis returns a **summary** by default: folder tree with counts, all comps listed, footage grouped by file type. NOT every individual file.\n\nTo drill into a specific folder:\n```bash\nbash scripts\u002Frunner.sh --background scripts\u002Fproject-overview.jsx '{\"mode\": \"folder\", \"folderName\": \"Images\"}'\n```\n\nOnly use full mode when you actually need every item listed:\n```bash\nbash scripts\u002Frunner.sh --background scripts\u002Fproject-overview.jsx '{\"mode\": \"full\"}'\n```\n\n### Step 2: Drill down if needed (auto-run)\n\nIf the task targets a specific comp:\n```bash\nbash scripts\u002Frunner.sh --background scripts\u002Fcomp-detail.jsx '{\"compName\": \"Comp Name\"}'\n```\n\nIf the task targets specific layers:\n```bash\nbash scripts\u002Frunner.sh --background scripts\u002Flayer-detail.jsx '{\"layerNames\": [\"Layer 1\", \"Layer 2\"]}'\n```\n\nOmit `compName` to use the active comp. Omit `layerNames` to use selected layers.\n\n#### Additional query scripts\n\n**Expression errors** — scan for broken expressions:\n```bash\nbash scripts\u002Frunner.sh --background scripts\u002Fexpression-errors.jsx\nbash scripts\u002Frunner.sh --background scripts\u002Fexpression-errors.jsx '{\"compName\": \"Main Comp\"}'\n```\n\n**Font inventory** — list all fonts used across the project:\n```bash\nbash scripts\u002Frunner.sh --background scripts\u002Ffont-inventory.jsx\n```\n\n**Project audit** — comprehensive health check (unused footage, missing files, expression errors, duplicate solids, font issues, empty folders):\n```bash\nbash scripts\u002Frunner.sh --background scripts\u002Fproject-audit.jsx\nbash scripts\u002Frunner.sh --background scripts\u002Fproject-audit.jsx '{\"checks\": [\"unused\", \"missing\", \"expressions\"]}'\n```\n\n### Step 3: Load domain knowledge\n\nRead the relevant rule file from `rules\u002F`. Always read `rules\u002Fextendscript-fundamentals.md` — it contains ES3 constraints that apply to every generated script.\n\n| Task involves | Load rule file |\n|---|---|\n| Layers (create, move, parent, duplicate) | [rules\u002Flayer-manipulation.md](rules\u002Flayer-manipulation.md) |\n| Keyframes, animation, easing | [rules\u002Fkeyframes-animation.md](rules\u002Fkeyframes-animation.md) |\n| Expressions | [rules\u002Fexpressions.md](rules\u002Fexpressions.md) |\n| Compositions (create, precompose, nest) | [rules\u002Fcomposition-management.md](rules\u002Fcomposition-management.md) |\n| Effects and parameters | [rules\u002Feffects.md](rules\u002Feffects.md) |\n| Import, footage, assets | [rules\u002Fassets-footage.md](rules\u002Fassets-footage.md) |\n| Render queue, export | [rules\u002Frendering.md](rules\u002Frendering.md) |\n| Bulk\u002Fbatch operations | [rules\u002Fbatch-operations.md](rules\u002Fbatch-operations.md) |\n| Version-specific features | [references\u002Fae-api-versions.md](references\u002Fae-api-versions.md) |\n\n### Step 4: Generate the action script\n\n**CRITICAL: Resolve the skill's real path first**\n\nBefore writing or executing any action script, resolve the skill's real (non-symlinked) path. ExtendScript `#include` cannot follow symlinks, so you MUST use the real filesystem path.\n\nRun this once at the start of each session:\n```bash\nSKILL_SCRIPTS=\"$(readlink -f ~\u002F.claude\u002Fskills\u002Fafter-effects-assistant\u002Fscripts 2>\u002Fdev\u002Fnull || readlink ~\u002F.claude\u002Fskills\u002Fafter-effects-assistant\u002Fscripts)\"\necho \"$SKILL_SCRIPTS\"\n```\n\nUse the resolved path (`$SKILL_SCRIPTS`) for all subsequent Write and Bash commands in this session.\n\n**Why this matters:**\n- `~\u002F.claude\u002Fskills\u002F` is typically a symlink — ExtendScript `#include` fails through symlinks\n- Writing to the real `scripts\u002F` directory lets `#include \"lib\u002Fjson2.jsx\"` resolve correctly\n- The resolved path changes per machine, so never hardcode it\n\nEvery generated script MUST follow this template:\n\n```jsx\n#include \"lib\u002Fjson2.jsx\"\n#include \"lib\u002Futils.jsx\"\n\n(function() {\n    app.beginUndoGroup(\"AE Assistant: \u003Caction description>\");\n    try {\n        var args = readArgs();\n        var comp = getActiveComp();\n        if (!comp) return;\n\n        \u002F\u002F ... action code ...\n\n        writeResult({ success: true, message: \"\u003Cwhat was done>\" });\n    } catch (e) {\n        try { writeResult({ error: e.toString(), line: e.line, fileName: e.fileName }); }\n        catch(e2) { writeError(e.toString(), \"line:\" + e.line); }\n    } finally {\n        app.endUndoGroup();\n    }\n})();\n```\n\n#### utils.jsx helpers available for generated scripts\n\n| Function | Purpose |\n|----------|---------|\n| `writeResult(obj)` | Write JSON result to `\u002Ftmp\u002Fae-assistant-result.json` |\n| `writeError(msg, detail)` | Last-resort error capture when JSON.stringify fails |\n| `readArgs()` | Read args from `\u002Ftmp\u002Fae-assistant-args.json` |\n| `getLayerType(layer)` | Returns type string: \"shape\", \"text\", \"null\", \"precomp\", etc. |\n| `getBlendModeName(mode)` | BlendingMode enum → string name |\n| `getActiveComp()` | Returns active comp or writes error and returns null |\n| `getSelectedOrAllLayers(comp)` | Selected layers array, or all layers if none selected |\n| `hexToRGB(hex)` | `\"#ff0000\"` → `[1, 0, 0]` |\n| `getCompByName(name)` | Find comp in project items by name |\n| `walkProperties(group, leafFn, path)` | Recursive property tree walker — calls `leafFn(prop, path)` on leaves |\n| `bubbleSort(arr, compareFn)` | ES3-compatible in-place sort |\n| `framesToSeconds(frames, comp)` | Frame count → seconds via `comp.frameDuration` |\n| `appendLog(message)` | Append to `~\u002F.ae-assistant-extendscript.log` |\n\n**Write the script using the Write tool, then execute with a short bash command:**\n\n1. Use the **Write** tool to write the script to `$SKILL_SCRIPTS\u002Fae-action.jsx` (the resolved real path)\n2. Execute it with bash:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fae-action.jsx\"\n```\n\n**IMPORTANT:** Do NOT use `cat > file \u003C\u003C 'SCRIPT'` heredocs — they put the entire script in the bash command, cluttering the permission prompt. Always use the Write tool for the script content, then a short bash command to run it.\n\n### Step 5: Execute or confirm\n\n**Auto-run** (no confirmation needed):\n- All read-only queries (active-state, project-overview, comp-detail, layer-detail, expression-errors, font-inventory, project-audit)\n- Non-destructive additions: adding a keyframe, adding an effect, creating a layer, creating a comp\n\n**Confirm before running** (show the script and ask the user):\n- Deleting layers or comps\n- Removing keyframes\n- Replacing footage\n- Clearing expressions\n- Render queue operations\n- Project cleanup (removing unused items, consolidating solids)\n- Any operation the user might not expect\n\n### Built-in action scripts\n\nBefore generating a custom `ae-action.jsx`, check if a built-in script already handles the task. These are permanent, tested scripts with args-based behavior:\n\n**True Comp Duplicator** — deep-clone a comp with independent sub-comps (confirm before running):\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Ftrue-comp-duplicator.jsx\" '{\"compName\": \"Main Comp\", \"suffix\": \" COPY\"}'\n```\n\n**Font Replace** — find and replace fonts across the project. Always dryRun first:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Ffont-replace.jsx\" '{\"find\": \"Helvetica\", \"replace\": \"Inter-Regular\", \"dryRun\": true}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Ffont-replace.jsx\" '{\"find\": \"Helvetica\", \"replace\": \"Inter-Regular\"}'\n```\n\n**Project Cleanup** — remove unused footage, consolidate duplicate solids, remove empty folders. Always dryRun first:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fproject-cleanup.jsx\" '{\"dryRun\": true}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fproject-cleanup.jsx\"\n```\n\n**Batch Rename** — rename layers, comps, or project items in bulk:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fbatch-rename.jsx\" '{\"target\": \"layers\", \"mode\": \"find-replace\", \"find\": \"Layer\", \"replace\": \"Element\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fbatch-rename.jsx\" '{\"target\": \"layers\", \"mode\": \"prefix\", \"prefix\": \"BG_\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fbatch-rename.jsx\" '{\"target\": \"layers\", \"mode\": \"sequence\", \"base\": \"Card\", \"start\": 1}'\n```\n\n**Layer Stagger** — offset selected layers in time for cascade animations:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Flayer-stagger.jsx\" '{\"offset\": 0.1, \"unit\": \"seconds\", \"direction\": \"forward\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Flayer-stagger.jsx\" '{\"offset\": 2, \"unit\": \"frames\"}'\n```\n\n**Expression Replace** — find\u002Freplace text in expressions project-wide. Always dryRun first:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fexpression-replace.jsx\" '{\"find\": \"comp(\\\"Old\\\")\", \"replace\": \"comp(\\\"New\\\")\", \"dryRun\": true}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fexpression-replace.jsx\" '{\"find\": \"comp(\\\"Old\\\")\", \"replace\": \"comp(\\\"New\\\")\"}'\n```\n\n**Organize Project** — auto-sort project panel items into folders by type:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Forganize-project.jsx\" '{\"structure\": \"by-type\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Forganize-project.jsx\" '{\"structure\": \"by-extension\"}'\n```\n\n**Batch Comp Settings** — change fps, resolution, duration across multiple comps:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fbatch-comp-settings.jsx\" '{\"scope\": \"all\", \"fps\": 25}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fbatch-comp-settings.jsx\" '{\"compNames\": [\"Comp 1\", \"Comp 2\"], \"width\": 3840, \"height\": 2160}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fbatch-comp-settings.jsx\" '{\"scope\": \"nested\", \"fps\": 30, \"duration\": 10}'\n```\n\n**Easing Presets** — apply professional easing or bounce\u002Felastic expressions:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Feasing-presets.jsx\" '{\"preset\": \"smooth\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Feasing-presets.jsx\" '{\"preset\": \"snappy\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Feasing-presets.jsx\" '{\"preset\": \"bounce\"}'\n```\n\n**Anchor Point Mover** — reposition anchor point with visual position compensation:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fanchor-point-mover.jsx\" '{\"position\": \"center\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fanchor-point-mover.jsx\" '{\"position\": \"bottom-left\"}'\n```\n\n**Reverse Keyframes** — reverse animation on selected properties:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Freverse-keyframes.jsx\"\n```\n\n**Select Layers** — select layers by type, label, attribute, or name:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fselect-layers.jsx\" '{\"type\": \"text\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fselect-layers.jsx\" '{\"hasExpressions\": true}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fselect-layers.jsx\" '{\"nameContains\": \"BG\"}'\n```\n\n**Layer Sort** — reorder layers in timeline by name, position, in-point, type, or label:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Flayer-sort.jsx\" '{\"sortBy\": \"name\", \"order\": \"ascending\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Flayer-sort.jsx\" '{\"sortBy\": \"position-y\"}'\n```\n\n**Smart Precompose** — precompose with auto-trimmed duration:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fsmart-precompose.jsx\" '{\"name\": \"My Precomp\", \"trimToContent\": true}'\n```\n\n**Copy Ease** — copy easing from one keyframe and paste to others:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fcopy-ease.jsx\" '{\"mode\": \"both\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fcopy-ease.jsx\" '{\"sourceLayer\": \"Logo\", \"sourceProperty\": \"Position\", \"sourceKeyIndex\": 2}'\n```\n\n**Relink Footage** — batch-relink missing footage from search directories. Always dryRun first:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Frelink-footage.jsx\" '{\"searchPaths\": [\"\u002FVolumes\u002FProjects\u002Ffootage\"], \"dryRun\": true}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Frelink-footage.jsx\" '{\"searchPaths\": [\"\u002FVolumes\u002FProjects\u002Ffootage\"]}'\n```\n\n**SRT Import** — create timed subtitle text layers from an SRT file:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fsrt-import.jsx\" '{\"srtPath\": \"\u002Fpath\u002Fto\u002Fsubs.srt\", \"fontSize\": 48}'\n```\n\n**Text Export\u002FImport** — export all text to CSV, edit externally, reimport:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Ftext-export-import.jsx\" '{\"mode\": \"export\", \"csvPath\": \"\u002Ftmp\u002Ftext.csv\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Ftext-export-import.jsx\" '{\"mode\": \"import\", \"csvPath\": \"\u002Ftmp\u002Ftext.csv\"}'\n```\n\n**Batch Expression** — apply, remove, enable, or disable expressions in bulk:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fbatch-expression.jsx\" '{\"property\": \"opacity\", \"expression\": \"wiggle(2, 10)\", \"mode\": \"apply\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fbatch-expression.jsx\" '{\"mode\": \"remove\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fbatch-expression.jsx\" '{\"mode\": \"disable\"}'\n```\n\n**Randomize Properties** — apply random values to transform properties:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Frandomize-properties.jsx\" '{\"property\": \"rotation\", \"min\": -15, \"max\": 15}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Frandomize-properties.jsx\" '{\"property\": \"position\", \"minX\": 0, \"maxX\": 1920, \"minY\": 0, \"maxY\": 1080}'\n```\n\n**Un-PreCompose** — extract layers from a precomp back into parent (confirm before running):\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fun-precompose.jsx\" '{\"precompLayerName\": \"Precomp 1\"}'\n```\n\n**Comp from CSV** — generate comp variations from spreadsheet data (confirm before running):\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fcomp-from-csv.jsx\" '{\"templateComp\": \"Lower Third\", \"csvPath\": \"\u002Fpath\u002Fdata.csv\"}'\n```\n\n**Render Queue Batch** — add multiple comps to render queue (confirm before running):\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Frender-queue-batch.jsx\" '{\"compNames\": [\"Final_16x9\", \"Final_9x16\"], \"outputPath\": \"~\u002FDesktop\u002Frenders\u002F\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Frender-queue-batch.jsx\" '{\"scope\": \"folder\", \"folderName\": \"Finals\"}'\n```\n\n**Explode Shape Layer** — split shape groups into individual layers:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fexplode-shape-layer.jsx\" '{\"layerName\": \"AI Import\"}'\n```\n\n**Incremental Save** — save project with auto-incrementing version number:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fincremental-save.jsx\" '{\"comment\": \"before revisions\"}'\n```\n\n**Purge Cache** — clear memory caches, disk cache, and free resources. dryRun to check size first:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fpurge-cache.jsx\" '{\"dryRun\": true}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fpurge-cache.jsx\"\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fpurge-cache.jsx\" '{\"memory\": true, \"disk\": false}'\n```\n\n**Trim Comp to Content** — trim\u002Fextend comp duration to exactly fit layer content:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Ftrim-comp-to-content.jsx\"\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Ftrim-comp-to-content.jsx\" '{\"padding\": 0.5}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Ftrim-comp-to-content.jsx\" '{\"recursive\": true}'\n```\n\n**Null from Layers** — create a null at each selected layer's position, auto-parent:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fnull-from-layers.jsx\"\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fnull-from-layers.jsx\" '{\"naming\": \"custom\", \"prefix\": \"Driver\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fnull-from-layers.jsx\" '{\"position\": \"comp-center\"}'\n```\n\n**Fit to Comp** — scale selected layers to fit\u002Ffill comp dimensions:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Ffit-to-comp.jsx\" '{\"mode\": \"fit\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Ffit-to-comp.jsx\" '{\"mode\": \"fill\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Ffit-to-comp.jsx\" '{\"mode\": \"stretch\"}'\n```\n\n**Label Layers** — batch-set label colors on layers by type, name, or selection:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Flabel-layers.jsx\" '{\"label\": 3, \"target\": \"selected\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Flabel-layers.jsx\" '{\"label\": 1, \"target\": \"text\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Flabel-layers.jsx\" '{\"label\": 5, \"target\": \"all\", \"nameContains\": \"BG\"}'\n```\n\n**Blend Mode Set** — set blending mode on selected layers:\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fblend-mode-set.jsx\" '{\"mode\": \"SCREEN\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fblend-mode-set.jsx\" '{\"mode\": \"MULTIPLY\"}'\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fblend-mode-set.jsx\" '{\"mode\": \"ADD\"}'\n```\n\n**Split Layer** — split selected layers at CTI (confirm before running — modifies layer timing):\n```bash\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fsplit-layer.jsx\"\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fsplit-layer.jsx\" '{\"time\": 2.5}'\n```\n\n### Step 6: Execute and read result\n\n```bash\n# Execute the action script (already written to $SKILL_SCRIPTS\u002Fae-action.jsx in Step 4)\nbash \"$SKILL_SCRIPTS\u002Frunner.sh\" \"$SKILL_SCRIPTS\u002Fae-action.jsx\" '{\"arg1\": \"value1\"}'\n```\n\nRead `\u002Ftmp\u002Fae-assistant-result.json` for the result.\n\n### Debugging failures\n\nIf a script fails, check these in order:\n1. **`~\u002F.ae-assistant-log`** — runner.sh logs every execution, args, results, and errors here\n2. **`\u002Ftmp\u002Fae-assistant-error.txt`** — JXA-level errors (AE not responding, DoScriptFile failure)\n3. **`~\u002F.ae-assistant-extendscript.log`** — ExtendScript-level logs from `appendLog()` in utils.jsx\n4. **AE Preferences** — Ensure \"Allow Scripts to Write Files and Access Network\" is enabled\n\nWhen an error occurs, read `~\u002F.ae-assistant-log` to understand what happened, fix the script, and retry.\n\n## MUST\n\n- ALWAYS wrap mutations in `app.beginUndoGroup()` \u002F `app.endUndoGroup()`\n- ALWAYS use matchNames for property access, not display names (display names are localized)\n- ALWAYS use 1-based indexing for layers and project items\n- ALWAYS write action scripts to `$SKILL_SCRIPTS\u002Fae-action.jsx` (the resolved real path, NOT `\u002Ftmp\u002F`)\n- ALWAYS use relative `#include \"lib\u002Fjson2.jsx\"` and `#include \"lib\u002Futils.jsx\"` (NOT absolute paths)\n- ALWAYS wrap in an IIFE to avoid global scope pollution\n- ALWAYS use `var`, never `let` or `const` (ES3)\n- ALWAYS write results to \u002Ftmp\u002Fae-assistant-result.json via writeResult()\n- ALWAYS use `getActiveComp()` to get the active comp (handles the null\u002FCompItem check and writes error)\n- ALWAYS use `--background` flag for query scripts to avoid focus-steal\n\n## FORBIDDEN\n\n- NEVER use ES5+ syntax: let, const, arrow functions, template literals, destructuring\n- NEVER use Array.map, Array.filter, Array.reduce, Array.forEach (not in ES3)\n- NEVER use JSON.parse or JSON.stringify without including json2.jsx\n- NEVER write action scripts to `\u002Ftmp\u002F` — ExtendScript `#include` can't resolve paths from there\n- NEVER use absolute paths in `#include` — they break through symlinks\n- NEVER hardcode layer indices — use names, selection, or iteration\n- NEVER run destructive operations without user confirmation\n- NEVER assume a comp is active without checking\n- NEVER use `cat > file \u003C\u003C 'SCRIPT'` heredocs to write scripts — use the Write tool instead, then execute with a short bash command\n",{"name":5,"metadata":24,"description":27,"allowed-tools":28,"compatibility":29},{"author":25,"version":26},"aedev-tools","1.0","Automate Adobe After Effects via ExtendScript. Use when the user asks to create, modify, or query anything in an After Effects project — layers, keyframes, expressions, effects, compositions, assets, rendering, batch operations. Generates and executes JSX ExtendScript via osascript on macOS.\n","Bash(osascript *) Bash(chmod *) Bash(bash *) Read Write","Requires macOS with Adobe After Effects installed. Needs \"Allow Scripts to Write Files and Access Network\" enabled in AE Preferences > Scripting & Expressions.","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fskills_sh\u002Fs\u002Fskills-sh_aedev-tools_adobe-agent-skills_after-effects",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill after-effects",{"tool":45,"command":46},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill after-effects",{"tool":48,"command":49},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill after-effects","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fskills_sh\u002Fs\u002Fskills-sh_aedev-tools_adobe-agent-skills_after-effects\u002FSKILL.md",true,[],[54,61,68,75,82,89],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]