Context Engine

alirezarezvani/claude-skills/c-level-advisor/skills/context-engine

作者 alirezarezvani19392f7a0826MIT27K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫5 週前更新

Loads and manages company context for all C-suite advisor skills. Reads ~/.claude/company-context.md, detects stale context (>90 days), enriches context during conversations, and enforces privacy/anonymization rules before external API calls. Use when starting any C-suite advisor session, when context looks stale or missing, or before sending company data to an external service.

AI 產生的概覽

為高階主管顧問工作階段載入、檢查並補充公司背景檔案,並包含隱私與匿名化規則。

功能
此技能定義了一套協定:載入公司背景檔案、檢查是否過期,並將階段、創辦人類型、資金續航與當前挑戰等關鍵欄位解析到工作記憶中。它也說明如何在對話中擷取新資訊,並在修改背景檔案前先行確認。在呼叫外部 API 或進行網路搜尋之前,會套用匿名化規則,將數字、姓名與客戶轉換為區間、角色或標籤。
適用情境
適用於高階主管顧問工作階段開始時、公司背景缺失或超過 90 天未更新時,或在將公司資料傳送到外部服務之前。當對話中出現新資訊且背景檔案可能需要更新時,也適用。
執行需求
僅為說明性內容,不附帶指令碼。它需要位於 ~/.claude/company-context.md 的公司背景檔案,並讀取 references/anonymization-protocol.md 以取得外部呼叫規則。

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

來源與署名

來源:alirezarezvani/claude-skills位於c-level-advisor/skills/context-engine提交19392f7

授權條款: MIT

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架