- Home
- Skills
- Agents & Orchestration
- Backend Developer (agent)
Backend Developer (agent)
Backend Developer (agent): Node.js backend development with Express, Fastify, middleware patterns, and API performance optimization
$7
Backend Developer (agent)
Example session with this skill installed
Design an API endpoint for a multi-tenant subscription system where users can invite team members to a specific workspace. Include the migration, controller, and a basic security check.
- Read your context and instructions
- Compiled the backend developer agent
I have designed the multi-tenant invitation system, focusing on workspace isolation and secure invitation tokens. ## Backend Implementation ### Database Migration ```php Schema::create('invitations', function (Illuminate\Database\Schema\Blueprint $table) { $table->id(); $table->foreignId('workspace_id')->constrained()->onDelete('cascade'); $table->string('email'); $table->string('token', 64)->unique(); $table->foreignId('invited_by')->constrained('users'); $table->timestamp('expires_at'); $table->timestamps(); }); ``` ### Controller Logic ```php public function store(InviteRequest $request, Workspace $workspace) { // Authorization is handled via Policy $this->authorize('invite', $workspace); $invitation = $workspace->invitations()->create([ 'email' => $request->email, 'token' => Str::random(64), 'invited_by' => auth()->id(), 'expires_at' => now()->addDays(7), ]); Mail::to($request->email)->send(new TeamInvitation($invitation)); return response()->json(['message' => 'Invitation sent successfully.']); } ``` ### Summary Designed a secure invitation flow for a multi-tenant environment using Laravel's native relationship binding and policy authorization. ### Assumptions - A `Workspace` model exists with a `HasMany` relationship to `Invitation`. - A `TeamInvitation` Mailable has been configured. - The `InviteRequest` handles email validation. ### Risks and open questions - **Risk**: Token expiration is hardcoded to 7 days; should this be configurable? - **Question**: Should we prevent duplicate pending invitations for the same email? ### Verification - Migration uses `onDelete('cascade')` to ensure data integrity. - Controller uses `$workspace->invitations()` to enforce tenant scoping. - Security guidelines followed: Token is high-entropy and authorization is checked before execution. **Next steps** 1. Create the `InviteRequest` class for input validation. 2. Define the `invite` method in the `WorkspacePolicy`. 3. Implement the frontend route to handle the `token` for user onboarding.
Connects securely to your tools. The creator never sees your data.
About this skill
Building Laravel backends requires more than just syntax. It requires strict adherence to security patterns, database optimization, and architectural consistency. This skill transforms your agent into a senior Laravel practitioner that follows professional standards for every API endpoint, migration, and middleware component. ## What it does - **API implementation** builds RESTful or GraphQL endpoints using current Laravel conventions. - **Database modeling** generates migrations and Eloquent relationships with performance in mind. - **Security hardening** applies specific guidelines to prevent common vulnerabilities in the logic layer. - **Ambiguity resolution** identifies missing project context and lists assumptions instead of hallucinating logic. - **Consistency enforcement** aligns every response with predefined coding standards and architecture principles. ## How it works 1. **Goal Alignment** where the agent restates your specific backend objective to ensure zero misunderstanding. 2. **Input Gap Analysis** to identify missing environment variables, schema details, or business logic requirements. 3. **Step Planning** to outline the execution path before a single line of code is written. 4. **Implementation** according to Laravel best practices and project-specific conventions. 5. **Verification** against security and architectural checklists to validate the final output. ## Frameworks & tools This skill is built for PHP and the Laravel ecosystem, focusing on Eloquent ORM, middleware, service providers, and API optimization. ## Why this beats prompting it yourself Generic prompts often ignore the "Laravel way," leading to bloated controllers or insecure data handling. This skill enforces a strict output contract that includes risks, assumptions, and verification steps, ensuring the code is production-ready rather than just functional. ## Use cases - Scaffold complex API resources with integrated validation and resource collections. - Design database schemas with optimized indexes and foreign key constraints. - Implement custom middleware for complex authentication or logging requirements. - Refactor legacy controllers into clean service classes and action patterns. ## Known limitations The agent cannot run destructive database commands or deploy code without explicit permission. It relies on provided project context to match existing styles accurately.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 8 days ago
- Software
- tsc
Node.jstsx
Permissions
What's inside
Frequently Asked Questions
New in Agents & Orchestration
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.