perforce/p4mcp-server/p4-dam-workflows
Claude Code and agent skill by perforce/p4mcp-server
- community
Checking that the SKILL.md file is still in the repository.
P4 DAM (Digital Asset Management) workflows — search, browse, tag, review, and manage digital assets via P4 MCP tools. Use when discovering, searching, filtering, reviewing, or managing assets stored in P4 DAM.
Install
npx vskill@latest install perforce/p4mcp-server/p4-dam-workflowsSKILL.md
The same SKILL.md was published earlier as perforce/p4mcp-server/p4-dam-workflows.
P4 DAM Workflows
Prerequisites
- The P4 server must have the
P4.HTH.URLproperty set (points at the P4 DAM instance). - The server must be started with a P4 DAM API key via the
P4DAM_API_KEYenvironment variable. Without a key, P4 DAM tools are not registered at all — a warning is logged at startup. - Write tools (create, update, delete, sync) require the server to be started without
--readonly.
Tool Reference
Discovery & Navigation
| Tool | Purpose | |
|---|---|---|
query_p4dam_projects | List projects. Accepts search_term (matches name, short name, or description). | |
query_p4dam_repositories | List repositories in a project. Accepts search_term (matches short name). | |
query_p4dam_helix_classic_branches | List Helix Classic branches in a helix_classic repository. |
Asset Search
| Tool | Purpose | |
|---|---|---|
query_p4dam_assets | Search assets by keyword/filters — use when you don't have a depot path yet. | |
query_p4dam_asset | Fetch full metadata for a single known asset by depot path. | |
fetch_p4dam_media | Fetch and render a thumbnail, preview, or file image. | |
regenerate_p4dam_preview | Trigger async regeneration of thumbnail and preview for an asset revision. |
`query_p4dam_assets` filters: search_term, project_ids (UUIDs), repository_ids (UUIDs), path (wildcard depot path patterns, e.g. //depot/art/*.png), name (filename wildcard), tag, file_extension, exclude_file_extension, user, from_size / to_size (bytes), from_date / to_date (ISO 8601), all_revisions, max_results, offset.
`query_p4dam_asset` params: depot_path (required), identifier (changeset), project_id (short name or UUID), repository_id (UUID, or short name if project_id is also provided), include.
`query_p4dam_asset` include values:
- Default set:
commit,latest_commit,custom_attributes,weblinks,asset_bundle,asset_bundle_origin,parent_asset_bundles,helix_classic_branch_matches,stream_view_matches,sprite - Require project/repository/stream or branch context:
file_review,comments,all_comments - Extras:
file_count,scene_refs
`fetch_p4dam_media`: Pass thumbnail_url, preview_url, sprite_url, or file_url from search/asset results. thumbnail_url, preview_url, and sprite_url are only present for image files (nil for non-image assets). Returns the image directly for visual display.
`regenerate_p4dam_preview`: Trigger P4Search to regenerate the thumbnail and preview for a specific asset revision. Params: depot_path (required), commit_id (changeset number, required). Returns accepted immediately — regeneration is async. Requires P4.P4Search.URL and P4.P4Search.AUTH_TOKEN on the P4 server.
Asset Bundles
| Tool | Purpose | |
|---|---|---|
create_p4dam_asset_bundle | Create a named collection of depot files scoped for review. | |
update_p4dam_asset_bundle | Update description, view_paths, or hero_file_path. | |
delete_p4dam_asset_bundle | Delete an asset bundle (prompts for confirmation). | |
sync_p4dam_asset_bundle | Sync bundle's depot files to local P4CLIENT workspace. |
Create flow: query_p4dam_projects → query_p4dam_repositories → (if helix_classic: query_p4dam_helix_classic_branches) → create_p4dam_asset_bundle.
File Reviews
| Tool | Purpose | |
|---|---|---|
query_p4dam_file_reviews | List file reviews in a project. Filter by depot_path. | |
query_p4dam_file_review | Fetch single review with full detail including download_url. | |
create_p4dam_file_review | Create a file review (single-file or asset bundle). | |
update_p4dam_file_review | Update state, name, view_paths, description, position. | |
delete_p4dam_file_review | Delete a review (prompts for confirmation). |
`query_p4dam_file_reviews` include: weblinks.
Workflows
| Tool | Purpose | |
|---|---|---|
query_p4dam_workflows | List workflows. include accepts states, transition_rules, projects. | |
query_p4dam_workflow | Fetch a single workflow by short name or UUID. | |
query_p4dam_workflow_states | List states for a workflow (name, short_name, kind, color, position). |
State kinds: open (initial), review (under review), done (terminal).
Comments
| Tool | Purpose | |
|---|---|---|
create_p4dam_comment | Post a comment on a file review, a file within a review, a committed file, or as a reply. |
`create_p4dam_comment` types and required fields:
type | Required | Use case | |
|---|---|---|---|
file_review | project, repository, file_review | Comment on an asset bundle file review | |
file_review_file | project, repository, file_review, path | Comment on a specific file inside a file review | |
commit_file | project, repository, commit, path | Comment on a committed file or asset bundle without a review | |
comment | comment | Reply to an existing comment |
path is a relative path within the repository (e.g. renders/hero.png), not a full depot path. For commit_file on helix_stream repos: also pass stream_path. For helix_classic: also pass helix_classic_branch.
Custom Attributes
| Tool | Purpose | |
|---|---|---|
query_p4dam_custom_attribute_templates | List available custom attribute templates for a project (name, type, allowed values). | |
update_p4dam_asset_custom_attributes | Set or remove custom attribute values on one or more assets. |
Flow: query_p4dam_custom_attribute_templates(project_id=...) → pick template UUID → update_p4dam_asset_custom_attributes(paths=[...], create=[{uuid, value}]).
Attribute types: text (any string), single-select (one of available_values), multi-select (list of available_values), checkbox ("true" / "false").
Tags
| Tool | Purpose | |
|---|---|---|
update_p4dam_asset_tags | Add/remove user tags and auto-tags on one or more assets in one call. |
Tag operations: create (add tags), delete (remove user tags), delete_auto (remove auto-generated tags). Supports individual files, specific revisions (identifier in path), recursive folders (//depot/folder/...), and propagatable for future revisions.
Response Fields
query_p4dam_assets — each result item
| Field | Notes | |
|---|---|---|
depot_path | Full depot path — pass to query_p4dam_asset or fetch_p4dam_media(file_url) | |
name | Filename only | |
commit | Changeset number | |
rev | Revision number | |
size | File size in bytes | |
mime | MIME type (e.g. image/png) | |
file_type | Perforce file type | |
user | Last modifier username | |
updated_at | ISO 8601 timestamp | |
tags | User-applied tags (array of strings) | |
auto_tags | Auto-generated tags (array of strings) | |
blurhash | Present only for image files | |
thumbnail_url | Pass to fetch_p4dam_media — image files only, nil otherwise | |
preview_url | Pass to fetch_p4dam_media — image files only, nil otherwise | |
file_url | Pass to fetch_p4dam_media for the raw file | |
sprite | { sprite_url, metadata } — animation sprite sheet, image files only |
The response wrapper also contains total_count, more_results, and next_offset for pagination.
query_p4dam_asset — top-level fields
| Field | Notes | |
|---|---|---|
depot_path | Full depot path | |
thumbnail_url | Pass to fetch_p4dam_media — present only for image files | |
preview_url | Pass to fetch_p4dam_media — present only for image files | |
file_url | Raw file download URL | |
asset_bundle.uuid | Pass as bundle_id to update_p4dam_asset_bundle / delete_p4dam_asset_bundle | |
asset_bundle.view_paths | Pass directly to sync_p4dam_asset_bundle | |
asset_bundle.depot_path | Depot path of the .p4bundle file | |
weblinks | Array of weblinks (included by default) | |
custom_attributes | Custom metadata fields | |
commit | Changeset object (included by default) | |
latest_commit | Latest commit object (included by default) | |
helix_classic_branch_matches | Matching Helix Classic branches (included by default) | |
stream_view_matches | Matching stream views (included by default) |
query_p4dam_repositories — each result item
| Field | Notes | |
|---|---|---|
uuid | Pass as repository_id to other tools | |
short_name | Pass as repository_id to other tools (also accepted) | |
type | helix_stream or helix_classic — determines which additional param is required for bundles/reviews | |
linked_streams | Array of stream paths — use stream value as stream_path when creating bundles/reviews for helix_stream repos | |
default_identifier | Default branch/stream identifier |
query_p4dam_file_reviews — each result item
| Field | Notes | |
|---|---|---|
uuid | Pass as review_id to query_p4dam_file_review, update_p4dam_file_review, delete_p4dam_file_review | |
name | Review name | |
state | Current workflow state object (short_name, kind) | |
depot_path | File or bundle being reviewed | |
view_paths | Scope of the review | |
asset_bundle | Linked asset bundle (if bundle review) | |
thumbnail_url | Pass to fetch_p4dam_media — present only for image files | |
preview_url | Pass to fetch_p4dam_media — present only for image files | |
download_url | Bundle download URL — only present when asset_bundle is set | |
creator | Creator account object |
query_p4dam_workflow_states — each result item
| Field | Notes | |
|---|---|---|
short_name | Pass as `state` when creating or updating a file review (not name) | |
name | Human-readable display name | |
kind | open, review, or done | |
color | Hex color string | |
position | Ordering within the workflow |
Common Workflows
1. Search and filter assets
2. Fetch full metadata for a known asset
To include file_review, comments, or all_comments, pass project_id and repository_id. Find them in stream_view_matches or helix_classic_branch_matches from the initial result:
3. View a thumbnail or preview
4. Create an asset bundle (helix_stream repo)
5. Sync a bundle to local workspace
6. Create a file review
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/p4-dam-workflows/SKILL.md
Popularity
- Repository stars
- 119
- Repository forks
- 27
- 7-day trend score
- 24
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/perforce/p4mcp-server/p4-dam-workflows)