营销网站内容维护
site-marketing
营销网站 capsem.org。在编辑文案、添加板块或更改网站主题时使用。
- License 许可
- Apache-2.0
- 所属仓库
- google/capsem
- 最近更新
- 2026-11-14
- Stars
- ★ 186
- Forks
- 26
01 前言 Front Matter
- name
- site-marketing
- description
- The marketing website, capsem.org. Use when editing copy, adding sections, or changing the site theme.
03 SKILL.md 正文
Marketing Website
The single-page marketing site in web/marketing/ uses Astro 7, Svelte 5,
and Tailwind v4. It explains benefits and use cases; precise procedures and
contracts belong on the documentation site (see /site-infra).
Development and publication
Run these commands through the repository's bounded-command wrapper:
pnpm --dir web/marketing run dev
pnpm --dir web/marketing run check
pnpm --dir web/marketing run build
pnpm --dir web/marketing run preview
ci.yaml owns the merge-blocking site-build job. Pushes to main trigger
site.yaml, which builds, deploys to Cloudflare Pages, and smokes capsem.org.
Changes to web/diagrams/ trigger both public-site builds and deployments.
This rail is independent from binary and runtime releases. Use /release-process
for channel publication at release.capsem.org.
Architecture and content
src/pages/index.astro composes these sections:
| Component | Purpose |
|---|---|
Nav.svelte |
Responsive navigation; hydrated on load. |
Hero.svelte |
Downloads, copyable install command, and animated demo; hydrated on load. |
Agents.astro |
Supported agents and bundled tools. |
Performance.astro |
Performance claims, methodology, caveats, and sources. |
Security.astro |
Shared JointJS security diagram and architecture link. |
Control.astro |
Activity, CEL rule, and detection examples. |
Footer.svelte |
Brand, license, and source link; rendered statically. |
Keep all copy, UI labels, reviewed documentation destinations, benchmark
disclosures, and fictional hero output in src/lib/data.ts. Its exports are
SITE, DOCS, NAV_LINKS, DOWNLOAD, UI, AGENTS, SPEED, SECURITY,
SECURITY_DIAGRAM, CONTROL, HERO_DEMO, and HERO_TERMINAL_SCRIPT.
Download.svelte uses lib/download.ts for platform detection and the shared
Modal.svelte dialog. Keep focus, Escape, backdrop, and close-button behavior
in that dialog. HeroDemo.svelte uses lib/hero-terminal.ts for playback;
verify animated, paused, replay, and reduced-motion states when changing it.
Diagrams
Use @capsem/diagrams/Diagram.astro from the shared web/diagrams/ package.
Keep marketing definitions and labels in data.ts; do not fork the viewer,
add another renderer, or introduce JointJS+ without an explicit decision.
Use shared semantic tones from web/diagrams/semantics.ts, backed by Tailwind
color tokens. Every used meaning appears in the diagram's Legend, and distinct
meanings use distinct color families. Keep host credentials, processing, and
VM boundaries separate; permission levels serve the security manual's
separate explanation.
Preserve hardware and process boundaries and connection direction when editing. Verify readable labels, zoom/pan/fit controls, the text connection table, and phone layouts in a real browser. Both sites must build after a viewer change.
Theme and assets
src/styles/global.css owns Tailwind @theme tokens and shared layout utilities:
content-shell, section-space, panel, button, text-link, and
brand-gradient. .section-dark remaps semantic surfaces and text. The hero's
scene styling lives in styles/hero-demo.css. Inter is loaded by Base.astro.
The visible logo is public/logo-color.png. Agent logos in public/agents/
retain attribution in SOURCES.md and licensing in LICENSE. Canonical brand
graphics live in web/graphics/; favicons derive from
web/graphics/icon/1024w/capsem-logo-color.png.
04 同仓库更多 Skills
Capsem 虚拟机任务执行
use-capsem
通过 MCP 在 Capsem 虚拟机中运行任务。在智能体需要隔离执行、文件分析,或将报告返回到主机时使用。
文档站基础设施维护
site-infra
文档站点 docs.capsem.org。用于面向用户的 Diátaxis 文档和 Astro Starlight 相关更改。
站点架构设计
site-architecture
暂无简介
版本发布流程
release-process
暂无简介
智能体技能创建与优化
meta-skill-creation
创建、改进和评估技能。在编写新技能、编辑现有技能或调整 description 以优化触发效果时使用。
技能目录组织与维护规范
meta-organize-skills
skills/ 目录的约定规范。在创建、重组或维护技能目录布局、符号链接以及跨智能体的技能发现时使用。