Skip to content
Docs
    Menu

    Use your own AI

    Rules for agents

    The rules an AI agent follows when it changes a Starjay site over MCP.

    These rules are for AI agents connected over MCP, and for people who write instructions for them. Starjay enforces many of them and refuses changes that break them. The Site code reference explains each area in depth.

    Working in turns

    Publishing

    Files you may edit

    To change… Use
    Colors and fonts (brand/tokens.ts, brand/theme.css) modify_tokens
    Page defaults (background, text color, default font) modify_element_defaults
    The brand guide (brand/brand-guide.md) set_brand_guide
    Header, footer, page transitions (site.json) modify_layout
    CMS collections and items modify_collection, modify_items
    Forms (platform/forms/) modify_form
    Images and the image library import_asset, request_asset_upload, modify_asset, assets_apply_alt
    Page SEO (content/seo/) and site SEO seo_set_page, seo_set_defaults
    Redirects redirects_modify
    Page draft / ready / deleted status set_publish_state

    See Project files.

    Components and pages

    Styling

    Astro syntax

    Images, forms and CMS content

    Head and body snippets, and limits

    Checking your work