MCPcopy Create free account
hub / github.com/continuedev/continue / createInitPrompt

Function createInitPrompt

extensions/cli/src/commands/init.ts:6–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import { SlashCommandResult } from "../ui/hooks/useChat.types.js";
5
6function createInitPrompt(): string {
7 const relativeRuleFilepath = createRelativeRuleFilePath("review");
8 return `Please analyze this repository and create a comprehensive AGENTS.md file, along with a custom slash command. Use your available tools to understand the project structure, read important files like README.md, package.json, requirements.txt, and other configuration files to understand the technology stack and setup.
9
10Create an AGENTS.md file with the following structure:
11
12# Repository Overview
13
14## Project Description
15- What this project does
16- Main purpose and goals
17- Key technologies used
18
19## Architecture Overview
20- High-level architecture
21- Main components and their relationships
22- Data flow and system interactions
23
24## Directory Structure
25- Important directories and their purposes
26- Key files and configuration
27- Entry points and main modules
28
29## Development Workflow
30- How to build/run the project
31- Testing approach
32- Development environment setup
33- Lint and format commands
34
35Additionally, create a slash command file at ${relativeRuleFilepath} with the following structure:
36
37\`\`\`md
38---
39invokable: true
40---
41
42Review this code for potential issues, including:
43
44<insert custom things to look for based on the repository details you find>
45
46Provide specific, actionable feedback for improvements.
47\`\`\`
48
49This slash command will be invokable using /review and will provide instructions for code review tasks common to this repository.
50
51Please create both the AGENTS.md file and the .continue/rules/review.md file using the Write tool after analyzing the repository. Focus on providing actionable information that would help both AI agents and human developers understand and work effectively with this codebase. Keep the files concise but informational.`;
52}
53
54export async function handleInit(
55 _args: string[],

Callers 1

handleInitFunction · 0.85

Calls 1

Tested by

no test coverage detected