Skip to content

Workflows

The Booking Platform project uses Windsurf global workflows for automated analysis, review, and reporting. This page documents the workflows used and their report output formats.

Analyze Workflows

Analyze workflows inspect the codebase and produce structured reports. All reports use /report-format-table for tabular output.

WorkflowPurposeReport Format
/analyze-projectProject structure, patterns, foundation qualityTable with 19 categories
/analyze-featuresFeature inventory and coverageTable with category, status, description
/analyze-code-qualityOrchestrates all analyze-* sub-workflowsAggregated table
/analyze-structureFile and folder structure analysisTree view + table
/analyze-foundationType safety, code quality, state managementTable with 19 categories
/analyze-runtimeError, async, concurrency, logging patternsTable with 8 categories
/analyze-securityOWASP, auth flaws, injection, secretsTable with severity ratings
/analyze-databaseSchema, migrations, indexes, query patternsTable with integrity checks
/analyze-apiAPI design, conventions, versioning, errorsTable with API categories
/analyze-dependenciesDependency graph, outdated, vulnerabilitiesTable with risk levels
/analyze-testTest coverage, quality, patterns, E2E gapsTable with coverage metrics
/analyze-performanceRendering, scalability, caching bottlenecksTable with metrics
/analyze-configConfig files, env vars, secrets exposureTable with consistency checks
/analyze-deploymentCI/CD pipeline, Dockerfile, rollback strategyTable with deployment checks
/analyze-documentationREADME, API docs, JSDoc, changelog coverageTable with doc coverage
/analyze-monitoringObservability, tracing, metrics, alertingTable with monitoring gaps
/analyze-dead-codeUnused exports, unreachable code, orphaned filesTable with file list
/analyze-seoMeta tags, structured data, sitemap, Core Web VitalsTable with SEO score
/analyze-uxuiUsability gaps, user experience, design trendsTable with UX categories

Report Output Example

| Category | Status | Details | Action |
|----------|--------|---------|--------|
| Type Safety | ✅ Pass | strict mode enabled | None |
| Code Quality | ⚠️ Warning | 3 files > 250 lines | Refactor needed |
| Security | ❌ Fail | Hardcoded API key | Fix immediately |

Review Workflows

Review workflows produce detailed findings with severity ratings and actionable recommendations using /report-review format.

WorkflowPurposeReport Format
/deep-reviewComprehensive review across all dimensionsSeverity-rated findings table
/review-codebase-and-fixDeep review and fix issues foundBefore-after comparison table
/review-architectureArchitecture and design pattern reviewTable with architecture scores
/review-bug-proneReview bug-prone code before issues occurTable with risk levels
/review-prPR review before mergeChecklist + findings table
/review-test-caseTest case quality reviewTable with test metrics
/review-test-resultTest execution result analysisTable with pass/fail counts
/review-release-versionVersion and changelog review before releaseTable with version checks
/review-github-issueGitHub issue analysisTable with issue breakdown
/review-issue-and-fixAnalyze and fix general issuesTable with fix status

Severity Levels

SeverityDescriptionAction Required
CriticalSecurity vulnerabilities, data loss risksFix immediately
HighBugs, performance issues, broken featuresFix before merge
MediumCode quality, maintainability concernsFix this sprint
LowStyle, documentation, minor improvementsFix when convenient

Review Report Example

## Findings

| # | Severity | File | Issue | Recommendation |
|---|----------|------|-------|----------------|
| 1 | Critical | auth.ts | Hardcoded secret | Move to env var |
| 2 | High | booking.tsx | Missing Zod validation | Add input schema |
| 3 | Medium | utils.ts | File > 250 lines | Split into modules |
| 4 | Low | README.md | Outdated version | Update version number |

Code Quality Tools

The project uses the following tools for automated code quality enforcement:

ToolCommandConfigPurpose
Biomebun run lintbiome.jsoncLinting and formatting
ast-grepbun run scansgconfig.yml + rules/Structural code analysis
Knipbun run knipknip.jsonUnused code detection
TypeScript (tsc)bun run typechecktsconfig.jsonType checking
LefthookAuto on git eventslefthook.ymlGit hooks enforcement

Git Hooks

HookTriggersActions
pre-commitOn commitBiome lint + format (parallel, stage_fixed: true)
pre-pushOn pushTypecheck + test (parallel)
pre-merge-commitOn mergeTypecheck

See Code Review for the full review checklist and ast-grep rules.

Running Workflows

bash
# Run all checks (lint + typecheck + scan)
bun run check

# Run full verify (typecheck + test + build)
bun run verify

# Run ast-grep scan
bun run scan

# Run Knip (unused code detection)
bun run knip

# Run security audit
bun run security

# Analyze dependencies
bun run deps:analyze

Released under the MIT License.