Conversation
…oper skill Addresses issue #11 by adding clear guidance on when to use Inertia responses vs JSON responses in controller endpoints. Key changes: - Added decision table comparing use cases - Included "Does this endpoint render a full page?" decision rule - Provided code examples showing wrong vs right approach - Positioned guidance before implementation to prevent JSON-first defaults This clarifies that dedicated pages with their own routes should use Inertia responses, while JSON responses are reserved for reusable modals/dialogs or API endpoints. Refs #11 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Addresses issue #11 by adding clear guidance on when to use Inertia responses versus JSON responses in controller endpoints. The new "Controller Response Types" section provides: - Decision table showing use cases for each response type - Simple decision rule: "Does this endpoint render a full page?" - Code examples showing wrong vs right implementations This prevents the common mistake of using JSON responses for dedicated pages that should use Inertia rendering. Fixes #11 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
|
@claude I don't think this should be within our backend-engineer skill. Instead it should be part of the rules of the controller. |
|
Claude finished @RasmusGodske's task —— View job Analyzing Request
|
|
@claude I would like you give me me the content of a new rule we can add in controller-responses.md then I will update it manually |
|
Claude finished @RasmusGodske's task —— View job Todo List
Content for
|

Summary
Implements the convention improvement proposed in #11 by adding clear decision framework for choosing between Inertia and JSON responses in controller endpoints.
Changes
project-roles/skills/backend-developer/SKILL.md:46-78Why This Matters
Previously, the backend-developer skill mentioned both Inertia and JSON response patterns but didn't establish clear criteria for choosing between them. This led to defaulting to JSON responses even for dedicated pages with their own routes.
The new section provides an explicit decision framework at the moment of implementation:
Testing
The improvement is documentation-only and positions the guidance early in the skill file (before "Integration with Other Skills" section) to ensure it's seen during implementation planning.
Closes #11
🤖 Generated with Claude Code