/caligrafy-quill:db <path/to/script.sql | tables | query "SQL">from caligrafy-quill
Runs Caligrafy Quill SQL scripts and migrations against MySQL (Docker or local). Creates databases, inspects tables, and manages migration files.
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.
Arguments: $ARGUMENTS. Read gotchas.md G3, G10, G11, G13, G120 first.
A table that already has data, or a project that is online (2.18.0+): a change to it (a column, an index, data
to fix) is a migration, not an edit of create_db.sql: php caligrafer.php migrate make <name> writes
application/migrations/<YmdHis>_<name>.sql; put the SQL in it, then php caligrafer.php migrate (in Docker:
docker compose exec dev-box php caligrafer.php migrate) and migrate status (all ran). Another env file: migrate --env .env.testing (2.19.1: --env <file> anywhere, migrate status --env <file> too). Never edit a migration that
ran (it shows changed and never runs again, G120): write a new one. The deploy step runs pending migrations online.
One change per file, or statements safe to run twice. create_db.sql stays for creating the tables of a new database.
Read .env: DB_ACTIVATE, DB_HOST, DB_DATABASE, DB_USERNAME; use DB_PASSWORD only inside commands. If DB_ACTIVATE is not true, the app will not connect (G20 - tell the user). For connection errors, php caligrafer.php doctor --only db reports the exact cause without printing the password.
DB_HOST=mysql or this project's mysql service is running): find it with docker compose ps mysql (or the legacy docker-compose ps mysql). If it is not running, offer /caligrafy-quill:server start. Use
docker compose exec -T mysql mysql -uroot -proot -e "CREATE DATABASE IF NOT EXISTS \`<DB_DATABASE>\` DEFAULT CHARACTER SET utf8mb4;"
docker compose exec -T mysql mysql -uroot -proot <DB_DATABASE> < <script.sql>
(credentials: root/root from docker-compose.yaml unless the user changed them; prefer .env values when they differ.)mysql -h <DB_HOST> -u <DB_USERNAME> -p<DB_PASSWORD> <DB_DATABASE> < <script.sql> (add -P <DB_PORT> when DB_PORT is set: the framework connects on DB_PORT too (Database::dsn(), G3), and with DB_HOST=localhost both PDO and the mysql CLI use the Unix socket and ignore the port, so use 127.0.0.1 to reach a MySQL on another port).DROP TABLE, DROP DATABASE, TRUNCATE or DELETE (for example application/models/Auth/create_db.sql of projects created before the security release drops users, G13), list the tables it would drop, check whether they contain rows (SELECT COUNT(*) FROM <table>), and get explicit confirmation before running it.CREATE DATABASE / USE <db>, that database wins over DB_DATABASE - point this out when they differ.SHOW TABLES; and DESCRIBE <table>; for each created table.tables: list tables with row counts (SELECT table_name, table_rows FROM information_schema.tables WHERE table_schema = '<db>';).query "SQL": run read-only queries freely; ask before any statement that writes.php caligrafer.php migrate status shows it ran, and doctor has no Migrations WARN./caligrafy-quill:new-resource).Database::table('<table>')->where(...)->get() / ->insert([...]) / ->where(...)->update([...]), and
<Model>::query() on the model's table (the class name lower-cased + plural unless protected static $tableName,
G123). Several writes that belong together go in Database::transaction(fn () => ...) (MySQL ends it at any DDL, G128).
A table change itself stays a migration.What SKILL.md sets; muted values are Claude Code's defaults
The user asks to create or update database tables, add or change a column, write or run a migration, run a create_db.sql script, import SQL, check which tables exist, or fix [ERROR 2003] / "table doesn't exist" errors in a Caligrafy Quill project.
Three short reads, in order
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./deployPut a Caligrafy Quill project online - check it is ready for production (Dockerfile, composer.lock, create_db.sql scripts safe to run again, no secrets in git, pushed to GitHub), then deploy it to Caligrafy Cloud (https://<name>.caligrafy.com) with php caligrafer.php cloud, or prepare it for the user's own server (Coolify, Docker)./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