aiskillstore/marketplace / skills/aayushbaniya2006/asset-creator
asset-creator
VerifiedCreate visual assets (images, illustrations) using AI (OpenAI DALL-E).
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 1.7 KB |
| reference.md | markdown | 802 B |
| scripts/generate-image.ts | script | 2.5 KB |
| skill-report.json | config | 41.1 KB |
skill-report.json
View on GitHub{
"schema_version": "2.0",
"meta": {
"generated_at": "2026-07-05T00:33:46.383Z",
"slug": "aayushbaniya2006-asset-creator",
"source_url": "https://github.com/AayushBaniya2006/blinkfund/tree/main/.claude/skills/asset-creator/",
"source_ref": "main",
"model": "codex",
"analysis_version": "3.0.0",
"source_type": "community",
"content_hash": "0130b93cc29499fa34139204e4b3701037b4257b59e0c63e46704b0efe189b41",
"tree_hash": "2a7465f660afb0ea337a778ce3c0ba5017e45c968ca81b9c5ffdeb5a7bdd07d8",
"provenance": {
"model_requested": "gpt-5.5:high",
"model_effective": "codex:gpt-5.5:high",
"fallback_chain": [
{
"agent": "codex",
"model": "gpt-5.5",
"effort": "high",
"outcome": "success"
}
],
"analysis_version": "3.0.0"
}
},
"skill": {
"name": "asset-creator",
"description": "Generate project visual assets with OpenAI DALL-E through a helper script that saves images into public asset folders.",
"summary": "Generates DALL-E image assets and stores them in project public folders.",
"icon": "📦",
"version": "1.0.0",
"author": "AayushBaniya2006",
"license": "MIT",
"tags": [
"image-generation",
"visual-assets",
"dall-e",
"saas-design",
"openai"
],
"supported_tools": [
"claude",
"codex",
"claude-code"
],
"risk_factors": [
"env_access",
"external_commands",
"filesystem"
],
"category": "design"
},
"security_audit": {
"risk_level": "high",
"is_blocked": false,
"safe_to_publish": false,
"analysis_status": "ok",
"summary": "Most static detections are false positives caused by Markdown backticks, JavaScript template literals, and expected OpenAI API key handling. Real risk remains in the helper script because user-supplied folder and filename values can influence directory creation and file writes without path allowlisting.",
"remediation": [
{
"issue": "User-controlled folder and filename values can escape the intended asset directory.",
"suggestion": "Normalize the final path, reject absolute paths and relative path segments, and verify the resolved path remains under the project public directory.",
"severity": "high"
},
{
"issue": "The skill requires running npx tsx from the agent workflow.",
"suggestion": "Document the command execution requirement clearly and pin dependencies so users can review what will run.",
"severity": "medium"
},
{
"issue": "The script sends prompts to OpenAI using an environment API key.",
"suggestion": "Warn users not to include secrets, private customer data, or confidential product details in image prompts.",
"severity": "low"
}
],
"risk_factor_evidence": [
{
"factor": "env_access",
"evidence": [
{
"file": "reference.md",
"line_start": 4,
"line_end": 4
},
{
"file": "scripts/generate-image.ts",
"line_start": 34,
"line_end": 34
},
{
"file": "scripts/generate-image.ts",
"line_start": 40,
"line_end": 40
},
{
"file": "scripts/generate-image.ts",
"line_start": 34,
"line_end": 34
},
{
"file": "scripts/generate-image.ts",
"line_start": 40,
"line_end": 40
},
{
"file": "scripts/generate-image.ts",
"line_start": 34,
"line_end": 34
},
{
"file": "scripts/generate-image.ts",
"line_start": 35,
"line_end": 35
},
{
"file": "scripts/generate-image.ts",
"line_start": 40,
"line_end": 40
}
]
},
{
"factor": "external_commands",
"evidence": [
{
"file": "scripts/generate-image.ts",
"line_start": 43,
"line_end": 43
},
{
"file": "scripts/generate-image.ts",
"line_start": 48,
"line_end": 48
},
{
"file": "scripts/generate-image.ts",
"line_start": 68,
"line_end": 68
},
{
"file": "scripts/generate-image.ts",
"line_start": 72,
"line_end": 72
},
{
"file": "SKILL.md",
"line_start": 13,
"line_end": 13
},
{
"file": "SKILL.md",
"line_start": 18,
"line_end": 18
},
{
"file": "SKILL.md",
"line_start": 21,
"line_end": 23
},
{
"file": "SKILL.md",
"line_start": 23,
"line_end": 26
},
{
"file": "SKILL.md",
"line_start": 26,
"line_end": 27
},
{
"file": "SKILL.md",
"line_start": 27,
"line_end": 28
},
{
"file": "SKILL.md",
"line_start": 28,
"line_end": 28
},
{
"file": "SKILL.md",
"line_start": 29,
"line_end": 29
},
{
"file": "SKILL.md",
"line_start": 32,
"line_end": 34
},
{
"file": "SKILL.md",
"line_start": 34,
"line_end": 40
},
{
"file": "SKILL.md",
"line_start": 40,
"line_end": 41
}
]
},
{
"factor": "filesystem",
"evidence": [
{
"file": "scripts/generate-image.ts",
"line_start": 64,
"line_end": 64
},
{
"file": "scripts/generate-image.ts",
"line_start": 70,
"line_end": 70
},
{
"file": "scripts/generate-image.ts",
"line_start": 63,
"line_end": 63
},
{
"file": "scripts/generate-image.ts",
"line_start": 70,
"line_end": 70
}
]
}
],
"static_findings": [
{
"id": "env_access:reference.md:4:generic-api-secret-keys",
"category": "env_access",
"severity": "high",
"pattern": "Generic API/secret keys",
"file": "reference.md",
"line_start": 4,
"line_end": 4,
"snippet": "Ensure `OPENAI_API_KEY` is set in your environment (`.env` or session)."
},
{
"id": "sensitive:reference.md:4:environment-file-access",
"category": "sensitive",
"severity": "high",
"pattern": "Environment file access",
"file": "reference.md",
"line_start": 4,
"line_end": 4,
"snippet": "Ensure `OPENAI_API_KEY` is set in your environment (`.env` or session)."
},
{
"id": "external_commands:scripts/generate-image.ts:43:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "scripts/generate-image.ts",
"line_start": 43,
"line_end": 43,
"snippet": "console.log(`🎨 Generating image for: \"${config.prompt}\"...`);"
},
{
"id": "external_commands:scripts/generate-image.ts:48:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "scripts/generate-image.ts",
"line_start": 48,
"line_end": 48,
"snippet": "prompt: `${config.prompt}. Minimalist, flat, modern SaaS style, high quality, transparent background"
},
{
"id": "external_commands:scripts/generate-image.ts:68:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "scripts/generate-image.ts",
"line_start": 68,
"line_end": 68,
"snippet": "const fullPath = path.join(publicDir, config.filename.endsWith('.png') ? config.filename : `${config"
},
{
"id": "external_commands:scripts/generate-image.ts:72:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "scripts/generate-image.ts",
"line_start": 72,
"line_end": 72,
"snippet": "console.log(`✅ Image saved to: public/${config.folder}/${path.basename(fullPath)}`);"
},
{
"id": "filesystem:scripts/generate-image.ts:64:node-js-fs-operations",
"category": "filesystem",
"severity": "medium",
"pattern": "Node.js fs operations",
"file": "scripts/generate-image.ts",
"line_start": 64,
"line_end": 64,
"snippet": "fs.mkdirSync(publicDir, { recursive: true });"
},
{
"id": "filesystem:scripts/generate-image.ts:70:node-js-fs-operations",
"category": "filesystem",
"severity": "medium",
"pattern": "Node.js fs operations",
"file": "scripts/generate-image.ts",
"line_start": 70,
"line_end": 70,
"snippet": "fs.writeFileSync(fullPath, buffer);"
},
{
"id": "filesystem:scripts/generate-image.ts:63:node-js-fs-stat-operations",
"category": "filesystem",
"severity": "low",
"pattern": "Node.js fs stat operations",
"file": "scripts/generate-image.ts",
"line_start": 63,
"line_end": 63,
"snippet": "if (!fs.existsSync(publicDir)) {"
},
{
"id": "filesystem:scripts/generate-image.ts:70:synchronous-file-operations",
"category": "filesystem",
"severity": "medium",
"pattern": "Synchronous file operations",
"file": "scripts/generate-image.ts",
"line_start": 70,
"line_end": 70,
"snippet": "fs.writeFileSync(fullPath, buffer);"
},
{
"id": "env_access:scripts/generate-image.ts:34:environment-variable-access-dot-notation",
"category": "env_access",
"severity": "low",
"pattern": "Environment variable access (dot notation)",
"file": "scripts/generate-image.ts",
"line_start": 34,
"line_end": 34,
"snippet": "if (!process.env.OPENAI_API_KEY) {"
},
{
"id": "env_access:scripts/generate-image.ts:40:environment-variable-access-dot-notation",
"category": "env_access",
"severity": "low",
"pattern": "Environment variable access (dot notation)",
"file": "scripts/generate-image.ts",
"line_start": 40,
"line_end": 40,
"snippet": "apiKey: process.env.OPENAI_API_KEY,"
},
{
"id": "env_access:scripts/generate-image.ts:34:environment-variable-object",
"category": "env_access",
"severity": "low",
"pattern": "Environment variable object",
"file": "scripts/generate-image.ts",
"line_start": 34,
"line_end": 34,
"snippet": "if (!process.env.OPENAI_API_KEY) {"
},
{
"id": "env_access:scripts/generate-image.ts:40:environment-variable-object",
"category": "env_access",
"severity": "low",
"pattern": "Environment variable object",
"file": "scripts/generate-image.ts",
"line_start": 40,
"line_end": 40,
"snippet": "apiKey: process.env.OPENAI_API_KEY,"
},
{
"id": "env_access:scripts/generate-image.ts:34:generic-api-secret-keys",
"category": "env_access",
"severity": "high",
"pattern": "Generic API/secret keys",
"file": "scripts/generate-image.ts",
"line_start": 34,
"line_end": 34,
"snippet": "if (!process.env.OPENAI_API_KEY) {"
},
{
"id": "env_access:scripts/generate-image.ts:35:generic-api-secret-keys",
"category": "env_access",
"severity": "high",
"pattern": "Generic API/secret keys",
"file": "scripts/generate-image.ts",
"line_start": 35,
"line_end": 35,
"snippet": "console.error(\"Error: OPENAI_API_KEY is not set in environment variables.\");"
},
{
"id": "env_access:scripts/generate-image.ts:40:generic-api-secret-keys",
"category": "env_access",
"severity": "high",
"pattern": "Generic API/secret keys",
"file": "scripts/generate-image.ts",
"line_start": 40,
"line_end": 40,
"snippet": "apiKey: process.env.OPENAI_API_KEY,"
},
{
"id": "obfuscation:scripts/generate-image.ts:69:buffer-base64-decode",
"category": "obfuscation",
"severity": "medium",
"pattern": "Buffer base64 decode",
"file": "scripts/generate-image.ts",
"line_start": 69,
"line_end": 69,
"snippet": "const buffer = Buffer.from(image.b64_json, 'base64');"
},
{
"id": "sensitive:scripts/generate-image.ts:34:environment-file-access",
"category": "sensitive",
"severity": "high",
"pattern": "Environment file access",
"file": "scripts/generate-image.ts",
"line_start": 34,
"line_end": 34,
"snippet": "if (!process.env.OPENAI_API_KEY) {"
},
{
"id": "sensitive:scripts/generate-image.ts:40:environment-file-access",
"category": "sensitive",
"severity": "high",
"pattern": "Environment file access",
"file": "scripts/generate-image.ts",
"line_start": 40,
"line_end": 40,
"snippet": "apiKey: process.env.OPENAI_API_KEY,"
},
{
"id": "blocker:scripts/generate-image.ts:27:system-reconnaissance",
"category": "blocker",
"severity": "low",
"pattern": "System reconnaissance",
"file": "scripts/generate-image.ts",
"line_start": 27,
"line_end": 27,
"snippet": "console.error(\"Invalid arguments:\", validation.error.format());"
},
{
"id": "external_commands:SKILL.md:13:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 13,
"line_end": 13,
"snippet": "3. **Organization**: Place assets in the correct `public/assets/` subfolders."
},
{
"id": "external_commands:SKILL.md:18:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 18,
"line_end": 18,
"snippet": "**Script**: `.claude/skills/asset-creator/scripts/generate-image.ts`"
},
{
"id": "external_commands:SKILL.md:21:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 21,
"line_end": 23,
"snippet": "```bash"
},
{
"id": "external_commands:SKILL.md:23:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 23,
"line_end": 26,
"snippet": "```"
},
{
"id": "external_commands:SKILL.md:26:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 26,
"line_end": 27,
"snippet": "- `prompt`: Description of the image."
},
{
"id": "external_commands:SKILL.md:27:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 27,
"line_end": 28,
"snippet": "- `filename`: Name of the file (without extension)."
},
{
"id": "external_commands:SKILL.md:28:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 28,
"line_end": 28,
"snippet": "- `folder`: Subfolder in `public/` (default: `assets/images`)."
},
{
"id": "external_commands:SKILL.md:29:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 29,
"line_end": 29,
"snippet": "- `style`: `vivid` or `natural` (default: `vivid`)."
},
{
"id": "external_commands:SKILL.md:32:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 32,
"line_end": 34,
"snippet": "```bash"
},
{
"id": "external_commands:SKILL.md:34:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 34,
"line_end": 40,
"snippet": "```"
},
{
"id": "external_commands:SKILL.md:40:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 40,
"line_end": 41,
"snippet": "3. **Verify**: Confirm the file was created in the correct `public` folder."
}
],
"finding_verdicts": [
{
"id": "env_access:reference.md:4:generic-api-secret-keys",
"verdict": "false_positive",
"confidence": 0.96,
"reason": "The file only documents the OPENAI_API_KEY environment variable name and does not expose a key value. This is configuration guidance, not secret collection or leakage."
},
{
"id": "sensitive:reference.md:4:environment-file-access",
"verdict": "false_positive",
"confidence": 0.94,
"reason": "The text mentions using a .env file or session, but no file is read by reference.md. It is documentation for user configuration only."
},
{
"id": "external_commands:scripts/generate-image.ts:43:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.98,
"reason": "This line is a JavaScript template literal used in console.log output. It does not invoke a shell or execute a command."
},
{
"id": "external_commands:scripts/generate-image.ts:48:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.98,
"reason": "This line builds a DALL-E prompt string with a JavaScript template literal. It is not shell backtick execution."
},
{
"id": "external_commands:scripts/generate-image.ts:68:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.97,
"reason": "This line uses a JavaScript template literal to append a .png suffix. It does not execute an external command."
},
{
"id": "external_commands:scripts/generate-image.ts:72:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.98,
"reason": "This line logs the saved image path with a JavaScript template literal. There is no shell invocation or command execution."
},
{
"id": "filesystem:scripts/generate-image.ts:64:node-js-fs-operations",
"verdict": "confirmed",
"confidence": 0.82,
"reason": "The script creates a directory using a path derived from user-supplied folder input. Without path normalization checks, this can create directories outside the intended public asset area.",
"severity": "medium"
},
{
"id": "filesystem:scripts/generate-image.ts:70:node-js-fs-operations",
"verdict": "confirmed",
"confidence": 0.86,
"reason": "The script writes image bytes to a path derived from user-supplied folder and filename input. This is a real filesystem write surface that can overwrite or create files if paths are unsafe.",
"severity": "medium"
},
{
"id": "filesystem:scripts/generate-image.ts:63:node-js-fs-stat-operations",
"verdict": "confirmed",
"confidence": 0.62,
"reason": "The existence check uses the same user-influenced output directory as the later write. The check is not dangerous by itself, but it participates in the unsafe path flow.",
"severity": "low"
},
{
"id": "filesystem:scripts/generate-image.ts:70:synchronous-file-operations",
"verdict": "confirmed",
"confidence": 0.78,
"reason": "The synchronous write operation persists generated data to a user-influenced path. The main risk is the unbounded output path, not the synchronous API alone.",
"severity": "medium"
},
{
"id": "env_access:scripts/generate-image.ts:34:environment-variable-access-dot-notation",
"verdict": "false_positive",
"confidence": 0.88,
"reason": "The code checks whether OPENAI_API_KEY exists before using the OpenAI SDK. It does not print or transmit the value except through the intended SDK client."
},
{
"id": "env_access:scripts/generate-image.ts:40:environment-variable-access-dot-notation",
"verdict": "false_positive",
"confidence": 0.86,
"reason": "The environment variable is passed as the API key to the OpenAI SDK for the declared image generation purpose. No evidence shows unauthorized disclosure of the secret."
},
{
"id": "env_access:scripts/generate-image.ts:34:environment-variable-object",
"verdict": "false_positive",
"confidence": 0.88,
"reason": "The process.env access is limited to checking the required OpenAI key. This matches the skill purpose and does not expose the key value."
},
{
"id": "env_access:scripts/generate-image.ts:40:environment-variable-object",
"verdict": "false_positive",
"confidence": 0.86,
"reason": "The process.env value is used to configure the OpenAI client. This is expected credential use for the declared external API integration."
},
{
"id": "env_access:scripts/generate-image.ts:34:generic-api-secret-keys",
"verdict": "false_positive",
"confidence": 0.9,
"reason": "The line references the OPENAI_API_KEY variable name only during a presence check. It does not contain a hardcoded secret or leak the value."
},
{
"id": "env_access:scripts/generate-image.ts:35:generic-api-secret-keys",
"verdict": "false_positive",
"confidence": 0.93,
"reason": "The error message names the required environment variable but does not print the secret. This is normal setup feedback for a missing API key."
},
{
"id": "env_access:scripts/generate-image.ts:40:generic-api-secret-keys",
"verdict": "false_positive",
"confidence": 0.86,
"reason": "The API key is read to initialize the OpenAI SDK for the skill objective. I found no evidence that the key is logged, stored, or sent to an unrelated endpoint."
},
{
"id": "obfuscation:scripts/generate-image.ts:69:buffer-base64-decode",
"verdict": "false_positive",
"confidence": 0.94,
"reason": "The base64 decode handles DALL-E image data returned through response_format b64_json. This is normal binary image handling, not obfuscation."
},
{
"id": "sensitive:scripts/generate-image.ts:34:environment-file-access",
"verdict": "false_positive",
"confidence": 0.9,
"reason": "The code reads process.env and does not access an environment file. The line only checks whether the expected API key is configured."
},
{
"id": "sensitive:scripts/generate-image.ts:40:environment-file-access",
"verdict": "false_positive",
"confidence": 0.88,
"reason": "The code passes process.env.OPENAI_API_KEY to the OpenAI SDK and does not read a .env file directly. No environment file contents are accessed."
},
{
"id": "blocker:scripts/generate-image.ts:27:system-reconnaissance",
"verdict": "false_positive",
"confidence": 0.96,
"reason": "This line prints Zod validation errors for invalid CLI arguments. It does not collect host, network, user, or system reconnaissance data."
},
{
"id": "external_commands:SKILL.md:13:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.97,
"reason": "This is inline Markdown formatting for the public assets folder path. It is not shell backtick execution or a command."
},
{
"id": "external_commands:SKILL.md:18:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.95,
"reason": "This is inline Markdown formatting for the helper script path. The line itself does not execute a command."
},
{
"id": "external_commands:SKILL.md:21:ruby-shell-backtick-execution",
"verdict": "confirmed",
"confidence": 0.78,
"reason": "The fenced block contains an npx tsx command that runs the helper script. This is expected for the skill, but it is a real external command execution requirement.",
"severity": "medium"
},
{
"id": "external_commands:SKILL.md:23:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.9,
"reason": "This location is the closing Markdown fence and nearby parameter documentation. It does not itself define a shell command."
},
{
"id": "external_commands:SKILL.md:26:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.96,
"reason": "This is inline Markdown formatting for the prompt parameter name. It is documentation text, not command execution."
},
{
"id": "external_commands:SKILL.md:27:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.96,
"reason": "This is inline Markdown formatting for the filename parameter name. It does not invoke a shell."
},
{
"id": "external_commands:SKILL.md:28:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.96,
"reason": "This is inline Markdown formatting for the folder parameter and public path. It is not an executable shell expression."
},
{
"id": "external_commands:SKILL.md:29:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.96,
"reason": "This is inline Markdown formatting for allowed style values. It does not execute code or commands."
},
{
"id": "external_commands:SKILL.md:32:ruby-shell-backtick-execution",
"verdict": "confirmed",
"confidence": 0.8,
"reason": "The fenced example contains an npx tsx command that executes the helper script with user-facing arguments. This is a real external command pattern, though it is documented as intended use.",
"severity": "medium"
},
{
"id": "external_commands:SKILL.md:34:ruby-shell-backtick-execution",
"verdict": "confirmed",
"confidence": 0.66,
"reason": "The surrounding workflow instructs the agent to run the helper script. This confirms external command use, although the exact flagged line is mostly Markdown structure.",
"severity": "medium"
},
{
"id": "external_commands:SKILL.md:40:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.9,
"reason": "This line tells the user to verify the generated file and references a React image tag. It does not instruct shell execution."
}
],
"semantic_findings": [
{
"title": "Path Traversal in Asset Output Path",
"description": "The script accepts folder and filename strings with only non-empty validation, then joins them into a filesystem path and writes the generated PNG. Relative path segments could write outside the intended public asset directory.",
"severity": "high",
"locations": [
{
"file": "scripts/generate-image.ts",
"line_start": 7,
"line_end": 11
},
{
"file": "scripts/generate-image.ts",
"line_start": 62,
"line_end": 70
}
],
"confidence": 0.88,
"confidence_reasoning": "The validation schema only requires non-empty strings for filename and folder, and the write path is built directly from those values. The writeFileSync call confirms the user-controlled path reaches a filesystem write."
}
],
"critical_findings": [],
"high_findings": [
{
"title": "Path Traversal in Asset Output Path",
"description": "The script accepts folder and filename strings with only non-empty validation, then joins them into a filesystem path and writes the generated PNG. Relative path segments could write outside the intended public asset directory.",
"locations": [
{
"file": "scripts/generate-image.ts",
"line_start": 7,
"line_end": 11
},
{
"file": "scripts/generate-image.ts",
"line_start": 62,
"line_end": 70
}
],
"review_kind": "security",
"source_category": "semantic",
"source_severity": "high",
"confidence": 0.88,
"confidence_reasoning": "The validation schema only requires non-empty strings for filename and folder, and the write path is built directly from those values. The writeFileSync call confirms the user-controlled path reaches a filesystem write."
}
],
"medium_findings": [
{
"title": "Node.js fs operations",
"description": "fs.mkdirSync(publicDir, { recursive: true });",
"locations": [
{
"file": "scripts/generate-image.ts",
"line_start": 64,
"line_end": 64
}
],
"review_kind": "capability",
"source_category": "filesystem",
"source_severity": "medium",
"confidence": 0.82,
"confidence_reasoning": "The script creates a directory using a path derived from user-supplied folder input. Without path normalization checks, this can create directories outside the intended public asset area."
},
{
"title": "Node.js fs operations",
"description": "fs.writeFileSync(fullPath, buffer);",
"locations": [
{
"file": "scripts/generate-image.ts",
"line_start": 70,
"line_end": 70
}
],
"review_kind": "capability",
"source_category": "filesystem",
"source_severity": "medium",
"confidence": 0.86,
"confidence_reasoning": "The script writes image bytes to a path derived from user-supplied folder and filename input. This is a real filesystem write surface that can overwrite or create files if paths are unsafe."
},
{
"title": "Synchronous file operations",
"description": "fs.writeFileSync(fullPath, buffer);",
"locations": [
{
"file": "scripts/generate-image.ts",
"line_start": 70,
"line_end": 70
}
],
"review_kind": "capability",
"source_category": "filesystem",
"source_severity": "medium",
"confidence": 0.78,
"confidence_reasoning": "The synchronous write operation persists generated data to a user-influenced path. The main risk is the unbounded output path, not the synchronous API alone."
},
{
"title": "Ruby/shell backtick execution",
"description": "```bash",
"locations": [
{
"file": "SKILL.md",
"line_start": 21,
"line_end": 23
}
],
"review_kind": "capability",
"source_category": "external_commands",
"source_severity": "medium",
"confidence": 0.78,
"confidence_reasoning": "The fenced block contains an npx tsx command that runs the helper script. This is expected for the skill, but it is a real external command execution requirement."
},
{
"title": "Ruby/shell backtick execution",
"description": "```bash",
"locations": [
{
"file": "SKILL.md",
"line_start": 32,
"line_end": 34
}
],
"review_kind": "capability",
"source_category": "external_commands",
"source_severity": "medium",
"confidence": 0.8,
"confidence_reasoning": "The fenced example contains an npx tsx command that executes the helper script with user-facing arguments. This is a real external command pattern, though it is documented as intended use."
},
{
"title": "Ruby/shell backtick execution",
"description": "```",
"locations": [
{
"file": "SKILL.md",
"line_start": 34,
"line_end": 40
}
],
"review_kind": "capability",
"source_category": "external_commands",
"source_severity": "medium",
"confidence": 0.66,
"confidence_reasoning": "The surrounding workflow instructs the agent to run the helper script. This confirms external command use, although the exact flagged line is mostly Markdown structure."
}
],
"low_findings": [
{
"title": "Node.js fs stat operations",
"description": "if (!fs.existsSync(publicDir)) {",
"locations": [
{
"file": "scripts/generate-image.ts",
"line_start": 63,
"line_end": 63
}
],
"review_kind": "capability",
"source_category": "filesystem",
"source_severity": "low",
"confidence": 0.62,
"confidence_reasoning": "The existence check uses the same user-influenced output directory as the later write. The check is not dangerous by itself, but it participates in the unsafe path flow."
}
],
"dangerous_patterns": [],
"files_scanned": 3,
"total_lines": 152,
"audit_model": "codex",
"audited_at": "2026-07-05T00:33:46.383Z",
"agent_auto_install_policy": "confirmation_required",
"manual_install_policy": "allowed"
},
"content": {
"user_title": "Generate AI Product Assets",
"value_statement": "Teams need consistent visual assets for product pages, docs, and marketing screens. This skill guides DALL-E generation and stores files in project asset folders.",
"seo_keywords": [
"Claude",
"Codex",
"Claude Code",
"AI image generation",
"DALL-E assets",
"OpenAI images",
"product illustrations",
"SaaS design assets",
"visual asset creator"
],
"actual_capabilities": [
"Runs a TypeScript helper script to request one image from OpenAI DALL-E 3.",
"Accepts prompt, filename, folder, and style arguments from the user.",
"Saves generated PNG files under a public folder path.",
"Uses vivid or natural image style settings supported by the script.",
"Documents prompt tips for minimalist SaaS illustrations and dashboard assets."
],
"limitations": [
"Requires an OpenAI API key in the runtime environment.",
"Generates square 1024 by 1024 images only with the current helper script.",
"Does not perform transparency cleanup or image post-processing.",
"Does not validate output paths against a strict asset folder allowlist."
],
"use_cases": [
{
"title": "Create Marketing Illustrations",
"description": "Generate hero images, product illustrations, and campaign visuals that match a clean SaaS style.",
"target_user": "Marketing teams"
},
{
"title": "Add Documentation Visuals",
"description": "Create simple diagrams or screen-inspired visuals for guides, tutorials, and release pages.",
"target_user": "Technical writers"
},
{
"title": "Prototype Product Imagery",
"description": "Produce quick concept assets for product pages before commissioning final design work.",
"target_user": "Founders and product designers"
}
],
"prompt_templates": [
{
"title": "Basic Product Illustration",
"scenario": "Beginner request for one simple asset.",
"prompt": "Create an image for a modern SaaS dashboard showing clean analytics charts. Save it as dashboard-hero in assets/marketing using natural style."
},
{
"title": "Consistent Feature Visual",
"scenario": "Generate an asset that matches an existing product theme.",
"prompt": "Generate a flat illustration for an automated invoice review feature. Use a white background, blue and green accents, and save it as invoice-review in assets/features."
},
{
"title": "Documentation Support Image",
"scenario": "Create a visual for a guide or help article.",
"prompt": "Create a clean tutorial image showing a user connecting an API key to a workspace. Use minimalist vector styling and save it as api-key-setup in assets/docs."
},
{
"title": "Advanced Campaign Set",
"scenario": "Plan related assets before generation.",
"prompt": "Design three coordinated prompts for a launch page about AI budgeting. Generate the strongest hero asset first, then save it as ai-budgeting-hero in assets/campaigns using vivid style."
}
],
"output_examples": [
{
"input": "A request for a hero image of a futuristic dashboard on a laptop screen.",
"output": "The skill runs the helper script with a detailed DALL-E prompt and saves hero-dashboard.png under the selected public asset folder."
},
{
"input": "A request for a documentation image about setting up an API key.",
"output": "The skill creates a minimalist setup illustration and reports the saved file path for use in project content."
},
{
"input": "A request for a feature illustration with natural styling.",
"output": "The skill passes the natural style option to the image generator and stores a PNG with the requested filename."
}
],
"best_practices": [
"Use descriptive prompts that include subject, composition, style, and background.",
"Keep generated files in a small set of reviewed public asset folders.",
"Review each generated image before publishing it in customer-facing content."
],
"anti_patterns": [
"Do not include secrets, private user data, or unreleased screenshots in prompts.",
"Do not use folder or filename values that contain relative path segments.",
"Do not publish generated images without checking brand fit and licensing requirements."
],
"faq": [
{
"question": "What does this skill generate?",
"answer": "It generates image assets such as illustrations, hero visuals, and product-themed graphics using OpenAI DALL-E 3."
},
{
"question": "Does it require external credentials?",
"answer": "Yes. The helper script requires an OPENAI_API_KEY environment variable before it can request images."
},
{
"question": "Where are generated files saved?",
"answer": "The script saves PNG files under a public folder path chosen through the folder argument."
},
{
"question": "Can it create transparent images?",
"answer": "It requests transparent or white backgrounds, but the script does not perform transparency cleanup after generation."
},
{
"question": "Is it safe for private data?",
"answer": "Prompts are sent to OpenAI, so users should avoid private data, secrets, and confidential product details."
},
{
"question": "Does it work with Claude, Codex, and Claude Code?",
"answer": "The report declares support for Claude, Codex, and Claude Code workflows that can run the helper script."
}
]
},
"file_structure": [
{
"name": "scripts",
"type": "dir",
"path": "scripts",
"children": [
{
"name": "generate-image.ts",
"type": "file",
"path": "scripts/generate-image.ts",
"lines": 82
}
]
},
{
"name": "reference.md",
"type": "file",
"path": "reference.md",
"lines": 24
},
{
"name": "SKILL.md",
"type": "file",
"path": "SKILL.md",
"lines": 46
}
]
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |