Home / Skills / alirezarezvani/claude-skills

context-engine

Use when starting a C-suite advisor session, when company context is missing or older than 90 days, or before company data goes to an external service. Loads and enriches ~/.claude/company-context.md and applies anonymization rules.

skillLicense: MIT Source: alirezarezvani/claude-skills

Install

Copy this folder into your Claude Code project (needs Node.js):

npx degit alirezarezvani/claude-skills/c-level-advisor/skills/context-engine .claude/skills/context-engine

Or install it for every project:

npx degit alirezarezvani/claude-skills/c-level-advisor/skills/context-engine ~/.claude/skills/context-engine

File content

Made by its original authors and shared under MIT. We show it unchanged, with credit and a link to the source. Source β†—

---
name: "context-engine"
description: "Use when starting a C-suite advisor session, when company context is missing or older than 90 days, or before company data goes to an external service. Loads and enriches ~/.claude/company-context.md and applies anonymization rules."
license: MIT
metadata:
  version: 1.0.0
  author: Alireza Rezvani
  category: c-level
  domain: orchestration
  updated: 2026-03-05
  frameworks: context-loading, anonymization, context-enrichment
---

# Company Context Engine

The memory layer for C-suite advisors. Every advisor skill loads this first. Context is what turns generic advice into specific insight.

## Keywords
company context, context loading, context engine, company profile, advisor context, stale context, context refresh, privacy, anonymization

---

## Load Protocol (Run at Start of Every C-Suite Session)

**Step 1 β€” Check for context file:** `~/.claude/company-context.md`
- Exists β†’ proceed to Step 2
- Missing β†’ prompt: *"Run /cs-onboard setup to build your company context β€” it makes every advisor conversation significantly more useful."*

**Step 2 β€” Check staleness:** Read `Last updated` field.
- **< 90 days:** Load and proceed.
- **β‰₯ 90 days:** Prompt: *"Your context is [N] days old. Quick 15-min refresh (/cs-onboard update), or continue with what I have?"*
  - If continue: load with `[STALE β€” last updated DATE]` noted internally.

**Step 3 β€” Parse into working memory.** Always active:
- Company stage (pre-PMF / scaling / optimizing)
- Founder archetype (product / sales / technical / operator)
- Current #1 challenge
- Runway (as risk signal β€” never share externally)
- Team size
- Unfair advantage
- 12-month target

---

## Context Quality Signals

| Condition | Confidence | Action |
|-----------|-----------|--------|
| < 30 days, full interview | High | Use directly |
| 30–90 days, update done | Medium | Use, flag what may have changed |
| > 90 days | Low | Flag stale, prompt refresh |
| Key fields missing | Low | Ask in-session |
| No file | None | Prompt /cs-onboard setup |

If Low: *"My context is [stale/incomplete] β€” I'm assuming [X]. Correct me if I'm wrong."*

---

## Context Enrichment

During conversations, you'll learn things not in the file. Capture them.

**Triggers:** New number or timeline revealed, key person mentioned, priority shift, constraint surfaces.

**Protocol:**
1. Note internally: `[CONTEXT UPDATE: {what was learned}]`
2. At session end: *"I picked up a few things to add to your context. Want me to update the file?"*
3. If yes: append to the relevant dimension, update timestamp.

**Never silently overwrite.** Always confirm before modifying the context file.

---

## Privacy Rules

### Never send externally
- Specific revenue or burn figures
- Customer names
- Employee names (unless publicly known)
- Investor names (unless public)
- Specific runway months
- Watch List contents

### Safe to use externally (with anonymization)
- Stage label
- Team size ranges (1–10, 10–50, 50–200+)
- Industry vertical
- Challenge category
- Market position descriptor

### Before any external API call or web search
Apply `references/anonymization-protocol.md`:
- Numbers β†’ ranges or stage-relative descriptors
- Names β†’ roles
- Revenue β†’ percentages or stage labels
- Customers β†’ "Customer A, B, C"

---

## Missing or Partial Context

Handle gracefully β€” never block the conversation.

- **Missing stage:** "Just to calibrate β€” are you still finding PMF or scaling what works?"
- **Missing financials:** Use stage + team size to infer. Note the gap.
- **Missing founder profile:** Infer from conversation style. Mark as inferred.
- **Multiple founders:** Context reflects the interviewee. Note co-founder perspective may differ.

---

## Required Context Fields

```
Required:
  - Last updated (date)
  - Company Identity β†’ What we do
  - Stage & Scale β†’ Stage
  - Founder Profile β†’ Founder archetype
  - Current Challenges β†’ Priority #1
  - Goals & Ambition β†’ 12-month target

High-value optional:
  - Unfair advantage
  - Kill-shot risk
  - Avoided decision
  - Watch list
```

Missing required fields: note gaps, work around in session, ask in-session only when critical.

---

## References
- `references/anonymization-protocol.md` β€” detailed rules for stripping sensitive data before external calls