grokkit/internal/linter/language.go
Greg Gauthier b24b86723b feat(analyze): implement educational project analysis with language prompts
- Add Go-specific analysis prompt in .grokkit/prompts/go.md
- Expand cmd/analyze.go to discover files, detect language, load prompts, build context, generate report via Grok, and handle output with preview/confirmation
- Integrate analyzeCmd into root command
- Introduce internal/linter/language.go for primary language detection
- Add internal/prompts/analyze.go for loading analysis prompts from project or global locations
2026-03-28 12:36:06 +00:00

4 lines
153 B
Go

package linter
// DetectPrimaryLanguage returns the most common language or falls back to "go"
func DetectPrimaryLanguage(files []string) string { ... }