Skip to content

Commit 26bb9b1

Browse files
jesseouecursoragent
andcommitted
feat: add agent-ready install prompts
Add prompt packs and context files for coding agents so API SaaS infrastructure installs can be dry-run, reviewed, and verified as editable source. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent bd0de8a commit 26bb9b1

33 files changed

Lines changed: 440 additions & 26 deletions

AGENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ StackFoundry is a public source registry for production SaaS modules. The sharp
1616
- Current source shape: `registry/modules`, `registry/presets`, `registry/recipes`, and `registry/skills`.
1717
- Public generated output lives in `public/r` and `apps/web/public/r`; never edit generated registry output by hand.
1818
- Shared provider/framework/database/platform guidance belongs in `registry/skills/<name>/SKILL.md` and is installed to `.stackfoundry/skills/<name>/SKILL.md`.
19+
- Agent-ready install prompts and context belong in installable modules such as `agent-ready-installs`; keep them tool-compatible and safe for Cursor, Codex, Claude, and similar coding agents.
1920
- The hosted web app is Next.js on Vercel. Cloudflare support is an installable registry starter for consuming apps, not this repo's default deployment path.
2021

2122
## Quality Gates

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
- Added an installable `cloudflare-next-starter` module for consuming apps while keeping StackFoundry itself on the standard Next.js/Vercel path.
1010
- Added Vercel AI building blocks: `ai-sdk`, `ai-elements`, and `ai-chatbot-sdk`.
1111
- Added `cloudflare-kumo-ui` as an optional Cloudflare UI building-block module.
12+
- Added `agent-ready-installs` with prompt packs and context files for Cursor, Codex, Claude, and similar coding agents.
1213
- Added docs for recipes, install order, readiness, conventions, and a mirrored docs changelog.
1314
- Added OpenSSF Scorecard scanning and private vulnerability reporting links.
1415

README.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ shadcn for production SaaS systems.
99
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)
1010
![Next.js](https://img.shields.io/badge/Next.js-16-black)
1111
![Vercel](https://img.shields.io/badge/deploy-Vercel-black)
12-
![Modules](https://img.shields.io/badge/modules-155-orange)
12+
![Modules](https://img.shields.io/badge/modules-156-orange)
1313
![Recipes](https://img.shields.io/badge/recipes-9-purple)
1414
![Presets](https://img.shields.io/badge/presets-13-teal)
1515
![Inspired by shadcn](https://img.shields.io/badge/inspired%20by-shadcn-111111)
@@ -18,6 +18,8 @@ StackFoundry is a public source registry for the production systems SaaS teams r
1818

1919
Modules install as source files in your app. You review the code, own the code, and keep the maintenance context that ships with it.
2020

21+
StackFoundry installs are also coding-agent-ready: Cursor, Codex, Claude, and similar tools can inspect recipes, dry-run installs, review generated diffs, and follow included prompt packs.
22+
2123
> [!IMPORTANT]
2224
> The registry is the product. Modules are the unit of value. Recipes are the guided path. Presets are convenience bundles.
2325
@@ -43,6 +45,7 @@ pnpm stackfoundry add recipe api-saas-starter --target ./my-app
4345
The API SaaS recipe installs the path most developer tools, AI APIs, data APIs, and B2B platforms need first:
4446

4547
- API key lifecycle and verification
48+
- agent-ready prompt packs for Cursor, Codex, Claude, and similar tools
4649
- usage metering, quotas, and rate limits
4750
- credit wallet and Stripe billing foundations
4851
- webhook inbox and outbound delivery
@@ -81,6 +84,7 @@ Every module is expected to include:
8184
- setup, ownership, and deployment docs
8285
- verification checklists
8386
- maintenance skills under `.stackfoundry/skills`
87+
- prompt packs and context files for agent-ready install/review workflows when needed
8488
- install metadata for future diff/update safety
8589

8690
## Registry Coverage
@@ -93,7 +97,7 @@ Current source registry coverage:
9397
| Database | `drizzle-postgres`, `drizzle-relations`, `neon-postgres`, `supabase-postgres`, `cloudflare-d1` |
9498
| Auth and tenancy | `clerk-auth`, `orgs-rbac`, `account-modes`, `invites`, `enterprise-sso`, `scim-provisioning` |
9599
| Billing | `stripe-billing`, `billing-core`, `entitlements`, `credit-wallet`, `one-time-purchases`, `tax-vat` |
96-
| API product | `api-keys`, `public-api-orpc`, `webhook-inbox`, `webhook-delivery`, `api-docs` |
100+
| API product | `api-keys`, `agent-ready-installs`, `public-api-orpc`, `webhook-inbox`, `webhook-delivery`, `api-docs` |
97101
| Operations | `audit-log`, `background-jobs`, `system-health`, `incident-management`, `status-page`, `oncall-alerting` |
98102
| Analytics and growth | `posthog-analytics`, `tinybird-analytics`, `feature-flags`, `experiments`, `lifecycle-email` |
99103
| Notifications and comms | `notifications`, `notification-center`, `knock-notifications`, `resend-email`, `product-announcements` |
@@ -105,7 +109,7 @@ Current source registry coverage:
105109
<details>
106110
<summary>Current scale</summary>
107111

108-
- 155 ready module manifests
112+
- 156 ready module manifests
109113
- 36 canonical categories
110114
- 13 preset bundles
111115
- 9 architecture recipes
@@ -121,6 +125,16 @@ The public hierarchy is intentionally simple:
121125
- Recipes explain the install path and order.
122126
- Presets are bundles for convenience.
123127

128+
## Agent-Ready Installs
129+
130+
The `agent-ready-installs` module adds prompt packs and context files for Cursor, Codex, Claude, and other coding agents:
131+
132+
```bash
133+
pnpm stackfoundry add agent-ready-installs --target ./my-app --dry-run
134+
```
135+
136+
It gives agents a safe workflow for inspecting recipes, dry-running installs, reviewing diffs, checking env notes, and verifying the target app after source lands.
137+
124138
## Recipes
125139

126140
Recipes are opinionated install paths that explain what to install together and in what order.

apps/web/app/ai-seo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function renderLlmsFullTxt() {
5454
)
5555
.join("\n\n");
5656

57-
return `# StackFoundry Full AI Context\n\nStackFoundry helps teams install production SaaS systems as editable source code. The sharp wedge is API SaaS: API keys, usage tracking, quotas, credits, Stripe billing, docs, webhooks, and request visibility.\n\n${pages}\n\n## Coverage\n\nStackFoundry covers foundation, database, auth and tenancy, billing, API products, operations, observability, analytics and growth, docs, SEO, support, security, storage, deployment, provider adapters, and optional AI modules.\n\n## Positioning\n\nUse StackFoundry when a team wants production SaaS capabilities without adopting a black-box starter. The installed code belongs to the target repository and can be edited, reviewed, diffed, migrated, and removed like normal source.\n`;
57+
return `# StackFoundry Full AI Context\n\nStackFoundry helps teams install production SaaS systems as editable source code. The sharp wedge is API SaaS: API keys, usage tracking, quotas, credits, Stripe billing, docs, webhooks, and request visibility. Agent-ready installs include prompt packs and context files for Cursor, Codex, Claude, and similar coding agents.\n\n${pages}\n\n## Coverage\n\nStackFoundry covers foundation, database, auth and tenancy, billing, API products, operations, observability, analytics and growth, docs, SEO, support, security, storage, deployment, provider adapters, agent-ready install workflows, and optional AI modules.\n\n## Positioning\n\nUse StackFoundry when a team wants production SaaS capabilities without adopting a black-box starter. The installed code belongs to the target repository and can be edited, reviewed, diffed, migrated, and removed like normal source.\n`;
5858
}
5959

6060
export function getAiSitemap() {

apps/web/app/docs/page.tsx

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ const pathCards = [
5151
"webhook-delivery",
5252
],
5353
},
54+
{
55+
title: "Agent-ready installs",
56+
eyebrow: "Cursor, Codex, Claude",
57+
body: "Use agent-ready-installs when a coding agent should inspect recipes, run dry-runs, review diffs, and follow safe infrastructure install prompts.",
58+
modules: ["agent-ready-installs", "api-saas-starter", "api-keys", "usage-metering"],
59+
},
5460
{
5561
title: "Auth: choose the boundary first",
5662
eyebrow: "default path",
@@ -154,8 +160,10 @@ const moduleGroups = [
154160
},
155161
{
156162
category: "API product",
157-
summary: "Developer-facing APIs, keys, webhooks, docs, and usage visibility.",
163+
summary:
164+
"Developer-facing APIs, keys, agent-ready prompts, webhooks, docs, and usage visibility.",
158165
modules: [
166+
"agent-ready-installs",
159167
"api-keys",
160168
"unkey-api-keys",
161169
"api-docs",
@@ -239,6 +247,7 @@ const moduleGroups = [
239247
];
240248

241249
const moduleMeta: Record<string, { tone: string; domain?: string }> = {
250+
"agent-ready-installs": { tone: "api" },
242251
"next-saas-shell": { tone: "foundation", domain: "nextjs.org" },
243252
"drizzle-postgres": { tone: "database", domain: "drizzle.team" },
244253
"drizzle-relations": { tone: "database", domain: "drizzle.team" },
@@ -494,7 +503,7 @@ export default function DocsPage() {
494503
</div>
495504
<div className="docs-side-section">
496505
<h4>
497-
Registry <strong>155</strong>
506+
Registry <strong>156</strong>
498507
</h4>
499508
{moduleGroups.slice(0, 7).map((group) => (
500509
<a href="#module-catalog" key={group.category}>
@@ -754,7 +763,7 @@ $ pnpm stackfoundry recipe api-saas-starter`}</CodeBlock>
754763
<a href="#safety">Safety</a>
755764
<div className="docs-toc-meta">
756765
<span>Registry-first</span>
757-
<span>155 modules</span>
766+
<span>156 modules</span>
758767
<a href="https://github.com/jesseoue/stackfoundry">GitHub →</a>
759768
</div>
760769
</aside>

apps/web/app/page.tsx

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type LandingModuleCard = {
2222
};
2323

2424
const stats = [
25-
{ value: "155", label: "Modules" },
25+
{ value: "156", label: "Modules" },
2626
{ value: "13", label: "Presets" },
2727
{ value: "36", label: "Categories" },
2828
{ value: "MIT", label: "License" },
@@ -77,6 +77,24 @@ const moduleCards: LandingModuleCard[] = [
7777
],
7878
},
7979
},
80+
{
81+
name: "agent-ready-installs",
82+
title: "Agent-Ready Installs",
83+
category: "developer platform",
84+
version: "ready",
85+
description:
86+
"Prompt packs and context files for Cursor, Codex, Claude, and other coding agents to install infra safely.",
87+
tags: [
88+
{ label: "agent-ready", tone: "accent" },
89+
{ label: "prompts", tone: "success" },
90+
{ label: "Cursor/Codex/Claude", tone: "provider" },
91+
{ label: "review workflow", tone: "skill" },
92+
],
93+
footer: {
94+
summary: "4 files · prompts · context JSON",
95+
actions: [{ label: "json", href: "/r/agent-ready-installs.json" }],
96+
},
97+
},
8098
{
8199
name: "api-keys",
82100
title: "API Keys",
@@ -273,7 +291,7 @@ const commandRows: Array<{
273291

274292
const presetRows = [
275293
["api-saas-starter", "API-first SaaS", "Keys, usage, credits, billing, webhooks"],
276-
["developer-platform", "Devtools", "Keys, docs, public APIs, usage"],
294+
["agent-ready-installs", "Coding agents", "Prompts, context, dry-run review"],
277295
["b2b-saas", "Team products", "RBAC, invites, audit, SSO, SCIM"],
278296
["internal-admin", "Operators", "Support, health, incidents, backups"],
279297
["ai-saas", "AI products", "Chat, model routing, quotas, metering"],
@@ -282,7 +300,7 @@ const presetRows = [
282300
const assuranceRows = [
283301
{
284302
title: "What installs?",
285-
body: "Source files, route shells, helpers, schema slices, docs, maintenance skills, and verification checklists.",
303+
body: "Source files, route shells, helpers, schema slices, prompts, docs, maintenance skills, and verification checklists.",
286304
},
287305
{
288306
title: "What stays out?",

apps/web/app/registry/page.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ const featuredPresets = [
3636
{
3737
name: "developer-platform",
3838
title: "Developer Platform",
39-
description: "API keys, public API surfaces, webhook delivery, usage, and developer docs.",
40-
modules: ["api-keys", "unkey-api-keys", "webhook-inbox", "api-docs", "sdk-snippets"],
39+
description: "API keys, agent-ready installs, public API surfaces, webhooks, usage, and docs.",
40+
modules: ["api-keys", "agent-ready-installs", "webhook-inbox", "api-docs", "usage-metering"],
4141
tone: "API",
4242
},
4343
{
@@ -167,6 +167,7 @@ const moduleFamilies = [
167167
description:
168168
"The strongest wedge: keys, rate limits, usage, credits, public APIs, webhooks, and docs.",
169169
modules: [
170+
"agent-ready-installs",
170171
"api-keys",
171172
"unkey-api-keys",
172173
"unkey-rate-limits",
@@ -335,7 +336,7 @@ const providerOptions = [
335336
];
336337

337338
const stats = [
338-
["155", "Module manifests"],
339+
["156", "Module manifests"],
339340
["13", "Preset bundles"],
340341
["9", "Recipes"],
341342
["17", "Provider cards"],
@@ -449,7 +450,7 @@ pnpm stackfoundry diff api-keys --target ./my-app`}</code>
449450
<p>
450451
Recipes document the recommended install order for complete SaaS workflows. The
451452
sharpest path is API SaaS: keys, usage, rate limits, credits, billing, docs, webhooks,
452-
and visibility.
453+
visibility, and agent-ready install prompts.
453454
</p>
454455
</div>
455456

docs/changelog.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ This page mirrors the release changelog and keeps the latest public registry cha
1111
3. Added an installable `cloudflare-next-starter` module for consuming apps while keeping StackFoundry itself on the standard Next.js/Vercel path.
1212
4. Added Vercel AI building blocks: `ai-sdk`, `ai-elements`, and `ai-chatbot-sdk`.
1313
5. Added `cloudflare-kumo-ui` as an optional Cloudflare UI building-block module.
14-
6. Added docs for recipes, install order, readiness, conventions, and this mirrored changelog.
15-
7. Added OpenSSF Scorecard scanning and private vulnerability reporting links.
14+
6. Added `agent-ready-installs` with prompt packs and context files for Cursor, Codex, Claude, and similar coding agents.
15+
7. Added docs for recipes, install order, readiness, conventions, and this mirrored changelog.
16+
8. Added OpenSSF Scorecard scanning and private vulnerability reporting links.
1617

1718
### Changed
1819

docs/index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@
1818
2. Dry-run the full path: `pnpm stackfoundry add recipe api-saas-starter --target ./my-app --dry-run`.
1919
3. Read the [Registry](./registry.md), [Recipes](./recipes.md), and [Install order](./install-order.md) docs.
2020
4. Inspect the first modules in `registry/modules`: `api-keys`, `usage-metering`, `credit-wallet`, `stripe-billing`, and `webhook-delivery`.
21-
5. Run `pnpm registry:doctor`.
22-
6. Use [Readiness](./readiness.md) and [Conventions](./conventions.md) before adding new modules.
21+
5. Add agent-ready prompts when you want Cursor, Codex, Claude, or another coding agent to drive the install: `pnpm stackfoundry add agent-ready-installs --target ./my-app --dry-run`.
22+
6. Run `pnpm registry:doctor`.
23+
7. Use [Readiness](./readiness.md) and [Conventions](./conventions.md) before adding new modules.

docs/install-order.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@ The practical first command is:
88
pnpm stackfoundry add recipe api-saas-starter --target ./my-app --dry-run
99
```
1010

11+
## Agent Workflow
12+
13+
```text
14+
agent-ready-installs
15+
-> inspect recipe
16+
-> dry-run install
17+
-> review diff
18+
-> verify target app
19+
```
20+
1121
## Foundation
1222

1323
```text

0 commit comments

Comments
 (0)