Saas setup stack

From Basinfy/Basinfy-SaaS-Studio · View interactive version

Saas setup stack is an AI agent skill from the GitHub repository Basinfy/Basinfy-SaaS-Studio. Configure SaaS stack (Golden Stack for founders or custom Next.js/FastAPI/Go/Cloudflare).

How to use this skill

Skill file

Engine Setup

Locale & User Profile: Match locale (pt-BR → natural Brazilian Portuguese questions/options, overriding English examples; en → English) and user_profile (founder → plain business language with (Recomendado) first, zero tech jargon; developer → technical). Keep code/tests in English.

When this skill is invoked:

!bash "${CLAUDE_SKILL_DIR}/../../hooks/yaml-helper.sh" resolve_config --keys locale,workflow

Tier awareness. The workflow tier resolved above governs which design

artifact this skill expects and the finish path it recommends in §12:

(no PRDs, systems decomposition, or per-system design at this tier).

/saas-setup-stack runs first in the minimal path, so a missing brief here is

normal, not a gap. The finish path is the 4-step floor.

and the finish path is the full pipeline.

If the block did not render (shell preprocessing disabled), assume minimal (the default).

1. Parse Arguments

Four modes:


2. Guided Mode (No Arguments)

Read references/2-guided-mode.md now and follow it — this phase's steps are in that file, not here. Read it again if the conversation was compacted or resumed during this phase.

3. Look Up Current Version

Read references/3-version.md now and follow it — this phase's steps are in that file, not here. Read it again if the conversation was compacted or resumed during this phase.

4. Update CLAUDE.md Technology Stack

Read references/4-claude-md-stack.md now and follow it — this phase's steps are in that file, not here. Read it again if the conversation was compacted or resumed during this phase.

5. Populate Technical Preferences

Read references/5-technical-preferences.md now and follow it — this phase's steps are in that file, not here. Read it again if the conversation was compacted or resumed during this phase.

5.5 Populate `project.yaml` (Primary Config Store)

Read references/5.5-project-yaml.md now and follow it — this phase's steps are in that file, not here. Read it again if the conversation was compacted or resumed during this phase.

6. Determine Knowledge Gap

Read references/6-knowledge-gap.md now and follow it — this phase's steps are in that file, not here. Read it again if the conversation was compacted or resumed during this phase.

7. Populate Engine Reference Docs

Read references/7-reference-docs.md now and follow it — this phase's steps are in that file, not here. Read it again if the conversation was compacted or resumed during this phase.

7.5 Scaffold the Engine Project

Read references/7.5-scaffold.md now and follow it — this phase's steps are in that file, not here. Read it again if the conversation was compacted or resumed during this phase.

8. Verify the CLAUDE.md Import

Read references/8-verify.md now and follow it — this phase's steps are in that file, not here. Read it again if the conversation was compacted or resumed during this phase.

9. Update Agent Instructions

Ask: "May I add a Version Awareness section to the stack specialist agent files?" before making any edits.

For the chosen engine's specialist agents, verify they have a

"Version Awareness" section. If not, add one following the pattern in

the existing Next.js specialist agents.

The section should instruct the agent to:

  1. Read docs/engine-reference/<engine>/VERSION.md
  2. Check deprecated APIs before suggesting code
  3. Check breaking changes for relevant version transitions
  4. Use WebSearch to verify uncertain APIs

10. Refresh Subcommand

If invoked as /saas-setup-stack refresh:

  1. Read the existing docs/engine-reference/<engine>/VERSION.md to get

the current engine and version

  1. Use WebSearch to check for:
  1. Update all reference docs with new findings
  2. Update "Last verified" dates on all modified files
  3. Report what changed

11. Upgrade Subcommand

Read references/11-upgrade.md now and follow it — this phase's steps are in that file, not here. Read it again if the conversation was compacted or resumed during this phase.

12. Output Summary

Read references/12-output-summary.md now and follow it — this phase's steps are in that file, not here. Read it again if the conversation was compacted or resumed during this phase.

Guardrails

config to BOTH project.yaml (primary) and technical-preferences.md (legacy

mirror). If the two ever diverge, project.yaml is authoritative.


Appendix A — Next.js Language Configuration

Moved out of this file so it costs nothing on non-Next.js runs.

When the chosen engine is Next.js, read

references/nextjs-language-config.md

and use the subsection for the chosen language:

Load discipline. On any engine other than Next.js, never load it — nothing in Sections 4, 5 or 5.5 needs it, and reading it anyway spends the tokens the split exists to save. On Next.js, read it once when you first reach Section 4 and keep using it for Sections 5 and 5.5; do not re-read it at each reference.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.