{
	"schemaVersion": 1,
	"templates": {
		"full-project": {
			"name": "Full Project",
			"description": "Complete SF workflow with roadmap, milestones, slices, and full ceremony",
			"file": "full-project.md",
			"phases": ["init", "discuss", "plan", "execute", "verify"],
			"triggers": [
				"new project",
				"greenfield",
				"from scratch",
				"build an app",
				"create a new"
			],
			"artifact_dir": ".sf/",
			"estimated_complexity": "high",
			"requires_project": true
		},
		"bugfix": {
			"name": "Bug Fix",
			"description": "Triage, reproduce, fix, test, and ship a bug fix",
			"file": "bugfix.md",
			"phases": ["triage", "fix", "verify", "ship"],
			"triggers": [
				"bug",
				"issue",
				"fix",
				"broken",
				"regression",
				"error",
				"crash",
				"failing",
				"github.com/*/issues/*"
			],
			"artifact_dir": ".sf/workflows/bugfixes/",
			"estimated_complexity": "low",
			"requires_project": false
		},
		"small-feature": {
			"name": "Small Feature",
			"description": "Lightweight feature development with optional discussion and research",
			"file": "small-feature.md",
			"phases": ["scope", "plan", "implement", "verify"],
			"triggers": [
				"add",
				"feature",
				"implement",
				"build",
				"create",
				"new command",
				"new endpoint"
			],
			"artifact_dir": ".sf/workflows/features/",
			"estimated_complexity": "medium",
			"requires_project": false
		},
		"refactor": {
			"name": "Refactor / Migration",
			"description": "Systematic code transformation with inventory and wave-based execution",
			"file": "refactor.md",
			"phases": ["inventory", "plan", "migrate", "verify"],
			"triggers": [
				"refactor",
				"migrate",
				"rename",
				"restructure",
				"move",
				"reorganize",
				"clean up"
			],
			"artifact_dir": ".sf/workflows/refactors/",
			"estimated_complexity": "medium",
			"requires_project": false
		},
		"spike": {
			"name": "Research Spike",
			"description": "Investigate a question, prototype, and document findings",
			"file": "spike.md",
			"phases": ["scope", "research", "synthesize"],
			"triggers": [
				"research",
				"investigate",
				"explore",
				"spike",
				"compare",
				"evaluate",
				"should we",
				"what if",
				"how does"
			],
			"artifact_dir": ".sf/workflows/spikes/",
			"estimated_complexity": "low",
			"requires_project": false
		},
		"hotfix": {
			"name": "Hotfix",
			"description": "Minimal ceremony: fix the thing, test it, ship it",
			"file": "hotfix.md",
			"phases": ["fix", "ship"],
			"triggers": [
				"hotfix",
				"urgent",
				"critical",
				"asap",
				"production down",
				"p0"
			],
			"artifact_dir": null,
			"estimated_complexity": "minimal",
			"requires_project": false
		},
		"security-audit": {
			"name": "Security Audit",
			"description": "Scan for vulnerabilities, triage findings, remediate, and verify",
			"file": "security-audit.md",
			"phases": ["scan", "triage", "remediate", "re-scan"],
			"triggers": [
				"security",
				"audit",
				"vulnerability",
				"owasp",
				"cve",
				"penetration",
				"hardening"
			],
			"artifact_dir": ".sf/workflows/audits/",
			"estimated_complexity": "medium",
			"requires_project": false
		},
		"dep-upgrade": {
			"name": "Dependency Upgrade",
			"description": "Assess impact, upgrade dependencies, fix breaking changes",
			"file": "dep-upgrade.md",
			"phases": ["assess", "upgrade", "fix", "verify"],
			"triggers": [
				"upgrade",
				"update",
				"dependency",
				"deps",
				"bump",
				"outdated",
				"npm update",
				"renovate"
			],
			"artifact_dir": ".sf/workflows/upgrades/",
			"estimated_complexity": "medium",
			"requires_project": false
		},
		"product-audit": {
			"name": "Product Audit",
			"description": "End-of-milestone soft gate comparing declared product intent against code/test/deploy/docs evidence; emits structured gaps and suggested follow-up slices",
			"file": "product-audit.md",
			"phases": ["audit"],
			"triggers": [
				"product audit",
				"completeness audit",
				"milestone audit",
				"product readiness",
				"product gap"
			],
			"artifact_dir": ".sf/active/",
			"estimated_complexity": "low",
			"requires_project": true
		},
		"product-plan": {
			"name": "Product Plan",
			"description": "Model the product, define the target capability, plan implementation slices, and confirm readiness before development starts",
			"file": "product-plan.md",
			"phases": ["model", "scope", "slice", "ready"],
			"triggers": [
				"product plan",
				"plan product",
				"plan the product",
				"product planning",
				"product development",
				"define product",
				"mvp",
				"roadmap",
				"what to build"
			],
			"artifact_dir": ".sf/workflows/product-plan/",
			"estimated_complexity": "medium",
			"requires_project": false,
			"interaction": {
				"guided_default": true,
				"question_gates": ["scope", "ready"]
			}
		},
		"product-tracking": {
			"name": "Product Tracking",
			"description": "Model the product, audit current analytics, design a tracking plan, generate an instrumentation guide, implement tracking, and verify the data contract",
			"file": "product-tracking.md",
			"phases": [
				"model",
				"audit",
				"plan",
				"instrument",
				"implement",
				"verify"
			],
			"triggers": [
				"product tracking",
				"product analytics",
				"tracking plan",
				"analytics instrumentation",
				"instrument analytics",
				"telemetry",
				"event tracking",
				"implement tracking",
				"data-ready"
			],
			"artifact_dir": ".sf/workflows/product-tracking/",
			"estimated_complexity": "medium",
			"requires_project": false
		}
	}
}
