Skip to main content

stario-create

The project tool and agent guidance for building apps with Stario. This repo tracks Stario 5. The framework itself lives at stariodev/stario.

Two things ship from here:

  • The stario-create CLI (uvx stario-create, or uv tool install stario-create). It scaffolds apps and keeps their guide and skills in sync.
  • The files it installs: AGENTS.md (the always-on guide an app keeps at its root) and skills/<name>/SKILL.md (on-demand procedures an agent loads when the task matches).

New app

uvx stario-create new my-app
cd my-app
just dev     # http://127.0.0.1:8000, reloads on change
just check   # lint, format, types, tests — run before done

new gives you a tested, runnable app:

  • A uv project on Python 3.14 with stario>=5.1,<6 and the dev tools.
  • The feature-folder layout with one static home page.
  • static/js/datastar.js vendored.
  • AGENTS.md at the app root (Claude Code reads it directly).
  • The skills installed into .agents/skills/ and linked from .claude/skills/.
  • A justfile (dev, serve, check, fix, test, sync). Without just, the recipes are plain commands — run them directly.
  • tests/test_pages.py: the page check that replaces a browser for HTML.
  • The app's own tests, run once so the scaffold starts green (--no-verify skips that).

new also writes a .dockerignore. It writes no Dockerfile: Yard detects a Stario app and writes the Containerfile itself (stario.dev/yard/what-runs). new takes --dir to pick the parent directory, --force to write into a non-empty one, and --orjson to add orjson and set it as the stario.json codec.

Adding a kit

A kit is a set of tested files. Run it at the app root:

stario-create add            # list the kits
stario-create add auth       # session cookie, login, sign-up, logout, tests; adds litewriter
stario-create add tailwind   # Tailwind v4 and DaisyUI recipes, input.css, shell, theme switch
stario-create add browser    # scripts/browser.py, the rare Playwright check
stario-create add pages      # tests/test_pages.py, for an app from before 5.7

add writes each missing file. It replaces a file that still equals the scaffold version. It keeps a file that you changed and prints merge by hand: <file> with the path of the kit version. It appends the Tailwind recipes to the justfile once. --no-deps skips uv add.

Syncing an app

In an app, just sync runs uvx stario-create@latest sync. Run this at the app root:

stario-create sync           # refresh AGENTS.md, skills, and missing Cloud Agent files
stario-create sync --check   # exit 1 when the guide, a skill, or a Cloud Agent file is stale

sync rewrites AGENTS.md to the bundled guide and keeps your ## This app notes at the end. It overwrites each .agents/skills/<name>/SKILL.md and relinks .claude/skills/<name>. It writes .cursor/environment.json only when it is missing — a saved snapshot id survives — and always refreshes the tool-owned .cursor/cloud-install.sh. With [tool.stario-create] profile = "api" in the app's pyproject.toml it installs the short JSON API guide and removes the bundled skills. It prints one line per file changed, or "up to date".

Without the CLI

To build an app by hand, the pyproject.toml needs these blocks:

[tool.ruff]
target-version = "py314"
line-length = 100
src = ["app", "tests"]
extend-exclude = [".agents", ".claude", ".cursor"]

[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B"]

[tool.ruff.lint.isort]
known-first-party = ["app"]

[tool.pyrefly]
python-version = "3.14"
project-includes = ["app", "tests"]

[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["."]
asyncio_mode = "auto"

Stario does not read .env. Configure with environment variables; serve reads STARIO_* through ServerConfig.from_env(). STARIO_PORT changes the port.

The guide and the skills are also at https://stario.dev/AGENTS.md and via npx skills add stariodev/stario-create.

Skills

Skill Use it when
stario-feature You add a live page in SQLite that every tab sees change, remove a page, or split a folder that grew.
stario-view A page has a sort, a filter, paging, or a search as you type.
stario-relay A live page keeps its state in memory, a command tells only its own tab something, or a page has an edit dialog.
stario-jobs A command starts slow work: a job with queued, running, and done.
stario-browser-check Before a browser: the test that answers each question about a page, and the two cases where a browser is right.
stario-auth The app needs accounts: stario-create add auth, protected pages, rows that belong to one user.
stario-api Any handler, view, or test code: every signature of c, w, h.*, Relay, Span, TestClient, data.*, at.*, SSE, and how a morph treats the page.
stario-litewriter The app stores data in SQLite through litewriter: one writer thread, JSON tables with virtual columns, watch repaints a live page after a commit.
stario-tailwind-daisyui The app is styled with Tailwind v4 and DaisyUI through the standalone binary. No Node.
stario-client The page needs JavaScript: where it goes and how Python calls it.

npx skills add stariodev/stario-create also works — it reads the skills/ tree at this repo root.

Served copies

stario.dev serves these files: /AGENTS.md, /llms.txt, /llms-full.txt (the guide and the skills in one file), /skills/, and /skills/<name>/SKILL.md.

Repo layout

AGENTS.md, llms.txt, and skills/ sit at the root. npx skills, stario.dev, and repo browsing all read them there. The wheel embeds copies under stario_create/_data/ (hatchling force-include), so uvx works without a checkout. In a checkout the CLI reads the root files directly, so each file has one canonical copy.

Changing the guide

The guide is checked against real code: examples/chat-room in the stario repo follows it. When a rule changes here, change the example there and run its tests. A snippet in AGENTS.md or a skill must run as written — the package tests parse every Python block, scaffold a project, and compile every generated file, and stario-create new runs the new app's tests. Before you change a pattern, build it in a scaffolded app and run just check there; then copy the passing code into the skill. Run the evals in evals/ before and after a change to the guide.

Metadata

Release files for stario-create 5.9.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stario-create 5.9.3
File Size Uploaded Provenance Actions
stario_create-5.9.3.tar.gz 92.5 kB With provenance Details for stario_create-5.9.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for stario-create 5.9.3
File Interpreter ABI Platform Actions
stario_create-5.9.3-py3-none-any.whl Python 3 none any Details for stario_create-5.9.3-py3-none-any.whl

Total release size: 185.5 kB

Release files / stario_create-5.9.3.tar.gz

Download URL stario_create-5.9.3.tar.gz
Size 92.5 kB
Tags Source
SHA-256 checksum
How to use checksums
11bd5882e4a54cffe6acaee1fd34138a392c1b29915c7da12eff4d17d9a84365
BLAKE2b-256 checksum
How to use checksums
902cfc16fa4b2f1ef30d15c6283bdd965f646f1b7ccf10d7c2995fed2693c98d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Release files / stario_create-5.9.3-py3-none-any.whl

Download URL stario_create-5.9.3-py3-none-any.whl
Size 93.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6618b225677d92a2fbaa51e07df8e8e0e714fd56f3c246164d358272406eb918
BLAKE2b-256 checksum
How to use checksums
20a4ebd92267e26bc7b6e062a2dc0ec3c20bf665cd8ccd824d69d33df7ff51c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Security for stario-create 5.9.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for stario_create-5.9.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page