This document describes the Claude Code AI assistant infrastructure for this project.
Claude Code is Anthropic's official CLI for Claude AI integration into development workflows. The Bitinfrashop project uses Claude Code for:
- Code Generation: Creating new features and components
- Code Review: Analyzing code quality and suggesting improvements
- Documentation: Generating and maintaining project documentation
- Debugging: Helping identify and fix issues
- Refactoring: Improving code structure and maintainability
.claude/settings.local.json
{
"permissions": {
"allow": [
"WebFetch(domain:github.com)", // Allow fetching from GitHub
"Bash(node:*)" // Allow Node.js commands
],
"deny": [],
"ask": []
}
}- WebFetch(domain:github.com): Fetch documentation and code from GitHub repositories
- Bash(node:*): Execute Node.js, npm, and related commands without asking
- All other bash commands
- File modifications
- Network requests to non-GitHub domains
- None currently
See docs/workflows/ai-agent-guidelines.md for detailed instructions on how AI assistants should work with this codebase.
# Ask Claude Code to implement a feature
"Implement the private server invitations feature from docs/03-solutioning/features/private-server-invitations/"# Ask Claude Code to debug an issue
"There's a bug in src/app/api/servers/route.ts where server creation fails. Can you investigate?"# Ask Claude Code to update docs
"Update the API documentation to reflect the new /api/servers/invite endpoint"# Ask Claude Code to review code
"Review the changes in src/app/infrastructure/[serverId]/page.tsx for security issues"# Ask Claude Code to refactor
"Refactor the authentication logic in src/lib/auth-prisma.ts to be more modular"- Be Specific: Provide clear, detailed instructions
- Reference Docs: Point to relevant documentation files
- Use Context: Reference existing code files when relevant
- Verify Output: Always review generated code before committing
- Follow Conventions: Ensure Claude Code follows project conventions from AGENTS.md
- Don't Skip Testing: Always test generated code
- Don't Auto-Commit: Review changes before committing
- Don't Ignore Errors: Address errors Claude Code flags
- Don't Bypass Security: Don't disable security checks
Claude Code can help with:
- Researching similar implementations
- Analyzing user feedback
- Reviewing competitive features
Claude Code can help with:
- Breaking down features into tasks
- Estimating complexity
- Identifying technical risks
Claude Code can help with:
- Designing architecture
- Creating API contracts
- Writing technical specifications
Claude Code can help with:
- Writing code
- Creating tests
- Updating documentation
- Reviewing code quality
- Check network connection
- Verify Claude Code is running:
claude-code --version - Check logs:
~/.claude-code/logs/
- Review
.claude/settings.local.json - Add required permissions to
allowarray - Restart Claude Code session
- Review conversation history
- Provide more specific instructions
- Reference existing documentation
- Use AGENTS.md guidelines
To update Claude Code configuration:
- Edit
.claude/settings.local.json - Add/remove permissions as needed
- Restart Claude Code session
{
"permissions": {
"allow": [
"WebFetch(domain:github.com)",
"WebFetch(domain:npmjs.com)", // New permission
"Bash(node:*)"
]
}
}For Claude Code issues:
- GitHub Issues: https://github.com/anthropics/claude-code/issues
- Documentation: https://docs.claude.com/claude-code
For project-specific questions:
- Contact: nodediver@proton.me
- Repository: https://github.com/NodeDiver/bitinfrashop