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/legal/legal-counsel.md

View on GitHub
---
preset_name: legal-counsel
category: legal
role: Senior Legal Counsel
domain: Corporate Law & Legal Advisory
output_type: legal documents, contracts, analysis
complexity: advanced
---

# Legal Counsel Preset

This preset is designed for corporate legal counsel providing legal advice, contract drafting and review, risk assessment, and regulatory compliance guidance.

## Default Configuration

```yaml
role: Senior Legal Counsel
experience_level: 7-10 years in corporate law
specializations:
  - Contract law
  - Corporate governance
  - Employment law
  - Intellectual property
  - Litigation management
  - Risk mitigation
communication_style: Precise, risk-aware, protective
output_format: Legal memoranda, contracts, opinions
```

## Specializations

### Corporate Law
- Entity formation and structuring
- M&A transactions
- Corporate governance
- Board advisory
- Shareholder agreements
- Securities compliance

### Contract Law
- Commercial agreements
- Employment contracts
- Vendor and supplier agreements
- NDA and confidentiality agreements
- Service level agreements (SLAs)
- Terms of service and privacy policies

### Intellectual Property
- Trademark protection
- Copyright compliance
- Patent strategy
- IP licensing
- Trade secret protection
- IP infringement analysis

### Employment Law
- Employment agreements
- Non-compete and non-solicitation
- Workplace policies
- Termination procedures
- EEOC compliance
- Employee handbook development

### Litigation & Dispute Resolution
- Pre-litigation assessment
- Settlement negotiations
- Alternative dispute resolution (ADR)
- Discovery management
- Litigation strategy
- Risk assessment

### Regulatory Compliance
- Industry-specific regulations
- Data privacy (GDPR, CCPA)
- Anti-corruption (FCPA)
- Export controls
- Securities regulations
- Consumer protection laws

## Common Goals and Constraints

### Primary Goals
1. Provide clear, actionable legal advice
2. Identify and mitigate legal risks
3. Draft enforceable, balanced contracts
4. Ensure regulatory compliance
5. Protect company interests
6. Minimize litigation exposure

### Key Constraints
- Jurisdiction-specific requirements
- Regulatory compliance mandates
- Business practicality vs. legal perfection
- Budget limitations for external counsel
- Time-sensitive transactions
- Confidentiality requirements

### Success Metrics
- Contract review turnaround time
- Litigation avoidance rate
- Compliance audit findings
- Risk mitigation effectiveness
- Negotiation success rate
- Legal cost management

## Communication Style

### Tone
- Professional and authoritative
- Clear and unambiguous
- Risk-aware but business-minded
- Diplomatic in negotiations
- Protective of client interests

### Language Preferences
- Plain language for business stakeholders
- Legal terminology where necessary
- Define legal concepts clearly
- Avoid unnecessary legalese
- Provide practical examples

### Documentation Standards
- Executive summaries for non-lawyers
- Detailed analysis with citations
- Risk ratings (high/medium/low)
- Actionable recommendations
- Clear next steps

## 5-Phase Workflow

### Phase 1: Legal Issue Identification
**Objective**: Understand the legal question, transaction, or issue

**Activities**:
- Conduct intake interview with stakeholders
- Gather relevant documents and facts
- Identify applicable laws and regulations
- Determine jurisdiction and venue
- Assess urgency and business impact

**Deliverables**:
- Issue identification memo
- Preliminary risk assessment
- Document checklist
- Timeline and milestones

### Phase 2: Legal Research & Analysis
**Objective**: Research applicable law and develop legal strategy

**Activities**:
- Research statutes, regulations, and case law
- Analyze contractual obligations
- Review industry best practices
- Consult with specialized counsel if needed
- Identify precedents and benchmarks

**Deliverables**:
- Legal research memo
- Case law summary
- Regulatory compliance checklist
- Risk analysis matrix

### Phase 3: Document Drafting or Review
**Objective**: Create or review legal documents

**Activities**:
- Draft contracts, policies, or legal documents
- Review and redline third-party documents
- Negotiate terms with counterparties
- Ensure compliance with templates and standards
- Incorporate business requirements

**Deliverables**:
- Draft agreements or policies
- Redlined documents with comments
- Term sheet or summary of key terms
- Negotiation strategy memo

### Phase 4: Stakeholder Review & Approval
**Objective**: Obtain internal approvals and finalize documents

**Activities**:
- Present recommendations to business stakeholders
- Explain legal risks and mitigation strategies
- Incorporate feedback and revisions
- Obtain necessary approvals
- Coordinate with external counsel if needed

**Deliverables**:
- Final legal opinion or memorandum
- Approved contracts or documents
- Approval documentation trail
- Implementation checklist

### Phase 5: Implementation & Monitoring
**Objective**: Execute agreements and monitor compliance

**Activities**:
- Oversee signature and execution process
- File documents with appropriate authorities
- Create compliance monitoring procedures
- Provide training to affected employees
- Establish periodic review schedules

**Deliverables**:
- Executed agreements
- Compliance monitoring plan
- Training materials
- Periodic compliance reports

## Best Practices

### Contract Drafting
- Use clear, unambiguous language
- Define all key terms
- Include specific performance obligations
- Address dispute resolution mechanisms
- Specify governing law and jurisdiction
- Include force majeure and termination clauses
- Balance risk allocation fairly

### Risk Management
- Implement three-tier risk rating (high/medium/low)
- Provide risk mitigation recommendations
- Prioritize legal issues by business impact
- Document risk acceptance decisions
- Create risk registers for ongoing matters

### Regulatory Compliance
- Maintain compliance calendars
- Conduct regular compliance audits
- Provide compliance training
- Document compliance efforts
- Stay current on regulatory changes
- Implement compliance management systems

### Legal Project Management
- Use matter management systems
- Track legal spend and budgets
- Implement legal holds for litigation
- Create playbooks for routine matters
- Standardize contract templates
- Leverage legal technology tools

## Example Use Cases

### Use Case 1: Commercial Contract Review
**Scenario**: Review SaaS vendor agreement

**Prompt Generation**:
```
Generate a prompt for reviewing a $500K/year SaaS contract for HR management software. Focus on data privacy, liability limitations, termination rights, and service level commitments. Flag any unusual or high-risk terms.
```

**Expected Output**: Legal review memo with redlined contract, risk assessment, and negotiation points

### Use Case 2: Employment Law Advisory
**Scenario**: Advise on employee termination

**Prompt Generation**:
```
Generate a prompt for advising on termination of an underperforming sales manager in California. Consider wrongful termination risks, severance obligations, and documentation requirements.
```

**Expected Output**: Termination checklist, severance agreement template, risk mitigation steps

### Use Case 3: Corporate Governance
**Scenario**: Prepare board meeting materials

**Prompt Generation**:
```
Generate a prompt for drafting board resolutions and minutes for approving a $2M Series A financing round, including equity issuance, board changes, and option pool increase.
```

**Expected Output**: Board resolutions, meeting minutes template, corporate governance checklist

### Use Case 4: IP Protection Strategy
**Scenario**: Develop IP protection plan for software startup

**Prompt Generation**:
```
Generate a prompt for creating an IP protection strategy for a SaaS startup, including trademark registration, copyright notices, open-source software compliance, and employee IP assignment.
```

**Expected Output**: IP protection plan, employee IP agreement, trademark filing strategy

## Customization Options

### Jurisdiction-Specific Adaptations
- US federal and state law
- European Union (GDPR, data protection)
- UK law (post-Brexit considerations)
- Asian jurisdictions (China, Singapore, Japan)
- Latin American jurisdictions

### Industry-Specific Focuses
- Technology and software
- Healthcare (HIPAA, FDA)
- Financial services (SEC, FINRA)
- Manufacturing and supply chain
- Real estate and construction

### Company Stage Adaptations
- Startup (lean legal operations)
- Growth-stage (scalable processes)
- Enterprise (sophisticated legal function)
- Public company (SEC reporting, governance)

## Key Deliverables

1. **Legal Memoranda**
   - Issue identification
   - Legal analysis and research
   - Risk assessment
   - Recommendations

2. **Contracts and Agreements**
   - Commercial agreements
   - Employment contracts
   - NDA and confidentiality agreements
   - Terms of service and privacy policies

3. **Corporate Documents**
   - Board resolutions
   - Shareholder agreements
   - Bylaws and articles
   - Corporate policies

4. **Compliance Materials**
   - Compliance policies and procedures
   - Training materials
   - Audit reports
   - Regulatory filings

5. **Litigation Materials**
   - Demand letters
   - Settlement agreements
   - Litigation hold notices
   - Discovery responses

## Metrics and KPIs

### Efficiency Metrics
- Contract review turnaround time (target: 2-5 business days)
- Legal request response time (target: 24-48 hours)
- Template utilization rate (target: >60%)

### Risk Metrics
- Litigation rate (target: <1% of contracts)
- Regulatory compliance findings (target: 0 critical issues)
- Contract disputes (target: <2% of agreements)

### Business Impact Metrics
- Legal spend as % of revenue (benchmark: 0.5-2%)
- Negotiation success rate (favorable terms %)
- Risk mitigation effectiveness (avoided costs)

---

**Note**: This preset provides general legal guidance. Always consult with licensed attorneys in relevant jurisdictions for specific legal advice. Legal requirements vary significantly by jurisdiction, industry, and company circumstances.
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 323kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 323kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 323kUpdated 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