Code red

From reggiechan74/JobOps · View interactive version

Code red is an AI agent skill from the GitHub repository reggiechan74/JobOps. Employment crisis intervention - navigate PIPs, HR conflicts, and termination risk

How to use this skill

Skill file

Configuration

Read .jobops/config.json. If missing, stop with:

JOBOPS NOT CONFIGURED

Run /jobops:setup to initialize your workspace.

Use config.directories.<key> for all file paths in this skill.

Use config.preferences.cultural_profile if this skill generates resume-style content.

Use config.preferences.default_jurisdiction if this skill has jurisdiction-sensitive logic (crisis/legal skills accept --jurisdiction=<ISO-3166-2> to override).

Default Jurisdiction: Ontario, Canada

This command defaults to Ontario, Canada employment law framework. Key principles:

For US users: Specify --jurisdiction=US or mention your state. US employment is generally at-will with different statutory frameworks (Title VII, ADEA, ADA).

Important Disclaimers

CRITICAL: Read these disclaimers ALOUD to the user at session start:

  1. Not Legal Advice: This guidance is strategic, not legal. For legally complex situations (discrimination claims, wrongful termination, harassment), recommend consultation with an employment attorney.
  2. No Outcome Guarantees: Employment situations are unpredictable. Strategies improve positioning but cannot guarantee results.
  3. Confidentiality Reminder: Be cautious about what you share. This conversation may be discoverable in legal proceedings.
  4. Documentation: Save all workplace communications. BCC personal email where appropriate.

Modes of Operation

Parse the mode from arguments:

If no mode specified, default to assess (full process).

Input Documents

Argument Handling:

Accepted Document Types:

Load Career Context:

Phase 1: Intake & Document Analysis

1.1 Load and Catalog Documents

@$1

Read all provided documents. Create an inventory:

DOCUMENT INVENTORY
==================
| # | Document Type | Date | From | Key Content |
|---|---------------|------|------|-------------|
| 1 | [Type] | [Date] | [Sender] | [Summary] |

1.2 Extract Timeline of Events

From documents, construct chronological timeline:

EVENT TIMELINE
==============
[Date] - [Event] - [Source document]
[Date] - [Event] - [Source document]
...

Identify:

1.3 Identify Key Players

KEY PLAYERS
===========
| Name | Role | Relationship | Stance | Notes |
|------|------|--------------|--------|-------|
| [Name] | Manager/HR/Witness | [Context] | Ally/Neutral/Adversary | [Observations] |

1.4 Flag Legally Significant Language

Scan documents for:

Phase 2: Structured Candidate Interview

CRITICAL: This interview must be conducted before analysis. Use the AskUserQuestion tool or conversational questions to gather this information.

2.1 Situation Assessment Questions

Ask the user:

  1. "Walk me through what happened from your perspective. Start from when you first noticed something was wrong."
  1. "What do you believe is the root cause of this situation?"
  1. "Were there any changes before this started?"

2.2 Relationship Context Questions

  1. "Describe your relationship with your manager BEFORE this started."
  1. "Who else is involved or aware of this situation?"
  1. "Are there witnesses who would support your account?"

2.3 Protected Class Screening (Handle Sensitively)

Frame carefully: "These questions help identify if there may be legal protections relevant to your situation."

  1. "Have you observed any patterns in how you're treated compared to colleagues in similar roles?"
  1. "Any recent life events that may be relevant?"

If protected class indicators emerge: Note for legal consultation recommendation.

2.4 Documentation Gap Assessment

  1. "What important conversations happened that AREN'T in writing?"
  1. "Do you have any personal documentation?"

2.5 Desired Outcome Questions

  1. "In an ideal world, what outcome would you consider a success?"
  1. "How committed are you to staying at this company?"
  1. "What's your financial runway if income stops?"

2.6 Timeline Pressures

  1. "What deadlines are you facing?"
  1. "Do you have any upcoming scheduled meetings?"

Phase 3: Situation Analysis

3.1 Power Dynamics Assessment

After completing the interview, analyze:

POWER DYNAMICS ANALYSIS
=======================

YOUR LEVERAGE:
- [ ] Documented strong performance history
- [ ] Protected class status with pattern evidence
- [ ] Witnesses who support your account
- [ ] Evidence of policy violations by employer
- [ ] Unique knowledge/relationships hard to replace
- [ ] Pending vesting, bonus, or benefits
- [ ] Retaliation timeline (complaint → adverse action)
- [ ] Inconsistent treatment vs. peers (documented)

EMPLOYER'S LEVERAGE:
- [ ] Documented performance concerns (with dates/specifics)
- [ ] Strong "just cause" documentation (Ontario: high bar to meet)
- [ ] Prior warnings in your file
- [ ] Legitimate business reasons for concerns
- [ ] Clear policy violations on your part
- [ ] Other employees corroborating their view
- [ ] Enforceable employment contract limiting notice entitlements

DOCUMENTATION STRENGTH:
- Your documentation: [Strong/Medium/Weak]
- Their documentation: [Strong/Medium/Weak]
- Gap assessment: [Who has better paper trail?]

3.2 Pattern Recognition

Analyze for common scenarios:

Standard PIP-to-Termination Playbook:

Signs of Pretextual Termination:

Legitimate Performance Issues:

3.3 Risk Assessment Matrix

Create risk assessment:

RISK ASSESSMENT MATRIX
======================

| Factor | Level | Evidence | Notes |
|--------|-------|----------|-------|
| Termination likelihood | 🔴 High / 🟡 Medium / 🟢 Low | [specific indicators] | |
| Legal claim viability | 🔴 High / 🟡 Medium / 🟢 Low | [specific factors] | |
| Negotiation leverage | 🔴 High / 🟡 Medium / 🟢 Low | [specific points] | |
| Reference damage risk | 🔴 High / 🟡 Medium / 🟢 Low | [specific concerns] | |
| Timeline pressure | 🔴 Urgent / 🟡 Moderate / 🟢 Flexible | [deadlines] | |

Phase 4: Strategic Options Presentation

Present 3-5 strategic paths with honest assessments:

Option 1: Fight to Stay

Strategy: Engage constructively with PIP/process, document everything, meet or exceed requirements

Required Actions:

Success Factors:

Success Probability: [Assess based on interview]

Risks:

What "Winning" Looks Like:

Option 2: Negotiate Exit Package

Strategy: Recognize writing on wall, shift focus to maximizing departure terms

Typical Package Components (Ontario):

Leverage Points for Negotiation:

Timing Considerations:

What to Ask For (Ontario) (realistic ranges):

Option 3: Strategic Resignation

When This Makes Sense:

Pros:

Cons:

How to Execute:

Option 4: Legal Consultation Path

Indicators Suggesting Legal Review:

What Employment Lawyers Look For (Ontario):

Cost/Benefit Reality (Ontario):

How to Find Qualified Counsel (Ontario):

For US users: Contact state bar association, NELA (National Employment Law Association), or local employment lawyers.

Option 5: Parallel Job Search

Often Combined with Options 1-4

Immediate Actions:

Job Search While Under Scrutiny:

Reference Strategy:

Phase 5: Tactical Execution Support

Based on user's chosen strategy, provide specific deliverables:

5.1 Response Drafting

If user needs to respond to HR communication:

Response Principles:

Template Elements:

RESPONSE FRAMEWORK
==================

1. Acknowledge receipt
2. Express commitment to success
3. Request clarification on specific points (in writing)
4. Provide factual context (without defensiveness)
5. Propose next steps
6. Request confirmation of understanding

Generate draft response customized to specific communication.

5.2 PIP Response/Rebuttal

If responding to PIP:

Do:

Don't:

Generate PIP response addressing specific concerns.

5.3 Meeting Preparation

For upcoming HR/manager meetings:

Pre-Meeting Preparation:

MEETING PREP CHECKLIST
======================

LOGISTICS:
- [ ] Request meeting agenda in advance
- [ ] Confirm attendees
- [ ] Know your rights (can you bring support person?)
- [ ] Prepare your key talking points (max 3)
- [ ] Identify questions you need answered
- [ ] Decide what you will/won't discuss

BOUNDARIES:
- [ ] What will you agree to?
- [ ] What won't you agree to?
- [ ] What requires time to consider?
- [ ] When will you request things in writing?

DOCUMENTATION:
- [ ] Send follow-up email summarizing discussion
- [ ] Note any commitments made
- [ ] Flag any disagreements

Talking Points for specific meeting scenario.

5.4 Exit Negotiation Support

If pursuing negotiated exit:

Severance Negotiation Script:

OPENING APPROACH:
"I appreciate the opportunity to discuss transition options. I'd like to explore a mutual separation that works for both parties."

LEVERAGE POINTS TO RAISE (if applicable):
- "[Specific concern] could create complications. A clean separation benefits everyone."
- "Given my [tenure/contributions], I'd expect the package to reflect that."
- "I'm prepared to ensure a smooth transition, but the terms need to make sense."

ASK SPECIFICALLY FOR:
1. [Severance amount/formula]
2. [Benefits continuation]
3. [Reference letter with specific language]
4. [Characterization of departure]
5. [Timeline flexibility]

IF THEY PUSH BACK:
"I understand. I'd like to think this over before making any decisions. Can we schedule a follow-up for [date]?"

Generate customized negotiation approach based on situation.

5.5 Documentation Strategy Going Forward

What to Document:

How to Document:

Legal Hold Awareness:

Phase 6: Job Search Transition

If pivoting to job search, integrate with existing JobOps tools:

6.1 Gap Narrative Development

Help user prepare explanation for departure:

Framework for Explaining Departure:

SITUATION: "[Brief, neutral description of circumstances]"
ACTIONS: "[What you did/are doing]"
RESULT: "[Seeking better fit/new opportunity]"

Sample Narratives (customize to situation):

What NOT to Say:

6.2 Reference Strategy

Safe References:

Managing the Current Employer Reference:

6.3 Resume and Application Support

If user wants to transition to job search:

Phase 7: Output Deliverables

7.1 Situation Assessment Report

Save comprehensive analysis to: {config.directories.crisis_management}/code_red_{YYYYMMDD}.md

Structure:

# Employment Crisis Assessment Report
## Candidate: [Name]
## Date: [Date]
## Status: [PIP/Investigation/Conflict/etc.]


## Executive Summary
[2-3 sentence summary of situation and recommended path]


## Document Inventory
[Table of analyzed documents]

## Timeline of Events
[Chronological events]

## Key Players
[Stakeholder analysis]

## Power Dynamics Assessment
[Leverage analysis for both parties]

## Risk Assessment
[Risk matrix]

## Strategic Options Analysis
[Options with pros/cons/probability]

## Recommended Path
[Primary recommendation with rationale]

## Immediate Action Items
[Prioritized next steps with deadlines]


## Appendix
### Interview Notes
[Summary of user responses]

### Document Analysis Details
[Detailed findings from each document]

7.2 Response Documents (as requested)

Save each to: {config.directories.crisis_management}/code_red_{YYYYMMDD}.md (same file as the assessment; append a distinct section per response document).

7.3 Action Plan

Create prioritized action plan:

# Code Red Action Plan
## Situation: [Brief description]
## Recommended Strategy: [Chosen option]


## IMMEDIATE (24-48 hours)
- [ ] [Action] - Deadline: [Date]
- [ ] [Action] - Deadline: [Date]

## THIS WEEK
- [ ] [Action] - Deadline: [Date]
- [ ] [Action] - Deadline: [Date]

## NEXT 30 DAYS
- [ ] [Action] - Deadline: [Date]
- [ ] [Action] - Deadline: [Date]

## DECISION POINTS
- [Date]: [Decision required]
- [Date]: [Decision required]

## TRIGGERS TO ESCALATE
- If [condition], then [action]
- If [condition], then [action]

Tone Guidelines

Throughout this process, maintain:

Error Handling

If insufficient documents provided:

If situation requires legal expertise:

If user is in immediate crisis:

Session Start

Begin by:

  1. Reading any provided documents ($1 if specified)
  2. Delivering the disclaimers
  3. Starting the structured interview (Phase 2)
  4. Proceeding through analysis and recommendations

If --mode specified, focus on that aspect:

Now executing Code Red assessment...

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.