alera / landing
AGENTS.md45 starsChanged 4 months agoMITView on GitHub
This file applies to the landing/ directory only. The landing page is an Astro static site built with TypeScript, Tailwind CSS, Bun, and Vercel Analytics. These rules extend the repository-level ../AGENTS.md for landing work. This document defines governance only. It does not change runtime APIs, schemas, generated output, or package dependencies.
- Reads credentials
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 33,398 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- cloud/AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- mobile/AGENTS.mdAGENTS.md
- test/AGENTS.mdAGENTS.md
- alera-agent-profilesSkill
- alera-automationsSkill
- alera-cliSkill
- alera-orchestrationSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
20 rules. About 0 are common, 5 are distinctive, and 15 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
15
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 15
Use the existing landing structure before adding new patterns:
- Very specific: line 30
Keep the explicit sitemap() integration so marketing, blog, and docs routes stay in the sitemap.
- Very specific: line 47
Do not edit dist/, .astro/, node_modules/, or other generated output as source.
- Very specific: line 48
Prefer Astro Content Collections for blog posts.
- Very specific: line 56
Every node a storyboard key touches MUST carry a data-demo-node id in the scene.
- Distinctive: line 66
Use Bun for landing dependency and script commands.
- Very specific: line 67
Use bun install instead of npm install, yarn install, or pnpm install.
- Very specific: line 68
Use bun run dev for local development.
- Very specific: line 69
Use bun run build for production validation.
- Very specific: line 70
Use bun run preview for local preview of the built site.
- Very specific: line 72
Use bunx <package> <command> instead of npx <package> <command>.
- Distinctive: line 78
Keep the landing aligned with the app design direction: dark mode, grayscale-first palette, neutral accent emphasis, Inter for general …
- Distinctive: line 82
Do not introduce a second visual system, icon style, font stack, or unrelated palette for the landing page.
- Distinctive: line 86
Prefer Astro components for static landing sections.
- Very specific: line 87
Keep page-level composition in src/pages/.
- Very specific: line 91
Use Tailwind utility classes and existing shared utilities from src/styles/global.css before writing one-off CSS.
- Very specific: line 92
If a utility is reused across components, define it in src/styles/global.css rather than duplicating long class sequences or inline styles.
- Very specific: line 93
Keep metadata, social tags, fonts, favicon links, and analytics wiring centralized in src/layouts/Layout.astro.
- Very specific: line 109
If visual layout changes are made, also run or manually inspect a local preview with bun run dev or bun run preview.
- Very specific: line 110
Do not commit build artifacts from dist/ unless the user explicitly requests generated deployment output.
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS
Scope
This file applies to the landing/ directory only.
The landing page is an Astro static site built with TypeScript, Tailwind CSS, Bun, and Vercel Analytics. These rules extend the repository-level ../AGENTS.md for landing work.
This document defines governance only. It does not change runtime APIs, schemas, generated output, or package dependencies.
Project Shape
- The site MUST remain an Astro static output project unless the user explicitly requests otherwise.
astro.config.mjsMUST keepoutput: 'static'and the canonical site URLhttps://alera.build.- Use the existing landing structure before adding new patterns:
src/pages/*.astrofor page composition:index.astrois the marketing home,download.astrois the install page, and the trust documents live atprivacy.astro,terms.astro, andaccount/delete.astro.src/pages/blog/index.astrois the blog index,src/pages/blog/tags/[tag].astrois one page per tag in use, andsrc/pages/blog/[id].astrorenders individual posts insidesrc/layouts/BlogPostLayout.astro, which shares the docs outline, heading links, and code frames and ends with the post's related docs and its newer and older neighbours.src/pages/rss.xml.tsemits the blog RSS feed at/rss.xml.src/content.config.tsdefines theblogcollection (Markdown or MDX posts undersrc/content/blog/, each with one to threetagsfrom the closed vocabulary insrc/lib/blog-tags.ts, an optionalfeaturedflag, andrelatedDocsthat must name existing docs ids) and thedocscollection (flat MDX files undersrc/content/docs/), both with theglobloader and a Zod schema.- Product documentation is a custom docs system in the same Astro app, served at
/docs, with no documentation framework: a framework would bring a second design system to either fight or rebuild.src/content/docs/index.mdxis/docsand every other file is/docs/<id>, rendered bysrc/pages/docs/[...slug].astroinsidesrc/layouts/DocsLayout.astro. src/lib/docs-navigation.ts(DOC_SECTIONS) is the single source of the docs order and grouping: the sidebar, the mobile menu, the pager, and the section eyebrow all read it. Adding a page means adding an entry there and an.mdxfile; the docs route fails the build when the two drift apart, anddocs-navigation.test.tschecks the same.- The page outline and heading self-links come from
src/lib/heading-outline.tsover the rendered HTML, and code frames (language label plus copy button) fromsrc/lib/code-block-frame.ts. Pages never write their own table of contents. - Docs search is Pagefind, indexed in
astro:build:donebyconfig/docs-search-index.mjs(docs pages only) and queried bysrc/components/docs/DocsSearch.astroin the site's own tokens. The build fails when the index is empty. - MDX components available to every docs page without an import are listed in
src/components/docs/mdx-components.ts(Callout,DocCard,DocCardGrid,DocLinkButton,ShortcutTable,Steps). Prefer these over raw HTML in MDX. - Keyboard shortcuts on the site are printed by
src/lib/key-chord-label.ts, a port of the app'skey_chord.dart, and the Keyboard Shortcuts page listssrc/data/keyboard-shortcuts.ts. Both have tests that read the app's sources: write a registry chord in its canonical form (Mod+Shift+N), never as a hand-typed platform glyph, andkeyboard-shortcuts.test.tsfails when a docs page cites aMod+chord the registry does not bind. Only keys the registry does not own, such as the terminal's copy and paste, are written per platform. - Fenced code on the docs and the blog uses the
alera-darkShiki theme inconfig/alera-code-theme.mjs, derived from the app's editor syntax colors. Do not add a light theme: the site is dark-only. src/components/Prose.astroholds the long-form typography shared by the docs and the blog. Its element styles sit inside:where()so components rendered inside prose can override them.- These
/docspages are for people using Alera and describe shipped behavior only. Contributor internals stay in the repositorydocs/directory. src/pages/404.astrois the site-wide not-found page.- Keep the explicit
sitemap()integration so marketing, blog, and docs routes stay in the sitemap; it drops/404and/signed-inand writes URLs without a trailing slash to match canonicals. Shared@font-facerules live insrc/styles/fonts.css. src/lib/blog.tsholds shared blog helpers (getPublishedBlogPosts, date formatting, reading time fromsrc/lib/reading-time.ts), andsrc/lib/blog-listing.tsthe ordering rules (newest first, the featured lead post, tag counts, neighbours) with unit tests. Draft posts (draft: true) MUST be omitted from production builds and remain visible in local/dev builds.- A published post keeps its
pubDateand URL for good. A correction addsupdatedDateand a dated note at the top of the body (> **Update, September 2026:** ...) instead of rewriting the post; fix inline only what would mislead a reader who copies it, such as a broken command.e2e/blog.spec.tslists every published URL. src/components/blog/holds blog-specific presentational components (BlogIndex,BlogPostCard,BlogTagBar,BlogTagChips,BlogPostHeader,RelatedDocs,BlogPager). A new tag belongs inBLOG_TAGSwith a line inTAG_DESCRIPTIONS, never in one post's front matter alone.src/data/install-channels.tsis the single source of every install command, asset name, release URL, and Linux repository detail. The download page (src/pages/download.astroplussrc/components/download/), the home Install section, and the docs read it;test/unit/landing_release_links_test.dartandlinux_install_script_test.dartcheck it against the release workflow and the installer.plugin/owns downloadable plugin metadata and onboarding.src/data/plugin.tsexposes its version, download URLs, and skill descriptions;install-channels.tsre-exports the plugin download.config/plugin-download.tsbuilds the static ZIP and checksum fromplugin/,../edge/skills/, and the existing light/dark logos. Keep package sources available outside the landing root, preserve hidden compatibility and marketplace files, and bump the plugin version when any bundled source changes. See../docs/plugin-bundle.md.- The home page MUST keep an
#installsection (src/components/Install.astro):public/install.shwriteshttps://alera.build/#installinto the package sources it creates. src/components/CommandBlock.astrorenders a copyable command with the same[data-code-block]/[data-code-copy]contract as docs code frames, sosrc/scripts/code-block-copy.tsis the only copy script.src/components/BrandMark.astroholds the GitHub, Flutter, and Rust marks (Lucide ships no logos); reuse it instead of pasting SVG paths.- Icons come from
@lucide/astro, pinned to the Lucide releaselucide_icons_flutterbundles in the app, imported per icon (@lucide/astro/icons/<name>) so only used icons ship. src/components/TrustDocument.astrofor legal and policy pages, which carry their own navigation instead of the marketing navbar.src/layouts/Layout.astrofor document metadata, global imports, fonts, analytics, and page shell. Blog posts MAY passogType="article"plus optionalpublishedTime/modifiedTime.src/components/*.astrofor page sections and reusable UI.src/styles/global.cssfor the Tailwind@themetokens, global layers, CSS variables, and shared@utilitydefinitions (Tailwind CSS v4 has notailwind.config.mjs; the plugin is registered inastro.config.mjsvia@tailwindcss/vite).public/for static assets referenced with root-relative paths.- The home Product section (
src/components/Product.astro,/#product) is the interactive product demo insrc/components/demo/, documented in../docs/landing-demo.md. It redraws the desktop and Android apps in HTML, CSS, and SVG from the app's own tokens, icons, agent marks, and copy; do not replace it with screenshots or a video. - The repository README media in
../assets/product/(an animated WebP cut and one poster per chapter) are rendered from the demo bybun run media:demoafterbun run build, never recorded from a screen. Say so wherever they appear, keep the note that agent sessions are staged samples, and do not overclaim live-device capture or real agent output.src/data/demo/demo-media.test.tsfails when the storyboard changes without a new render. @astrojs/sitemapis registered inastro.config.mjsand MUST stay enabled whilesiteis set.
- Do not edit
dist/,.astro/,node_modules/, or other generated output as source. - Prefer Astro Content Collections for blog posts. Do not add loose Markdown routes under
src/pages/blog/or use removed APIs such asAstro.glob()/entry.slug.
Product Demo
- Demo values MUST come from the app source they copy: colors, sizes, radii, and durations from
src/styles/demo/tokens.css(a mirror ofAleraTokens), icons through the roles insrc/components/demo/primitives/app-icons.tsandmobile-icons.ts, agent marks and the logo as byte-for-byte copies, shortcuts fromsrc/data/demo/shortcuts.ts, and every quoted string fromsrc/data/demo/app-copy.tswith the file that ships it.src/data/demo/fidelity.test.tschecks all of these against the app; when it fails, fix the demo in the same change as the app. - Demo CSS lives in
src/styles/demo/, scoped under[data-alera-demo], and uses the app's values rather than the landing@themetokens. This is the one exception to the landing design system: the demo replicates Flutter widgets, and some landing tokens deliberately differ from the app (foreground-faintis lighter on the site for contrast). - Agent sessions in the demo are staged samples. The note under the player says so and names the features shown that are opt-in in the app; keep it accurate when the story changes.
- The scene MUST stay deterministic: its state comes only from the storyboard (
src/data/demo/storyboard*.ts) through the pureframeAt(t, layout)insrc/scripts/demo/timeline.ts, and motion inside it is a paused CSS animation positioned by--demo-t. Do not add timers, free-running animations, or random values to the scene. - Every node a storyboard key touches MUST carry a
data-demo-nodeid in the scene;src/data/demo/storyboard.test.tsfails otherwise. - Continuous motion animates only
transformandopacity. The player MUST keep a visible Pause control, pause when scrolled away or when the tab is hidden, skip autoplay under reduced motion, and never loop. The stage staysaria-hiddenandinert, with the captions and Read The Demo As Text carrying the story. /?demo=capturemounts the demo without playing and exposeswindow.__aleraDemo.seek(t)for rendering exact frames.
Bun Usage
cursor-plugin/,agent-plugin/, andcopilot-plugin/own independent distributions. The exact public channel labels areGrokBot Cursor,Agent Plugin, andGitHub Copilot. Keep the Agent Plugin pure, with no vendor extensions or client-specific files. Its manifest and MCP documents must pass the pinned official 1.0.0 schemas, which are validation inputs only. Preserve the existing ChatGPT and Claude archives byte for byte for changes confined to these new distributions. Do not invent Copilot image metadata, a Grok Bot ZIP import, app installation, or OAuth proof from package checks. Packaging scripts and the static site produce ZIPs and SHA-256 files without installing or authorizing clients.claude-plugin/owns the separate Claude web upload manifest, remote connector, README, and setup skill.config/claude-plugin-download.tspublishes deterministic ZIP and.pluginaliases with separate checksums. Adapt MCP skills in the Claude builder only; preserve the ChatGPT sources and archive when changing only the Claude package. Bump the Claude manifest version on subsequent Claude releases. Document web OAuth separately from CLI validation and do not add credentials or unsupported web scope overrides.- Use Bun for landing dependency and script commands.
- Use
bun installinstead ofnpm install,yarn install, orpnpm install. - Use
bun run devfor local development. - Use
bun run buildfor production validation. - Use
bun run previewfor local preview of the built site. - Use
bun run <script>instead ofnpm run,yarn run, orpnpm run. - Use
bunx <package> <command>instead ofnpx <package> <command>. - Bun automatically loads
.env; do not adddotenvfor landing work.
Landing Design System
- Landing UI values SHOULD come from the
@themetokens insrc/styles/global.cssbefore adding ad-hoc literals. - Keep the landing aligned with the app design direction: dark mode, grayscale-first palette, neutral accent emphasis, Inter for general text, and JetBrains Mono for terminal/code-adjacent text.
- Visible UI copy (headings, labels, CTAs, tooltips, alt text, and messages) MUST use title case (e.g., "New Workspace", "AI Assist").
- New colors, spacing, radii, type sizes, animation durations, and shared effects SHOULD be added as Tailwind theme values or CSS variables before repeated use.
- Existing token names and roles SHOULD remain consistent with the app baseline where practical:
bg,surface,surface-variant,surface-elevated,border,border-subtle,accent,on-accent,foreground,foreground-muted,foreground-faint,success,error,on-error, andwarning. - Do not introduce a second visual system, icon style, font stack, or unrelated palette for the landing page.
Astro and Tailwind Rules
- Prefer Astro components for static landing sections.
- Keep page-level composition in
src/pages/; keep section markup in focused components undersrc/components/. - Pages MUST pass
canonicalPathtoLayout.astro, or they inherit the home page as their canonical URL. - Links to home-page sections MUST be written as
/#section, never as a bare#section, so they resolve from subpages. - The SignPath attribution ("Free code signing provided by SignPath.io, certificate by SignPath Foundation") is required verbatim on the home page and the download page, and MUST stay one contiguous string rather than being split across markup.
- Use Tailwind utility classes and existing shared utilities from
src/styles/global.cssbefore writing one-off CSS. - If a utility is reused across components, define it in
src/styles/global.cssrather than duplicating long class sequences or inline styles. - Keep metadata, social tags, fonts, favicon links, and analytics wiring centralized in
src/layouts/Layout.astro. - Static assets MUST live in
public/and SHOULD be referenced with root-relative paths such as/logo.png. - Images and meaningful SVGs MUST include useful alt text or accessible labels. Decorative SVGs SHOULD be hidden from assistive technology.
Responsive and Content Quality
- Landing changes MUST be checked at mobile and desktop widths.
- Pay particular attention to the hero, fixed navigation, CTA buttons, section cards, workflow steps, footer, and long marketing copy.
- Text MUST not overflow or overlap its container at common mobile widths.
- CTA states MUST not imply an action is available unless the linked/download behavior is implemented. If a control is intentionally unavailable, keep the current "coming soon" behavior or an equivalent explicit disabled/placeholder state.
- Marketing copy MUST not overclaim product behavior beyond what the app actually supports.
Validation
- For landing changes, run
bun testandbun run buildfromlanding/, thenbunx playwright testagainst the built site (bun run checkruns all three). Locally, setPLAYWRIGHT_CHROMIUM_EXECUTABLE_PATHto reuse an installed Chromium instead of downloading one. - Unit tests (
*.test.ts) live next to the code undersrc/and run withbun test;bunfig.tomlkeeps that runner out ofe2e/. Playwright specs live ine2e/, and specs withmobilein their name run only at a 390 px viewport. - If visual layout changes are made, also run or manually inspect a local preview with
bun run devorbun run preview. - Do not commit build artifacts from
dist/unless the user explicitly requests generated deployment output.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

