MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / GetInitPrompt

Function GetInitPrompt

embed/embed.go:34–40  ·  view source on GitHub ↗

GetInitPrompt returns the PRD generator prompt with the PRD directory and optional context substituted.

(prdDir, context string)

Source from the content-addressed store, hash-verified

32
33// GetInitPrompt returns the PRD generator prompt with the PRD directory and optional context substituted.
34func GetInitPrompt(prdDir, context string) string {
35 if context == "" {
36 context = "No additional context provided. Ask the user what they want to build."
37 }
38 result := strings.ReplaceAll(initPromptTemplate, "{{PRD_DIR}}", prdDir)
39 return strings.ReplaceAll(result, "{{CONTEXT}}", context)
40}
41
42// GetEditPrompt returns the PRD editor prompt with the PRD directory substituted.
43func GetEditPrompt(prdDir string) string {

Callers 2

RunNewFunction · 0.92
TestGetInitPromptFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestGetInitPromptFunction · 0.68