PromptVault Docs
Integrations

GitHub

Mirror PromptVault prompt sources as Markdown files in a GitHub repository for audit, recovery, and review.

Mirror prompt sources as Markdown files in a GitHub repository. Every non-draft save commits an updated file; every delete commits a removal. This is useful for audit, recovery, and code review of prompt changes.

What It Does

PromptVault writes one Markdown file per prompt under the configured path. The file includes the slug, version metadata, and prompt source.

Configuration

FieldRequiredDefault
Owneryes-
Repoyes-
Branchyesmain
Path prefixyesprompts
Personal access tokenyes-

The token must have write access to repository contents. Fine-grained tokens scoped to a single repository are recommended.

Test

Use Test after connecting to confirm the repository is accessible.

Event Handling

EventBehavior
prompt.createdCommits the initial prompt file.
prompt.published to liveCreates or updates the prompt file.
prompt.published to stagingCreates or updates the prompt file.
prompt.rolled_backUpdates the prompt file to the rolled-back source.
prompt.deletedRemoves the prompt file when present.

Draft-only saves are skipped.

File Format

Mirrored files are Markdown documents with the prompt slug as the heading, version metadata near the top, and the prompt source in a fenced code block.

Common Failures

CauseFix
Token missing accessReconnect with a token that can write repository contents.
Repository or branch not foundRecheck owner, repository, and branch spelling.
Branch protectionUse a writable branch or adjust branch protection.

On this page