Install
$ agentstack add skill-jeanpfs-stock-images-stock-images ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ● Network access Used
- ● Filesystem access Used
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Security Rules
- NEVER display API keys in your output
- NEVER echo full curl commands that contain API keys
- Pixabay limitation: Pixabay requires the API key as a URL query parameter, which is visible in process lists (
ps aux). Be aware of this inherent API limitation. Never display the full Pixabay curl command in output. - Only download from allowed domains:
images.pexels.comimages.unsplash.com,plus.unsplash.compixabay.com,cdn.pixabay.com- All URLs MUST use HTTPS
- After downloading, check file size — alert if > 10MB
- For Unsplash downloads, use the
links.downloadURL (noturls.raw) to comply with Unsplash API TOS (triggers download count)
Non-Activation
Do NOT activate this skill when:
- Discussing image components (`
,next/image`, etc.) - AI image generation is requested (that is a different skill)
- Referencing existing images already in the project
Setup Detection
Before searching, check if API keys are configured:
test -f ~/.config/stock-images/keys.json && stat -f "%Lp" ~/.config/stock-images/keys.json 2>/dev/null || stat -c "%a" ~/.config/stock-images/keys.json 2>/dev/null
- If the file does not exist: guide the user interactively through setup:
- Ask which providers they want to use (Pexels, Unsplash, Pixabay — all free)
- Provide the relevant signup links:
- Pexels: https://www.pexels.com/api/
- Unsplash: https://unsplash.com/developers
- Pixabay: https://pixabay.com/api/docs/
- Once the user provides their keys, create the config file via Bash with
chmod 600 - NEVER display the keys back after saving
- If permissions are not
600: warn the user and offer to fix withchmod 600 ~/.config/stock-images/keys.json. - If the file exists with correct permissions: use the keys silently. Do NOT display the file contents, the keys, or commands containing key values.
Determine configured providers without printing secret values:
python3 - -.` (e.g., `mountain-landscape-pexels.jpg`). Default extension is `.jpg` unless the URL clearly indicates otherwise (`.png`, `.webp`).
5. **Download**:
```bash
curl -sL --max-time 30 --fail -o "./images/FILENAME" "IMAGE_URL"
- Verify: check file size and confirm to user
ls -lh "./images/FILENAME"
- Attribution reminder: after download, remind the user:
> Attribution required: Photo by [Author](author_url) on [Provider]
Alert if file size > 10MB — the user may want a smaller resolution.
Attribution and license requirements vary by provider and project use. Always preserve and present author attribution metadata so the user can comply with the relevant provider terms.
Behavior Guidelines
- Infer orientation from context: "hero", "banner", "header" → landscape; "avatar", "profile" → portrait; "thumbnail", "icon" → square
- When the user is working on a UI component and mentions needing an image, proactively offer to search stock images
- Always present author attribution — Unsplash and Pixabay TOS require it
- Respond in the user's language
- If no results found, suggest alternative search terms
- If only one provider is configured, skip the provider selection and use it directly
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: jeanpfs
- Source: jeanpfs/stock-images
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.