@archangel70/cosmo 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +792 -0
  3. package/SECURITY.md +15 -0
  4. package/docs/AGENT-HANDOFF.md +44 -0
  5. package/docs/ARCHITECTURE-INTELLIGENCE.md +64 -0
  6. package/docs/ARCHITECTURE.md +97 -0
  7. package/docs/BRAND-DISCOVERY.md +12 -0
  8. package/docs/BROWSER-QA.md +40 -0
  9. package/docs/CLAUDE-LAUNCHER.md +72 -0
  10. package/docs/CONTENT-QA.md +62 -0
  11. package/docs/DELIVERY.md +40 -0
  12. package/docs/DEPLOYMENT.md +119 -0
  13. package/docs/FIRST-PARTY-CAPABILITIES.md +54 -0
  14. package/docs/GENERATION.md +81 -0
  15. package/docs/INTEGRITY.md +75 -0
  16. package/docs/INTELLIGENCE-PACKS.md +122 -0
  17. package/docs/OPERATIONS.md +7 -0
  18. package/docs/PAGE-PRODUCTION.md +81 -0
  19. package/docs/ROADMAP.md +184 -0
  20. package/docs/WORKFLOWS.md +71 -0
  21. package/package.json +97 -0
  22. package/packages/cli/bin/cosmo.mjs +901 -0
  23. package/packages/cli/lib/adoption.mjs +72 -0
  24. package/packages/cli/lib/audit.mjs +145 -0
  25. package/packages/cli/lib/brand.mjs +60 -0
  26. package/packages/cli/lib/browser-audit.mjs +177 -0
  27. package/packages/cli/lib/claude-plugin.mjs +64 -0
  28. package/packages/cli/lib/content-audit.mjs +184 -0
  29. package/packages/cli/lib/delivery.mjs +140 -0
  30. package/packages/cli/lib/deployment.mjs +211 -0
  31. package/packages/cli/lib/doctor.mjs +42 -0
  32. package/packages/cli/lib/file-transfer.mjs +143 -0
  33. package/packages/cli/lib/generation.mjs +319 -0
  34. package/packages/cli/lib/handoff.mjs +109 -0
  35. package/packages/cli/lib/integrity.mjs +315 -0
  36. package/packages/cli/lib/intelligence-audit.mjs +445 -0
  37. package/packages/cli/lib/intelligence.mjs +331 -0
  38. package/packages/cli/lib/page-work.mjs +154 -0
  39. package/packages/cli/lib/plan.mjs +229 -0
  40. package/packages/cli/lib/process.mjs +45 -0
  41. package/packages/cli/lib/project.mjs +113 -0
  42. package/packages/cli/lib/research.mjs +85 -0
  43. package/packages/cli/lib/status.mjs +46 -0
  44. package/packages/cli/lib/workflow.mjs +294 -0
  45. package/plugins/claude-code/cosmo/.claude-plugin/plugin.json +10 -0
  46. package/plugins/claude-code/cosmo/README.md +25 -0
  47. package/plugins/claude-code/cosmo/bin/cosmo +11 -0
  48. package/plugins/claude-code/cosmo/skills/cosmo/SKILL.md +122 -0
  49. package/plugins/claude-code/cosmo/skills/cosmo-help/SKILL.md +16 -0
  50. package/scripts/postinstall.mjs +14 -0
  51. package/templates/astro-site/.cosmo/brand/discovery.json +19 -0
  52. package/templates/astro-site/.cosmo/brand/entity-canon.json +20 -0
  53. package/templates/astro-site/.cosmo/brand/voice-profile.json +16 -0
  54. package/templates/astro-site/.cosmo/build-plan.json +75 -0
  55. package/templates/astro-site/.cosmo/capabilities/registry.json +21 -0
  56. package/templates/astro-site/.cosmo/evidence.json +11 -0
  57. package/templates/astro-site/.cosmo/intelligence/selection.json +5 -0
  58. package/templates/astro-site/.cosmo/policies/content-integrity.json +22 -0
  59. package/templates/astro-site/.cosmo/project.json +10 -0
  60. package/templates/astro-site/.cosmo/work/pages/about/brief.json +49 -0
  61. package/templates/astro-site/.cosmo/work/pages/home/brief.json +51 -0
  62. package/templates/astro-site/.cosmo/workflows/default.json +146 -0
  63. package/templates/astro-site/.env.example +7 -0
  64. package/templates/astro-site/AGENTS.md +26 -0
  65. package/templates/astro-site/CLAUDE.md +28 -0
  66. package/templates/astro-site/DESIGN-DIRECTION.md +9 -0
  67. package/templates/astro-site/README.md +17 -0
  68. package/templates/astro-site/astro.config.mjs +16 -0
  69. package/templates/astro-site/cosmo.config.mjs +12 -0
  70. package/templates/astro-site/gitignore.template +9 -0
  71. package/templates/astro-site/package.json +23 -0
  72. package/templates/astro-site/public/favicon.svg +5 -0
  73. package/templates/astro-site/src/components/PageView.astro +20 -0
  74. package/templates/astro-site/src/components/sections/Action.astro +24 -0
  75. package/templates/astro-site/src/components/sections/Evidence.astro +19 -0
  76. package/templates/astro-site/src/components/sections/Hero.astro +41 -0
  77. package/templates/astro-site/src/components/sections/Problem.astro +19 -0
  78. package/templates/astro-site/src/components/sections/Proof.astro +15 -0
  79. package/templates/astro-site/src/components/sections/SectionRenderer.astro +22 -0
  80. package/templates/astro-site/src/components/sections/Solution.astro +19 -0
  81. package/templates/astro-site/src/components/seo/SeoHead.astro +41 -0
  82. package/templates/astro-site/src/content/pages/about.md +52 -0
  83. package/templates/astro-site/src/content/pages/home.md +48 -0
  84. package/templates/astro-site/src/content.config.ts +133 -0
  85. package/templates/astro-site/src/env.d.ts +1 -0
  86. package/templates/astro-site/src/layouts/BaseLayout.astro +57 -0
  87. package/templates/astro-site/src/pages/[...slug].astro +22 -0
  88. package/templates/astro-site/src/pages/index.astro +9 -0
  89. package/templates/astro-site/src/pages/robots.txt.ts +6 -0
  90. package/templates/astro-site/src/styles/global.css +540 -0
  91. package/templates/astro-site/src/styles/tokens.css +27 -0
  92. package/templates/astro-site/tsconfig.json +9 -0
@@ -0,0 +1,11 @@
1
+ {
2
+ "version": 1,
3
+ "entityId": "cosmo-studio",
4
+ "claims": [
5
+ { "id": "approved-project-positioning", "text": "The homepage reflects approved project positioning.", "risk": "high", "proofIds": ["approved-brand-brief"] },
6
+ { "id": "approved-project-background", "text": "The about page reflects approved, evidence-backed project background.", "risk": "high", "proofIds": ["approved-brand-brief"] }
7
+ ],
8
+ "proofs": [
9
+ { "id": "approved-brand-brief", "title": "Approved project positioning and brand brief", "provenance": "owned", "ownership": "documented", "status": "pending" }
10
+ ]
11
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "version": 1,
3
+ "profile": "lean",
4
+ "packs": []
5
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "version": 1,
3
+ "genericPhrases": [
4
+ "in today's fast-paced world",
5
+ "unlock your potential",
6
+ "cutting-edge solution",
7
+ "game-changing",
8
+ "one-stop shop",
9
+ "seamless experience"
10
+ ],
11
+ "manipulativePhrases": [
12
+ "act now before it's too late",
13
+ "don't miss out",
14
+ "limited time only",
15
+ "fear of missing out",
16
+ "guaranteed results",
17
+ "crush the competition"
18
+ ],
19
+ "voiceBannedSeverity": "blocking",
20
+ "requireVerifiedProofForIndexable": true,
21
+ "blockDuplicatePassages": true
22
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "cosmo-starter",
3
+ "brand": "Cosmo Studio",
4
+ "site": "https://example.com",
5
+ "stage": "foundation",
6
+ "designMode": "hybrid",
7
+ "output": "static",
8
+ "createdAt": "2026-08-28T00:00:00.000Z",
9
+ "lastActivity": "2026-08-28T00:00:00.000Z"
10
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "version": 1,
3
+ "planVersion": 3,
4
+ "pageId": "about",
5
+ "route": "/about/",
6
+ "pageType": "standard",
7
+ "title": "About the Cosmo Studio Project",
8
+ "primaryTopic": "project background and trust",
9
+ "entityId": "cosmo-studio",
10
+ "audienceNeed": "Understand the people, experience, and evidence behind this project.",
11
+ "serves": "visitor",
12
+ "claimIds": [
13
+ "approved-project-background"
14
+ ],
15
+ "proofIds": [
16
+ "approved-brand-brief"
17
+ ],
18
+ "strengthensPages": [
19
+ "home"
20
+ ],
21
+ "parent": "home",
22
+ "related": [],
23
+ "archetype": "trust",
24
+ "indexability": "noindex",
25
+ "intent": {
26
+ "primary": "Explain the project's approved background and reasons to trust it",
27
+ "funnel": "consideration",
28
+ "awareness": "problem-aware",
29
+ "queryPatterns": [
30
+ "project background and trust"
31
+ ],
32
+ "demandConfidence": "unknown"
33
+ },
34
+ "intentBoundaries": [],
35
+ "linkRoles": [
36
+ {
37
+ "target": "home",
38
+ "role": "parent",
39
+ "reason": "Returns background and trust context to the project overview.",
40
+ "anchorIntent": "Return to the project overview"
41
+ }
42
+ ],
43
+ "answerFirstTarget": "Replace this starter copy with approved, evidence-backed project background.",
44
+ "callsToAction": [
45
+ "home"
46
+ ],
47
+ "sections": [],
48
+ "createdAt": "2026-08-28T20:15:12.230Z"
49
+ }
@@ -0,0 +1,51 @@
1
+ {
2
+ "version": 1,
3
+ "planVersion": 3,
4
+ "pageId": "home",
5
+ "route": "/",
6
+ "pageType": "home",
7
+ "title": "Cosmo Studio | Project Website",
8
+ "primaryTopic": "project website overview",
9
+ "entityId": "cosmo-studio",
10
+ "audienceNeed": "Understand what this project is and where to find its supporting context.",
11
+ "serves": "both",
12
+ "claimIds": [
13
+ "approved-project-positioning"
14
+ ],
15
+ "proofIds": [
16
+ "approved-brand-brief"
17
+ ],
18
+ "strengthensPages": [
19
+ "about"
20
+ ],
21
+ "parent": null,
22
+ "related": [
23
+ "about"
24
+ ],
25
+ "archetype": "hub",
26
+ "indexability": "noindex",
27
+ "intent": {
28
+ "primary": "Introduce the project and direct visitors to its background",
29
+ "funnel": "awareness",
30
+ "awareness": "unaware",
31
+ "queryPatterns": [
32
+ "project website overview"
33
+ ],
34
+ "demandConfidence": "unknown"
35
+ },
36
+ "intentBoundaries": [],
37
+ "linkRoles": [
38
+ {
39
+ "target": "about",
40
+ "role": "supporting",
41
+ "reason": "Provides the background and trust context that the overview cannot establish yet.",
42
+ "anchorIntent": "Learn about the project"
43
+ }
44
+ ],
45
+ "answerFirstTarget": "Replace this starter copy after project discovery and positioning are approved.",
46
+ "callsToAction": [
47
+ "about"
48
+ ],
49
+ "sections": [],
50
+ "createdAt": "2026-08-28T20:15:12.229Z"
51
+ }
@@ -0,0 +1,146 @@
1
+ {
2
+ "version": 1,
3
+ "id": "default",
4
+ "name": "Cosmo default build",
5
+ "description": "Brand-first Astro build with human approval before design and generation decisions propagate.",
6
+ "stages": [
7
+ {
8
+ "id": "intake",
9
+ "type": "core",
10
+ "title": "Project intake",
11
+ "instructions": "Capture the business, audience, goals, scope, known evidence, constraints, and design mode in a structured intake file.",
12
+ "approval": false,
13
+ "expects": [
14
+ {
15
+ "path": ".cosmo/intake.json",
16
+ "kind": "json",
17
+ "requiredKeys": ["version", "business.name", "business.niche", "audience.summary", "goals", "scope.pageTarget", "designMode"],
18
+ "nonEmptyKeys": ["business.name", "business.niche", "audience.summary", "goals", "designMode"]
19
+ }
20
+ ]
21
+ },
22
+ {
23
+ "id": "brand",
24
+ "type": "core",
25
+ "title": "Brand brief",
26
+ "instructions": "Turn intake into an explicit audience, position, Entity Canon, project-owned voice, evidence ledger, brand truths, anti-positioning, and desired first-five-seconds feeling.",
27
+ "approval": true,
28
+ "expects": [
29
+ "BRAND-BRIEF.md",
30
+ {
31
+ "path": ".cosmo/brand/discovery.json",
32
+ "kind": "json",
33
+ "requiredKeys": ["version", "approved", "prompts", "synthesis"],
34
+ "equals": { "approved": true },
35
+ "nonEmptyKeys": ["prompts", "synthesis"]
36
+ },
37
+ {
38
+ "path": ".cosmo/brand/entity-canon.json",
39
+ "kind": "json",
40
+ "requiredKeys": ["version", "id", "officialName", "domain", "descriptions.short", "descriptions.long", "category", "services", "audiences"] ,
41
+ "nonEmptyKeys": ["id", "officialName", "domain", "descriptions.short", "descriptions.long", "category"]
42
+ },
43
+ {
44
+ "path": ".cosmo/brand/voice-profile.json",
45
+ "kind": "json",
46
+ "requiredKeys": ["version", "entityId", "maturity", "markers", "weAre", "weAreNot", "register"],
47
+ "nonEmptyKeys": ["entityId", "maturity", "markers", "weAre", "weAreNot", "register"]
48
+ },
49
+ {
50
+ "path": ".cosmo/evidence.json",
51
+ "kind": "json",
52
+ "requiredKeys": ["version", "entityId", "claims", "proofs"]
53
+ }
54
+ ]
55
+ },
56
+ {
57
+ "id": "design",
58
+ "type": "core",
59
+ "title": "Visual direction and design capture",
60
+ "instructions": "Explore multiple visual directions, implement the approved direction locally, then capture its tokens and shared Astro components.",
61
+ "approval": true,
62
+ "expects": [
63
+ "DESIGN-DIRECTION.md",
64
+ "src/styles/tokens.css",
65
+ {
66
+ "path": ".cosmo/design/design-manifest.json",
67
+ "kind": "json",
68
+ "requiredKeys": ["capturedAt", "mode", "tokens", "components"]
69
+ }
70
+ ]
71
+ },
72
+ {
73
+ "id": "homepage",
74
+ "type": "core",
75
+ "title": "Homepage implementation",
76
+ "instructions": "Build and review one complete homepage using the approved direction, real evidence, semantic sections, and responsive behavior.",
77
+ "approval": true,
78
+ "expects": ["src/content/pages/home.md", "src/components/PageView.astro"]
79
+ },
80
+ {
81
+ "id": "template",
82
+ "type": "core",
83
+ "title": "Reusable page template",
84
+ "instructions": "Approve one reusable page model and its component composition before allowing bulk page generation.",
85
+ "approval": true,
86
+ "expects": ["src/content.config.ts", "src/components/sections/SectionRenderer.astro"]
87
+ },
88
+ {
89
+ "id": "plan",
90
+ "type": "core",
91
+ "title": "Site and internal-link plan",
92
+ "instructions": "Define every justified route, page archetype, intent, awareness state, indexability decision, demand confidence, entity, claim, proof, audience need, boundary, and governed internal-link role in Build Plan v3. Create a derived brief for every page before submission.",
93
+ "approval": true,
94
+ "expects": [
95
+ {
96
+ "path": ".cosmo/build-plan.json",
97
+ "kind": "json",
98
+ "requiredKeys": ["version", "approved", "pages"],
99
+ "equals": { "approved": true }
100
+ }
101
+ ]
102
+ },
103
+ {
104
+ "id": "generate",
105
+ "type": "core",
106
+ "title": "Structured page generation",
107
+ "instructions": "Move every page through briefed, sourced, outlined, drafted, edited, verified, and done gates. Keep page workspaces auditable, limit automated repairs to two cycles, and escalate unresolved work to a human.",
108
+ "approval": false,
109
+ "expects": [
110
+ {
111
+ "path": ".cosmo/progress.json",
112
+ "kind": "json",
113
+ "requiredKeys": ["version", "pages", "complete"],
114
+ "equals": { "complete": true }
115
+ }
116
+ ]
117
+ },
118
+ {
119
+ "id": "qa",
120
+ "type": "core",
121
+ "title": "Production QA",
122
+ "instructions": "Run semantic content, production-build, and rendered-browser checks. Remediate blocking findings without relaxing policy or inventing proof, then submit all passing reports for approval.",
123
+ "approval": true,
124
+ "expects": [
125
+ {
126
+ "path": ".cosmo/reports/content-check.json",
127
+ "kind": "json",
128
+ "requiredKeys": ["passed", "summary.pages", "summary.blocking", "summary.warnings"],
129
+ "equals": { "passed": true }
130
+ },
131
+ {
132
+ "path": ".cosmo/reports/site-check.json",
133
+ "kind": "json",
134
+ "requiredKeys": ["passed", "summary.pages", "summary.critical"],
135
+ "equals": { "passed": true }
136
+ },
137
+ {
138
+ "path": ".cosmo/reports/browser-check.json",
139
+ "kind": "json",
140
+ "requiredKeys": ["passed", "summary.routes", "summary.renders", "summary.critical"],
141
+ "equals": { "passed": true }
142
+ }
143
+ ]
144
+ }
145
+ ]
146
+ }
@@ -0,0 +1,7 @@
1
+ # Copy to a gitignored file such as .env.deploy and supply values locally.
2
+ COSMO_DEPLOY_USER=
3
+ COSMO_DEPLOY_PASSWORD=
4
+ # Optional SFTP values:
5
+ # COSMO_DEPLOY_PRIVATE_KEY="-----BEGIN OPENSSH PRIVATE KEY-----..."
6
+ # COSMO_DEPLOY_KEY_PASSPHRASE=
7
+ # COSMO_DEPLOY_HOST_FINGERPRINT=SHA256:replace-with-server-fingerprint
@@ -0,0 +1,26 @@
1
+ # Codex Project Guide
2
+
3
+ This is a Cosmo-managed Astro project, commonly created in Claude and edited later in Codex. The repository—not prior chat history—is the source of truth.
4
+
5
+ Before editing:
6
+
7
+ 1. Read `HANDOFF.md` when present.
8
+ 2. Run `cosmo doctor .`, `cosmo status .`, `cosmo workflow resume .`, `cosmo plan check .`, and `cosmo generate status .` when their state files exist.
9
+ 3. Read `.cosmo/brand/discovery.json`, `BRAND-BRIEF.md`, `.cosmo/brand/entity-canon.json`, `.cosmo/brand/voice-profile.json`, `.cosmo/evidence.json`, `.cosmo/intelligence/selection.json`, every selected pack manifest and artifact, the relevant page brief, sources, outline, and editorial report, `DESIGN-DIRECTION.md`, `src/styles/tokens.css`, and the relevant typed content entries.
10
+ 4. Run `cosmo intelligence guide <stage> .` before selected-pack work. The first-party capability library is self-contained; do not depend on Lyra or Sonic files being present.
11
+ 5. Preserve approved signature design elements unless the requested change explicitly revises the design direction.
12
+
13
+ Do not bypass workflow approvals, edit generated progress to manufacture completion, convert unsupported claims into plausible prose, invent demand, or alter identity, intent, link, claim, and proof ids to evade a gate. Components should remain shared and semantic; create a new component only for a genuinely new visual or behavioral pattern.
14
+
15
+ Verify changes in proportion to their scope. For a production handoff, run:
16
+
17
+ ```bash
18
+ npm run build
19
+ cosmo check . --no-build
20
+ cosmo content check .
21
+ cosmo intelligence check .
22
+ cosmo browser check . --no-build
23
+ cosmo release check .
24
+ ```
25
+
26
+ For deployment work, inspect `cosmo deploy status .` and `.cosmo/deploy/history.jsonl`. Review builds may use `cosmo deploy preview .`; production must use `cosmo deploy production .` after the exact current release reports READY. Keep provider credentials in process environment or a gitignored runtime env file. Never delete remote files implicitly.
@@ -0,0 +1,28 @@
1
+ # Claude Project Guide
2
+
3
+ This is a Cosmo-managed Astro project. Use Claude for discovery, strategy, content work, and implementation; use Claude Design as an independent creative authority when the project calls for original art direction.
4
+
5
+ Before changing the site:
6
+
7
+ 1. Run `cosmo doctor .`, `cosmo status .`, and `cosmo workflow resume .` when a workflow is active.
8
+ 2. Read `.cosmo/brand/discovery.json`, `BRAND-BRIEF.md`, `.cosmo/brand/entity-canon.json`, `.cosmo/brand/voice-profile.json`, `.cosmo/evidence.json`, `.cosmo/intelligence/selection.json`, every selected pack manifest and artifact, `DESIGN-DIRECTION.md`, `.cosmo/build-plan.json`, and the current page's brief, sources, outline, and editorial report when present.
9
+ 3. Run `cosmo intelligence guide <stage> .` before doing selected-pack work. Audience, differentiation, search/community, conversion, naturalness, branded-language, authority, local, editorial, regulated, research, image, and Claude Design guidance is built into Cosmo; do not assume Lyra or Sonic is installed.
10
+ 4. Treat the starter appearance as replaceable. Do not let its components or visual motifs constrain Claude Design exploration.
11
+ 5. Once a direction is approved, express it in repository-owned Astro components, `src/styles/tokens.css`, and `DESIGN-DIRECTION.md`.
12
+
13
+ Never invent credentials, testimonials, locations, results, statistics, demand, or business evidence. Keep missing evidence and demand confidence explicit. Attributed first-person material must remain attributed and must never become the principal's voice. Do not create a new page when its intent belongs as a section or overlaps an existing route without a defensible boundary. Use `cosmo generate complete` only after the page agrees with its plan-derived brief and every carried proof is verified in the evidence ledger.
14
+
15
+ Advance generation one state at a time with `cosmo generate advance`. Do not manufacture completion by editing `.cosmo/progress.json`. After two repair cycles, stop automated rewriting and leave the page in human review.
16
+
17
+ Before handing the project to another agent, run the relevant checks and create a durable handoff:
18
+
19
+ ```bash
20
+ cosmo check .
21
+ cosmo content check .
22
+ cosmo intelligence check .
23
+ cosmo browser check .
24
+ cosmo release check .
25
+ cosmo handoff create . --from claude --to codex --note "Summary of the completed work and any open judgment calls"
26
+ ```
27
+
28
+ Use `cosmo deploy preview .` for review. Run `cosmo deploy production .` only after `cosmo release check .` reports READY. Provider credentials may come from process environment or a runtime `--env-file`; never write values into Cosmo config, history, handoffs, or tracked files.
@@ -0,0 +1,9 @@
1
+ # Design Direction
2
+
3
+ ## Status: unselected
4
+
5
+ This project has no approved visual direction yet. The included CSS and components exist only to make the scaffold inspectable and runnable; they are not a Cosmo house style and should not constrain creative exploration.
6
+
7
+ Use Claude Design, another design authority, or a human designer to explore genuinely different directions after discovery. Once a direction is approved, replace this document with the project-specific concept, signature elements, responsive behavior, accessibility constraints, and explicit anti-patterns. Then implement those decisions in local Astro components and tokens before running `cosmo design capture`.
8
+
9
+ Do not approve generation merely because the scaffold renders. Design approval requires a project-owned direction.
@@ -0,0 +1,17 @@
1
+ # Astro Site
2
+
3
+ This project was initialized by Cosmo but remains a standard Astro repository. It builds without a Cosmo account or runtime service.
4
+
5
+ ```bash
6
+ npm install
7
+ npm run dev
8
+ npm run build
9
+ ```
10
+
11
+ Cosmo adds local workflow, generation, design-handoff, and QA contracts under `.cosmo/`. Read `CLAUDE.md` for Claude-led builds, `AGENTS.md` for later Codex work, and `HANDOFF.md` when one agent has explicitly handed the project to another.
12
+
13
+ The initial home and about routes are neutral, `noindex` scaffolds. The build plan is a valid draft, not an approval to generate or publish. Replace the placeholder entity, evidence, voice, page plan, content, and design direction through the Cosmo workflow before changing indexability.
14
+
15
+ The starter uses the `lean` intelligence profile. Run `cosmo intelligence list` to inspect optional profiles and packs, then `cosmo intelligence apply <profile> .` and `cosmo intelligence scaffold .` before starting the workflow when the project needs additional authority, local, editorial, regulated, research, image-direction, or Claude Design gates.
16
+
17
+ Optional deployment supports Cloudflare Pages, SFTP, FTPS, and acknowledged plain FTP. Copy `.env.example` to `.env.deploy` for local credentials; `.env` variants are ignored and their values must never be committed.
@@ -0,0 +1,16 @@
1
+ import fs from 'node:fs';
2
+ import sitemap from '@astrojs/sitemap';
3
+ import { defineConfig } from 'astro/config';
4
+ import cosmo from './cosmo.config.mjs';
5
+
6
+ const plan = JSON.parse(fs.readFileSync(new URL('./.cosmo/build-plan.json', import.meta.url), 'utf8'));
7
+ const noindexPaths = new Set(plan.version >= 3
8
+ ? plan.pages.filter((page) => page.architecture.indexability === 'noindex').map((page) => page.path)
9
+ : []);
10
+
11
+ export default defineConfig({
12
+ site: cosmo.site,
13
+ output: 'static',
14
+ trailingSlash: 'always',
15
+ integrations: [sitemap({ filter: (page) => !noindexPaths.has(new URL(page).pathname) })],
16
+ });
@@ -0,0 +1,12 @@
1
+ export default {
2
+ name: 'Cosmo Starter',
3
+ brand: 'Cosmo Studio',
4
+ site: 'https://example.com',
5
+ locale: 'en',
6
+ designMode: 'hybrid',
7
+ contact: {
8
+ phoneDisplay: '(000) 000-0000',
9
+ phoneHref: 'tel:+10000000000',
10
+ email: 'hello@example.com',
11
+ },
12
+ };
@@ -0,0 +1,9 @@
1
+ node_modules/
2
+ dist/
3
+ .astro/
4
+ .DS_Store
5
+ *.log
6
+ .cosmo/reports/screenshots/
7
+ .env
8
+ .env.*
9
+ !.env.example
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "@cosmo/astro-starter",
3
+ "version": "1.7.0",
4
+ "private": true,
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "astro dev",
8
+ "build": "astro build",
9
+ "preview": "astro preview",
10
+ "astro:check": "astro check"
11
+ },
12
+ "dependencies": {
13
+ "@astrojs/sitemap": "^3.7.3",
14
+ "astro": "^7.2.9"
15
+ },
16
+ "devDependencies": {
17
+ "@astrojs/check": "^0.9.10",
18
+ "typescript": "^5.9.2"
19
+ },
20
+ "engines": {
21
+ "node": ">=22.12.0"
22
+ }
23
+ }
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
2
+ <rect width="64" height="64" rx="12" fill="#111318"/>
3
+ <path d="M32 8l5.4 18.6L56 32l-18.6 5.4L32 56l-5.4-18.6L8 32l18.6-5.4L32 8z" fill="#ff5a36"/>
4
+ <circle cx="32" cy="32" r="7" fill="#fffaf0"/>
5
+ </svg>
@@ -0,0 +1,20 @@
1
+ ---
2
+ import type { CollectionEntry } from 'astro:content';
3
+ import BaseLayout from '@/layouts/BaseLayout.astro';
4
+ import SectionRenderer from '@/components/sections/SectionRenderer.astro';
5
+
6
+ interface Props {
7
+ page: CollectionEntry<'pages'>;
8
+ }
9
+
10
+ const { page } = Astro.props;
11
+ const { title, description, path, schemaType, primaryTopic, indexability, sections, h1 } = page.data;
12
+ ---
13
+
14
+ <BaseLayout {title} {description} {path} {schemaType} {primaryTopic} {indexability}>
15
+ {
16
+ sections.map((section, index) => (
17
+ <SectionRenderer section={section} pageH1={index === 0 && section.type === 'hero' ? h1 : undefined} />
18
+ ))
19
+ }
20
+ </BaseLayout>
@@ -0,0 +1,24 @@
1
+ ---
2
+ interface Props {
3
+ data: {
4
+ heading: string;
5
+ body: string;
6
+ primaryCta: { label: string; href: string };
7
+ secondaryCta?: { label: string; href: string };
8
+ };
9
+ }
10
+ const { data } = Astro.props;
11
+ ---
12
+
13
+ <section class="section-shell action-section">
14
+ <div class="container action-grid">
15
+ <h2>{data.heading}</h2>
16
+ <div>
17
+ <p>{data.body}</p>
18
+ <div class="button-row">
19
+ <a class="button button-primary" href={data.primaryCta.href}>{data.primaryCta.label}</a>
20
+ {data.secondaryCta && <a class="button button-secondary" href={data.secondaryCta.href}>{data.secondaryCta.label}</a>}
21
+ </div>
22
+ </div>
23
+ </div>
24
+ </section>
@@ -0,0 +1,19 @@
1
+ ---
2
+ interface Props {
3
+ data: { eyebrow?: string; heading: string; intro: string; items: Array<{ title: string; body: string }> };
4
+ }
5
+ const { data } = Astro.props;
6
+ ---
7
+
8
+ <section class="section-shell paper-section">
9
+ <div class="container evidence-layout">
10
+ <div class="evidence-copy">
11
+ {data.eyebrow && <p class="eyebrow">{data.eyebrow}</p>}
12
+ <h2>{data.heading}</h2>
13
+ <p class="section-intro">{data.intro}</p>
14
+ </div>
15
+ <div class="evidence-stack">
16
+ {data.items.map((item) => <article><h3>{item.title}</h3><p>{item.body}</p></article>)}
17
+ </div>
18
+ </div>
19
+ </section>
@@ -0,0 +1,41 @@
1
+ ---
2
+ interface Props {
3
+ data: {
4
+ eyebrow: string;
5
+ heading: string;
6
+ lede: string;
7
+ primaryCta: { label: string; href: string };
8
+ secondaryCta?: { label: string; href: string };
9
+ note?: string;
10
+ };
11
+ pageH1?: string;
12
+ }
13
+
14
+ const { data, pageH1 } = Astro.props;
15
+ ---
16
+
17
+ <section class="hero section-shell">
18
+ <div class="container hero-grid">
19
+ <div class="hero-copy">
20
+ <p class="eyebrow">{data.eyebrow}</p>
21
+ <h1>{pageH1 ?? data.heading}</h1>
22
+ <p class="lede">{data.lede}</p>
23
+ <div class="button-row">
24
+ <a class="button button-primary" href={data.primaryCta.href}>{data.primaryCta.label}</a>
25
+ {data.secondaryCta && <a class="button button-secondary" href={data.secondaryCta.href}>{data.secondaryCta.label}</a>}
26
+ </div>
27
+ {data.note && <p class="hero-note">{data.note}</p>}
28
+ </div>
29
+ <div class="hero-visual" aria-hidden="true">
30
+ <div class="orbit orbit-large"></div>
31
+ <div class="orbit orbit-small"></div>
32
+ <div class="signal-card">
33
+ <span>Design signal</span>
34
+ <strong>Distinct by intent</strong>
35
+ <i></i>
36
+ </div>
37
+ <span class="coordinate coordinate-a">PROJECT / 01</span>
38
+ <span class="coordinate coordinate-b">DRAFT / NOINDEX</span>
39
+ </div>
40
+ </div>
41
+ </section>
@@ -0,0 +1,19 @@
1
+ ---
2
+ interface Props {
3
+ data: { eyebrow?: string; heading: string; intro: string; items: string[] };
4
+ }
5
+ const { data } = Astro.props;
6
+ ---
7
+
8
+ <section class="section-shell paper-section">
9
+ <div class="container split-heading">
10
+ <div>
11
+ {data.eyebrow && <p class="eyebrow">{data.eyebrow}</p>}
12
+ <h2>{data.heading}</h2>
13
+ </div>
14
+ <p class="section-intro">{data.intro}</p>
15
+ </div>
16
+ <div class="container ruled-list">
17
+ {data.items.map((item, index) => <article><span>0{index + 1}</span><p>{item}</p></article>)}
18
+ </div>
19
+ </section>
@@ -0,0 +1,15 @@
1
+ ---
2
+ interface Props {
3
+ data: { heading: string; stats: Array<{ value: string; label: string }> };
4
+ }
5
+ const { data } = Astro.props;
6
+ ---
7
+
8
+ <section class="proof-band">
9
+ <div class="container">
10
+ <p class="proof-heading">{data.heading}</p>
11
+ <div class="proof-grid">
12
+ {data.stats.map((stat) => <div><strong>{stat.value}</strong><span>{stat.label}</span></div>)}
13
+ </div>
14
+ </div>
15
+ </section>
@@ -0,0 +1,22 @@
1
+ ---
2
+ import Hero from './Hero.astro';
3
+ import Problem from './Problem.astro';
4
+ import Proof from './Proof.astro';
5
+ import Solution from './Solution.astro';
6
+ import Evidence from './Evidence.astro';
7
+ import Action from './Action.astro';
8
+
9
+ interface Props {
10
+ section: Record<string, unknown> & { type: string };
11
+ pageH1?: string;
12
+ }
13
+
14
+ const { section, pageH1 } = Astro.props;
15
+ ---
16
+
17
+ {section.type === 'hero' && <Hero data={section as any} pageH1={pageH1} />}
18
+ {section.type === 'problem' && <Problem data={section as any} />}
19
+ {section.type === 'proof' && <Proof data={section as any} />}
20
+ {section.type === 'solution' && <Solution data={section as any} />}
21
+ {section.type === 'evidence' && <Evidence data={section as any} />}
22
+ {section.type === 'action' && <Action data={section as any} />}