AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Create Service

skill-alizharb-agent-skills-create-service · by AlizHarb

Use when creating or changing a Laravel service class that coordinates workflows, external integrations, or multiple Actions without becoming a dumping ground.

No reviews yet
0 installs
41 views
0.0% view→install

Install

$ agentstack add skill-alizharb-agent-skills-create-service

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-alizharb-agent-skills-create-service)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Create Service? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Create Service

When To Use

Use this skill when behavior coordinates multiple operations or integrates with an external system. Prefer an Action for a single operation.

Inputs Needed

  • Responsibility, collaborators, external systems, failure behavior, transaction boundaries, and tests.

Workflow

  1. Inspect existing services and support classes.
  2. Define one clear responsibility.
  3. Compose Actions, support classes, clients, repositories, or external integrations.
  4. Keep controllers, Livewire components, requests, and responses out of the service API.
  5. Add typed methods and return values.
  6. Use constructor property promotion and final readonly when the service has dependencies only.
  7. Use Laravel container contextual attributes such as #[Config], #[Storage], #[Cache], #[DB], #[Log], #[Give], and #[Tag] when they make dependency injection clearer.
  8. Use #[Scoped] for services that should resolve once per request or job lifecycle.
  9. Keep state minimal and dependencies constructor-injected.
  10. Add tests for coordination and failure behavior.

Files That May Be Created

  • app/Services/.php
  • Tests for service behavior.

Files That May Be Modified

  • Actions, controllers, jobs, commands, Livewire components, service providers, config, and tests.

Architecture Rules

  • Services coordinate workflows; Actions perform single operations.
  • Services should not become generic managers or helpers.
  • External calls should have explicit timeout, retry, error, and test fake behavior.
  • Prefer Laravel 13 container attributes over service-provider boilerplate when the binding is simple and local.
  • Constructor injection is the default. Avoid app() unless resolving a dynamic implementation is the explicit purpose of the service.
  • If the service starts accumulating unrelated responsibilities, split it into smaller Actions or services.

Testing Requirements

  • Test happy path, collaborator calls, failure paths, retries, and idempotency where relevant.

Security Requirements

  • Do not bypass policies or validation. Treat external data as untrusted.

Review Checklist

  • Is the service responsibility narrow?
  • Would an Action be simpler?
  • Are dependencies injectable and mockable or fakeable?

Common Mistakes

  • Adding unrelated methods over time.
  • Mixing UI formatting with business coordination.
  • Calling app() instead of injecting dependencies.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.