Install
$ agentstack add skill-alizharb-agent-skills-create-service ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo 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.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
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 →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
- Inspect existing services and support classes.
- Define one clear responsibility.
- Compose Actions, support classes, clients, repositories, or external integrations.
- Keep controllers, Livewire components, requests, and responses out of the service API.
- Add typed methods and return values.
- Use constructor property promotion and
final readonlywhen the service has dependencies only. - Use Laravel container contextual attributes such as
#[Config],#[Storage],#[Cache],#[DB],#[Log],#[Give], and#[Tag]when they make dependency injection clearer. - Use
#[Scoped]for services that should resolve once per request or job lifecycle. - Keep state minimal and dependencies constructor-injected.
- 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.
- Author: AlizHarb
- Source: AlizHarb/agent-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.