Pack structure
Valdr pack source is just files: YAML manifests, workflow definitions, Markdown capabilities, Markdown prompts, and optional platform-specific outputs. The structure matters because Valdr tooling can discover, validate, package, and import the pack without hand-registering every entity.
Source directory
Keep the unpacked source directory somewhere you can edit and version it. Nikol’s authoring guidance uses these default search locations:
~/.valdr/valdr-packs/<pack-name>for a source library on your machine./.valdr/valdr-packs/<pack-name>for repo-local packs that should travel with the current codebase
Nikol defaults to checking those locations when helping you find, validate, and generate packs, so putting source packs there avoids extra path wrangling.
Valdr does not automatically import these directories. Pass the source path to the CLI, generate an archive, and import that archive into the intended local workspace. Sharing the source or archive with another person does not share your workspace state.
Manifest
Every pack has a pack.yaml manifest at the root:
schemaVersion: 1.0
pack: my-team
name: My Team Pack
version: 0.1.0
description: Team-specific agents and capabilities
includes:
- path: agents
description: Team agents and role-specific capabilities
- path: shared
description: Shared prompts and reusable capability fragmentsThe manifest describes the pack and tells tooling which directories to scan. You do not enumerate every agent, prompt, capability, or workflow in pack.yaml; discovery happens from the included directories.
What gets discovered
| Layer | Format | Discovery |
|---|---|---|
| Pack manifest | pack.yaml | Root of each pack |
| Agent definitions | .agent.yaml | Inside included directories |
| Capabilities | Annotated Markdown | <!--<capability>--> tags |
| Prompts | Annotated Markdown | <!--<prompt>--> tags |
| Workflow definitions | .workflow.yaml or .workflow.yml | Inside included directories |
| Automation definitions | .automation.yaml or .automation.yml | Inside included directories; declare a trigger and workflow or user-tool action |
| User tool manifests | .tool.yaml, .tool.yml, or .tool.json | Inside included directories; each lists its retained implementation files |
This is what makes packs self-describing. The archive can be inspected before import, and Valdr can build a preflight plan without guessing what the pack contains.
Source, archive, import
Pack source is the editable truth. The generated archive is the distribution artifact. The UI import is the workspace update.
source directory
-> validate
-> generate .valdr-pack.tar.gz
-> import through Settings > Packs
-> review preflight
-> commit changesValidation checks the source directory structure, manifests, workflow contracts, and references before you generate the archive. Generation produces the .valdr-pack.tar.gz bundle that the UI imports.
Validate and generate
Use the Valdr CLI to validate the source directory and build the archive:
valdr validate-pack "$HOME/.valdr/valdr-packs/my-team"
valdr generate-valdr-pack "$HOME/.valdr/valdr-packs/my-team" \
--output "$PWD/dist/packages/my-team.valdr-pack.tar.gz"For repo-local packs, use the workspace path instead:
valdr validate-pack "$PWD/.valdr/valdr-packs/my-team"
valdr generate-valdr-pack "$PWD/.valdr/valdr-packs/my-team" \
--output "$PWD/dist/packages/my-team.valdr-pack.tar.gz"Import preflight
Packs are imported through Settings > Packs in the Valdr UI.
The preflight plan shows every entity in the pack with its status:
- Create - New entity that does not exist yet
- Overwrite - Existing entity that will be updated
- Unchanged - Entity already matches, no action needed
- Skip - Conflict resolution chose to skip
The important part is that import is inspectable. You see what will change before the workspace changes.
Executable user tools
A pack can carry user tools: your own programs and CLI adapters, each with a manifest, an explicit file list, an exact revision, and a content hash. Import preview does not run tool code. Importing a tool makes its actions available; a pack that also declares automations enables those rules after import succeeds. Review those triggers before confirming the import.
After import, agents can find and run tool actions through MCP, you can add them to a workflow in the Builder, or an automation can run them on a schedule. These actions run on the machine hosting Valdr, with your host-user permissions.
Older clients reject archives that contain user tools; see user-tools compatibility. Review a tool’s executable, arguments, schemas, files, and requested environment variables before running it. Export carries the tool’s source files and pins, with one revision per tool ID in each archive; runtimes, dependencies, CLI sign-ins, and environment values stay with each host.
See Build User Tools to write your own, or start from the valdr-tools starter pack.
Reusable automations
Include automation YAML to distribute a schedule or task-created trigger with its workflow or user tool. Review the target, fixed inputs, and any machine-specific working directory before import.
New rules are enabled after a successful import. Existing operator pauses are preserved when the pack is updated. Removing a declaration from the pack disables its rule on reimport; it does not cancel work that already started. Manage pauses and inspect activity in Workflows > Automations, and edit the owning pack to change its declarations.
Multi-platform output
Some packs also generate platform-specific files from canonical source:
| Platform | Output format | Directory |
|---|---|---|
| Claude Code | Markdown commands | claude/commands/ |
| Codex CLI | Prompt files | codex/prompts/ |
| Gemini CLI | TOML commands | gemini/commands/ |
| Cursor | Markdown commands | cursor/commands/ |
Those outputs are useful for tool compatibility, but the pack source remains the canonical place to maintain the behavior.
Next steps
Read Agent definitions next to understand how .agent.yaml files connect pack source to runnable agents, or use Authoring workflow when you are ready to build and import a pack.