/caligrafy-quill:deploy [app-name] [--own-server]from caligrafy-quill
Checks a Caligrafy Quill project for production readiness (Dockerfile, secrets, database scripts, git state) and deploys to Caligrafy Cloud or prepares for Coolify/Docker.
Ships in caligrafy-quill. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Target: $ARGUMENTS (an app name for Caligrafy Cloud; --own-server to prepare the project for Coolify or Docker
instead). Read 20-putting-it-online.md, gotchas G67-G73 in
gotchas.md, and the deploy and cloud rows of the CLI table in
api-reference.md. Needs Caligrafy Quill 2.4.0+ (php caligrafer.php version).
php caligrafer.php version # 2.4.0 or later; older: upgrade first (release notes 2.4.0)
ls Dockerfile Dockerfile.dockerignore composer.lock
git status --short && git log origin/HEAD..HEAD --oneline 2>/dev/null # uncommitted or unpushed work
git remote get-url origin # a GitHub repository
git ls-files | grep -E '(^|/)\.env($|\.)' | grep -v '\.env\.example$' | grep -v '^framework/settings/' # must print nothing (.env.php too, 2.19.0+)
php caligrafer.php doctor --only project
Dockerfile.dockerignore at the root: 2.4.0 projects have them; an upgraded project copies them
from the release (they are not templates).composer.lock committed (G69)..env (or .env.production...) tracked, no keys in code or in public/. If one is tracked,
stop: it must be removed from git and rotated (new APP_KEY/API_KEY, new service keys), because it stays in the
history. Never print a secret's value; name the file and the key only.application/models/*/create_db.sql is safe to run again (G68): CREATE TABLE IF NOT EXISTS, no DROP
or DELETE, columns added with ALTER TABLE ... ADD COLUMN. Report the scripts that are not. Changes to tables
that already have data belong in migrations (2.18.0+, application/migrations, run once by the deploy step): a
migration edited after it ran never runs again (G120), so php caligrafer.php migrate status must show no changed.Queue::push, 2.18.0+): application/config/schedule.php has a job on
queue_work, or the own server runs php caligrafer.php queue work in a container of its own; never both.php caligrafer.php test (2.18.0+).PHP_PROCESSES: 2 per CPU, at least 4, or 6 per CPU, at least 16, when an AI key is set; doctor says which applies and warns when an AI app sets fewer than 16), keeps database connections (DB_PERSISTENT; MySQL's max_connections above the processes), preloads and compiles at start (PRELOAD, optimize), and keeps public answers in memory (CACHE). ASYNC=on (experimental, after add async) answers the capabilities channel from the async server. Every optional SDK the app uses must be in composer.lock (php caligrafer.php add <feature>, G166).APP_ENV=production) it uses the PAY_*_PRODUCTION live keys. A Stripe
webhook needs its live-mode endpoint and live secret, and its test-mode endpoint disabled or pointed elsewhere (G115);
a Route::webhook(..., ['verify' => 'stripe']) reads that secret from STRIPE_WEBHOOK_SECRET (G132).=csrf() (G130); Book::find() on models that
declare their own find() fails (G122). APP_DEBUG=false online (Phug's debug mode makes pages ~3x slower).
.env.php needs nothing: the deploy step compiles .env at every start (env cache), and .gitignore lists it.To ship without hand-offs (the repository, the sign-in, the deploy key, the deploy, all done for the user), follow the ship skill. The steps below are the same commands, one by one.
The user needs an account at https://deploy.caligrafy.com (sign-up and the confirmation email are theirs: never create an account or type a password).
test -f .caligrafy/cloud.json && php caligrafer.php cloud account. If not signed in, run in the
background (2.7.0+, G88):
php caligrafer.php cloud login
It prints a code and opens https://deploy.caligrafy.com/cli?code=... (from the Docker server, open that URL for
the user): they sign in and approve the same code; the command collects the token. Before 2.7.0 it reads a token
pasted from the dashboard (G72). Never ask for the token in chat, never read .caligrafy/cloud.json.php caligrafer.php cloud apps. If the name is new:
php caligrafer.php cloud create <name> # repo from git origin, branch main (--repo, --branch)
Names: 3 to 30 lowercase letters, digits and hyphens, starting with a letter; some are reserved (www, admin, api, deploy...); a taken name
answers a conflict: propose another. For a private repository the answer contains a read-only deploy key, saved
in .caligrafy/<name>-deploy-key.pub (2.7.0+, cloud key <name>): add it with
bash claude-plugin/skills/ship/scripts/github.sh deploy-key <owner>/<repo> .caligrafy/<name>-deploy-key.pub
(the GitHub CLI, signed in by a browser approval when needed), or on GitHub (Settings, Deploy keys, Allow write
access off).OPEN_AI_KEY,
PAY_*...), the user sets it; it is applied at the next deploy (email works without MAIL_*: Cloud sends from
<name>[email protected], unless the user sets their own MAIL_HOST):
php caligrafer.php cloud secret set <name> KEY=value # the user runs it with their value; you never type a real secret
php caligrafer.php cloud secret list <name> # names only
php caligrafer.php cloud deploy <name>
Run it whole, never through | tail (G89): it exits 1 on a refusal. The first deploy of every new app starts its own
free 30 minutes (G90). Then check it: curl -s -o /dev/null -w '%{http_code}' https://<name>.caligrafy.com/. A 302
to deploy.caligrafy.com/unlock/<name> means the owner locked it with a password ([password protected] in
cloud status): it is online (G114).cloud status <name>. Credits: cloud credits 5|10|25|50 prints a Stripe page for the
user to pay (never pay for them); cloud extend <name> week|month|year spends 2, 5 or 50 credits, and a paused app
starts again. Spending credits and deleting (cloud delete <name> --yes, permanent) need the user's explicit OK.--own-server)Prepare, do not deploy: the user's server, account and keys are theirs.
.env.production from .env only with the user's OK, never committed (it is ignored by Dockerfile.dockerignore;
check .gitignore covers it): APP_ROOT= empty, APP_ENV=production, APP_DEBUG=false, new keys
(php caligrafer.php generatekeys), DB_ACTIVATE=true and the production DB_*..env as a file storage at /var/www/html/.env, volumes at
/var/www/html/public/uploads and /var/lib/php/sessions (G70). A MySQL with a small memory limit needs the
configuration of G71.docker run of 20-putting-it-online.md (#ownserver), behind HTTPS. The image's deploy step compiles
.env to .env.php at every start (2.19.0+). A server without the image runs php caligrafer.php env cache after
each change to .env (until then pages parse .env, slower but correct) and never commits .env.php.php caligrafer.php schedule list lists some): a second container from the same image, with the same
.env, running php caligrafer.php schedule work (on Coolify, a second application with that start command), or
php caligrafer.php schedule due from the server's cron every minute. Only one of them, never both.Caligrafy\Notify): the web push keys made once with php caligrafer.php notify keys --subject https://<the address> and kept across deploys (new keys cut off every subscribed browser), APP_URL=https://<the address> for the links of emails sent by jobs (G110), MAIL_* and MAIL_FROM for email, and HTTPS (push needs it).| Symptom | Look at | Usual fix |
|---|---|---|
| Build fails | php caligrafer.php cloud logs <name> | commit composer.lock; a PHP extension the image lacks |
caligrafer deploy: the database is not prepared | the line above it in the logs | a SQL error in a create_db.sql; on an own server DB_* or --wait |
Host ... is not allowed to connect | own server only | G71: recreate the empty database volume |
create or deploy refuses the repository | the message | private repository without the deploy key; no Dockerfile on that branch |
| Paused page at the address | cloud status <name> | time ended: cloud extend; or still deploying; or a wrong name |
| Signed out after every deploy, uploads gone | own server | G70 volumes |
Report what you checked, what you changed (with the user's OK), the URL, and the time left.
What SKILL.md sets; muted values are Claude Code's defaults
The user asks to deploy, publish, host, ship or put online a Caligrafy Quill project, to use Caligrafy Cloud or deploy.caligrafy.com, to run php caligrafer.php cloud or deploy, or a production build, start or database fails ("caligrafer deploy: the database is not prepared", a paused page, a private repository Caligrafy Cloud cannot read).
Three short reads, in order
caligrafy, quill, production-readiness, cloud-deployment, coolify
npx claudepluginhub caligrafy/caligrafy-quill --plugin caligrafy-quill14 skills in this plugin
/assistantGive a Caligrafy Quill project Snap Cards and the assistant (2.23.0, Route::snap()) end to end - every capability becomes a card a person can use (an Ask card: Form, Choice or Confirm; a Show card: Answer or List; a Go card: Shortcut; a Track card: Task; an Offer card: Suggestion or Routine), and /assistant gives each signed-in person a Home that shows what needs them and a conversation that answers with those cards. Adds Route::snap(); to web.php, runs php caligrafer.php snap install, writes application/config/snap.php hints from the app's own capabilities, writes a card view (application/views/snap/<capability>.pug, 2.25.0) for each main list and record from the app's own pages and look, adds the queue and routines jobs, marks slow capabilities async, asks for an Anthropic API key, and checks /assistant and /snap./caligrafyExpert knowledge of the Caligrafy Quill PHP MVC framework (Caligrafy\Controller, Caligrafy\Model, Route, Request, Auth, Pug/Phug views, GUMP validation, caligrafer CLI, Docker dev server, Vue client apps, Stripe/Coinbase payments, OpenAI/Groq/Watson AI, open models (Llama) through Together, Fireworks, OpenRouter or Ollama, FaceDetect, ML, and the build-once layer: services and capabilities served to web pages, REST, the JS client and AI agents over MCP, with personal access tokens and an audit log, the query builder (Database::table, Book::where), the declarative routes (Route::form, Route::auth, Route::webhook, Route::download, Route::action with web-only capabilities and Caligrafy\Web), Snap Cards and the assistant (Route::snap(): every capability as a card, an assistant that answers with them), and the page components every new UI is built with). Use whenever code touches a Caligrafy Quill project - application/config/routing/web.php, application/controllers, application/models, application/views/*.pug, public/<app>/, .env, caligrafer.php or .bin/caligrafer./dbRun Caligrafy Quill SQL scripts (application/models/**/create_db.sql or any .sql file) and migrations (application/migrations, php caligrafer.php migrate) against the project's MySQL - inside the docker-compose mysql container, or a local MySQL using the .env DB_* settings - and inspect tables./designRestyle every page of a Caligrafy Quill project to match a design style - a DESIGN.md of framework/design (84 vendored styles from VoltAgent/awesome-design-md, MIT, and local ones such as interstellar) or the project's own application/design/<name>/DESIGN.md - by writing ONE override stylesheet, public/css/designs/<name>.css, that the layout loads after the Caligrafy stylesheets when DESIGN_STYLE=<name> in .env. Caligrafy's own look stays the default and comes back when DESIGN_STYLE is emptied./ideaDescribe it. Approve it. Ship it. - the user's idea turned into a complete app online, in one conversation and one confirmation - turn the user's idea into a plan, set up a Caligrafy Quill project, write the tables and capabilities once, serve them to a web page, a REST API, the JS client and AI agents (MCP), check every experience, then ship it to GitHub and https://<name>.caligrafy.com by itself (the ship skill). The user only approves in the browser. The Quickstart with Claude./marketplacePackage a Caligrafy app hosted on Caligrafy Cloud for the marketplace of caligrafy.com - read the whole code, run the app and walk the whole experience end to end to screenshot its key features (5 at most, all different), and write, in one private file (.caligrafy/marketplace.json, never in git), its title, its description for buyers, those screenshots, the prompt that recreates the whole app with Caligrafy and an estimated price window from a short market study; then send it to Caligrafy (php caligrafer.php cloud submit) and redeploy the app. Caligrafy reviews it, sets the final price and publishes it; the maker earns 25% of every sale.Other plugins' skills for the same job