Skip to content

sf status ​

Report the current SaaSFoundryAI project state and workflow preconditions (manifest, workflow, SRS module, git, optional GitHub CLI).

Usage ​

bash
sf status [--json] [--agent-friendly | --claude-friendly] [--check-gh] [--no-network]

Options ​

FlagDescriptionDefault
--jsonMachine-readable JSON report (fails with exit code 1 on any fail check)-
--agent-friendlyMarkdown report for initialization in any agent host (exit code 0)-
--claude-friendlyCompatible alias for --agent-friendly; existing hooks keep working-
--no-networkSkip network-dependent checks-
--check-ghProbe for gh (GitHub CLI) availability in $PATHoff

Preconditions ​

Configuration ​

What the manifest declares, and whether the tooling around it is wired up.

NameChecks
manifest.saasfoundry.json exists at the project root
workflowworkflow.tool is set (non-none)
srstools.srs.enabled with a rootPage configured (skipped when SRS is not installed)
gitProject is a git repo and the working tree is clean
ghGitHub CLI available in $PATH (only when --check-gh is passed)

Runtime ​

Whether the project can actually run, which a well-formed manifest says nothing about. A project can be perfectly configured and still have no node_modules, no database answering, and no ORM client generated — and until these existed, sf status reported it as healthy.

NameChecks
dependenciesThe root workspace in a monorepo, api and web otherwise
databaseSomething answers on the port the manifest records. Skipped when the project does not host its own database, and when --no-network is passed
ormClientThe generated Prisma client is present under the API

All three are skipped on a project that is not a generated one — the CLI's own repository, for instance.

When any of them fails, sf resume is what finishes the job.

Examples ​

bash
# Human-readable status (default)
sf status
bash
# Machine-readable JSON — suitable for scripts
sf status --json
bash
# Explicit initialization in any coding agent
sf status --agent-friendly --no-network

Exit codes ​

  • 0 — All preconditions pass, or either friendly flag was used (both preserve the hook-compatible non-failing exit behavior)
  • 1 — At least one precondition has status fail (default or --json output)

Friendly output can contain failing preconditions even though its process exits successfully. The agent must read and act on those checks. When --json and either friendly flag are combined, JSON output wins and the friendly exit behavior is retained, matching the legacy alias.

The listed skills are filesystem inventory; this report does not prove native skill discovery or hook execution. Use sf agents doctor to distinguish artifact checks from host capabilities.

See also ​

  • sf new — Create a new project (resolves a missing manifest)
  • sf update — Install additional modules (resolves missing SRS setup)
  • sf workflow — Configure the workflow tool

Released under the MIT License.