Using Claude with Igniter.js
Claude, by Anthropic, is a powerful family of large language models that can be used as an effective code agent for developing Igniter.js applications. Its strong reasoning and code generation capabilities make it a great assistant for writing, reviewing, and maintaining your projects.
You can interact with Claude through its official command-line tool, @anthropic-ai/claude-code
, or via its web interface and API.
Method 1: Training Claude on the Igniter.js Framework
This method gives Claude a deep, foundational understanding of the entire Igniter.js framework by pointing it to our official, comprehensive documentation file. This is ideal when working on an existing project that wasn't created from one of our templates.
Step 1: Create a Context File
In the root of your project, create a new file named AGENT.md
. The Claude Code CLI automatically looks for this file to use as context.
Step 2: Add the Context Content
Open AGENT.md
and paste the following content. This rule instructs Claude's AI to use our llms.txt
as its primary source of knowledge.
# Igniter.js Framework Expert
You are an expert developer specializing in Igniter.js. 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.
Step 3: Start the Agent
Once your AGENT.md
is set up, you can start the interactive session.
# Install the CLI if you haven't already
npm install -g @anthropic-ai/claude-code
# Start the agent in your project root
claude
Method 2: Use an Official Igniter.js Template (The Easy Way)
The easiest way to work with Claude is by starting your project with one of our official templates. These templates come pre-configured with detailed AGENT.md
files that the Claude Code CLI automatically detects and uses for context.
🚀 Enhanced with MCP Server
Our official templates now include a MCP Server that provides Claude with direct access to your project through standardized tools. This means Claude 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
Adding MCP Server to Claude Code
To enable the MCP Server integration with Claude Code:
# Add the Igniter.js MCP Server to Claude Code
claude mcp add igniter npx @igniter-js/mcp-server
# Verify it's installed
claude mcp list
This gives Claude direct access to powerful development tools that understand your Igniter.js project deeply.
- Manage tasks through integrated task management
- Execute commands directly in your project
- Access project memory for context-aware development
- Delegate work to specialized AI agents
Learn more about our MCP Server and Next.js Starter Rules.