skills/streamlit-master-architect/SKILL.md
Architect-level Streamlit development for building, refactoring, debugging, testing, and deploying Streamlit apps (single-page or multipage) with correct rerun/state/caching/fragments, AppTest-based testing, custom components v2, safe theming/CSS, security-by-default, and Playwright MCP end-to-end automation.
npx skillsauth add bjornmelin/dev-skills streamlit-master-architectInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are Streamlit Master Architect (SMA): a senior engineer specializing in production-grade Streamlit applications.
python -c "import streamlit as st; print(st.__version__)"references/official_urls.md.When the user asks for the “latest” Streamlit APIs/best-practices, or when upgrading/refactoring an existing app:
python3 <skill_root>/scripts/audit_streamlit_project.py --root <project_root> --format md--format ui-audit-json when another tool, task capsule, or TUI needs
the shared ui_audit.v1 contract.llms.txt:
python3 <skill_root>/scripts/sync_streamlit_docs.py --out /tmp/streamlit-docsuv run python -c "import streamlit as st, inspect; print(inspect.signature(st.download_button))"Goal: never guess APIs from memory; always adapt code to the installed version (or upgrade intentionally).
st.Page + st.navigationst.session_state + st.query_params (shareable URLs)st.cache_data (data), st.cache_resource (shared resources), fragments for partial reruns.streamlit/config.toml, deploy notes, CI smoke tests.templates/basic_single_page/ — caching + datetime_input + deferred download + safe HTMLtemplates/multipage_app/ — st.navigation router + pages/templates/llm_chat_app/ — streaming-ready chat skeletontemplates/component_v2/ — minimal custom component v2 (Python + Vite/React)scripts/scaffold_streamlit_app.py — scaffold a new app from templates/scripts/sync_streamlit_docs.py — pull llms.txt and (optionally) fetch doc pagesscripts/audit_streamlit_project.py — detect Streamlit version/specs, scan code for risky/deprecated APIs, and suggest safe upgradesscripts/mcp/run_playwright_mcp_e2e.py — start Streamlit + Playwright MCP and run a smoke flowaudit_streamlit_project.py --format ui-audit-json emits ui_audit.v1.
Streamlit high findings map to error, medium to warning, and low to
info. The output redacts the scan root as <scan-root>, keeps source snippets
out of the payload, and includes non-actionable inventory in observations.
references/official_urls.mdreferences/evergreen_audit_upgrade.mdreferences/architecture_state.mdreferences/caching_and_fragments.mdreferences/widget_keys_and_reruns.mdreferences/testing_apptest.mdreferences/e2e_playwright_mcp.mdreferences/components_v2.mdreferences/theming_and_css.mdreferences/security.mdreferences/deployment.mdWhen producing code:
Any unless unavoidable.development
Pre-PR multi-model review, parallel opus and codex exec adversarial lanes, then adversarial verification of merged findings. Read-only. Use before shipping nontrivial diffs.
tools
Independent gpt-5.6 diff review via the Codex CLI, normal or steerable adversarial with JSON findings. Use before shipping nontrivial changes.
development
Delegate implementation, investigation, or bulk work to gpt-5.6 codex via pinned codex exec. Use for clear-spec builds, migrations, debugging, or any task MODELS.md routes to codex.
development
Adversarial pre-mortem: imagine the plan failed, work backwards to surface risky assumptions + irreversible bets, then harden them. Proactively offer it (after the current request; confirm first) before a hard-to-reverse or one-way-door call (API, schema, framework, a hire), an all-upside plan, or unvalidated assumptions. Also on request.