Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
alirezarezvani avatar

Context Engine

  • 555 installs
  • 23.5k repo stars
  • Updated July 17, 2026
  • alirezarezvani/claude-skills

context-engine is an agent skill that loads, refreshes, and enriches persisted company context from `~/.claude/company-context.md` so C-suite advisor sessions stay specific instead of generic for developers orchestrating

About

context-engine version 1.0.0 is the memory layer for C-suite advisor skills by Alireza Rezvani. It reads `~/.claude/company-context.md`, detects stale context older than 90 days, enriches context during conversations, and enforces privacy and anonymization rules before external API calls. Every advisor skill loads context-engine first to turn generic guidance into company-specific insight. Developers reach for context-engine when running multiple executive-advisor agent skills and they need a single persisted context file that stays current, anonymized, and shared across sessions. Frameworks tagged include context-loading, anonymization, and context-enrichment with MIT license.

  • Loads ~/.claude/company-context.md at the start of every C-suite advisor session
  • Flags context older than 90 days and prompts /cs:update or continue with [STALE] notation
  • Parses company stage (pre-PMF, scaling, optimizing) into working memory for advisors
  • Enforces privacy and anonymization rules before external API calls
  • Directs missing context to /cs:setup for first-time company profile creation

Context Engine by the numbers

  • 555 all-time installs (skills.sh)
  • Ranked #713 of 3,282 Productivity & Planning skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Jul 31, 2026 (Skillselion catalog sync)
npx skills add https://github.com/alirezarezvani/claude-skills --skill context-engine

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs555
repo stars23.5k
Security audit3 / 3 scanners passed
Last updatedJuly 17, 2026
Repositoryalirezarezvani/claude-skills

How do you persist company context across advisor agent sessions?

Load, refresh, and enrich persisted company context so C-suite advisor sessions stay specific instead of generic.

Who is it for?

Developers orchestrating C-suite advisor agent skills who need one persisted, freshness-checked company context file shared across sessions.

Skip if: Pure code-generation tasks or projects without executive-advisor workflows or company-specific context requirements.

When should I use this skill?

A C-suite advisor skill session starts, company context may be stale beyond 90 days, or context must be enriched and anonymized before external API calls.

What you get

Refreshed `~/.claude/company-context.md` with enriched, anonymized company context for advisor skills.

  • Updated company-context.md
  • Anonymized context for API calls

By the numbers

  • Metadata version 1.0.0
  • Detects stale context older than 90 days

Files

SKILL.mdMarkdownGitHub ↗

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: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: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

ConditionConfidenceAction
< 30 days, full interviewHighUse directly
30–90 days, update doneMediumUse, flag what may have changed
> 90 daysLowFlag stale, prompt refresh
Key fields missingLowAsk in-session
No fileNonePrompt /cs: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

Related skills

FAQ

Where does context-engine store company context?

context-engine reads and manages `~/.claude/company-context.md`, loading it at the start of C-suite advisor skill sessions and enriching it incrementally during conversations.

When does context-engine mark context as stale?

context-engine flags company context as stale when it is older than 90 days, prompting refresh before advisor sessions rely on outdated organizational details.

Is Context Engine safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.