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.