Saas help

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

Saas help is an AI agent skill from the GitHub repository Basinfy/Basinfy-SaaS-Studio. What should I do next? Use when stuck or you don't know what to do.

How to use this skill

Skill file

Studio Help — What Do I Do Next?

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.

This skill is read-only — it reports findings but writes no files.

This skill figures out exactly where you are in the SaaS product engineering pipeline and

tells you what comes next. It is lightweight — not a full audit. For a full

gap analysis, use /saas-project-stage-detect.

Live Project State

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

These are resolved before this skill runs. Use them as-is:

— it already applies the project.yaml → production/stage.txt fallback, and

preserves values containing spaces (Systems Design).

defaults in .claude/docs/config-resolution.md.


Step 1: Read the Catalog

Read .claude/docs/workflow-catalog.yaml. This is the authoritative list of all

phases, their steps (in order), whether each step is required or optional, and

the artifact globs that indicate completion.


Step 1b: Find Additional Workflows

After reading the catalog, Glob .claude/skills/*/SKILL.md to get the full list

of installed skills. For each file, extract the name: field from its frontmatter.

Compare against the command: values in the catalog. Any skill whose name does

not appear as a catalog command is an additional workflow available outside

the phase ladder. Use studio-tests/catalog.yaml for the full skill inventory.

Collect these for the output in Step 7 — show them as a footer block:

### Also installed (not in workflow)
- `/skill-name` — [description from SKILL.md frontmatter]
- `/skill-name` — [description]

Only show this block if at least one additional workflow applies. Limit to the 10

most relevant based on the user's current phase (QA skills in production, team

skills in production/polish, etc.).


Step 2: Determine Current Phase

First, take workflow from the config block above. If it is minimal, the

project is on the minimal path, not the phase ladder: skip the rest of this step,

read the session context (Step 3), then go to Step 4m. At that tier, do

not map project.stage — nothing on the minimal path runs /saas-gate-check, so

the stage reads Concept however far the

project has got, and walking the Concept phase would send a project that already

has stories back to the concept doc, design tokens and features map.

Otherwise, check in this order:

  1. Take project.stage from the config block above — it is already resolved. Map its value to a catalog phase key:
  1. If neither is set, infer phase from artifacts (most-advanced match wins):
  1. workflow was taken at the top of this step (per

.claude/docs/workflow-modes.md). It controls whether optional docs are

surfaced as next steps (Step 5).


Step 3: Read Session Context

Read production/session-state/active.md if it exists — but only its STATUS

and CHECKPOINT blocks (schema: .claude/docs/templates/session-state.md); the

narrative below them can be long. Find the markers

(Grep pattern="<!-- /?(STATUS|CHECKPOINT) -->" path="production/session-state/active.md" output_mode="content" -n)

and Read from the first to the last. A file with no markers predates the schema: read its

last ## Session Extract block instead. Extract:

This tells you what the user just finished or is stuck on — use it to personalize

the output. It runs at every tier: at minimal it is the only read of the

checkpoint Step 4m relies on (a checkpoint saying "Next step: /saas-story-done" means

the work is written). From here, minimal goes to Step 4m, not Step 4.


Step 4: Check Step Completion for the Current Phase

For each step in the current phase (from the catalog):

Artifact-based checks

Resolve these deterministically — one call, not a glob per step:

Bash: bash .claude/scripts/artifact-check.sh --phase [current-phase]

Run it exactly as written, here and below: from the project root, with the

relative path — no absolute path, no cd, no 2>&1. This skill's permission

grant matches that form; any other asks the user to approve it.

It evaluates every glob, pattern, min_count and any_of in the catalog

against the working tree and reports one line per step. Map its statuses:

| status | Report as |

|---|---|

| PRESENT | Complete |

| ABSENT | Incomplete |

| SHORT | Incomplete — say how far short (count=/min= are given) |

| PATTERN_MISS | Incomplete — the file exists but lacks its marker; say so, since "missing" would send the user to recreate a file they already have |

| NO_CHECK | MANUAL if the step carries a note=, else UNKNOWN — completion is not trackable (e.g. repeatable implementation work) |

Prefer the helper. If shell execution is unavailable or denied, use native file reads and globs to evaluate the selected path or phase against the same catalog. An any_of step is satisfied when one alternative matches. Distinguish an empty match from a search you could not perform. Report checks you could not complete as UNKNOWN, and disclose that you used native file tools.

NO_CHECK never means done. The script prints a NO_CHECK: total before the

rows; if most of a phase is NO_CHECK, say that plainly rather than implying the

phase is nearly complete.

Special case: production phase — read `sprint-status.yaml`

When the current phase is production, check for production/sprint-status.yaml

before doing any glob-based story checks. If it exists, read it directly:

This gives precise per-story status without markdown scanning. Skip the glob

artifact check for the implement and story-done steps — the YAML is authoritative.

Special case: `repeatable: true` (non-production)

For repeatable steps outside production (e.g. "System PRDs"), the artifact

check tells you whether any work has been done, not whether it's finished.

Label these differently — show what's been detected, then note it may be ongoing.


Step 4m: The Minimal Path (`workflow: minimal` only)

At minimal the route is the catalog's paths.minimal, not a phase: engine →

design/product-brief.md → stories → /saas-dev-story ↔ /saas-story-done. Resolve it in

one call:

Bash: bash .claude/scripts/artifact-check.sh --path minimal

Map the statuses exactly as in Step 4, including its fallback when the helper cannot run. implement and story-done are

NO_CHECK by design — the story status lines below are their check. The next

step is the first of these that applies:

  1. stack-setup not PRESENT → /saas-setup-stack
  2. product-brief not PRESENT → /saas-reverse-document design [code root] when the

code root already holds the application (10 or more source files, the test Step 2

uses for production): at minimal it writes design/product-brief.md from

what is built. Otherwise /saas-brainstorm (at minimal it writes the one-page

brief), which on a built product would start a new idea.

  1. create-stories not PRESENT → /saas-create-stories with no argument (at

minimal it builds the stories straight from the brief's MVP list)

  1. Stories exist → the list below was printed by .claude/scripts/story-status.sh

before you read this skill: one line per unfinished story, **already in

the route's order** — IN_REVIEW, then IN_PROGRESS, then TODO (a

Ready or Not Started story) in build order — then BLOCKED, OTHER,

NO_STATUS and the COMPLETE count:

!bash "${CLAUDE_SKILL_DIR}/../../scripts/story-status.sh"

**Next up is the story on the first IN_REVIEW, IN_PROGRESS or TODO

line.** The list is already current; do not run the script again, and do

not re-read or re-rank the story files:

an In Review story is closed before an In Progress one continues — its

work is written, and /saas-story-done is quick.

/saas-story-done [path]

suggest, only /saas-story-done makes a story Complete. Recommend

/saas-story-done [path] only if the user, active.md or the git log says

its implementation is written; otherwise /saas-dev-story [path] to carry on

NO_STATUS lines remain** → nothing can be built next, and the build

order is not done. Name each of those stories with its status as

written, and a blocked story's blocker (read it from that story's file).

Next up is clearing the first of them: resolve its blocker, or give an

OTHER or NO_STATUS story a Status: line the route reads (Ready

once it can be built)

Say so, and offer three ways on: play the build; add the next stories from

the brief with /saas-create-stories; or, if the product has outgrown a one-page

brief, /saas-settings to raise modes.rigor.

At minimal, never present any of these as required or as a blocker: the

product concept doc, design tokens, features map, PRDs, /saas-create-epics, a sprint plan,

/saas-gate-check, or sprint close-out (/saas-smoke-check, /saas-team-qa,

/saas-retrospective). The brief replaces the design docs and its build order

replaces the sprint plan (.claude/docs/workflow-modes.md — minimal floor).

Every one of them still runs if the user asks for it; mention one only when the

user's argument asks about it.

Then skip Steps 5 and 8, and present with the minimal shape in Step 7.


Step 5: Find Position and Identify Next Steps

From the completion data, determine:

  1. Last confirmed complete step — the furthest completed required step
  2. Current blocker — the first incomplete required step (this is what the

user must do next)

  1. Optional opportunities — incomplete optional steps that can be done

before or alongside the blocker. Surface these per the workflow tier: at

full, list all of them; at standard, list an optional doc only if it is

required for the current system/phase (do not flag genuinely-optional docs as

gaps). At minimal this step does not run — Step 4m replaces it

  1. Upcoming required steps — required steps after the current blocker

(show as "coming up" so user can plan ahead)

If the user provided an argument (e.g. "just finished design-review"), use that

to advance past the step they named even if the artifact check is ambiguous.


Step 6: Check for In-Progress Work

If active.md shows an active task or epic:


Step 7: Present Output

Keep it short and direct. This is a quick orientation, not a report.

## Where You Are: [Phase Label]

**In progress:** [from active.md, if any]

### ✓ Done
- [completed step name]
- [completed step name]

### → Next up (REQUIRED)
**[Step name]** — [description]
Command: `[/command]`

### ~ Also available (OPTIONAL)
- **[Step name]** — [description] → `/command`
- **[Step name]** — [description] → `/command`

### Coming up after that
- [Next required step name] (`/command`)
- [Next required step name] (`/command`)

---
Approaching **[next phase]** gate → run `/saas-gate-check` when ready.

At minimal use this shape instead — no phase label, no gate line. N

counts only stories whose status line says Complete or Done, and only those

go under ✓ Done. N and M are the two numbers on the COMPLETE line; it

names no finished story, so ✓ Done gives their count, not their titles:

## Where You Are: Minimal path — [N] of [M] stories complete

**In progress:** [from active.md, if any]

### ✓ Done
- Engine: [engine] · Product brief · [N] stories

### → Next up
**[Story NNN: title]** — [what it delivers]
Command: `/saas-story-done [story-path]` for an In Review story, or an In Progress one whose work is written; otherwise `/saas-dev-story [story-path]`

### Coming up after that
- [the next Ready stories in build order, at most 3]

Formatting rules:

Verdict: COMPLETE — next steps identified.


Step 8: Gate Warning (if close)

Skip this step at minimal — the minimal path has no phase gates.

After the current phase's steps, check if the user is likely approaching a gate:

add: "You're close to the [Current] → [Next] gate. Run /saas-gate-check when ready."


Step 9: Escalation Paths

After the recommendations, if the user seems stuck or confused, add:

---
Need more detail?
- `/saas-project-stage-detect` — full gap analysis with all missing artifacts listed
- `/saas-gate-check` — formal readiness check for your next phase
- `/saas-start` — re-orient from scratch
- `/saas-settings` — if the process feels mismatched to your project, adjust
  `modes.rigor`. Apply the change-triggers in
  `.claude/docs/settings-guidance.md § 4`: a **lower** tier when the user sounds
  overwhelmed by process (and rigor isn't already `minimal`), or a **higher** tier
  when the project has outgrown it (many systems, or in Production on
  `workflow: minimal`)

Only show this if the user's input suggested confusion (e.g. "I don't know", "stuck",

"lost", "not sure"). Don't show it for simple "what's next?" queries. Show the

/saas-settings rigor line only when a settings-guidance.md § 4 trigger actually

fires — the user sounds overwhelmed (and rigor isn't already minimal), or the

project has outgrown its tier — not on every confused query. At minimal, leave

out the /saas-gate-check line: the minimal path has no phase gates (Step 4m).


Collaborative Protocol

reassuring and give one action, not a list of six.

to do next. Optional steps and "coming up" are secondary context.

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.