Using VS Code Copilot with Igniter.js

GitHub Copilot is one of the most popular AI code assistants, deeply integrated into Visual Studio Code. To make it an expert on your Igniter.js project, you can provide it with persistent context through custom instructions.

Method 1: Training Copilot on the Igniter.js Framework

This method gives Copilot a deep, foundational understanding of the entire Igniter.js framework by pointing it to our official, comprehensive documentation file. This is the recommended approach for any Igniter.js project.

Step 1: Create a Copilot Directory

In the root of your project, create a new directory for Copilot's instructions:

Code
mkdir -p .github/copilot

Step 2: Create the Instructions File

Inside the new directory, create a Markdown file named instructions.md.

Step 3: Add the Instruction Content

Open .github/copilot/instructions.md and paste the following content. This rule instructs Copilot to use our llms.txt—a single file containing our entire documentation—as its primary source of knowledge for all chat interactions.

Code
# Igniter.js Framework Expert

You are an expert developer specializing in the Igniter.js framework. Your primary source of knowledge for all framework-related questions and code generation is the official documentation, which can be found in its entirety at: https://igniterjs.com/llms.txt.

Always adhere to the patterns and best practices described in that document. Before answering any question, consult this source to ensure accuracy.

With this file in place, Copilot Chat will automatically use this context in every conversation, leading to highly accurate and relevant assistance.

Method 2: Use an Official Igniter.js Template (The Easy Way)

The easiest way to work with Copilot is by starting your project with one of our official templates. These templates come pre-configured with detailed AGENT.md files that are compatible with Copilot's context mechanisms.

When you open an Igniter.js template project in VS Code, Copilot can use the provided AGENT.md file as a project-specific instruction set with no additional setup required.

🚀 Enhanced with MCP Server

Our official templates now include a MCP Server that provides Copilot with direct access to your project through standardized tools. This means Copilot can:

  • Analyze your codebase with deep understanding of your project structure
  • Execute development commands like starting the dev server or running tests
  • Generate code scaffolding for features, controllers, and procedures
  • Manage tasks and projects with built-in project management tools
  • Access your project's memory to remember architectural decisions and patterns
  • Delegate work to specialized AI agents for complex tasks

Adding MCP Server to VS Code

To enable the MCP Server integration with VS Code:

Create .vscode/mcp.json in your workspace:

Code
{
  "servers": {
    "Igniter": {
      "command": "npx",
      "args": ["@igniter-js/mcp-server"]
    }
  }
}

This gives VS Code Copilot direct access to powerful development tools that understand your Igniter.js project deeply.

  • Access project memory for context-aware development
  • Delegate work to specialized AI agents

Learn more about our MCP Server and Next.js Starter Rules.

Our templates come ready with everything you need to start building, including the AI instructions that Copilot will automatically use.