perforce/p4mcp-server/p4-dam-workflows

Claude Code and agent skill by perforce/p4mcp-server

Trust tier 3
  • community
Source check pending

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-workflows

SKILL.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.URL property set (points at the P4 DAM instance).
  • The server must be started with a P4 DAM API key via the P4DAM_API_KEY environment 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
ToolPurpose
query_p4dam_projectsList projects. Accepts search_term (matches name, short name, or description).
query_p4dam_repositoriesList repositories in a project. Accepts search_term (matches short name).
query_p4dam_helix_classic_branchesList Helix Classic branches in a helix_classic repository.
Asset Search
ToolPurpose
query_p4dam_assetsSearch assets by keyword/filters — use when you don't have a depot path yet.
query_p4dam_assetFetch full metadata for a single known asset by depot path.
fetch_p4dam_mediaFetch and render a thumbnail, preview, or file image.
regenerate_p4dam_previewTrigger 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
ToolPurpose
create_p4dam_asset_bundleCreate a named collection of depot files scoped for review.
update_p4dam_asset_bundleUpdate description, view_paths, or hero_file_path.
delete_p4dam_asset_bundleDelete an asset bundle (prompts for confirmation).
sync_p4dam_asset_bundleSync 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
ToolPurpose
query_p4dam_file_reviewsList file reviews in a project. Filter by depot_path.
query_p4dam_file_reviewFetch single review with full detail including download_url.
create_p4dam_file_reviewCreate a file review (single-file or asset bundle).
update_p4dam_file_reviewUpdate state, name, view_paths, description, position.
delete_p4dam_file_reviewDelete a review (prompts for confirmation).

`query_p4dam_file_reviews` include: weblinks.

Workflows
ToolPurpose
query_p4dam_workflowsList workflows. include accepts states, transition_rules, projects.
query_p4dam_workflowFetch a single workflow by short name or UUID.
query_p4dam_workflow_statesList states for a workflow (name, short_name, kind, color, position).

State kinds: open (initial), review (under review), done (terminal).

Comments
ToolPurpose
create_p4dam_commentPost 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:

typeRequiredUse case
file_reviewproject, repository, file_reviewComment on an asset bundle file review
file_review_fileproject, repository, file_review, pathComment on a specific file inside a file review
commit_fileproject, repository, commit, pathComment on a committed file or asset bundle without a review
commentcommentReply 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
ToolPurpose
query_p4dam_custom_attribute_templatesList available custom attribute templates for a project (name, type, allowed values).
update_p4dam_asset_custom_attributesSet 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
ToolPurpose
update_p4dam_asset_tagsAdd/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
FieldNotes
depot_pathFull depot path — pass to query_p4dam_asset or fetch_p4dam_media(file_url)
nameFilename only
commitChangeset number
revRevision number
sizeFile size in bytes
mimeMIME type (e.g. image/png)
file_typePerforce file type
userLast modifier username
updated_atISO 8601 timestamp
tagsUser-applied tags (array of strings)
auto_tagsAuto-generated tags (array of strings)
blurhashPresent only for image files
thumbnail_urlPass to fetch_p4dam_media — image files only, nil otherwise
preview_urlPass to fetch_p4dam_media — image files only, nil otherwise
file_urlPass 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
FieldNotes
depot_pathFull depot path
thumbnail_urlPass to fetch_p4dam_media — present only for image files
preview_urlPass to fetch_p4dam_media — present only for image files
file_urlRaw file download URL
asset_bundle.uuidPass as bundle_id to update_p4dam_asset_bundle / delete_p4dam_asset_bundle
asset_bundle.view_pathsPass directly to sync_p4dam_asset_bundle
asset_bundle.depot_pathDepot path of the .p4bundle file
weblinksArray of weblinks (included by default)
custom_attributesCustom metadata fields
commitChangeset object (included by default)
latest_commitLatest commit object (included by default)
helix_classic_branch_matchesMatching Helix Classic branches (included by default)
stream_view_matchesMatching stream views (included by default)
query_p4dam_repositories — each result item
FieldNotes
uuidPass as repository_id to other tools
short_namePass as repository_id to other tools (also accepted)
typehelix_stream or helix_classic — determines which additional param is required for bundles/reviews
linked_streamsArray of stream paths — use stream value as stream_path when creating bundles/reviews for helix_stream repos
default_identifierDefault branch/stream identifier
query_p4dam_file_reviews — each result item
FieldNotes
uuidPass as review_id to query_p4dam_file_review, update_p4dam_file_review, delete_p4dam_file_review
nameReview name
stateCurrent workflow state object (short_name, kind)
depot_pathFile or bundle being reviewed
view_pathsScope of the review
asset_bundleLinked asset bundle (if bundle review)
thumbnail_urlPass to fetch_p4dam_media — present only for image files
preview_urlPass to fetch_p4dam_media — present only for image files
download_urlBundle download URL — only present when asset_bundle is set
creatorCreator account object
query_p4dam_workflow_states — each result item
FieldNotes
short_namePass as `state` when creating or updating a file review (not name)
nameHuman-readable display name
kindopen, review, or done
colorHex color string
positionOrdering within the workflow

Common Workflows

1. Search and filter assets
# By keyword (filename, tags, or custom attributes):
query_p4dam_assets(search_term="monocycle")
# Narrow by project or file type:
query_p4dam_assets(project_ids=["proj-uuid"], file_extension=["png", "svg"])
# By date range or size:
query_p4dam_assets(search_term="hero", from_date="2024-01-01", to_date="2024-12-31")
query_p4dam_assets(from_size=1048576, to_size=52428800) # 1 MB – 50 MB
# By depot path pattern:
query_p4dam_assets(path=["//depot/art/characters/..."])
query_p4dam_assets(path=["//depot/renders/*.png"])
2. Fetch full metadata for a known asset
query_p4dam_asset(depot_path="//stream/images/logo.png")

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:

query_p4dam_asset(depot_path="//stream/images/logo.png", project_id="proj-uuid", repository_id="repo-uuid", include=["file_review", "all_comments"])
3. View a thumbnail or preview
# From query_p4dam_assets result:
fetch_p4dam_media(url=<result.thumbnail_url>)
# From query_p4dam_asset result (higher resolution):
fetch_p4dam_media(url=<result.preview_url>)
4. Create an asset bundle (helix_stream repo)
query_p4dam_projects(search_term="characters")
query_p4dam_repositories(project_id="proj-uuid")
create_p4dam_asset_bundle(
depot_path="//stream/bundles/q3-chars.p4bundle",
project="proj-uuid",
repository="repo-uuid",
view_paths=["//stream/renders/...", "//stream/textures/..."],
stream_path="//stream/mainline",
description="Q3 character renders"
)
5. Sync a bundle to local workspace
# Get view_paths from asset_bundle section:
query_p4dam_asset(depot_path="//stream/bundles/q3-chars.p4bundle", include=["asset_bundle"])
sync_p4dam_asset_bundle(view_paths=<asset_bundle.view_paths>)
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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/perforce/p4mcp-server/p4-dam-workflows/badge)](https://verified-skill.com/skills/perforce/p4mcp-server/p4-dam-workflows)

Something wrong with this skill or its page? Tell us.