csharpfritz/workshopmanager/service-design
Claude Code and agent skill by csharpfritz/workshopmanager
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install csharpfritz/workshopmanager/service-designSKILL.md
Skill: Service Design Pattern
Reusable pattern for designing new service layers in WorkshopManager.
When to Use
- Designing a new service interface for the WorkshopManager pipeline
- Adding a new phase to the upgrade workflow
Pattern
1. Data Model First
Define immutable record types for:
- Per-item result (e.g.,
TransformationResult) — captures success/failure, content, error, metrics - Aggregate summary (e.g.,
TransformationSummary) — with computed properties for filtering - Final outcome (e.g.,
PullRequestResult) — what the caller needs to know
2. Interface Design
- Accept batch inputs, process per-item internally
- Take
CancellationToken ct = defaulton all async methods - Return result types, never throw for expected failures (per-item errors captured in results)
- Keep interfaces small: one method per concern
3. Separation by Prompt Strategy
When different content types need different AI/Copilot prompting:
- Separate interfaces (not one with internal branching)
- Rationale: different context needs, different failure severity, independent testability
4. DI Lifetime
Scopedfor services that share per-request state (e.g., GitHub auth tokens)Singletonfor stateless utilities (e.g.,SkillResolver,FileClassifier)
5. Error Handling
- Per-item fault isolation: catch exceptions inside loops, produce failure result
- Aggregate decides pipeline behavior: "all failed" = abort, "some failed" = partial success
- Never commit failed items; report them in output
6. Orchestrator
- One orchestrator service owns the full pipeline
- Webhook handler calls orchestrator; orchestrator calls services
- Orchestrator returns a typed result, never throws for business failures
Example
See docs/design/phase3-transformation-pr.md for the canonical application of this pattern.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.squad/skills/service-design/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/csharpfritz/workshopmanager/service-design)