/caligrafy-quill:ship [app-name] [--public]from caligrafy-quill
Commits, creates a GitHub repository, pushes code, signs into Caligrafy Cloud, creates an app, adds deploy key, deploys, and verifies the project is live at <name>.caligrafy.com.
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.
Read when SKILL.md points to them; scripts run unread.
Target: $ARGUMENTS (the app name, which is also the GitHub repository name and https://<name>.caligrafy.com; the
project folder's name when empty; --public for a public repository, private by default).
Do everything yourself. The user is never asked to run a command, copy a key or a token, or come back and say "done". What only they can do happens in their browser, opened for them: approving GitHub's code, approving Caligrafy Cloud's code, signing up and confirming their email the first time, paying for credits. Tell them in one line what the page will ask, open it, and keep going as soon as it is approved (the commands wait for it themselves). The one question you ask is before spending credits.
Never ask for, print or write a password, token or key, and never read .caligrafy/cloud.json. Never pipe a command
whose result matters through tail or head: the pipe hides its exit code (G89); run it whole, in the background when
it is long, and read its output file.
Two places run commands:
bash claude-plugin/skills/ship/scripts/github.sh ... (the plugin in the project; for a plugin installed from the
marketplace, the scripts/github.sh next to this file)php caligrafer.php ... when PHP 8.3+ is on this computer (php -v), otherwise in the
Docker server: docker compose exec -T dev-box php caligrafer.php .... Below, caligrafer means whichever works.caligrafer version # 2.7.0+ for the browser sign-in (older: upgrade, or the deploy skill)
ls Dockerfile Dockerfile.dockerignore composer.lock # 2.4.0 projects have them
git ls-files | grep -E '(^|/)\.env($|\.)' | grep -v '\.env\.example$' | grep -v '^framework/settings/' # must print nothing (.env.php included, 2.19.0+)
caligrafer doctor --only project # a WARN "Pages and the API key" must be fixed first (G87)
application/models/*/create_db.sql runs again online: CREATE TABLE IF NOT EXISTS, no DROP/DELETE (G68).caligrafer migrate status shows no changed migration (G120); caligrafer test passes when tests/ has
tests; an app that calls Queue::push has a queue_work job in application/config/schedule.php (G121).curl with no cookie, or a private window): the page carries =csrf() and the post is not refused with
3000 (sessions now start only when used). Route::form pages show errors()/old() after a refused post.
Book::find() works on models that do not declare their own find() (G122). Nothing to do for .env.php: the
deploy step compiles .env at every start (its log line OK Settings); .gitignore lists .env.php.Route::webhook with 'verify' => 'stripe' needs STRIPE_WEBHOOK_SECRET set online with cloud secret set (the
live endpoint's whsec_..., G132): ask the user for it, never invent one..env stops everything: say which file, never its values; it must leave git and its keys be replaced.git init -b main when there is no repository; then commit the work (git add -A, a clear message).bash claude-plugin/skills/ship/scripts/github.sh publish <name> [--public]
Run it in the background and read its output. It tries, in order, and never stops to ask:
ssh -T [email protected] says who). Pushing needs nothing more.gh auth status), for this push only (no change to git's settings).gh auth login --web, opens
https://github.com/login/device and prints APPROVE https://github.com/login/device CODE XXXX-XXXX. Tell the user:
"GitHub opened in your browser: enter the code XXXX-XXXX and approve." The script goes on by itself once approved.The last line is REPO https://github.com/<owner>/<name> PROTOCOL ssh|https CREATED private|public|existing BRANCH <b>.
FAIL ... exists with other history (exit 3): the name is someone else's project of the user's: take <name>-app (or
ask for a name) and run it again. Any other FAIL: say what it says and what you will try.
test -f .caligrafy/cloud.json && caligrafer cloud account
Signed in when it prints the email and credits. Otherwise, in the background:
caligrafer cloud login
It prints a code and https://deploy.caligrafy.com/cli?code=XXXX-XXXX, then waits up to 10 minutes. On this computer
it opens the page itself; from the Docker server it cannot, so open it for the user (open <url> on macOS,
xdg-open <url> on Linux). Tell them: "Caligrafy Cloud opened in your browser: sign in with your email (or create an
account the first time), check that it shows the code XXXX-XXXX, and approve." The command saves the token and prints
Signed in as .... Denied or expired: start it again once, then say what happened.
Caligrafy accounts (the same for caligrafy.com and Caligrafy Cloud) sign in with their email, once it is confirmed:
caligrafer cloud apps # is <name> already one of the user's apps?
caligrafer cloud create <name> --repo https://github.com/<owner>/<name> --branch <b>
<name>-<owner> or ask once for another..caligrafy/<name>-deploy-key.pub (cloud key <name>
prints it again). Add it yourself; it is what lets Caligrafy Cloud read the code, and nothing else:
bash claude-plugin/skills/ship/scripts/github.sh deploy-key <owner>/<name> .caligrafy/<name>-deploy-key.pub
It signs the GitHub CLI in first if needed (the same browser approval as step 2). KEY added or KEY present.OPEN_AI_KEY, PAY_*...): name them to the user; they set each one with
caligrafer cloud secret set <name> KEY=value in their terminal (you never type a real secret), or skip that feature.
Email needs nothing: an app without its own MAIL_HOST sends through Caligrafy Cloud's mail from
<name>[email protected], with the app's name as the sender. Only an owner who wants their own domain sets MAIL_*.cloud status <name> shows no time left, or deploy answers has no time left), ask
once: "Keep online for a week (2 credits, you have N)?". On yes: caligrafer cloud extend <name> week. Not
enough credits: caligrafer cloud credits 5 prints a Stripe page; open it for the user and wait until
cloud account shows the credits.Then deploy, in the background (several minutes; it waits and exits 1 on a refusal or a failed build):
caligrafer cloud deploy <name>
A failed build prints the end of its log: fix the cause (G69: composer.lock; a SQL error in a create_db.sql or a migration: FAIL Database: <migration>, statement n),
commit, github.sh push, deploy again.
curl -s -o /dev/null -w '%{http_code}\n' https://<name>.caligrafy.com/
curl -s -H 'Accept: application/json' https://<name>.caligrafy.com/<a JSON route of the app>
An app its owner locked with a password ([password protected] in cloud status, G114) answers the page with a 302
to deploy.caligrafy.com/unlock/<name> and the JSON route with a 401: it is online, report it as such and never ask
for its password.
Online, the legacy API key is off (LEGACY_API_KEY=false): a page that still sends it gets [ERROR 1004] Access Denied: the legacy API key is turned off (G87). Pages call their routes with apiHeaders() (the session and its CSRF token)
or the generated JS client; programs and agents with personal access tokens. Fix, push, deploy again.
Phone apps (2.27.0: a public/<app>/capacitor.config.json and .github/workflows/mobile-<app>.yml): once the
site is online, the store builds call it. When the repository has the store secrets (gh secret list shows
ASC_KEY_P8 for iOS, PLAY_SERVICE_ACCOUNT for Android), ask once "Send to TestFlight and Google
Play?" and on yes run gh workflow run mobile-<app>.yml -f platform=both (or ios / android: only what has its
secrets), then gh run watch in the background, and report the run's link. Without the secrets, say in one line that
/caligrafy-quill:mobile publish sets up the stores with them; never ask for a store secret.
Report, with the real addresses: the site, the repository, the time left (cloud status <name>), and what the user
approved in the browser. After a change later: commit, github.sh push, caligrafer cloud deploy <name>.
When the project has scheduled jobs (php caligrafer.php schedule list lists some), check them once it is online:
caligrafer cloud jobs <name> lists them (an error says why they do not run), cloud jobs <name> run <job> then
cloud jobs <name> history <job> must show ok (running means the run is still going: look again in a minute; a
skipped beside it means the same job was already running when that one started, which is normal for a long job).
With background jobs, the queue job (on queue_work) must show ok in cloud jobs <name> history queue.
What SKILL.md sets; muted values are Claude Code's defaults
The last step of /caligrafy-quill:idea, or the user asks to ship, publish, push and deploy, put the project online, "create the repo and deploy it", or to redeploy after a change. For a readiness check only, or the user's own server (Coolify, Docker), use the deploy skill.
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.Other plugins' skills for the same job