MCPcopy Index your code
hub / github.com/codeaashu/claude-code / makeSecondaryModelPrompt

Function makeSecondaryModelPrompt

src/tools/WebFetchTool/prompt.ts:23–46  ·  view source on GitHub ↗
(
  markdownContent: string,
  prompt: string,
  isPreapprovedDomain: boolean,
)

Source from the content-addressed store, hash-verified

21`
22
23export function makeSecondaryModelPrompt(
24 markdownContent: string,
25 prompt: string,
26 isPreapprovedDomain: boolean,
27): string {
28 const guidelines = isPreapprovedDomain
29 ? `Provide a concise response based on the content above. Include relevant details, code examples, and documentation excerpts as needed.`
30 : `Provide a concise response based only on the content above. In your response:
31 - Enforce a strict 125-character maximum for quotes from any source document. Open Source Software is ok as long as we respect the license.
32 - Use quotation marks for exact language from articles; any language outside of the quotation should never be word-for-word the same.
33 - You are not a lawyer and never comment on the legality of your own prompts and responses.
34 - Never produce or reproduce exact song lyrics.`
35
36 return `
37Web page content:
38---
39${markdownContent}
40---
41
42${prompt}
43
44${guidelines}
45`
46}
47

Callers 1

applyPromptToMarkdownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected