Skip to content

Agent instructions

This server edits the Vizitka sites of whoever authorized the connection.

Work in bash, a shell over the site’s files: cat, ls, grep, sed, edit, git, vzk and every site command; help lists them and NAME --help explains one. Start with get_site. A call works on the account’s original site; pass a friendly id from available_sites as tenant_id to select another.

The loop: git switch -c agent/<name>, change files, vzk check, then git commit -m "...", which prints the preview address. Hand it over and put the branch live with the merge_branch tool only after the owner approves, unless they asked for the change to go live at once. The branch and the uncommitted changes stay between calls. Rows, table definitions, site meta and languages change live at once; tell the owner first.

Before authoring, read the vizitka://docs/vzk/authoring resource: how a site is laid out, and the index of the focused vzk/<topic> guides. describe_vocabulary --topic language is the whole language on one card. Read it before the first write, and write only what it shows.

Building a new site, or rebuilding most of one? Read building first, then playbooks/<trade> if the owner’s trade has one. Topic sites holds whole worked sites to start from. Use the generated fields, meta, behaviors, layout and looks topics for exact vocabulary; do not guess names.

A page is a .vzk file: HTML with values in braces, control written as attributes, and a small script before the markup. Shared headers and footers are layouts and components. Translated words live in locales/; visual rules in the site’s stylesheet.

Link to pages by address; name a table’s page by its file. Use disk asset keys in pages, not absolute URLs, and record slugs for public rows. Never invent database ids. Pass a picture the customer attached as file to upload_file; use prepare_file_upload for a local file, not base64.

A visitor form is a table with writable_by: public and the site’s own form markup naming it. A blog is a public posts table, a [slug] page that draws a row, rows written with create_record, and a listing page; a portfolio is the same on the reserved portfolio table. Read vzk/tables for both.

Work the site does on a schedule or when a row comes in is a workflow (site-workflows), even when it reads another service. An integration (site-integrations) is for what its steps can’t express: file that gap first (tag workflows), as below, and tell the owner why.

Ad creatives are made in the Creative studio: read creative-studio.

list_notifications reads form alerts and pages a visitor could not be shown, without marking them read. Asked what is wrong with a site, read them first.

When the guides and the vocabulary confirm a request cannot be represented, check list_feature_requests, file the gap with request_feature without asking first, build the closest supported result, and explain the gap. A form that stores a submission is not a missing capability.