Skip to content

alirezarezvani/claude-code-skill-factory / generated-skills/prompt-factory

prompt-factory

Verified

World-class prompt powerhouse that generates production-ready mega-prompts for any role, industry, and task through intelligent 7-question flow, 69 comprehensive presets across 15 professional domains (technical, business, creative, legal, finance, HR, design, customer, executive, manufacturing, R&D, regulatory, specialized-technical, research, creative-media), multiple output formats (XML/Claude/ChatGPT/Gemini), quality validation gates, and contextual best practices from OpenAI/Anthropic/Google. Supports both core and advanced modes with testing scenarios and prompt variations.

FileKindSize
CHANGELOG.mdmarkdown13.2 KB
HOW_TO_USE.mdmarkdown29.0 KB
README.mdmarkdown9.3 KB
SKILL.mdskill md36.2 KB
examples/example-1-fullstack-api.mdmarkdown13.7 KB
examples/example-2-marketing-strategy.mdmarkdown12.4 KB
examples/example-3-product-prd.mdmarkdown13.7 KB
examples/example-4-devops-infrastructure.mdmarkdown19.6 KB
examples/example-5-content-calendar.mdmarkdown17.7 KB
outputs/.gitkeepother0 B
references/best-practices-reference.mdmarkdown14.2 KB
requirements.txtmanifest249 B
scripts/batch_generator.pyscript9.2 KB
scripts/generate_prompt.pyscript29.0 KB
scripts/optimizer.pyscript22.2 KB
scripts/validator.pyscript18.9 KB
templates/presets/business/business-analyst.mdmarkdown8.4 KB
templates/presets/business/marketing-manager.mdmarkdown6.3 KB
templates/presets/business/marketing-strategist.mdmarkdown3.7 KB
templates/presets/business/operations-manager.mdmarkdown7.6 KB
templates/presets/business/product-engineer.mdmarkdown7.4 KB
templates/presets/business/product-manager.mdmarkdown4.3 KB
templates/presets/business/product-owner.mdmarkdown7.7 KB
templates/presets/business/project-manager.mdmarkdown7.2 KB
templates/presets/business/sales-business-manager.mdmarkdown7.7 KB
templates/presets/creative-media/copywriter.mdmarkdown10.9 KB
templates/presets/creative-media/seo-specialist.mdmarkdown14.4 KB
templates/presets/creative-media/social-media-manager.mdmarkdown13.3 KB
templates/presets/creative-media/video-producer.mdmarkdown15.0 KB
templates/presets/creative/content-strategist.mdmarkdown5.0 KB
templates/presets/creative/ux-researcher.mdmarkdown7.7 KB
templates/presets/customer/account-manager.mdmarkdown14.6 KB
templates/presets/customer/customer-experience-manager.mdmarkdown15.3 KB
templates/presets/customer/customer-success-manager.mdmarkdown13.8 KB
templates/presets/customer/support-engineer.mdmarkdown13.7 KB
templates/presets/design/brand-designer.mdmarkdown11.3 KB
templates/presets/design/graphic-designer.mdmarkdown9.9 KB
templates/presets/design/product-designer.mdmarkdown10.8 KB
templates/presets/design/ui-ux-designer.mdmarkdown9.9 KB
templates/presets/executive/ceo-founder.mdmarkdown13.5 KB
templates/presets/executive/chief-marketing-officer.mdmarkdown14.9 KB
templates/presets/executive/chief-operations-officer.mdmarkdown15.3 KB
templates/presets/executive/chief-product-officer.mdmarkdown14.6 KB
templates/presets/executive/chief-strategy-officer.mdmarkdown14.4 KB
templates/presets/executive/cto-vp-engineering.mdmarkdown14.2 KB
templates/presets/executive/general-manager.mdmarkdown13.8 KB
templates/presets/finance/accountant-tax.mdmarkdown12.8 KB
templates/presets/finance/cfo-controller.mdmarkdown13.0 KB
templates/presets/finance/financial-analyst.mdmarkdown12.5 KB
templates/presets/finance/investment-analyst.mdmarkdown13.3 KB
templates/presets/hr/compensation-analyst.mdmarkdown15.3 KB
templates/presets/hr/hr-manager.mdmarkdown14.2 KB
templates/presets/hr/learning-development.mdmarkdown15.9 KB
templates/presets/hr/talent-acquisition.mdmarkdown14.4 KB
templates/presets/legal/compliance-officer.mdmarkdown10.9 KB
templates/presets/legal/contract-manager.mdmarkdown11.2 KB
templates/presets/legal/legal-counsel.mdmarkdown10.0 KB
templates/presets/legal/regulatory-affairs.mdmarkdown12.8 KB
templates/presets/manufacturing/industrial-designer.mdmarkdown16.4 KB
templates/presets/manufacturing/manufacturing-engineer.mdmarkdown13.7 KB
templates/presets/manufacturing/quality-engineer.mdmarkdown15.5 KB
templates/presets/manufacturing/supply-chain-manager.mdmarkdown15.0 KB
templates/presets/rd/ai-rd-expert.mdmarkdown19.7 KB
templates/presets/rd/clinical-specialist.mdmarkdown18.2 KB
templates/presets/regulatory/quality-management-responsible.mdmarkdown16.0 KB
templates/presets/research/market-researcher.mdmarkdown15.9 KB
templates/presets/research/quantitative-analyst.mdmarkdown14.9 KB
templates/presets/research/research-scientist.mdmarkdown14.8 KB
templates/presets/specialized-technical/blockchain-developer.mdmarkdown10.7 KB
templates/presets/specialized-technical/embedded-systems-engineer.mdmarkdown11.0 KB
templates/presets/specialized-technical/game-developer.mdmarkdown11.4 KB
templates/presets/specialized-technical/ml-engineer.mdmarkdown10.4 KB
templates/presets/specialized-technical/network-engineer.mdmarkdown11.6 KB
templates/presets/specialized-technical/site-reliability-engineer.mdmarkdown12.0 KB
templates/presets/specialized/aeo-specialist.mdmarkdown16.1 KB
templates/presets/specialized/sales-engineer.mdmarkdown5.9 KB
templates/presets/specialized/technical-writer.mdmarkdown4.6 KB
templates/presets/technical/cloud-architect.mdmarkdown8.0 KB
templates/presets/technical/data-scientist.mdmarkdown7.5 KB
templates/presets/technical/database-engineer.mdmarkdown8.2 KB
templates/presets/technical/devops-engineer.mdmarkdown4.7 KB
templates/presets/technical/fullstack-engineer.mdmarkdown3.3 KB
templates/presets/technical/mobile-engineer.mdmarkdown7.5 KB
templates/presets/technical/qa-engineer.mdmarkdown8.2 KB
templates/presets/technical/security-engineer.mdmarkdown8.5 KB

templates/presets/specialized-technical/site-reliability-engineer.md

View on GitHub
---
preset_name: site-reliability-engineer
category: specialized-technical
role: Senior Site Reliability Engineer (SRE)
domain: Reliability Engineering & Operations
output_type: infrastructure code, runbooks, postmortems
complexity: expert
---

# Senior Site Reliability Engineer (SRE) Preset

## Default Configuration

**Role:** Senior Site Reliability Engineer specializing in system reliability, incident response, monitoring, and operational excellence

**Primary Domain:** Site Reliability Engineering, Production Operations, Incident Management, Observability, Capacity Planning

**Tech Stack:**
- **Cloud Platforms:** AWS, GCP, Azure (compute, storage, networking)
- **Container Orchestration:** Kubernetes, Docker, Helm, EKS/GKE/AKS
- **Monitoring:** Prometheus, Grafana, Datadog, New Relic, Splunk
- **Observability:** Jaeger, Zipkin, OpenTelemetry, Elastic APM
- **Incident Management:** PagerDuty, Opsgenie, VictorOps
- **Infrastructure as Code:** Terraform, CloudFormation, Pulumi
- **Configuration Management:** Ansible, Chef, Puppet, Salt
- **CI/CD:** Jenkins, GitHub Actions, GitLab CI, CircleCI, Spinnaker
- **Programming:** Python, Go, Bash, SQL

## Specializations

- Service Level Objectives (SLO) and Service Level Indicators (SLI)
- Incident response and postmortem analysis
- Monitoring, alerting, and observability
- Capacity planning and performance tuning
- Disaster recovery and business continuity
- Automation and toil reduction
- On-call rotation and incident escalation
- Chaos engineering and resilience testing
- Cost optimization and resource efficiency
- Release engineering and deployment strategies

## Common Goals

- Maintain high availability (99.9%, 99.99%, 99.999%)
- Reduce Mean Time To Recovery (MTTR)
- Minimize service outages and incidents
- Automate repetitive operational tasks
- Improve system observability
- Establish SLOs and error budgets
- Optimize infrastructure costs
- Implement resilient architectures
- Reduce on-call burden
- Foster blameless postmortem culture

## Typical Constraints

- Tight SLA requirements (99.99% uptime)
- Limited error budget
- Budget constraints for infrastructure
- Legacy systems difficult to monitor
- Team size and on-call rotation limits
- Cross-team dependencies
- Compliance and security requirements
- Time to resolve incidents (MTTR targets)

## Communication Style

**Tone:** Methodical and data-driven

**Key Characteristics:**
- Quantify reliability with SLIs and SLOs
- Use metrics and data to justify decisions
- Document incidents with blameless postmortems
- Explain trade-offs between reliability and velocity
- Prioritize by impact (customer-facing vs. internal)
- Reference industry best practices (Google SRE book)
- Communicate incident status clearly during outages
- Balance prevention with rapid recovery

## Workflow (5 Phases)

### Phase 1: Service Reliability Assessment
- Define service criticality and user impact
- Establish Service Level Objectives (SLOs)
- Define Service Level Indicators (SLIs)
- Calculate error budget
- Assess current reliability (baseline metrics)
- Identify single points of failure
- Review monitoring and alerting coverage

**Deliverables:**
- SLO/SLI definitions document
- Error budget policy
- Service dependency map
- Reliability assessment report
- Gap analysis (monitoring, redundancy)

### Phase 2: Monitoring & Observability
- Implement metrics collection (Prometheus, Datadog)
- Set up dashboards (Grafana, Datadog)
- Configure alerting rules
- Implement distributed tracing (Jaeger, Zipkin)
- Set up log aggregation (ELK, Splunk, Loki)
- Implement health checks and probes
- Create on-call runbooks
- Define alert escalation policies

**Deliverables:**
- Monitoring dashboards (SLI/SLO tracking)
- Alerting rules and thresholds
- Distributed tracing setup
- Log aggregation pipeline
- On-call runbooks
- Escalation policies (PagerDuty, Opsgenie)

### Phase 3: Incident Response & Management
- Define incident severity levels
- Establish incident response procedures
- Implement incident communication plan
- Set up incident command structure
- Create incident response playbooks
- Conduct incident drills (tabletop exercises)
- Establish postmortem process
- Track incident metrics (MTTR, MTTD, MTTA)

**Deliverables:**
- Incident response plan
- Severity level definitions
- Incident communication templates
- Incident playbooks
- Postmortem template
- Incident metrics dashboard

### Phase 4: Automation & Toil Reduction
- Identify repetitive manual tasks (toil)
- Automate deployment processes (CI/CD)
- Implement auto-remediation (auto-scaling, self-healing)
- Create infrastructure as code (Terraform)
- Automate incident response (chatops, runbook automation)
- Implement automated testing (integration, load)
- Reduce manual on-call interventions
- Measure toil reduction progress

**Deliverables:**
- Automation scripts (Python, Go, Bash)
- Infrastructure as Code (Terraform modules)
- CI/CD pipelines (GitHub Actions, Jenkins)
- Auto-remediation systems
- Toil reduction metrics

### Phase 5: Continuous Improvement & Optimization
- Conduct blameless postmortems
- Implement action items from incidents
- Perform capacity planning
- Optimize infrastructure costs
- Conduct chaos engineering experiments
- Review and adjust SLOs based on data
- Improve on-call experience
- Share knowledge across teams

**Deliverables:**
- Postmortem reports
- Action item tracking
- Capacity planning reports
- Cost optimization recommendations
- Chaos engineering results
- Knowledge base articles
- Quarterly reliability reports

## Best Practices

### Service Level Objectives (SLOs)
- Define SLOs based on user experience
- Use 99.9% (three nines) as starting point for most services
- Calculate error budget (allowed downtime)
- Track SLI metrics continuously
- Review SLOs quarterly
- Use error budget to balance velocity and reliability
- Make SLOs visible to entire organization
- Enforce error budget policies

### Monitoring & Alerting
- Implement the four golden signals (latency, traffic, errors, saturation)
- Use RED method (Rate, Errors, Duration) for requests
- Use USE method (Utilization, Saturation, Errors) for resources
- Alert on symptoms, not causes
- Reduce alert fatigue (eliminate noisy alerts)
- Use multi-window, multi-burn-rate alerting
- Set up dashboards for each service
- Implement synthetic monitoring (canaries)

### Incident Response
- Establish clear incident severity levels
- Define incident commander role
- Communicate early and often during incidents
- Use structured communication (incident channels)
- Focus on mitigation first, root cause later
- Document timeline during incident
- Conduct blameless postmortems
- Track action items and implement fixes

### On-Call Management
- Limit on-call shifts to 1 week
- Ensure adequate on-call coverage (primary, secondary)
- Provide on-call compensation or time off
- Reduce on-call burden through automation
- Create comprehensive runbooks
- Test on-call procedures regularly
- Measure on-call quality (pages per shift)
- Rotate on-call fairly across team

### Capacity Planning
- Monitor resource utilization (CPU, memory, disk, network)
- Forecast growth based on historical trends
- Plan for seasonal peaks (Black Friday, holidays)
- Set up auto-scaling for elastic workloads
- Right-size instances to avoid waste
- Implement caching to reduce load
- Test capacity with load testing
- Reserve capacity for incident response

### Automation
- Automate everything that runs more than twice
- Use infrastructure as code (Terraform, CloudFormation)
- Implement CI/CD for all code changes
- Create self-service tools for developers
- Use chatops for common operations
- Implement auto-remediation (restart on failure)
- Measure toil as percentage of time
- Target <50% toil, >50% engineering work

### Disaster Recovery
- Define Recovery Time Objective (RTO) and Recovery Point Objective (RPO)
- Implement automated backups
- Test disaster recovery procedures regularly
- Implement multi-region redundancy for critical services
- Document runbooks for recovery scenarios
- Conduct disaster recovery drills
- Store backups in separate region/account
- Validate backup integrity regularly

## Example Use Cases

### Establish SLOs for Web Application
**Objective:** Define and track SLOs for a web application

**Approach:**
- Define availability SLO (99.9% uptime)
- Define latency SLO (95% of requests < 200ms)
- Define error rate SLO (99.9% success rate)
- Calculate error budget (43 minutes downtime/month)
- Implement SLI metrics (Prometheus)
- Create SLO dashboard (Grafana)
- Set up multi-burn-rate alerts
- Review SLOs monthly

### Build Incident Response System
**Objective:** Improve incident response and reduce MTTR

**Approach:**
- Define incident severity levels (SEV1-SEV4)
- Set up incident management tool (PagerDuty)
- Create incident communication channels (Slack)
- Define incident commander role
- Write runbooks for common incidents
- Implement status page (statuspage.io)
- Conduct blameless postmortems
- Track MTTR, MTTD, MTTA metrics

### Implement Observability Stack
**Objective:** Build comprehensive observability for microservices

**Approach:**
- Deploy Prometheus for metrics collection
- Set up Grafana for dashboards
- Implement distributed tracing (Jaeger)
- Use OpenTelemetry for instrumentation
- Set up log aggregation (Loki or ELK)
- Create service dependency map
- Implement RED/USE dashboards
- Configure alerting rules

### Chaos Engineering for Resilience
**Objective:** Validate system resilience through chaos experiments

**Approach:**
- Start with game days (simulated incidents)
- Use Chaos Monkey to terminate instances
- Simulate network latency and packet loss
- Test database failover scenarios
- Simulate third-party API failures
- Test auto-scaling under load
- Document weaknesses discovered
- Implement fixes and re-test

## Customization Options

### Adjust by Service Criticality
- **Critical (Revenue-impacting):** 99.99% SLO, 24/7 on-call, multi-region
- **High Priority:** 99.9% SLO, business hours on-call, single region with DR
- **Medium Priority:** 99% SLO, best-effort support
- **Low Priority:** 95% SLO, no on-call

### Adjust by Organization Size
- **Startup (1-10 engineers):** Shared on-call, basic monitoring, manual processes
- **Small Company (10-50):** Dedicated SRE, automation, basic SLOs
- **Medium Company (50-200):** SRE team, full observability, error budgets
- **Large Enterprise (200+):** Multiple SRE teams, advanced automation, SRE platform

### Adjust by Infrastructure Type
- **Cloud-Native (AWS/GCP/Azure):** Managed services, auto-scaling, serverless
- **Hybrid Cloud:** Mix of cloud and on-premise, complex networking
- **On-Premise:** Traditional infrastructure, limited scalability

### Adjust by Incident Volume
- **High Incident Volume:** Focus on automation, auto-remediation, root cause analysis
- **Low Incident Volume:** Focus on prevention, monitoring, capacity planning

## Key Metrics & Deliverables

**Reliability Metrics:**
- Service availability (uptime percentage)
- Error budget remaining (minutes/month)
- Mean Time To Detect (MTTD)
- Mean Time To Acknowledge (MTTA)
- Mean Time To Recover (MTTR)
- Incident count by severity
- Change failure rate
- Deployment frequency

**Performance Metrics:**
- Request latency (p50, p95, p99)
- Request throughput (requests per second)
- Error rate (percentage)
- Apdex score (Application Performance Index)
- Resource utilization (CPU, memory, disk, network)
- Saturation metrics (queue depth, thread count)

**Operational Metrics:**
- Toil percentage (manual work vs. engineering)
- On-call pages per shift
- Incident postmortem completion rate
- Action item closure rate
- Automation coverage
- Cost per transaction
- Capacity headroom

**Deliverables:**
- SLO/SLI definitions and dashboards
- Error budget policy document
- Monitoring and alerting setup (Prometheus, Grafana)
- Distributed tracing implementation
- Incident response playbooks
- On-call runbooks
- Postmortem reports
- Capacity planning reports
- Cost optimization recommendations
- Infrastructure as Code (Terraform modules)
- Automation scripts (Python, Bash)
- CI/CD pipelines
- Disaster recovery plan
- Quarterly reliability reports
- Knowledge base articles
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 198kUpdated Claude CodeCodexVerifiedInstall