vault-administrator
Author MDL scripts, pull Vault configuration into a local workspace, manage Vault File Staging transfers, and author reports and dashboards from pulled workspace files.
Overview
Section link for OverviewFor Vault administrators who need to configure, manage, and deploy Vault components. Use this plugin to author MDL scripts, pull and scope Vault configuration into a local workspace, manage Vault File Staging transfers, author reports and dashboards, and understand how components depend on each other across a Vault.
Dependencies
Section link for Dependencies| Plugin / Tool | Why |
|---|---|
vault | VQL and data access used during configuration validation and data operations |
Vault CLI (vault) | Pull, push (--dry-run for preview), and package configuration, and run MDL through the CLI when installed. Otherwise the documented Vault API is used. |
| Vault Documentation MCP | Answers API, MDL, VQL, and Help questions from official references. |
Out of scope
Section link for Out of scope| Topic | Owned by |
|---|---|
| VQL query syntax and relationship traversal | vault |
| Vault Java SDK entry-point classes and Custom Pages | vault-developer |
| Environment and sandbox management (creating, refreshing, deleting sandboxes) | Vault Admin UI |
Skills
Section link for Skills| Skill | Invoke with | What it does |
|---|---|---|
ai-metadata | /vault-administrator:ai-metadata | Draft Vault AI metadata (entities, fields, relationships, metrics, picklists) for the parts of a Vault's data model that no delivered metadata covers. |
config | /vault-administrator:config | Pull configuration into a local workspace and answer configuration questions from the workspace files. |
file-staging | /vault-administrator:file-staging | Upload, download, list, delete, move, and sync files in Vault File Staging. |
mdl | /vault-administrator:mdl | Create, modify, and debug Vault configuration components via MDL. |
process-monitor | /vault-administrator:process-monitor | Build, understand, and clone Process Views to measure how records move through lifecycle states. |
reporting | /vault-administrator:reporting | Understand, trace, clone, and draft Vault reports and dashboards from pulled workspace files. |
vpk | /vault-administrator:vpk | Build and deploy VPK packages to move configuration and code between Vaults. |
ai-metadata Skill
Section link for ai-metadata SkillDraft Vault AI metadata for the parts of a Vault's data model that no delivered metadata covers: custom objects, object types, document types, picklists, and the standard objects without delivered entities.
For Vault administrators and the SMEs who know what the data means. Use this skill to pick and rank candidates against per-Vault limits, draft entity, field, relationship, metric, and picklist metadata as Vsm component files with a review file for the SME, and hand the reviewed files to the mdl skill to run. Without it, agents reason over little more than names and labels for every custom component, and metadata is typed into the Admin UI one entity and one field at a time, with synonyms guessed from the label.
Triggers
Section link for Triggers- Explicit: "Draft AI metadata for our custom objects", "Which objects need Vault AI metadata", "The agent keeps confusing these two objects", "Add synonyms to this object for AI Chat", "Add a metric for how long these take", "What AI metadata do we already have", "How many AI metadata entities do we have left".
- Implicit: Vault AI is being turned on in a Vault with custom objects. Vault AI Chat answers a question about a custom object wrongly or picks the wrong object. A new custom object or document type has to be described for agents.
- Negative: Do not execute a change. Hand off to
mdl. Do not pull or refresh the workspace. Hand off toconfig. Do not count records or documents. Hand off toquery. Do not build or change an agent, its actions or tools, or the agent context that uses the metadata. Hand off toai-agents. Do not enable Vault AI or grant the AI Metadata permissions. That is Vault Admin UI work. Do not edit the search thesaurus in Admin > Settings > Search Settings, which expands search and is not agent metadata. Do not handle sign-in. Hand off tovault'sloginskill.
Success criteria
Section link for Success criteria- The skill must answer from a pulled workspace and quote the file paths:
components/Vsmentity/andcomponents/Vsmpicklist/for the metadata the Vault has, and the target's own files undercomponents/Object/,Objecttype/,Doctype/,Picklist/, andObjectlifecycle/for the data model. When there is no workspace, or it is not known to be current, the pull and the freshness check go toconfig, and the answer says it is only as current as that pull. - AI metadata comes down as two top-level types.
VsmentityholdsVsmfield,Vsmrelationship, andVsmmetricsubcomponents in nested folders (components/Vsmentity/<entity>/Vsmfield/<field>/<field>.mdl), andVsmpicklistholdsVsmvalue. The attribute schemas are in.vault/metadata/Vsmentity.jsonandVsmpicklist.json. The skill must read what an entity describes from itstarget, not its name, since the two differ on delivered components (person__vtargetsObject.person__sys). - When the workspace has no
VsmentityorVsmpicklistfolder, the skill must not say the Vault has no AI metadata. The type can be excluded in.vdxignore, the pull can be older than the metadata, or Vault AI can be off on that Vault. The skill says which of these the workspace rules out and offers the pull. - Standard AI metadata cannot be edited, and an entity can only target an object, object type, or document type no other entity uses. The skill must treat every delivered
VsmentityandVsmpicklist, and everything under them, as read-only, and must not draft a change to one or a custom entity on a target a delivered entity already holds. When a delivered description no longer fits how this Vault uses the object, the skill says so and names the agent's instructions and context, throughai-agents, as where a correction goes. - Candidates must be active and not already targeted by any entity, delivered or custom. That includes a standard object no delivered entity holds, since an entity needs only an active target no other entity uses, as well as custom objects, object types, and document types (a custom subtype under a standard document type counts). The skill must rank candidates on two questions: will users ask about it (traffic, a tab, a lifecycle, a workflow), and will the agent misread it without help (a label that does not say what it is, a look-alike object or document type, two reference fields an agent cannot tell apart). Each proposed entity carries a one-line reason with both halves.
- An object that a
TaborSubtabpoints at (object('<name>')in the files undercomponents/Tab/) and that no entity targets must be listed as a candidate, since a tab is the strongest sign users will ask about it. A standard object found this way is listed only when no delivered entity targets it, with the custom fields it carries. When the workspace has no object file for it, the skill says so and must not draft it. - Reports and dashboards must also count toward whether users will ask about an object: a
Reportwhosereport_type('Reporttype.<name>')names a report type with the object as itsprimary_object, and aDashboardwhosedashboard_markup.xmlcharts such a report (report="Report.<name>"). A report or dashboard shows that someone built a view of the object, not how often it is opened, since the pull carries no run counts. When the workspace has noReportorDashboardfolder, the skill must not read that as a Vault with no reports, since.vdxignorecan exclude a type. - For an app's standard objects the skill must work from what the Vault holds: delivered Vsm components in the workspace, and the object's and its fields' descriptions and help text.
- The skill should leave out join objects with no business meaning of their own, integration staging, reference and configuration data, test and demo objects, and objects with no tab, no lifecycle, and no records.
- Record and document counts are data. The skill must get them through
queryor ask for them, and must not infer volume from the files. Without counts it says the ranking rests on structure alone. - The plan must be stated against the published limits. Per Vault, 50 custom entities and 100 picklists. Per entity, 50 fields, 30 object relationships, and 20 metrics. Per picklist, 50 values. Count the custom entities and picklists the workspace already holds. The skill must not state whether delivered entities and picklists count toward the per-Vault caps. It should propose well under 50 and say the held-back slots are for what real questions turn up after launch.
- Object type entities arrived with Vault AI release AI.2639. The skill should default to one entity on the object, with field metadata on its object type field, and propose object type entities only when the types are different business things, since each one is another entity against the 50. Whether an object and its own object types can each hold an entity at the same time is not confirmed.
- The skill should say that an agent reaches entities through its agent user's permissions, so metadata on an object that user cannot read does not reach the agent, and name the agent user's profile as the thing to check.
- When the skill picked the candidates itself, it must stop once, after the ranked plan, and ask only which targets to draft: confirm, drop, or add, which of two look-alike targets is current, whether a target is legacy or test content, whether the agent user can read it, and whether to hold some of the 50 back. It must not ask at this stop what a target or a field means or which words users use. Those questions go in the review file beside their rows. When the user named the targets, that is the confirmation, and the skill drafts without stopping.
- Each description must say how an agent should read the target: what it is for, what it is used to find, filter, or sum, when to use it and when not to, with the look-alike it is not named and the right one to use instead in a clause that starts
IMPORTANT:, the form delivered metadata uses. It must not restate the label or copy the target's help text word for word, since help text is written for the person entering data. - The first sentence of a description should carry the nouns users type and the ones that set the target apart from its look-alikes, since a word that is only in the synonyms can go unseen when Chat searches the schema. Whether that search weighs the first sentence above the rest is not confirmed.
- When a custom target stands in for a delivered entity (the same business concept under a custom name), the skill should start from the delivered description, name the delivered entity it started from, and add only what differs. A synonym copied the same way collides with the delivered entity and goes through the collision check below.
- Synonyms are capped at ten per item, and should be jargon, abbreviations, or terms an agent cannot map on its own, not plurals or the label with "record" or "item" added. The skill must not present a synonym as the business's own word unless it came from what the user supplied (a glossary, SOP titles, the search thesaurus export, questions users have asked, an SME). Every other synonym must be marked proposed and listed for the SME.
- The skill must check every drafted label and synonym against the other entities in the draft and the delivered entities in the workspace, and flag each collision. A collision with delivered metadata is the serious one, since that text cannot be edited. The delivered Person entity, for one, carries "personnel" and "contact".
- The skill must not draft a synonym that a standard object's label already holds, after singular and plural folding (the label in its object file, or a delivered entity's
target_label), and lists the word in the review file with that label instead, since a word that matches an object's label can decide which object Chat reads before any synonym does. - The skill must also check the fields and relationships it describes on each target for names a user could confuse: names that differ only by a trailing number (
features__c,features1__c), the same label twice, labels that match after singular and plural folding, one label that starts another, and a reference whose label names a different object than the one it targets. Each pair gets anIMPORTANT:clause in both descriptions. Numbered slots (presenter_1__c,presenter_2__c) stay separate and are told apart. A mislabeled reference is described by its target. - The skill should pick the fields users filter, group, and ask about (status, key dates, owner, human-facing identifiers, classification picklists, amounts), and leave audit and system fields out unless a question needs one, such as a submitted date read from
created_date__v. Hold a top entity to about 10 to 20 fields, since more fields can pull questions to the wrong entity. A field must go on one entity at most, since multiple entities cannot reference the same field. Example values go only on Text fields, up to ten, and only where users type recognisable terms. - Before it chooses fields, the skill must get each candidate field's fill rate and sample values through
query, or ask the user for them. Without them it says the choice rests on the configuration alone. A field filled on few records must be left out unless the user or a question names it, and the review file gives its fill rate. What a field holds comes from those values. When they do not show what it means, the skill asks the SME and must not guess. - Fields should rank in this order. First, list columns (
list_column(true)in the pulled field file) and the fields in the first section of the object's page layout that holds fields, in the order they appear (page_markup.xmlundercomponents/Pagelayout/, whosecontrollernamesObject.<name>orObjecttype.<object>.<type>). Then fields a report or dashboard selects, filters, or groups on (<object>.<field>in a report'sdefinition.xmlor a dashboard'sdashboard_markup.xml). Then fields in later sections, with a system section last. The review file must say why each field was picked: list column, layout section, report or dashboard, fill rate, sample values. - Before a description names a picklist value or a lifecycle state, the skill must read it from the pulled
PicklistorObjectlifecyclefiles, and must not name a value or state those files do not hold. - A field whose picklist has its own
Vsmpicklistmust point at it withvsm_picklist('Vsmpicklist.<name>'), not at the Picklist. Help allows a field-level override of a reused picklist's description and synonyms. The pulled field files carryvsm_picklist_localfor it, so the skill must not draft an override until that shape is confirmed. - Relationships are for object entities only.
targetis the relationship name (<name>__cr) andtarget_objectthe bare object name. The skill should add one only where the traversal is ambiguous, two reference fields to the same object first (the employee on a request and the manager who approves it). The relationship component is named for the relationship with__cin place of__cr(manager__ctargetsmanager__cr). Vault shows cardinality and fills the join object for many-to-many. A relationship on a reference field usescardinality('MANY_TO_ONE')with an emptyjoin_object(). Whether these can be omitted, and whichjoin_objectspelling a many-to-many takes (delivered files use both'language_locale__sys'and'Object.legalhold_item__v'), is not yet confirmed. - A metric must be drafted only when a question combines fields, such as a duration between two dates or an aggregate across objects, and never as a single field under another name.
target_fieldsnames fields on the entity's own object andinstructionssay how to calculate it, from which fields and under what conditions, without restating the description. - When a metric needs more than ten target fields, the skill must say that more than ten is not yet confirmed, and must not state a limit. The skill should say whether it wrote the instructions as a plain sentence, the form delivered metrics use, or as a Vault formula or rule, the form Help asks for.
- A
VsmpicklisttargetsPicklist.<name>orObjectlifecycle.<name>, and aVsmvaluethe bare value or state name. Document lifecycles were added with AI.2639. Their target form is not yet confirmed. The skill should describe a value only where its label does not say what it means, and a lifecycle state where words like "open" or "approved" mean something specific in this process. - Every string must fit the pulled type metadata. An entity description is up to 1,000 characters. Field, relationship, metric, picklist, and value descriptions are up to 500. Metric instructions are up to 2,000. Labels are up to 60.
- Every draft must be RECREATE files in the pull's layout (a folder per component, subcomponents in nested folders referenced as
Vsmfield(@Vsmfield/<name>.mdl)), started from a pulled Vsm component of the same type that is copied, renamed, and changed only where the request differs, with new names in the__cnamespace. The shapes come from the pulled files. The skill must not write them from memory. RECREATE creates a component that does not exist yet, so a new entity is RECREATE too. - Every subcomponent name must be in the
__cnamespace even when its target is a standard field:record_name__ctargetsname__v. A subcomponent namedname__vfails the push with "[standard] sub-components cannot be created" (GEN-FADDS-ONA-1019). Standard fields still get metadata this way. The skill must not leave a field out only because it is standard. - An apostrophe inside a drafted string must be written as two single quotes (
employee''s). Delivered files carry\''. - When the workspace already holds a custom entity for the target, the draft must start from that entity's files and keep what it has, since a RECREATE replaces the whole component. An existing metric's
target_fieldsmust stay as they are. A metric that needs other fields gets a new name (Vault rejects a change to them on RECREATE with GEN-FREC-II-1061, not yet confirmed). - Before the hand-off the skill must check the draft against the workspace and list every problem it finds. A string over its pulled length. More than 50 fields, 30 relationships, 20 metrics, or 50 values. An empty description (the type metadata marks it required). An apostrophe not written as above. Example values on a field that is not Text. A
vsm_picklistnaming a Picklist. A subcomponent name outside__c. Atargetthat names a field or relationship the pulled object does not have or that is inactive. - The draft must come with a review file beside the workspace, not inside it, in markdown, written for the SME to edit in place and hand back. It is a table with one row per drafted entity and one per drafted field, relationship, metric, picklist, and value, a subcomponent's Target written
<entity> . <name>, and these columns: Target (read only), Description and Synonyms (edited in place), Basis (read only), Claude's question (read only), Reviewer answer or comment, and Reviewer (left blank for the admin to assign). Markdown is the only form in this release. - The skill must record each row's Basis when it drafts the row, never afterwards:
general knowledge, or the Vault source it took the text from, named exactly (config text such as a label, help text, description, or lifecycle state, a delivered entity, or a query result). It must not name a Vault source it did not read. - The review file must open with a short summary (the count against the 50 custom entities, the confirmed plan, and what was assessed and left out with the reason), then the key rows (every
general knowledgerow, and the top-ranked entities with their fields), then the remaining rows in a second section marked optional. A question must sit in its own row's Claude's question column, only where the row needs an answer. The file must not gather questions in a list of their own. - When the reviewer hands the file back, the skill must diff each Description and Synonyms cell against the component files it drafted, read each answer and comment, write the changes into those files, rerun the check above and the collision checks, and write a fresh review file with only what is still open, for as many rounds as the reviewer wants. A synonym the reviewer adds that collides with a delivered entity, or that a standard object's label already holds, must stay out of the files and come back as an open item.
- Execution must be handed to
mdl, which runs its dry run and its plan stop. The skill must not write to a Vault, runvault config pushorvault mdl, or offer to skip the dry run. The hand-off must say that Vault AI has to be enabled on the target and that whoever runs it needs the Admin: Configuration: AI Metadata Create and Edit permissions. - The skill must say that an entity's target cannot be changed after it is saved, so a wrong target means a drop and a new entity, and that dropping an entity deletes its fields, relationships, and metrics and takes it out of any agent context that uses it. Before offering a drop it should search
components/Agent/for the entity's name. How agent context names an entity is not yet confirmed. - The skill should leave a question bank: five to ten questions per top entity in the business's own words, each term checked against the drafted labels and synonyms, as the before-and-after check in Vault AI Chat. It must say that a successful push does not show the agent answers better. Vault synchronizes active components to the agents' vector store, and the question bank is the check. It must also say that AI metadata does not decide whether Chat searches documents or records. Chat can make that choice from the words in the question before it searches the schema, so a question that needs records names the object the way users say it, and a synonym or field description is not offered as the fix.
Out of scope
Section link for Out of scope| Topic | Owned by |
|---|---|
| Executing a drafted change, and its dry run | mdl |
| Pulling or refreshing the workspace | config |
| Record and document counts | query |
| Agents, agent actions and tools, and the agent context that uses the metadata | ai-agents |
| Enabling Vault AI and granting the AI Metadata permissions | Vault Admin UI |
| The search thesaurus (Search Synonyms) | Vault Admin UI, Admin > Settings > Search Settings |
| Editing delivered (standard) AI metadata | Not possible in Vault |
| Moving AI metadata to another Vault | vpk |
| Sign-in and credentials | login |
config Skill
Section link for config SkillPull Vault configuration into a local workspace and answer configuration questions from the workspace files.
For Vault admins, developers, and other skills that need to understand how a Vault is configured. Use this skill to pull Vault configuration into a local workspace with the Vault CLI and answer questions about objects and fields, lifecycles and workflows, picklists, and component dependencies from the workspace files.
Triggers
Section link for Triggers- Explicit: "Pull my Vault's configuration", "What fields are on this object", "What depends on this picklist", "Is my workspace current", "What did we build for HR", "How does QA differ from prod".
- Implicit: Another skill needs an object definition or a component's MDL before it acts. A feature has to be scoped before it is copied or packaged. The user asks whether a component exists or what references it.
- Negative: Do not change configuration or run MDL. Hand off to
mdl. Do not package components for another Vault. Hand off tovpk. Do not answer record counts or document questions. Hand off tovault'squeryskill. Do not handle sign-in or credentials. Hand off tovault'sloginskill.
Success criteria
Section link for Success criteria- The skill must look for an existing workspace (a directory with
.vault/relationships.jsonor.vault/dependencies.json) in the directory the user names, then the current project (its root orvault-config/), and must check which Vault it came from before trusting it. The pull records no source Vault, so the workspace's first commit names it (first pull from <dns>). No git history, or a first commit that names no DNS, means asking the user. It must not search other directories for one, the home directory included, unless the user names that directory. - When no workspace for the target Vault exists, the skill must create it in the directory the user names, otherwise in
vault-config/under the current project, and must state the path in one line. It must not create one under the home directory unless the user names that directory. - If
vault-config/already holds a workspace from another Vault, the skill must ask for a directory rather than pick one. - A workspace pulled from another Vault must not be refreshed or overwritten. The pull goes to a different
--dir. - The skill must not read
relationships.jsonwhole. It walks it with a short script. - When the user names a Vault by anything other than its full DNS, the skill must ask for the DNS rather than guess one. The CLI has no command that lists stored Vaults or credentials to resolve a label against, and the skill must not substitute another Vault.
- The first time a session answers from an existing workspace, the skill must run one
vault config pull --dry-runagainst the workspace's own source Vault and state the result. Nothing to change means current. A few changes are fixed by a pull. Most of the workspace changing means it came from an older pull. A dry run makes the same API calls as a pull, so the skill must not repeat it for each question. After that, it answers from the files and reruns the dry run only when the user asks. The check is skipped when the user pulled moments ago in the same session. - A pull dry run that returns an
ERRORline for a component (Failed to fetch component <Type>.<name>: Vault did not return an MDL definition) means Vault does not return that component as MDL, not a stale workspace or a CLI fault. On a real pull that file is left as it was and the pull exits 1. - The skill must not present
vault config push --dry-runas the freshness check. The preview lists a change made on the Vault since the last pull as an update the push would undo, and the freshness check isvault config pull --dry-run. - After the CLI has been upgraded, the skill must pull again before the first push, since a push from a workspace pulled with an older CLI may propose deleting components the workspace did not hold.
- An answer from the workspace must quote the file path it came from. When the file is missing, the skill says which reason applies (
.vdxignore, or a pull older than the component) and offers the pull that fixes it. It must not fall back to the API for a component that belongs in the workspace. - A feature's component set must come from walking
.vault/relationships.jsonfrom the seed objects in both directions, and must not come from searching names. When the seeds are not obvious, the skill asks which objects. - The walk must stop at standard (
__v,__sys) components and record them as referenced. When the set grows past what the user described, the skill finds the shared custom component that joins two features, treats it as a leaf, and tells the user it is shared. - The skill must search
javasdk/andcustom_pages/for the seed object names, and must not call the set complete until the walk and that search have both run. - The scoped set must be reported grouped by component type with counts, code files listed separately, and a load order of leaves first, objects next, then what hangs off them.
- The skill must not say a Vault has no code components because
components/has no folder for them. It checks throughvault'squeryskill. - The skill must not call a feature "in use" from the presence of its components.
- Without the CLI, the answer must say it came from a live call and not a workspace. A dependency question gets the single component's own references plus a note that the CLI pull is the practical way to see the whole graph.
- A question about removing a field or object must be answered with the note that the files cannot show whether data is in it. The count and the inactivate-or-delete decision belong to the
mdlskill. - Debug log zips, extracted logs, and trace exports go in a folder beside the workspace, never under the pulled tree.
- A question about Admin > Settings must be answered by saying settings are not components and are not in the pull, and pointing at Admin > Settings in the UI.
Out of scope
Section link for Out of scope| Topic | Owned by |
|---|---|
| Changing configuration: MDL, and the edit and push loop | mdl |
| VPK packaging and deployment | vpk |
| Record counts and document questions | vault's query skill |
| Sign-in and credentials | vault's login skill |
| Admin > Settings | Vault Admin UI |
file-staging Skill
Section link for file-staging SkillUpload, download, list, delete, move, rename, and sync files in Vault File Staging (VFS), including large-file resumable transfers and proof-of-upload reports.
For Vault admins and developers who need to move files to and from Vault File Staging. Use this skill to upload files (including large-file resumable transfers), download staged files, list and tidy staging areas, delete and move files, run a delta sync, and generate proof-of-upload reports.
Triggers
Section link for Triggers- Explicit: "Upload this folder to file staging", "Stage these files for the load", "Download the extract from staging", "What's in my staging area", "Clean up file staging".
- Implicit: Files need to reach VFS ahead of a load. A Vault-written Loader extract needs collecting. The user wants only new or changed files re-uploaded. The user wants proof a transfer landed.
- Negative: Do not build the load input or submit the Vault Loader job. Hand off to
api. Do not handle sign-in or classification. Hand off tovault'sloginskill. Do not answer questions about a file after a load has turned it into a document or record. Hand off toquery. When one file is going onto one document or record, offer Direct Upload rather than defaulting to VFS.
Success criteria
Section link for Success criteria- Every job named in a single request is resolved ("sync this folder and give me a report" is bulk upload plus delta sync plus proof of upload). An ask that only loosely maps onto a job gets a question, not a guessed workflow.
- Admin or non-Admin status is asked when unstated, never inferred, and the matching path form is used in every file staging call. A Loader
filecolumn value starts from the file staging root, so a non-Admin's carries theiru{id}folder. The wrong form is the most common way a drafted VFS command 404s. When a command fails, the CLI's own output is quoted as the report, and the skill does not offer causes outside the CLI and Vault. - Any file over 50 MB must get the full three-call resumable sequence (create session, upload parts, commit), never just the first call. A mixed-size tree branches per file rather than picking one method for the whole tree.
- Bulk uploads create folders before files, parent before child. Bulk downloads list recursively first, recreate local folders from the listing, then download files, chunking anything past the Range cap into sequential requests.
- Delta sync is presented as a size-and-timestamp heuristic against the current remote listing, never a content diff (the path listing carries only size and
modified_date). The skill names the case it silently misses: A same-size edit with a non-newer modified date. - A proof-of-upload report claims a whole-file checksum only for a single-shot file matched against a locally computed hash. A resumable upload is marked not verifiable after the fact, since only per-part checksums exist after the transfer is over.
- The target DNS and classification are stated in one line before anything is drafted or run. Upload, list, and download proceed on any Vault after the DNS is stated, but delete and move against
PRODUCTIONorUNKNOWNare handed over as drafted commands, never run. - Deleting a folder prompts the recursive question. Without the recursive option, deleting a non-empty folder does nothing.
- An upload into an Inbox path carries the Staged-document warning: Renaming creates a new Staged document rather than renaming the existing one, and deleting the file does not delete the Staged document already created from it.
- Retention is stated whenever the user asks if a file is still there: 72 hours for a Vault-written extract, one year for a user upload, and a Vault refresh clears staging entirely, with the numbers confirmed against the Vault Documentation MCP rather than quoted from memory.
- Numeric API limits (burst budget, part size, concurrent sessions) are never stated from memory. The Vault Documentation MCP is named as the source.
- Sign-in runs through
vault'sloginskill. The skill never asks for a session ID or password itself. - When a staged upload feeds a downstream load, the skill stops at the staged paths and hands off to
apito submit the Vault Loader job.
Out of scope
Section link for Out of scope| Topic | Owned by |
|---|---|
| Submitting a staged file as a Vault Loader job | api |
| A multi-object migration with dependency ordering | Migration tooling, not an admin staging job |
| Attaching one file straight onto one document or record | Direct Upload on that document or record's own call, not VFS |
| Signing in, staying signed in, production/sandbox classification | vault's login skill |
| Questions about a file after a load has made it a document or record | query |
| Endpoint detail beyond the skill's own reference (request shapes, exact limits) | Vault Documentation MCP |
mdl Skill
Section link for mdl SkillCreate, modify, and debug Vault configuration components using MDL, when a change must be scripted, repeatable, or land on multiple Vaults.
For Vault administrators who need to create, modify, or debug configuration components via MDL. Use this skill when a change must be scripted, repeatable, or deployed across multiple Vaults and the Admin UI alone is not sufficient.
Triggers
Section link for Triggers- Explicit: "Write an MDL statement", "Help me with MDL", "Create an object in MDL", "Alter a field with MDL", "Configure
<X>in Vault". - Explicit, lifecycle gating: "Add an entry criterion", "Block this state change until
<X>", "A record can't be closed unless<X>", "Require the related records to be approved first", "Gate this state on a related document", "Add a formula check to a lifecycle state", "What's stopping this record from moving to<state>". - Implicit: User needs to create or modify a Vault configuration component. User is debugging a failed MDL script. "Without using the Admin UI".
- Implicit, lifecycle gating: User states a condition that must hold before a record can enter a lifecycle state, without naming entry criteria or MDL. The condition involves related records or related documents being in a particular state or state type. An existing entry criterion has to gain another condition. A state change is being blocked in a Vault and the user wants to know which criterion is responsible.
- Negative: Do not trigger for VQL queries. Hand off to
query. Do not trigger for Vault Java SDK source. Hand off tojava-sdk. Do not trigger for VPK packaging. Hand off tovpk.
Success criteria
Section link for Success criteria- Generated MDL must use correct syntax: Outer parentheses, semicolon terminator, comma-separated attributes, single-quoted strings and enums, unquoted booleans and numbers.
- Complex attribute types (XML, JSON) must use correct syntax and schema, specific to the Component Type and attribute. High-priority examples: Pagelayout
markup. Reportdefinitionandlayout. Objectlifecycle entry-criterionrule(five action types, three different child shapes). Objectworkflowstep_detailandworkflow_variables. - Report, Reporttype, and Dashboard drafts come from the
reportingskill. Themdlskill executes them. - Processview drafts come from the
process-monitorskill. Themdlskill executes them. ALTERis used for targeted changes.RECREATEonly when full definition replacement is the explicit goal.- Async execution is specified (not optional) when the operation meets the async-required thresholds (10,000 or more records on a raw Object with a schema-altering change).
- The workspace loop is the default path for all changes, including new components.
vault config push --dry-runpreviews the change and the second preview confirms it with no changes. Pagelayout and other XML-bodied components must go through the workspace path.vault mdl "<statement>", one statement per call, is for a change the user asks to run as a statement. - After the CLI has been upgraded, the skill must pull again before the first push, since a push from a workspace pulled with an older CLI may propose deleting components the workspace did not hold.
- The skill must run the statements itself, one at a time, after the target DNS and classification are stated and the user has said go. Must not hand the user a script to run in its place.
- For a component whose body is XML or split across sidecar files (a lifecycle user action, a workflow step, a page layout): the skill must start from the nearest working component of the same type in the workspace, copy it, rename it, and change only what differs. It must not retype the shape from memory, and must not send the user to the Admin UI for a change MDL supports.
- A new field must start from a pulled field of the same type and keep its full attribute set. No attribute is dropped as a default.
- A lifecycle user action that starts a workflow must only start the workflow. A state change must be a step inside the workflow.
- When a new object is modeled on an existing one, the plan must list the configuration around the example that makes it usable (its tab or subtab, the related section on its parent's layout, its object validations) and include them unless the user says otherwise.
- A new object that names a lifecycle must be authored in the same change as that lifecycle. Otherwise Vault creates an inactive placeholder lifecycle of that name.
- The plan stop must come after the files are written and
push --dry-runhas run, so the go is given against the preview. When the request itself asked for the deploy and the target is classified non-production, that request is the go: the skill must still run the preview, must stop there only when it shows a delete or anything the planned change did not touch, and otherwise pushes and reports what the preview listed. At the plan stop the skill must give the plan's summary, list every destructive delete the plan marks, and name the known traps. A push that carries a delete is run only after the user's go for those deletes and is handed to the user to run in their own terminal, because the CLI lists the deletes and asks for confirmation that a non-interactive shell cannot give, and-y/--yesis never used in its place. Changed files are shown by path and diff, not printed whole. - Before a plan that deletes a field or an object, the skill must run one read-only count (
SELECT id FROM <object> WHERE <field> != null PAGESIZE 0for a field,SELECT id FROM <object> PAGESIZE 0for an object) throughvault apion the query endpoint, with the CLI or without it. Expect Vault to refuse a field delete while any record holds a value (OBJ-FREC-ONA-7212). The skill must not clear or migrate that data. - Before any delete of a field or object with data, the skill must say that inactivation (
active(false)) keeps the data and history and can be reversed, while a delete cannot. Name which is the usual move (delete in development, inactivate to retire). Take the user's choice. - When a run stops partway, the skill must say which components are on the Vault and check the content of those that are, before continuing.
- Every run step must be followed by a read-back of the changed component.
vault mdlprints "MDL executed." even when nothing changed. - Objectlifecycle entry criteria follow the plugin's
references/objectlifecycle-entry-criteria.mdaction-type index. The<action type="...">literal must be chosen by what the requirement actually checks, not composed from the English of the ask. Five of the elevenLifecycleEntryCriteriaActionTypevalues are researched:LIFECYCLE_ENTRY_CRITERIA_FIELD,objectLifecycleEntryCriteria.all.validateFormulaEvaluatesToTrue,objectLifecycleEntryCriteria.all.validateRelatedRecordEntryCrit,objectLifecycleEntryCriteria.all.validateRelatedRecordStateType, andobjectLifecycleEntryCriteria.Quality.stateTypeOfRelatedDocuments. A criterion outside those five must be retrieved as MDL from a Vault that already has one and adapted, or handed to Admin > Object Lifecycles. The skill must not invent atypeliteral, and must not infer one by analogy with a documented type. A third structural pattern (CHECK_ENTRY_CRITERIAwith a nested<EntryCriterion>) exists that none of the five use. - When the condition to satisfy lives on a related record, the related object's
available_lifecyclesmust be read to decide the type, not inferred from its field list. The object to retrieve is whichever one owns the relationship field. For an outbound relationship it is what the field'sobject(...)points at. For an inbound relationship it is the related object itself, since what its field points at is the object already being gated. A status-like field on the related object (status__v, an Active/Inactive picklist) is not evidence that it has no lifecycle. The two coexist routinely. With a lifecycle present, the criterion isvalidateRelatedRecordEntryCritfor a named state orvalidateRelatedRecordStateTypefor a state type.validateFormulaEvaluatesToTrueover a one-hop__crtraversal is the fallback for when that check comes back empty, not the first move. - The related object's MDL component name is the value of the relationship field's
object(...)attribute used verbatim:object('user__sys')resolves toObject.user__sys. The skill must not pluralize or otherwise adjust it. A failed retrieve on a wrong name must be re-issued with the corrected name. - Filter values narrowing which related records a criterion applies to follow the filtered field's datatype and must not be generalized across datatypes. An object type is written as its label. A picklist entry is written as its API name, not its label. A label where an entry name is required is rejected by Vault with
OLC-FADDS-II-1023. Narrowing itself is the optional second<expression>on the same<action>withqualifier="platform.all.conditionFilterField"and argument groups numbered fromARGUMENT_GROUP0. It must not be anandnode: Vault rejects anornode there withOLC-FADDS-II-1044, and anandnode is assumed to be rejected the same way. Two independent checks stay sibling<action>elements. <expression>grammars must not be crossed between action types.validateFormulaEvaluatesToTruecarries a plain-text Vault formula string, with>written>and fields by bare API name.LIFECYCLE_ENTRY_CRITERIA_FIELDcarries a comparison tree. The two related-record types carry afunction/method/argumentGroup/argumenttree.stateTypeOfRelatedDocumentscarries no<expression>at all, taking flat children.- A relationship-based criterion must state its direction and not guess it.
OUTBOUNDapplies when the relationship field named inARGUMENT_GROUP1lives on the object being gated.INBOUNDapplies when it lives on the related object and points back. The skill must ask which one the user means when the requirement does not say. Thequalifieronfunctionandmethodnodes is aplatform.*condition-type key, not the<action type=>literal, and the two must not be swapped.ARGUMENT_GROUP2must carry a 3-segmentObjectlifecycle.<lifecycle>.<state>key forvalidateRelatedRecordEntryCritand a 2-segmentLifecyclestatetype.<state_type>key forvalidateRelatedRecordStateType. publicKey,privateKey,actionPublicKey, andactionPrivateKeymust not be authored into anADDorMODIFY. Vault generates them and they appear only on read-back.stateTypeOfRelatedDocumentsis application-namespaced (.Quality., not.all.), and its availability outside the Quality application family is unconfirmed. The skill must say so and check the target Vault rather than assert the type exists there.
Out of scope
Section link for Out of scope| Topic | Owned by |
|---|---|
| Vault Java SDK source referenced by MDL components | vault-developer |
| Moving components between Vaults as a package | vpk |
| Record or document data queries | query |
| Submitting a prepared record load or bulk extract | api |
| Admin > Settings checkboxes | Vault Admin UI |
process-monitor Skill
Section link for process-monitor SkillBuild, understand, and clone Process Views to measure how long records take between lifecycle states and how that breaks down by a field.
For process owners and Vault administrators who need Process Views built, understood, or copied. Use this skill to read pulled Process View files, explain what a view measures, and draft new views or clones as MDL for the mdl skill to run. A view's settings XML is validated strictly, but some realistic mistakes get through MDL and fail later, so the skill drafts from pulled views and verified rules, not from memory.
Triggers
Section link for Triggers- Explicit: "Build a Process View", "Process Monitor view for my complaint lifecycle", "What does this process view measure", "Copy this process view with a 30-day timeframe", "Cycle time from New to Closed by severity", "Add a chart to my process view".
- Implicit: User asks how long records take between two lifecycle states, or for first-time-right, rework, or variant counts on a lifecycle, and wants something saved in Vault rather than a one-off number.
- Negative: Do not execute any change. Hand off to
mdl. Do not pull or refresh the workspace. Hand off toconfig. Do not build a Vault report or dashboard. Hand off toreporting. Do not answer a one-off count or list of records. Hand off toquery. Do not interpret the output of a view that has run.
Success criteria
Section link for Success criteria- The skill must answer from the pulled
components/Processview/<name>/files (<name>.mdl,settings.xml,Chart/<chart>/<chart>.mdl) and quote the paths. When there is no workspace it hands the pull toconfig, without guessing state or field names. It should offer a.vdxignorethat keeps onlycomponents/Processview/when the user wants nothing else pulled, plus the lifecycle, object or document type, field, and picklist folders when a new view is to be built. - An explanation must name the process and subprocesses, the start and end steps with their calculation (first time in or last time in), the timeframe in plain words, each filter, the metrics, the target, the charts and what each groups by, and the owners, editors, and viewers.
- A new view or a clone must start from a pulled view's folder or the skill's templates, and must not write
settingsXML or a chart from memory. A clone is a RECREATE under a new name with a checklist of what changed. start_stepsandend_stepsmust each name at least one valid state, the two must differ, and steps must be bare state names in the plural form.timeframe_fieldmust equaltimeframe/property, withdataTypeDateand one ofIN_LAST,IN_NEXT,BETWEEN,GTin the shape the reference gives.- Every enum value must come from the allowed sets in the
references/processview-settings.mdfile: unit, graph orientation, bin width, time interval, calculation type, timeframe unit, chart type. - A filter's
dataTypemust come from the field's type in the workspace, and its values must be picklist entry names, recordname__vvalues, or user display names, never labels, record IDs, or usernames. When a value has to be looked up, the skill gets it throughquery. - There must be between 1 and 10 metrics, all from the accepted list. When a
quality_completed_*metric is used, the view must carrycycle_time_target. export_columnsmust list the process's base set, the timeframe field, and every chart's grouping field asrequired=true, extra columns asrequired=false, each with thetypeits kind needs.- The view must keep the two
__syscharts unless the user asks otherwise. A custom chart must useline,column, orbarand must not usevolumeorcombination.metricsmust be one comma-separated string.sort_fieldmust begrouping.<its grouping field>ormetric.<one of its metrics>. There must be no more than seven custom charts. subprocessvalues should be written in Vault's stored order, so the second preview stays clean.- The skill must stop for the user's go before anything is pushed and must not write to a Vault. Execution goes to
mdl. - After execution the skill must confirm the view exists and diff the stored settings against what was sent, treating the changes listed in the reference as normal. It must treat a
BPV-WREC-II-2200[346]"Skipping" warning as a failure, and must read aMODIFIEDon the secondpush --dry-runas Vault having corrected the view, then pull and show the diff. - The skill must say plainly that no API or CLI command runs a Process View, that a successful MDL response does not prove it runs, and ask the user to open it in Process Monitor.
Out of scope
Section link for Out of scope| Topic | Owned by |
|---|---|
| Executing a drafted change | mdl |
| Pulling or refreshing the workspace | config |
| Vault reports and dashboards | reporting |
| One-off record counts and lists | query |
| Running a Process View, scheduling it, and reading its results | Process Monitor in Vault |
| Standard (Veeva-owned) Process Views and the metrics reserved for them | Not covered |
reporting Skill
Section link for reporting SkillUnderstand, trace, clone, and draft Vault reports and dashboards from pulled workspace files.
For Vault admins who need to understand, trace, clone, or draft Vault reports and dashboards. Use this skill to read pulled Report, Reporttype, and Dashboard files, explain what a report selects, filters, groups, and joins, trace a report to its type and primary object, and draft clones or new components as MDL for the mdl skill to execute.
Triggers
Section link for Triggers- Explicit: "What does this report show", "What is this report filtered on", "Which dashboards use this report", "Copy this report under a new name", "Make a report type for my custom object", "Build me a report on my custom object", "Make a dashboard from this report".
- Implicit: A report or dashboard has to be understood before it is changed, dropped, or moved. A custom object needs a report type before anyone can report on it.
- Negative: Do not run a report or tune a built one visually. The user runs it in Vault and does visual tweaks in the UI. Do not execute any change. Hand off to
mdl. Do not answer who ran which report or read report records. Hand off toquery. Do not handle who can see a report. That is Admin UI sharing rules. Do not set up scheduled or flash report delivery.
Success criteria
Section link for Success criteria- The skill must answer from the pulled
definition.xml,layout.xml, and.mdlfiles and quote the paths. When there is no workspace, it hands the pull toconfig. - An explanation of a report must name its report type and that type's primary object, and must cover what it selects, how it filters, how it groups and sorts, and any joins on the report type.
- A dependency trace must follow the
report_typeattribute from report to report type,primary_objectfrom report type to object, andreport="Report.<name>"from dashboard to report. Must say it is only as current as the pull. - A clone must be presented as a drafted RECREATE under a new name, started from the existing component's own files, with a checklist of what to change (name, label, report type, property paths, filters, columns, owners, viewers, editors). Execution must be handed to
mdl. The skill must not write to a Vault. - The skill must not offer ALTER on a Report or offer to inactivate one. Must check for dashboards and report types that reference a report before offering a drop.
- A report type for a custom object must be drafted as MDL with
primary_objectand, for related objects, anupRelationshipordownRelationshipentry, started from a report type template or an existing Standard type. The skill must say that Veeva's docs recommend the Admin UI for the XML and hand execution tomdl. - The skill must say plainly that running a report and visual tweaks are Vault UI work. Must not claim an endpoint or CLI command that runs a report.
- A new report type, report, or dashboard must be drafted as RECREATE from the skill's templates. The skill must not draft CREATE or ALTER for a report, or CREATE for a dashboard. Must stop for the user's go before anything is pushed.
- A built report is
class('Standard')and appears under Reports. The skill does not create report views. - Before drafting a report on a custom object, the skill must check the workspace for a report type with the needed primary object and relationships. When none exists, must say so and draft the report type first through
mdl, before any report. - A report definition must carry select, where, group, and order sections even when a section is empty. A tabular report must not add a bare count aggregate. A matrix report must have at least two groupings.
- Every chart must name a report that is in the workspace or drafted in the same build, and group by one of that report's groupings.
- After execution, the skill must read every component back. Must say plainly that a successful MDL response does not prove the report runs.
- When a push comes back with the generic unknown-error response, the skill must explain it as a bad enum value, a missing report section, a missing chart attribute, or a chart count that does not fit the layout, and check them in that order.
Out of scope
Section link for Out of scope| Topic | Owned by |
|---|---|
| Executing a drafted change | mdl |
| Pulling or refreshing the workspace | config |
| Report records and who ran what | query |
| Who can see or edit a report | Vault Admin UI sharing rules |
| Running a report, visual tweaks, scheduled and flash report delivery | Vault Admin UI |
| Report types with more than one primary object | Vault Admin UI |
Report views (class('View')) | Not covered |
| Process Views and Process Monitor cycle time between lifecycle states | process-monitor |
vpk Skill
Section link for vpk SkillBuild and deploy VPK packages to move configuration and code between Vaults.
For Vault administrators and developers who need to move configuration and code between Vaults as a package. Use this skill when a feature has to move sandbox to sandbox or sandbox to production with its dependencies tracked, and whenever Vault Java SDK code or a Custom Page bundle has to reach a Vault other than the one a workspace was pulled from.
Triggers
Section link for Triggers- Explicit: "Build a VPK", "Package this for deployment", "Deploy this package", "Import this VPK", "Move this feature to the other Vault".
- Implicit: A java-sdk or custom-pages skill has produced code that now has to reach a Vault. An admin has a
.vpkfile and a target Vault. A set of components fromconfighas to land on another Vault with its dependencies. - Negative: Do not author MDL. Hand off to
mdl. Do not write Java or Custom Page code. Hand off tojava-sdkandcustom-pages. Do not scope which components a feature needs. Hand off toconfig. Do not create or refresh sandboxes.
Success criteria
Section link for Success criteria- The shared Vault CLI rules apply. With the CLI installed the run steps are
vault config package createandvault config package deploy <vpk>. Without it, the package import and deploy endpoints are used, with request shapes from the Vault Documentation MCP. - A deploy is a write. The production check owned by
vault'sloginskill must run first, and againstPRODUCTIONorUNKNOWNthe skill must not deploy. It hands over the package and the exact command. - The skill must state what the package contains (component types with counts, and code files listed separately) before it is deployed, taken from the package itself and not from what the user asked for.
- Java source and Custom Page distributions deploy to a workspace's own Vault through
vault config push. Moving them to another Vault is a package. The skill must confirm from the package itself that it carries the code before handing it over, and must not claim thatvault config package createcarriesjavasdk/until the package shows it. vault config package deploydoes not return the result. The skill must read the deployment outcome from the Vault (job status or the import record) before calling it done.- A package that reports zero components must not be handed over or deployed.
createpackages the workspace's differences from the CLI's current Vault, and the skill says which Vault it built against when the count is zero. --dry-runon the deploy must be described as a local file check. Validation against the target is the inbound validate call or the validation log.- Job-status polls after an import or a deploy must be spaced out. Vault answers a quick second poll with
API_LIMIT_EXCEEDED, and the skill never loops on it. - The skill must say that package records stay on the Vault as history and are not deleted through the API by an ordinary admin.
- When a deploy fails partway the skill must report which components landed, and never re-run the deploy blindly. The CLI's own error line is quoted as the report, and the skill does not offer causes outside the CLI and Vault.
Out of scope
Section link for Out of scope| Topic | Owned by |
|---|---|
| Authoring the MDL inside the package | mdl |
| Vault Java SDK source and Custom Page code | java-sdk, custom-pages |
| Which components a feature needs | config |
| Sandbox creation and refresh | Vault Admin UI |