一键导入
layerproof-api
Skill pack for interacting with the Layerproof API including workspaces, projects, slide decks, files, themes, exports, and jobs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Skill pack for interacting with the Layerproof API including workspaces, projects, slide decks, files, themes, exports, and jobs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Public API project management (X-API-KEY). Create, list, get, update, delete, clone, vote, visibility, recent/deleted/restore. Cursor pagination. Types follow PublicApiProjectController (/api/v2/projects).
Public API slide deck operations (X-API-KEY). Generate outlines, update outline, get deck, batch generate slides, generate transcript/image/content, cancel, theme, transcript, duplicate section. Types follow PublicApiSlideDeckController (/api/v2/projects/{projectId}/slide-deck/{slideDeckId}).
Public API slide editing (X-API-KEY). Edit slide images with AI, accept/revert edits, object removal, text extraction, save Konva nodes. Types follow PublicApiSlideController (/api/v2/projects/{projectId}/slides).
Public API social campaigns (X-API-KEY). CRUD campaigns, outline topics, generate/cancel generation, confirm outline, topics, variations/captions/images/carousel, exports (ZIP + bulk rich), theme, citations/history. PublicApiSocialCampaignController (/api/v2/social-campaigns).
Public API blog posts (X-API-KEY). CRUD blog posts, AI generation (outline/full/section), AI operations (expand/shorten/rewrite), images, exports, and social-campaign-from-blog. PublicApiBlogPostController (/api/v2/blog-posts).
Public API export (X-API-KEY). Export PNG ZIP, PPTX, or video (async), get status, cancel. PublicApiExportController.
| name | layerproof-api |
| description | Skill pack for interacting with the Layerproof API including workspaces, projects, slide decks, files, themes, exports, and jobs. |
⚠️ Skill Pack Manifest
This file is NOT a skill.
It is the entry point for the Layerproof skill pack.
Individual skills are located in:
skills/*/SKILL.mdAI agents and crawlers should only index those files as skills.
This repository provides a collection of AI agent skills for the Layerproof API.
These skills allow AI agents to interact with Layerproof to:
Each skill contains structured instructions that teach an AI agent how to interact with the Layerproof API using curl.
Before performing any API operations, the agent must verify that these environment variables are set on the user's machine.
Always verify the following environment variables exist before making any API request:
# Check if LAYERPROOF_BASE_URL is set
if [[ -z "${LAYERPROOF_BASE_URL}" ]]; then
echo "ERROR: LAYERPROOF_BASE_URL is not set."
echo "Please set it in your shell profile or .env file, then re-run."
return 1
fi
# Check if LAYERPROOF_API_KEY is set
if [[ -z "${LAYERPROOF_API_KEY}" ]]; then
echo "ERROR: LAYERPROOF_API_KEY is not set."
echo "Please set it in your shell profile or .env file, then re-run."
return 1
fi
If not already set, instruct the user to add them:
echo 'export LAYERPROOF_BASE_URL=https://api.layerproof.com' >> ~/.zshrc
echo 'export LAYERPROOF_API_KEY=your-api-key-here' >> ~/.zshrc
source ~/.zshrc
Alternatively, for project-specific settings, create a .env.local file in the project root:
LAYERPROOF_BASE_URL=https://api.layerproof.com
LAYERPROOF_API_KEY=your-api-key-here
When using a .env.local file, ensure it is loaded before running any curl commands:
# For zsh, load .env.local if it exists
if [[ -f .env.local ]]; then
set -a
source .env.local
set +a
fi
All API requests must include the following header:
X-API-KEY: $LAYERPROOF_API_KEY
When a user asks to perform an operation related to Layerproof:
skills/<resource>/SKILL.md.curl request.If the response contains image URLs, the agent may render them.
Each module corresponds to a Layerproof API resource.
| Resource | Skill File | Purpose |
|---|---|---|
| Workspaces | skills/workspaces/SKILL.md | Manage workspaces |
| Projects | skills/projects/SKILL.md | Create and manage projects |
| Public Files | skills/public-files/SKILL.md | Upload reference documents |
| Project Files | skills/project-files/SKILL.md | Manage files inside projects |
| Slide Decks | skills/slide-decks/SKILL.md | Generate outlines and slide content |
| Slides | skills/slides/SKILL.md | Edit slide images and content |
| Themes | skills/themes/SKILL.md | Generate and apply visual themes |
| Tones | skills/tones/SKILL.md | Tone presets and apply to deck |
| Exports | skills/exports/SKILL.md | Export PNG, PPTX, or video |
| Social campaigns | skills/social-campaigns/SKILL.md | Social campaign projects |
| Jobs | skills/jobs/SKILL.md | Poll async job status |
Many Layerproof API endpoints run asynchronously.
When an API response returns an activityId, the agent should:
GET /api/v2/jobs/{activityId}
status = DONE
failureReason exists, report the error.Example workflows (the agent should automatically select the correct skill module for each step).
workspace_id from list.name, project_kind: "SLIDE_DECK", optional workspace_id; capture id and slide_deck_id./api/v2/files/prepare → user PUTs file to upload_url → POST /api/v2/files/confirm with s3_key; collect s3_key(s) for outline./api/v2/themes/generate with prompt → poll Jobs until DONE → note theme_id..../outline/generate with prompt, slide_count, optional file_s3_keys, language; capture activity_id.GET /api/v2/jobs/{activity_id} until status is DONE (or CANCELED); on failure, report failure_reason.outline; optionally PUT .../outline to tweak sections (title, sections, key_points, visual_suggestion)./api/v2/themes/apply with slide_deck_id and theme_id (optional regenerate_slides). Then POST .../slides/batch-generate (optionally with generation_type, aspect_ratio); capture activity_id.GET /api/v2/jobs/{activity_id} until DONE..../slides/{sectionId}/generate-transcript or .../generate-image etc., then poll job.live_object_id..../projects/{projectId}/exports/pptx, .../exports/png, or .../exports/video; capture export_id; poll GET .../exports/{export_id} until COMPLETED; present download_url to user.slide_deck_id.metadata.completed_slides meets expectations before export..../exports/png); get exportId. In parallel or after, start PPTX export (POST .../exports/pptx); get second exportId.GET .../exports/{exportId} until status is COMPLETED or FAILED. If FAILED, show errorMessage and suggest retry or check project. When COMPLETED, show downloadUrl and expiresAt..../exports/{exportId}/cancel for in-progress exports.project_id. Get or create a directory in the project (per project-files API if list directories exists) or use a known directory_id.path, file_name, mime_type, size → user uploads to upload_url → POST confirm with file_id. Optionally GET file or download-url to verify.slide_deck_id; generate outline with file_s3_keys from project file S3 keys (if API accepts them) or use public files flow and pass file_s3_keys from public prepare/confirm.The agent should automatically select the correct skill module for each step and handle polling, error responses, and multi-step dependencies.
Agents should load the following files when interacting with Layerproof:
Each skill file contains:
agent-skill-layerproof
│
├─ SKILL.md
├─ marketplace.json
├─ README.md
│
└─ skills
├─ workspaces
│ └─ SKILL.md
├─ projects
│ └─ SKILL.md
├─ public-files
│ └─ SKILL.md
├─ project-files
│ └─ SKILL.md
├─ slide-decks
│ └─ SKILL.md
├─ slides
│ └─ SKILL.md
├─ themes
│ └─ SKILL.md
├─ tones
│ └─ SKILL.md
├─ exports
│ └─ SKILL.md
├─ social-campaigns
│ └─ SKILL.md
└─ jobs
└─ SKILL.md