[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69A62FQ8YC47CNF66EKS3TB":3,"skill-same:01M69A62FQ8YC47CNF66EKS3TB":78},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":34,"linkOnly":35,"markdownContent":36,"markdownBody":37,"frontMatter":38,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":42,"repositoryHtmlUrl":43,"repositoryHomepageUrl":17,"ownerHtmlUrl":44,"ownerBlogUrl":45,"ownerDescription":46,"updatedAt":47,"install":48,"resources":61},"01M69A62FQ8YC47CNF66EKS3TB","institutional-knowledge","离职领导知识萃取归档","Extract and preserve a departing senior leader's institutional knowledge — projects, decisions, rationale, relationships, tribal knowledge — into a structured, multi-phase archive built from M365 signals (emails, Teams, meetings, SharePoint\u002FOneDrive). Resumable across multiple sessions. Use when the user asks to \"build an institutional knowledge archive\", \"preserve institutional knowledge\", \"capture a departing leader's knowledge\", \"run a knowledge extraction for an executive handoff\", \"document a leadership transition before someone retires\", or otherwise to capture\u002Fpreserve a specific leader's decision history and expertise before they leave. Do not trigger on incidental mentions of someone retiring, leaving, or being out of office.","将即将离职的高级领导者的机构知识——项目、决策、决策依据、人际关系、隐性知识——萃取并保存为结构化的多阶段档案，档案基于 M365 信号（电子邮件、Teams、会议、SharePoint\u002FOneDrive）构建。可跨多个会话继续执行。当用户要求\"建立机构知识档案\"、\"保存机构知识\"、\"捕获即将离职领导的知识\"、\"为高管交接开展知识萃取\"、\"在有人退休前记录领导层交接\"，或以其他方式捕获\u002F保存特定领导离职前的决策历史和专业知识时使用。不要在只是偶然提到某人退休、离职或不在岗时触发。","microsoft\u002Fcat-agent-skills","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69A1AHE1MABT7GVP5143M5Z",107,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fcat-agent-skills\u002Fblob\u002Fmain\u002Fsubmissions\u002Finstitutional-knowledge\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TRAEZFJ43R95HPEBJYG","知识工作者","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRFRAYBCBW9WKDY9TCSHY3","知识管理与沉淀","SCENARIO","使用场景",[31,32,33],"institutional knowledge","handoff","sessions","2026-11-10 10:12:30",false,"---\nname: institutional-knowledge\ndescription: Extract and preserve a departing senior leader's institutional knowledge — projects, decisions, rationale, relationships, tribal knowledge — into a structured, multi-phase archive built from M365 signals (emails, Teams, meetings, SharePoint\u002FOneDrive). Resumable across multiple sessions. Use when the user asks to \"build an institutional knowledge archive\", \"preserve institutional knowledge\", \"capture a departing leader's knowledge\", \"run a knowledge extraction for an executive handoff\", \"document a leadership transition before someone retires\", or otherwise to capture\u002Fpreserve a specific leader's decision history and expertise before they leave. Do not trigger on incidental mentions of someone retiring, leaving, or being out of office.\n---\n\n# \u002Finstitutional-knowledge — Executive Knowledge Preservation\n\n**Intent.** Build a comprehensive, structured knowledge archive of a senior leader's tenure by mining their Microsoft 365 signals (emails, Teams chats, meetings, OneDrive\u002FSharePoint contributions), distilling decisions\u002Frationale\u002Frelationships, and producing a multi-phase document a successor or AI assistant can ground on. Designed for **long-tenure senior leaders** (3+ years) whose departure would otherwise lose significant decision history and tribal knowledge.\n\nThis skill is **resumable**. Each invocation reads `manifest.md` and continues where the last session stopped. Plan for a 1-week sprint across multiple sessions.\n\n---\n\n## 0. Core operating principles\n\n1. **The leader curates; you produce.** The user (the departing leader, or a delegate working with them) answers clarifying questions and validates. You write everything.\n2. **Decision archaeology is the highest-value output.** Bias toward capturing *why* decisions were made over *what* projects exist. Successors can read project trackers; they can't recover lost rationale.\n3. **Multi-phase, gated progression.** Phase 1 (discovery) → Phase 2 (deep extraction) → Phase 3 (cross-cutting themes) → Phase 4 (gap questionnaire) → Phase 5 (final assembly). Confirm with the user before advancing phases.\n4. **Idempotent ingest.** Every signal is keyed by `(source_id, item_id)` or `(source_id, date)`. Re-running merges, never duplicates.\n5. **Capture before polish.** Get raw signals down across all phases before refining. If time runs short, raw breadth beats polished narrowness.\n6. **Privacy.** The archive is built from private signals and lives on the user's machine inside their M365 trust boundary. HR \u002F compensation \u002F performance \u002F health content is automatically out of scope. The leader alone decides what to share with the org or successor.\n\n---\n\n## 1. First-run bootstrap\n\nDefault archive path: `$env:USERPROFILE\\Documents\\institutional-knowledge` on Windows\u002FPowerShell hosts, `~\u002FDocuments\u002Finstitutional-knowledge` elsewhere. Some Cowork\u002FScout sandboxes expose a different writable root and may not set `$env:USERPROFILE` — if the default path can't be resolved or written, discover a writable `Documents\u002F`-equivalent folder from the host and confirm it with the user before scaffolding. Detection: an `AGENTS.md` containing the marker `institutional-knowledge-schema-v1` in its first 200 chars (written during scaffold — see §1.4).\n\n**If no archive exists, run bootstrap.**\n\n### 1.1 Confirm parameters (one at a time — never silently default)\n\n- **a) Archive location.** Default as above; allow override.\n- **b) Leader's name, title, tenure dates.** \"Doug Smith — VP of Platform Engineering — Jan 2020 to present, last day June 30 2026.\"\n- **c) Tenure horizon.** Default: full tenure. Confirm start year. Senior leaders' early-tenure decisions often anchor current state — do not truncate without reason.\n- **d) Audience for the archive.** Successor (named, if known) \u002F leadership team \u002F future AI assistant grounding \u002F all of the above. Affects tone of final document.\n- **e) Explicit out-of-scope.** Any project, vendor, or topic the leader does not want captured. Always-excluded: HR matters, compensation, performance reviews, health.\n- **f) Sessions available.** How many work sessions before the last day. Calibrates Section 1.5 plan.\n- **g) Delegate?** Is the user the leader themselves, or a delegate (chief of staff, EA, successor) operating on their behalf? Affects how clarifying questions are framed.\n\n### 1.2 Gather identity & relationships\n\nIn parallel (retry transient failures once before marking blocked):\n\n- `m365_get_my_profile` *(required — abort if it fails twice)*\n- `m365_get_my_manager`\n- `m365_get_my_direct_reports`\n- `m365_get_relevant_people` *(limit 25, used to seed the relationship map)*\n\n### 1.3 Discover sources → write `manifest.md`\n\nBest-effort; record any failures in `log.md` under \"Discovery limitations\" and continue.\n\n- **Mail folders** — `m365_list_mail_folders(limit: 20)`. **Always pass `limit` explicitly.** Note custom folders (`Leadership`, `Board`, `Strategy`, `Decisions`, project-named folders). Skip personal folders (`H1B*`, `Immig*`, `PTO*`, `Personal`, `H1Renewal`).\n- **Active Teams chats** — `m365_list_chats(limit: 50)`. Do not pass `orderBy`. Tag each `1:1` \u002F `group` \u002F `meeting`.\n- **Teams memberships** — `m365_list_teams` + `m365_list_channels`. Often fails on `teams_auth_required` — mark blocked and continue; `m365_list_chats` already covers most active conversation.\n- **Recurring meetings** — `m365_list_events` over the last 180-365 days; cluster by subject prefix to detect recurrence.\n- **Authored documents** — `m365_get_recent_files(limit: 50)` first; fall back to `m365_list_files(limit: 50)` if it fails. Do not rely on `m365_search_files(query: '*')` — unreliable.\n- **Targeted email scoping** — `m365_search_emails` works for specific names\u002Fkeywords but fails on broad queries. Use only during per-project deep dives in Phase 2.\n\nEach source becomes a row in `manifest.md` with status `pending` \u002F `in_progress` \u002F `done` \u002F `skipped` \u002F `blocked`.\n\n### 1.4 Scaffold the archive\n\nCreate the layout (Section 2) and seed files: `AGENTS.md`, `index.md`, `log.md`, `manifest.md`, `phase-1-inventory.md`, `relationships.md`, `decisions.md`. Other files are created on first need.\n\n**`AGENTS.md` must begin with the detection marker so future sessions can recognize this archive (see §1).** Write the literal string `institutional-knowledge-schema-v1` within the first 200 characters of `AGENTS.md` — the recommended first line is an HTML comment so it renders invisibly:\n\n```markdown\n\u003C!-- institutional-knowledge-schema-v1 -->\n# Institutional Knowledge Archive — \u003CLeader name>\n\u003C!-- schema + conventions for this archive; do not delete the marker above -->\n```\n\nDo not scaffold `AGENTS.md` without this marker: resumability (§11 \"continue\") depends on it.\n\n### 1.5 Propose phase plan\n\nMap phases to remaining sessions:\n\n| Session | Phase focus |\n|---|---|\n| 1 | Bootstrap + Phase 1 discovery (full project\u002Finitiative inventory) |\n| 2–3 | Phase 2 deep-dive on High-significance projects |\n| 4 | Phase 2 continues + Phase 3 cross-cutting themes |\n| 5 | Phase 4 gap questionnaire → leader answers offline |\n| 6 | Phase 5 final assembly + review |\n\nAdjust to actual available sessions. Compress by dropping Medium\u002FLow-significance Phase 2 deep-dives first.\n\n---\n\n## 2. Directory layout\n\n```\ninstitutional-knowledge\u002F\n├── AGENTS.md                    # schema, customized for this leader\n├── index.md                     # catalog: every page, one-line summary, last-updated\n├── log.md                       # append-only timeline\n├── manifest.md                  # discovered sources + ingest status\n├── phase-1-inventory.md         # project & initiative catalog (Phase 1 output)\n├── projects\u002F                    # one page per significant project (Phase 2)\n│   └── \u003Cslug>.md\n├── decisions.md                 # cross-project decision log\n├── relationships.md             # people, stakeholders, engagement guidance\n├── themes.md                    # cross-cutting principles, operating style (Phase 3)\n├── domain-knowledge.md          # technical\u002Findustry\u002Fregulatory knowledge\n├── org-navigation.md            # \"how to get things done here\"\n├── historical-context.md        # origin stories, past failures, unwritten rules\n├── gap-questionnaire.md         # Phase 4 questions for the leader\n├── gap-answers.md               # leader's responses (input by user)\n├── final-archive.md             # Phase 5 assembled document\n└── raw\u002F                         # immutable per-source extracts\n    ├── email-\u003Cfolder>\u002FYYYY-MM.md\n    ├── chat-\u003Cslug>\u002FYYYY-MM.md\n    ├── meeting-\u003Cseries-slug>\u002FYYYY-MM-DD.md\n    └── sharepoint-\u003Csite-slug>\u002Findex.md\n```\n\nNaming: lowercase kebab-case. Dates: `YYYY-MM-DD` or `YYYY-MM`.\n\n---\n\n## 3. Phase 1 — Project & Initiative Discovery\n\n**Objective.** Build a comprehensive catalog of every significant project, initiative, recurring forum, or workstream the leader owned or materially shaped.\n\n### 3.1 Search strategy\n\nAcross all M365 sources, identify:\n- Projects where the leader was owner \u002F lead \u002F primary decision-maker\n- Recurring meeting series they organized or regularly attended as required\n- Email threads with significant decision content (length > 5 messages, leadership participants)\n- Documents they authored or were primary contributor to\n- Channels \u002F chats they created or are most active in\n\n### 3.2 Time slicing\n\nBreak the tenure into eras and analyze each:\n- **Early tenure** (Year 1–2): foundational work, what they inherited, first initiatives\n- **Growth period** (Year 3–4): major initiatives, scope expansion, key hires\n- **Recent \u002F current** (last 2 years): current state, in-flight work, near-term commitments\n\n### 3.3 Categorization\n\nFor each project, tag with one or more:\n- Product \u002F Engineering\n- Strategic Planning \u002F OKRs\n- Team \u002F Org Leadership (hiring, reorgs, performance culture)\n- Cross-functional Initiatives\n- Technical \u002F Architecture Decisions\n- Vendor \u002F Partner Relationships\n- Business Development \u002F Customer\n- Regulatory \u002F Compliance\n\n### 3.4 Output → `phase-1-inventory.md`\n\n```markdown\n# Phase 1 — Project & Initiative Inventory\n\n## \u003CProject name>\n- **Period:** \u003Cstart> – \u003Cend or \"active\">\n- **Category:** \u003Cone or more from §3.3>\n- **Role:** owner \u002F lead \u002F key contributor \u002F advisor\n- **Key collaborators:** [[relationships.md#name]], ...\n- **Data sources found:** N emails, M Teams threads, K meetings, J documents\n- **Significance:** High \u002F Medium \u002F Low\n- **Why this rating:** one sentence\n```\n\nAfter Phase 1 is complete, **present the full inventory to the user, ask them to validate significance ratings and flag anything missing, then confirm before starting Phase 2.**\n\n---\n\n## 4. Phase 2 — Deep Knowledge Extraction (per project)\n\nFor each High-significance project (then Medium if time allows), produce `projects\u002F\u003Cslug>.md`.\n\n### 4.1 Decision archaeology\n\nSearch for signal phrases in emails\u002Fchats\u002Fmeeting notes:\n- \"We decided to…\" \u002F \"After discussing, we're going with…\"\n- \"The recommendation is…\" \u002F \"Leadership approved…\"\n- \"We're not going to pursue X because…\"\n- \"The tradeoff is…\" \u002F \"The risk is…\"\n- \"\u003CLeader's first name> recommended…\" \u002F \"Based on \u003Cleader>'s input…\"\n- \"Reversing course…\" \u002F \"We tried X and it didn't work…\"\n\nFor each decision, capture: **what was decided, when, by whom, why, what alternatives were rejected and why, reversibility (easy \u002F hard \u002F one-way door), and source link.**\n\n### 4.2 Problem-solution mapping\n\n- Obstacles encountered → approach taken → outcome → lesson\n- Failed approaches and why they failed (these are *especially* valuable — successors will be tempted to retry)\n- Workarounds still in place\n\n### 4.3 Relationships & context\n\n- Stakeholders who had to be aligned\n- Cross-team dependencies\n- External factors (market, regulatory, vendor situations, org changes) that shaped the work\n\n### 4.4 Lessons & insights\n\n- What worked well (replicate)\n- What the leader would do differently with hindsight\n- Tribal knowledge — \"everyone knows but nothing is written down\"\n- Advice for the person taking this over\n\n### 4.5 Artifacts\n\n- Key documents (specs, designs, proposals, decks) — with SharePoint\u002FOneDrive links\n- Reference email threads (subject, date range, participants)\n- Meeting recordings\u002Ftranscripts where critical\n- Tools and systems where the work lives\n\n### 4.6 Output template → `projects\u002F\u003Cslug>.md`\n\n```markdown\n---\nslug: \u003Cslug>\ntitle: \u003Cproject name>\nperiod: \u003Cstart> – \u003Cend>\ncategory: \u003Ctags>\nrole: \u003Cowner | lead | contributor | advisor>\nsignificance: high | medium | low\nstatus: active | wrapping-up | dormant | done | handed-off\nlast_activity: YYYY-MM-DD\nsource_count: N\n---\n\n# \u003CProject name>\n\n## Executive summary\n2–3 sentences: what this was, why it mattered, current state.\n\n## Key decisions\n\n| Decision | Date | Rationale | Alternatives rejected | Participants | Reversibility | Source |\n|---|---|---|---|---|---|---|\n\n## Problems and solutions\n\n### Problem: \u003Cdescription>\n- **Context:** what was happening\n- **Approach:** what was done\n- **Outcome:** result\n- **Lesson:** takeaway\n- **Source:** raw\u002F\u003Csource>\u002F\u003Cdate>.md\n\n## Key relationships\n- **\u003CStakeholder>:** nature of relationship, how to work with them effectively\n\n## Critical insights\n1. …\n2. …\n\n## Successor guidance\nWhat the leader would tell the person taking this over. Direct quote where possible; paraphrase otherwise and mark `[paraphrased]`.\n\n## Reference artifacts\n- \u003CDoc title>: \u003CwebUrl> — what it contains\n- Email thread \"\u003Csubject>\": \u003Cdate range> — \u003Cparticipants>\n```\n\n### 4.7 Clarifying-question loop\n\nAfter each project deep-dive, **stop and ask the user 2–3 clarifying questions** to fill gaps the raw signals can't:\n- \"Project X went quiet in March. Was it (a) dormant, (b) finished, (c) handed off, (d) still active but slow?\"\n- \"You and \u003Cname> exchanged 40 emails about \u003Ctopic> but never reached a decision in writing. What did you ultimately decide and why?\"\n- \"I see \u003Cvendor> in 20 threads but can't tell if the relationship is healthy. How would you characterize it?\"\n\nWrite answers into the project page immediately, marking quotes vs. paraphrase. This is the highest-leverage step in the whole skill.\n\n### 4.8 Budget guards\n\n- ~500 emails per session pass before checkpoint\n- ~5 chats per pass\n- One project deep-dive per session typically; two if signals are concentrated\n\nIf a lane has more to ingest, mark `in_progress` in `manifest.md` with a next-offset note and stop. Tell the user \"this project has N more sources; continue or switch?\"\n\n---\n\n## 5. Phase 3 — Cross-Cutting Themes\n\nAfter enough High-significance Phase 2 deep-dives, run synthesis across them.\n\n### 5.1 Leadership principles & operating style → `themes.md`\n\n- How does the leader approach decision-making? (consensus, decisive, data-driven, intuition, etc.)\n- What frameworks\u002Fmental models recur in their writing? (e.g., \"reversible vs. one-way doors\", \"disagree and commit\", named frameworks they cite)\n- How do they prioritize competing demands?\n- How do they handle disagreement?\n- Communication style across audiences (board, peers, reports, customers)\n\n### 5.2 Organizational navigation → `org-navigation.md`\n\n- Go-to people for specific needs (\"for budget questions → X; for legal → Y\")\n- Political dynamics navigated\n- How alignment gets built across teams here\n- Watch-outs (\"don't go to X before Y has heard it first\")\n\n### 5.3 Domain expertise → `domain-knowledge.md`\n\n- Technical\u002Findustry knowledge uniquely held by the leader\n- Critical vendor\u002Fpartner relationships and their history\n- Regulatory\u002Fcompliance knowledge\n- Customer\u002Fmarket context\n\n### 5.4 Historical context → `historical-context.md`\n\n- Origin stories of current processes, systems, team structures\n- Past failures whose lessons inform current approaches\n- \"Unwritten rules\" of the organization\n- Founders'\u002Fpredecessors' decisions still in force\n\n---\n\n## 6. Phase 4 — Gap Analysis & Questionnaire\n\nReview all extracted content for:\n- Topics mentioned but not fully explained\n- Decisions captured without clear *why*\n- Projects without documented outcomes\n- Implicit knowledge — things hinted at but never stated\n- Forward-looking items (upcoming decisions, planned changes, roadmap)\n\n### 6.1 Output → `gap-questionnaire.md`\n\nStructure for the leader to answer offline:\n\n```markdown\n# Gap Questionnaire for \u003CLeader>\n\n> Please answer in as much detail as you can. These are gaps only you can fill. This is your last chance to capture context that will otherwise be lost.\n\n## Project-specific\n\n### \u003CProject name>\n1. \u003Cquestion>\n2. \u003Cquestion>\n\n## Strategic & leadership\n1. What are the top 3 things your successor absolutely must know?\n2. What mistakes did you make that others should avoid?\n3. What relationships are most critical to maintain, and why?\n4. What is the biggest risk or opportunity the team should be aware of?\n5. What would you do differently if starting over?\n6. What unfinished business matters most?\n7. What decisions are pending that someone will need to make soon?\n8. What context would be lost if you walked out today without documenting it?\n\n## Domain & technical\n1. \u003Cgap>\n2. \u003Cgap>\n\n## Organizational & cultural\n1. \u003Cgap>\n2. \u003Cgap>\n```\n\nPresent the questionnaire and **pause**. The leader fills in `gap-answers.md` (the user pastes their responses or types them in a session). Do not advance to Phase 5 until answers are in.\n\n---\n\n## 7. Phase 5 — Final Archive Assembly\n\nOnce Phase 4 answers are in:\n\n### 7.1 Assemble `final-archive.md`\n\n```markdown\n# \u003CLeader name> — Institutional Knowledge Archive\n## \u003CTitle\u002FRole> | Tenure: \u003Cstart> – \u003Cend>\n\n### Document purpose\nThis archive captures the institutional knowledge, decisions, insights, and guidance from \u003Cleader>'s \u003CN> years leading \u003Careas>. It is a reference for \u003Caudience> and may be used to ground AI assistants for retrieval.\n\n---\n\n## Table of contents\n1. Executive summary\n2. Project & initiative catalog\n3. Detailed project knowledge\n4. Cross-cutting themes & principles\n5. Key relationships & stakeholders\n6. Domain expertise & technical knowledge\n7. Organizational navigation guide\n8. Historical context\n9. Lessons learned & advice\n10. Appendix — reference artifacts\n\n## 1. Executive summary\n[written last, drafted by you, edited with the leader]\n\n## 2. Project & initiative catalog\n[summary table from phase-1-inventory.md with significance ratings]\n\n## 3. Detailed project knowledge\n[full Phase 2 deep-dives, ordered by significance then chronology]\n\n## 4. Cross-cutting themes & principles\n[from themes.md]\n\n## 5. Key relationships & stakeholders\n[from relationships.md, with engagement guidance from gap-answers.md merged in]\n\n## 6. Domain expertise & technical knowledge\n[from domain-knowledge.md]\n\n## 7. Organizational navigation guide\n[from org-navigation.md]\n\n## 8. Historical context\n[from historical-context.md]\n\n## 9. Lessons learned & advice\n[consolidated from Phase 2 successor-guidance sections + Phase 4 answers]\n\n## 10. Appendix — reference artifacts\n[catalog of documents, email threads, meetings — with locations and access notes]\n```\n\n### 7.2 Review loop\n\n1. Present the assembled archive section by section.\n2. The leader edits in their own voice — terse, candid, direct.\n3. Iterate until they approve.\n4. Optionally export to `.docx` or `.pdf` (use the doc skill if installed).\n\n---\n\n## 8. Ingest workflows (reused across phases)\n\n### 8.1 Email ingest (monthly chunks)\n\nFor each month within the horizon, most-recent first:\n\n1. Read `manifest.md` for last ingested month per folder.\n2. `m365_list_emails(startDate, endDate, limit: 50, select: 'id,subject,from,toRecipients,receivedDateTime,bodyPreview,hasAttachments,conversationId')`. **Omit `folder` arg for Inbox**; use `folder: 'sentitems'` for Sent. Page until exhausted.\n3. De-noise: marketing, calendar invites (handled in meeting pass), bot notifications, OOO replies, single-line acks.\n4. Group by `conversationId`.\n5. Write `raw\u002Femail-\u003Cfolder>\u002FYYYY-MM.md` — one file per month.\n6. **Lift** signals upward:\n   - Recurring correspondents → `relationships.md`\n   - Project keywords → new or updated `projects\u002F\u003Cslug>.md`\n   - Decision phrases → `decisions.md` + the relevant project page\n   - Unanswered asks → flag for Phase 4 questionnaire\n7. Update `manifest.md` row; append to `log.md`.\n\n### 8.2 Teams chat ingest\n\n1. `m365_list_chat_messages(chatId, top: 50, orderBy: 'createdDateTime desc')`. Page until older than horizon or last ingested ID. *(Note: `m365_list_chat_messages` accepts `orderBy`; the chat-**listing** tool `m365_list_chats` in §1.3 does not — don't pass `orderBy` there.)*\n2. De-noise: system messages, reactions-only, join\u002Fleave.\n3. Write `raw\u002Fchat-\u003Cslug>\u002FYYYY-MM.md`. Lift to relationships\u002Fprojects\u002Fdecisions.\n\n### 8.3 Meeting ingest\n\n1. `m365_list_events(startDate, endDate, query: { orderBy: 'start\u002FdateTime asc', select: 'subject,start,end,organizer,attendees,onlineMeeting,isAllDay,bodyPreview' })`.\n2. Cluster by subject prefix → recurring series.\n3. For each series: capture organizer, frequency, purpose, leader's role, attendee patterns.\n4. If transcripts available (`m365_get_transcript` on the most recent instance via `onlineMeeting.joinUrl`), ingest latest 2-3 into `raw\u002Fmeeting-\u003Cseries-slug>\u002FYYYY-MM-DD.md`.\n5. One-off events with substantive body → record as `## Recent activity` entries in the relevant project page.\n\n### 8.4 SharePoint \u002F OneDrive ingest\n\n1. `m365_get_recent_files(limit: 50)`; group by parent path (site\u002Ffolder).\n2. Write `raw\u002Fsharepoint-\u003Csite-slug>\u002Findex.md` with title, webUrl, lastModified, role (authored \u002F co-authored \u002F maintainer \u002F editor).\n3. Lift to project artifacts sections. **Do not download contents in bulk** — catalog + link is enough except when the leader explicitly wants a doc summarized.\n\n---\n\n## 9. Privacy & boundary rules\n\n- Archive lives on the user's machine inside their M365 trust boundary. Never send outbound messages (email\u002FTeams) referencing archive content during the build.\n- 1:1 chats and private emails ARE in scope — this is the leader's own data, for their own knowledge-preservation use.\n- HR, performance, compensation, health content is OUT of scope. If encountered, skip silently and note in `log.md` *without quoting*. **This exclusion is best-effort:** it relies on folder-name heuristics (§1.3) plus content judgment, not a guaranteed classifier — when a signal is ambiguous, err toward excluding it and flag borderline items with `[Review Required]` rather than silently including them.\n- When the archive is eventually shared with successors or org leadership, the leader reviews `relationships.md`, `historical-context.md`, and the Phase 2 \"Successor guidance\" sections line-by-line — these are the most likely to contain content appropriate for the leader but not for broader distribution.\n- Confidential vendor\u002Fpartner content gets `[Confidential]` markers; sensitive personal observations get `[Review Required]`.\n\n---\n\n## 10. Quality, sensitivity, and provenance markers\n\n- `[Inferred]` — derived from signals, not stated explicitly\n- `[Uncertain]` — conflicting or weak evidence\n- `[Not Found]` — looked for, didn't find\n- `[Paraphrased]` — restating the leader's voice, not a direct quote\n- `[Quote]` — verbatim from a source\n- `[Review Required]` — sensitive; flag for leader review before sharing\n- `[Confidential]` — vendor\u002Fpartner\u002Flegal content, restricted distribution\n\nEvery Phase 2 decision and Phase 3 theme should carry source links to `raw\u002F`.\n\n---\n\n## 11. Invocation patterns\n\n- **First invocation \u002F \"start\"** → bootstrap (Section 1).\n- **\"Continue\" \u002F \"next\"** → read `manifest.md` + last 10 `log.md` entries; resume the lane with status `in_progress` or propose the next `pending`.\n- **\"Phase 1\" \u002F \"discovery\"** → Section 3.\n- **\"Deep dive on \u003Cproject>\"** → Section 4 for that project.\n- **\"Themes\" \u002F \"Phase 3\"** → Section 5.\n- **\"Generate questionnaire\" \u002F \"Phase 4\"** → Section 6.\n- **\"Assemble final\" \u002F \"Phase 5\"** → Section 7 (requires `gap-answers.md` populated).\n- **\"What's left?\"** → summarize `manifest.md` + phase progress.\n- **\"Ask me questions\"** → clarifying-question pass against current gaps.\n\nEach session, **start by reading `AGENTS.md`, `manifest.md`, the last 10 `log.md` entries, and `phase-1-inventory.md`** to recover state.\n\n---\n\n## 12. Definition of done\n\nThe archive is complete when:\n\n- [ ] `phase-1-inventory.md` covers all significant projects\u002Finitiatives across the full tenure, with leader-validated significance ratings.\n- [ ] Every High-significance project has a `projects\u002F\u003Cslug>.md` with all 7 sections populated.\n- [ ] `decisions.md` aggregates at least the top 20 cross-project decisions with rationale.\n- [ ] `relationships.md` covers manager, all direct reports, top 25 collaborators, and key external stakeholders.\n- [ ] `themes.md`, `org-navigation.md`, `domain-knowledge.md`, `historical-context.md` are non-empty.\n- [ ] `gap-questionnaire.md` was sent, and `gap-answers.md` contains the leader's responses.\n- [ ] `final-archive.md` is assembled and the leader has signed off.\n- [ ] `index.md` reflects all pages; last `log.md` entry is a `final-review` pass with no open ⚠️ items.\n\nIf time runs out, prioritize: phase-1 inventory → top 5 High-significance project deep-dives → `gap-questionnaire.md` answered → final assembly. Cross-cutting themes (Phase 3) can be partially deferred — the project deep-dives already carry most of the value.\n","# \u002Finstitutional-knowledge — Executive Knowledge Preservation\n\n**Intent.** Build a comprehensive, structured knowledge archive of a senior leader's tenure by mining their Microsoft 365 signals (emails, Teams chats, meetings, OneDrive\u002FSharePoint contributions), distilling decisions\u002Frationale\u002Frelationships, and producing a multi-phase document a successor or AI assistant can ground on. Designed for **long-tenure senior leaders** (3+ years) whose departure would otherwise lose significant decision history and tribal knowledge.\n\nThis skill is **resumable**. Each invocation reads `manifest.md` and continues where the last session stopped. Plan for a 1-week sprint across multiple sessions.\n\n---\n\n## 0. Core operating principles\n\n1. **The leader curates; you produce.** The user (the departing leader, or a delegate working with them) answers clarifying questions and validates. You write everything.\n2. **Decision archaeology is the highest-value output.** Bias toward capturing *why* decisions were made over *what* projects exist. Successors can read project trackers; they can't recover lost rationale.\n3. **Multi-phase, gated progression.** Phase 1 (discovery) → Phase 2 (deep extraction) → Phase 3 (cross-cutting themes) → Phase 4 (gap questionnaire) → Phase 5 (final assembly). Confirm with the user before advancing phases.\n4. **Idempotent ingest.** Every signal is keyed by `(source_id, item_id)` or `(source_id, date)`. Re-running merges, never duplicates.\n5. **Capture before polish.** Get raw signals down across all phases before refining. If time runs short, raw breadth beats polished narrowness.\n6. **Privacy.** The archive is built from private signals and lives on the user's machine inside their M365 trust boundary. HR \u002F compensation \u002F performance \u002F health content is automatically out of scope. The leader alone decides what to share with the org or successor.\n\n---\n\n## 1. First-run bootstrap\n\nDefault archive path: `$env:USERPROFILE\\Documents\\institutional-knowledge` on Windows\u002FPowerShell hosts, `~\u002FDocuments\u002Finstitutional-knowledge` elsewhere. Some Cowork\u002FScout sandboxes expose a different writable root and may not set `$env:USERPROFILE` — if the default path can't be resolved or written, discover a writable `Documents\u002F`-equivalent folder from the host and confirm it with the user before scaffolding. Detection: an `AGENTS.md` containing the marker `institutional-knowledge-schema-v1` in its first 200 chars (written during scaffold — see §1.4).\n\n**If no archive exists, run bootstrap.**\n\n### 1.1 Confirm parameters (one at a time — never silently default)\n\n- **a) Archive location.** Default as above; allow override.\n- **b) Leader's name, title, tenure dates.** \"Doug Smith — VP of Platform Engineering — Jan 2020 to present, last day June 30 2026.\"\n- **c) Tenure horizon.** Default: full tenure. Confirm start year. Senior leaders' early-tenure decisions often anchor current state — do not truncate without reason.\n- **d) Audience for the archive.** Successor (named, if known) \u002F leadership team \u002F future AI assistant grounding \u002F all of the above. Affects tone of final document.\n- **e) Explicit out-of-scope.** Any project, vendor, or topic the leader does not want captured. Always-excluded: HR matters, compensation, performance reviews, health.\n- **f) Sessions available.** How many work sessions before the last day. Calibrates Section 1.5 plan.\n- **g) Delegate?** Is the user the leader themselves, or a delegate (chief of staff, EA, successor) operating on their behalf? Affects how clarifying questions are framed.\n\n### 1.2 Gather identity & relationships\n\nIn parallel (retry transient failures once before marking blocked):\n\n- `m365_get_my_profile` *(required — abort if it fails twice)*\n- `m365_get_my_manager`\n- `m365_get_my_direct_reports`\n- `m365_get_relevant_people` *(limit 25, used to seed the relationship map)*\n\n### 1.3 Discover sources → write `manifest.md`\n\nBest-effort; record any failures in `log.md` under \"Discovery limitations\" and continue.\n\n- **Mail folders** — `m365_list_mail_folders(limit: 20)`. **Always pass `limit` explicitly.** Note custom folders (`Leadership`, `Board`, `Strategy`, `Decisions`, project-named folders). Skip personal folders (`H1B*`, `Immig*`, `PTO*`, `Personal`, `H1Renewal`).\n- **Active Teams chats** — `m365_list_chats(limit: 50)`. Do not pass `orderBy`. Tag each `1:1` \u002F `group` \u002F `meeting`.\n- **Teams memberships** — `m365_list_teams` + `m365_list_channels`. Often fails on `teams_auth_required` — mark blocked and continue; `m365_list_chats` already covers most active conversation.\n- **Recurring meetings** — `m365_list_events` over the last 180-365 days; cluster by subject prefix to detect recurrence.\n- **Authored documents** — `m365_get_recent_files(limit: 50)` first; fall back to `m365_list_files(limit: 50)` if it fails. Do not rely on `m365_search_files(query: '*')` — unreliable.\n- **Targeted email scoping** — `m365_search_emails` works for specific names\u002Fkeywords but fails on broad queries. Use only during per-project deep dives in Phase 2.\n\nEach source becomes a row in `manifest.md` with status `pending` \u002F `in_progress` \u002F `done` \u002F `skipped` \u002F `blocked`.\n\n### 1.4 Scaffold the archive\n\nCreate the layout (Section 2) and seed files: `AGENTS.md`, `index.md`, `log.md`, `manifest.md`, `phase-1-inventory.md`, `relationships.md`, `decisions.md`. Other files are created on first need.\n\n**`AGENTS.md` must begin with the detection marker so future sessions can recognize this archive (see §1).** Write the literal string `institutional-knowledge-schema-v1` within the first 200 characters of `AGENTS.md` — the recommended first line is an HTML comment so it renders invisibly:\n\n```markdown\n\u003C!-- institutional-knowledge-schema-v1 -->\n# Institutional Knowledge Archive — \u003CLeader name>\n\u003C!-- schema + conventions for this archive; do not delete the marker above -->\n```\n\nDo not scaffold `AGENTS.md` without this marker: resumability (§11 \"continue\") depends on it.\n\n### 1.5 Propose phase plan\n\nMap phases to remaining sessions:\n\n| Session | Phase focus |\n|---|---|\n| 1 | Bootstrap + Phase 1 discovery (full project\u002Finitiative inventory) |\n| 2–3 | Phase 2 deep-dive on High-significance projects |\n| 4 | Phase 2 continues + Phase 3 cross-cutting themes |\n| 5 | Phase 4 gap questionnaire → leader answers offline |\n| 6 | Phase 5 final assembly + review |\n\nAdjust to actual available sessions. Compress by dropping Medium\u002FLow-significance Phase 2 deep-dives first.\n\n---\n\n## 2. Directory layout\n\n```\ninstitutional-knowledge\u002F\n├── AGENTS.md                    # schema, customized for this leader\n├── index.md                     # catalog: every page, one-line summary, last-updated\n├── log.md                       # append-only timeline\n├── manifest.md                  # discovered sources + ingest status\n├── phase-1-inventory.md         # project & initiative catalog (Phase 1 output)\n├── projects\u002F                    # one page per significant project (Phase 2)\n│   └── \u003Cslug>.md\n├── decisions.md                 # cross-project decision log\n├── relationships.md             # people, stakeholders, engagement guidance\n├── themes.md                    # cross-cutting principles, operating style (Phase 3)\n├── domain-knowledge.md          # technical\u002Findustry\u002Fregulatory knowledge\n├── org-navigation.md            # \"how to get things done here\"\n├── historical-context.md        # origin stories, past failures, unwritten rules\n├── gap-questionnaire.md         # Phase 4 questions for the leader\n├── gap-answers.md               # leader's responses (input by user)\n├── final-archive.md             # Phase 5 assembled document\n└── raw\u002F                         # immutable per-source extracts\n    ├── email-\u003Cfolder>\u002FYYYY-MM.md\n    ├── chat-\u003Cslug>\u002FYYYY-MM.md\n    ├── meeting-\u003Cseries-slug>\u002FYYYY-MM-DD.md\n    └── sharepoint-\u003Csite-slug>\u002Findex.md\n```\n\nNaming: lowercase kebab-case. Dates: `YYYY-MM-DD` or `YYYY-MM`.\n\n---\n\n## 3. Phase 1 — Project & Initiative Discovery\n\n**Objective.** Build a comprehensive catalog of every significant project, initiative, recurring forum, or workstream the leader owned or materially shaped.\n\n### 3.1 Search strategy\n\nAcross all M365 sources, identify:\n- Projects where the leader was owner \u002F lead \u002F primary decision-maker\n- Recurring meeting series they organized or regularly attended as required\n- Email threads with significant decision content (length > 5 messages, leadership participants)\n- Documents they authored or were primary contributor to\n- Channels \u002F chats they created or are most active in\n\n### 3.2 Time slicing\n\nBreak the tenure into eras and analyze each:\n- **Early tenure** (Year 1–2): foundational work, what they inherited, first initiatives\n- **Growth period** (Year 3–4): major initiatives, scope expansion, key hires\n- **Recent \u002F current** (last 2 years): current state, in-flight work, near-term commitments\n\n### 3.3 Categorization\n\nFor each project, tag with one or more:\n- Product \u002F Engineering\n- Strategic Planning \u002F OKRs\n- Team \u002F Org Leadership (hiring, reorgs, performance culture)\n- Cross-functional Initiatives\n- Technical \u002F Architecture Decisions\n- Vendor \u002F Partner Relationships\n- Business Development \u002F Customer\n- Regulatory \u002F Compliance\n\n### 3.4 Output → `phase-1-inventory.md`\n\n```markdown\n# Phase 1 — Project & Initiative Inventory\n\n## \u003CProject name>\n- **Period:** \u003Cstart> – \u003Cend or \"active\">\n- **Category:** \u003Cone or more from §3.3>\n- **Role:** owner \u002F lead \u002F key contributor \u002F advisor\n- **Key collaborators:** [[relationships.md#name]], ...\n- **Data sources found:** N emails, M Teams threads, K meetings, J documents\n- **Significance:** High \u002F Medium \u002F Low\n- **Why this rating:** one sentence\n```\n\nAfter Phase 1 is complete, **present the full inventory to the user, ask them to validate significance ratings and flag anything missing, then confirm before starting Phase 2.**\n\n---\n\n## 4. Phase 2 — Deep Knowledge Extraction (per project)\n\nFor each High-significance project (then Medium if time allows), produce `projects\u002F\u003Cslug>.md`.\n\n### 4.1 Decision archaeology\n\nSearch for signal phrases in emails\u002Fchats\u002Fmeeting notes:\n- \"We decided to…\" \u002F \"After discussing, we're going with…\"\n- \"The recommendation is…\" \u002F \"Leadership approved…\"\n- \"We're not going to pursue X because…\"\n- \"The tradeoff is…\" \u002F \"The risk is…\"\n- \"\u003CLeader's first name> recommended…\" \u002F \"Based on \u003Cleader>'s input…\"\n- \"Reversing course…\" \u002F \"We tried X and it didn't work…\"\n\nFor each decision, capture: **what was decided, when, by whom, why, what alternatives were rejected and why, reversibility (easy \u002F hard \u002F one-way door), and source link.**\n\n### 4.2 Problem-solution mapping\n\n- Obstacles encountered → approach taken → outcome → lesson\n- Failed approaches and why they failed (these are *especially* valuable — successors will be tempted to retry)\n- Workarounds still in place\n\n### 4.3 Relationships & context\n\n- Stakeholders who had to be aligned\n- Cross-team dependencies\n- External factors (market, regulatory, vendor situations, org changes) that shaped the work\n\n### 4.4 Lessons & insights\n\n- What worked well (replicate)\n- What the leader would do differently with hindsight\n- Tribal knowledge — \"everyone knows but nothing is written down\"\n- Advice for the person taking this over\n\n### 4.5 Artifacts\n\n- Key documents (specs, designs, proposals, decks) — with SharePoint\u002FOneDrive links\n- Reference email threads (subject, date range, participants)\n- Meeting recordings\u002Ftranscripts where critical\n- Tools and systems where the work lives\n\n### 4.6 Output template → `projects\u002F\u003Cslug>.md`\n\n```markdown\n---\nslug: \u003Cslug>\ntitle: \u003Cproject name>\nperiod: \u003Cstart> – \u003Cend>\ncategory: \u003Ctags>\nrole: \u003Cowner | lead | contributor | advisor>\nsignificance: high | medium | low\nstatus: active | wrapping-up | dormant | done | handed-off\nlast_activity: YYYY-MM-DD\nsource_count: N\n---\n\n# \u003CProject name>\n\n## Executive summary\n2–3 sentences: what this was, why it mattered, current state.\n\n## Key decisions\n\n| Decision | Date | Rationale | Alternatives rejected | Participants | Reversibility | Source |\n|---|---|---|---|---|---|---|\n\n## Problems and solutions\n\n### Problem: \u003Cdescription>\n- **Context:** what was happening\n- **Approach:** what was done\n- **Outcome:** result\n- **Lesson:** takeaway\n- **Source:** raw\u002F\u003Csource>\u002F\u003Cdate>.md\n\n## Key relationships\n- **\u003CStakeholder>:** nature of relationship, how to work with them effectively\n\n## Critical insights\n1. …\n2. …\n\n## Successor guidance\nWhat the leader would tell the person taking this over. Direct quote where possible; paraphrase otherwise and mark `[paraphrased]`.\n\n## Reference artifacts\n- \u003CDoc title>: \u003CwebUrl> — what it contains\n- Email thread \"\u003Csubject>\": \u003Cdate range> — \u003Cparticipants>\n```\n\n### 4.7 Clarifying-question loop\n\nAfter each project deep-dive, **stop and ask the user 2–3 clarifying questions** to fill gaps the raw signals can't:\n- \"Project X went quiet in March. Was it (a) dormant, (b) finished, (c) handed off, (d) still active but slow?\"\n- \"You and \u003Cname> exchanged 40 emails about \u003Ctopic> but never reached a decision in writing. What did you ultimately decide and why?\"\n- \"I see \u003Cvendor> in 20 threads but can't tell if the relationship is healthy. How would you characterize it?\"\n\nWrite answers into the project page immediately, marking quotes vs. paraphrase. This is the highest-leverage step in the whole skill.\n\n### 4.8 Budget guards\n\n- ~500 emails per session pass before checkpoint\n- ~5 chats per pass\n- One project deep-dive per session typically; two if signals are concentrated\n\nIf a lane has more to ingest, mark `in_progress` in `manifest.md` with a next-offset note and stop. Tell the user \"this project has N more sources; continue or switch?\"\n\n---\n\n## 5. Phase 3 — Cross-Cutting Themes\n\nAfter enough High-significance Phase 2 deep-dives, run synthesis across them.\n\n### 5.1 Leadership principles & operating style → `themes.md`\n\n- How does the leader approach decision-making? (consensus, decisive, data-driven, intuition, etc.)\n- What frameworks\u002Fmental models recur in their writing? (e.g., \"reversible vs. one-way doors\", \"disagree and commit\", named frameworks they cite)\n- How do they prioritize competing demands?\n- How do they handle disagreement?\n- Communication style across audiences (board, peers, reports, customers)\n\n### 5.2 Organizational navigation → `org-navigation.md`\n\n- Go-to people for specific needs (\"for budget questions → X; for legal → Y\")\n- Political dynamics navigated\n- How alignment gets built across teams here\n- Watch-outs (\"don't go to X before Y has heard it first\")\n\n### 5.3 Domain expertise → `domain-knowledge.md`\n\n- Technical\u002Findustry knowledge uniquely held by the leader\n- Critical vendor\u002Fpartner relationships and their history\n- Regulatory\u002Fcompliance knowledge\n- Customer\u002Fmarket context\n\n### 5.4 Historical context → `historical-context.md`\n\n- Origin stories of current processes, systems, team structures\n- Past failures whose lessons inform current approaches\n- \"Unwritten rules\" of the organization\n- Founders'\u002Fpredecessors' decisions still in force\n\n---\n\n## 6. Phase 4 — Gap Analysis & Questionnaire\n\nReview all extracted content for:\n- Topics mentioned but not fully explained\n- Decisions captured without clear *why*\n- Projects without documented outcomes\n- Implicit knowledge — things hinted at but never stated\n- Forward-looking items (upcoming decisions, planned changes, roadmap)\n\n### 6.1 Output → `gap-questionnaire.md`\n\nStructure for the leader to answer offline:\n\n```markdown\n# Gap Questionnaire for \u003CLeader>\n\n> Please answer in as much detail as you can. These are gaps only you can fill. This is your last chance to capture context that will otherwise be lost.\n\n## Project-specific\n\n### \u003CProject name>\n1. \u003Cquestion>\n2. \u003Cquestion>\n\n## Strategic & leadership\n1. What are the top 3 things your successor absolutely must know?\n2. What mistakes did you make that others should avoid?\n3. What relationships are most critical to maintain, and why?\n4. What is the biggest risk or opportunity the team should be aware of?\n5. What would you do differently if starting over?\n6. What unfinished business matters most?\n7. What decisions are pending that someone will need to make soon?\n8. What context would be lost if you walked out today without documenting it?\n\n## Domain & technical\n1. \u003Cgap>\n2. \u003Cgap>\n\n## Organizational & cultural\n1. \u003Cgap>\n2. \u003Cgap>\n```\n\nPresent the questionnaire and **pause**. The leader fills in `gap-answers.md` (the user pastes their responses or types them in a session). Do not advance to Phase 5 until answers are in.\n\n---\n\n## 7. Phase 5 — Final Archive Assembly\n\nOnce Phase 4 answers are in:\n\n### 7.1 Assemble `final-archive.md`\n\n```markdown\n# \u003CLeader name> — Institutional Knowledge Archive\n## \u003CTitle\u002FRole> | Tenure: \u003Cstart> – \u003Cend>\n\n### Document purpose\nThis archive captures the institutional knowledge, decisions, insights, and guidance from \u003Cleader>'s \u003CN> years leading \u003Careas>. It is a reference for \u003Caudience> and may be used to ground AI assistants for retrieval.\n\n---\n\n## Table of contents\n1. Executive summary\n2. Project & initiative catalog\n3. Detailed project knowledge\n4. Cross-cutting themes & principles\n5. Key relationships & stakeholders\n6. Domain expertise & technical knowledge\n7. Organizational navigation guide\n8. Historical context\n9. Lessons learned & advice\n10. Appendix — reference artifacts\n\n## 1. Executive summary\n[written last, drafted by you, edited with the leader]\n\n## 2. Project & initiative catalog\n[summary table from phase-1-inventory.md with significance ratings]\n\n## 3. Detailed project knowledge\n[full Phase 2 deep-dives, ordered by significance then chronology]\n\n## 4. Cross-cutting themes & principles\n[from themes.md]\n\n## 5. Key relationships & stakeholders\n[from relationships.md, with engagement guidance from gap-answers.md merged in]\n\n## 6. Domain expertise & technical knowledge\n[from domain-knowledge.md]\n\n## 7. Organizational navigation guide\n[from org-navigation.md]\n\n## 8. Historical context\n[from historical-context.md]\n\n## 9. Lessons learned & advice\n[consolidated from Phase 2 successor-guidance sections + Phase 4 answers]\n\n## 10. Appendix — reference artifacts\n[catalog of documents, email threads, meetings — with locations and access notes]\n```\n\n### 7.2 Review loop\n\n1. Present the assembled archive section by section.\n2. The leader edits in their own voice — terse, candid, direct.\n3. Iterate until they approve.\n4. Optionally export to `.docx` or `.pdf` (use the doc skill if installed).\n\n---\n\n## 8. Ingest workflows (reused across phases)\n\n### 8.1 Email ingest (monthly chunks)\n\nFor each month within the horizon, most-recent first:\n\n1. Read `manifest.md` for last ingested month per folder.\n2. `m365_list_emails(startDate, endDate, limit: 50, select: 'id,subject,from,toRecipients,receivedDateTime,bodyPreview,hasAttachments,conversationId')`. **Omit `folder` arg for Inbox**; use `folder: 'sentitems'` for Sent. Page until exhausted.\n3. De-noise: marketing, calendar invites (handled in meeting pass), bot notifications, OOO replies, single-line acks.\n4. Group by `conversationId`.\n5. Write `raw\u002Femail-\u003Cfolder>\u002FYYYY-MM.md` — one file per month.\n6. **Lift** signals upward:\n   - Recurring correspondents → `relationships.md`\n   - Project keywords → new or updated `projects\u002F\u003Cslug>.md`\n   - Decision phrases → `decisions.md` + the relevant project page\n   - Unanswered asks → flag for Phase 4 questionnaire\n7. Update `manifest.md` row; append to `log.md`.\n\n### 8.2 Teams chat ingest\n\n1. `m365_list_chat_messages(chatId, top: 50, orderBy: 'createdDateTime desc')`. Page until older than horizon or last ingested ID. *(Note: `m365_list_chat_messages` accepts `orderBy`; the chat-**listing** tool `m365_list_chats` in §1.3 does not — don't pass `orderBy` there.)*\n2. De-noise: system messages, reactions-only, join\u002Fleave.\n3. Write `raw\u002Fchat-\u003Cslug>\u002FYYYY-MM.md`. Lift to relationships\u002Fprojects\u002Fdecisions.\n\n### 8.3 Meeting ingest\n\n1. `m365_list_events(startDate, endDate, query: { orderBy: 'start\u002FdateTime asc', select: 'subject,start,end,organizer,attendees,onlineMeeting,isAllDay,bodyPreview' })`.\n2. Cluster by subject prefix → recurring series.\n3. For each series: capture organizer, frequency, purpose, leader's role, attendee patterns.\n4. If transcripts available (`m365_get_transcript` on the most recent instance via `onlineMeeting.joinUrl`), ingest latest 2-3 into `raw\u002Fmeeting-\u003Cseries-slug>\u002FYYYY-MM-DD.md`.\n5. One-off events with substantive body → record as `## Recent activity` entries in the relevant project page.\n\n### 8.4 SharePoint \u002F OneDrive ingest\n\n1. `m365_get_recent_files(limit: 50)`; group by parent path (site\u002Ffolder).\n2. Write `raw\u002Fsharepoint-\u003Csite-slug>\u002Findex.md` with title, webUrl, lastModified, role (authored \u002F co-authored \u002F maintainer \u002F editor).\n3. Lift to project artifacts sections. **Do not download contents in bulk** — catalog + link is enough except when the leader explicitly wants a doc summarized.\n\n---\n\n## 9. Privacy & boundary rules\n\n- Archive lives on the user's machine inside their M365 trust boundary. Never send outbound messages (email\u002FTeams) referencing archive content during the build.\n- 1:1 chats and private emails ARE in scope — this is the leader's own data, for their own knowledge-preservation use.\n- HR, performance, compensation, health content is OUT of scope. If encountered, skip silently and note in `log.md` *without quoting*. **This exclusion is best-effort:** it relies on folder-name heuristics (§1.3) plus content judgment, not a guaranteed classifier — when a signal is ambiguous, err toward excluding it and flag borderline items with `[Review Required]` rather than silently including them.\n- When the archive is eventually shared with successors or org leadership, the leader reviews `relationships.md`, `historical-context.md`, and the Phase 2 \"Successor guidance\" sections line-by-line — these are the most likely to contain content appropriate for the leader but not for broader distribution.\n- Confidential vendor\u002Fpartner content gets `[Confidential]` markers; sensitive personal observations get `[Review Required]`.\n\n---\n\n## 10. Quality, sensitivity, and provenance markers\n\n- `[Inferred]` — derived from signals, not stated explicitly\n- `[Uncertain]` — conflicting or weak evidence\n- `[Not Found]` — looked for, didn't find\n- `[Paraphrased]` — restating the leader's voice, not a direct quote\n- `[Quote]` — verbatim from a source\n- `[Review Required]` — sensitive; flag for leader review before sharing\n- `[Confidential]` — vendor\u002Fpartner\u002Flegal content, restricted distribution\n\nEvery Phase 2 decision and Phase 3 theme should carry source links to `raw\u002F`.\n\n---\n\n## 11. Invocation patterns\n\n- **First invocation \u002F \"start\"** → bootstrap (Section 1).\n- **\"Continue\" \u002F \"next\"** → read `manifest.md` + last 10 `log.md` entries; resume the lane with status `in_progress` or propose the next `pending`.\n- **\"Phase 1\" \u002F \"discovery\"** → Section 3.\n- **\"Deep dive on \u003Cproject>\"** → Section 4 for that project.\n- **\"Themes\" \u002F \"Phase 3\"** → Section 5.\n- **\"Generate questionnaire\" \u002F \"Phase 4\"** → Section 6.\n- **\"Assemble final\" \u002F \"Phase 5\"** → Section 7 (requires `gap-answers.md` populated).\n- **\"What's left?\"** → summarize `manifest.md` + phase progress.\n- **\"Ask me questions\"** → clarifying-question pass against current gaps.\n\nEach session, **start by reading `AGENTS.md`, `manifest.md`, the last 10 `log.md` entries, and `phase-1-inventory.md`** to recover state.\n\n---\n\n## 12. Definition of done\n\nThe archive is complete when:\n\n- [ ] `phase-1-inventory.md` covers all significant projects\u002Finitiatives across the full tenure, with leader-validated significance ratings.\n- [ ] Every High-significance project has a `projects\u002F\u003Cslug>.md` with all 7 sections populated.\n- [ ] `decisions.md` aggregates at least the top 20 cross-project decisions with rationale.\n- [ ] `relationships.md` covers manager, all direct reports, top 25 collaborators, and key external stakeholders.\n- [ ] `themes.md`, `org-navigation.md`, `domain-knowledge.md`, `historical-context.md` are non-empty.\n- [ ] `gap-questionnaire.md` was sent, and `gap-answers.md` contains the leader's responses.\n- [ ] `final-archive.md` is assembled and the leader has signed off.\n- [ ] `index.md` reflects all pages; last `log.md` entry is a `final-review` pass with no open ⚠️ items.\n\nIf time runs out, prioritize: phase-1 inventory → top 5 High-significance project deep-dives → `gap-questionnaire.md` answered → final assembly. Cross-cutting themes (Phase 3) can be partially deferred — the project deep-dives already carry most of the value.\n",{"name":5,"description":7},"main","3678d23ad8fb8d098c428302a98044ac9514d5a1","submissions\u002Finstitutional-knowledge",120,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fcat-agent-skills","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-14 09:35:08",{"source":9,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add microsoft\u002Fcat-agent-skills --skill institutional-knowledge",{"tool":54,"command":55},"bunx","bunx skills add microsoft\u002Fcat-agent-skills --skill institutional-knowledge",{"tool":57,"command":58},"pnpm","pnpm dlx skills add microsoft\u002Fcat-agent-skills --skill institutional-knowledge","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fcat-agent-skills\u002Fblob\u002Fmain\u002Fsubmissions\u002Finstitutional-knowledge\u002FSKILL.md",true,[62,68,74],{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},"LICENSE.txt","LICENSE","许可证",14494,"https:\u002F\u002Fgithub.com\u002Fmdnaimul22\u002Fhuman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstorage\u002Faffaan-m_ECC\u002Fosint-investigation\u002FLICENSE.txt",{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"metadata.json","REFERENCE","参考文档",594,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fcat-agent-skills\u002Fblob\u002Fmain\u002Fsubmissions\u002Finstitutional-knowledge\u002Fmetadata.json",{"path":75,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":76,"sourceHtmlUrl":77},"README.md",4704,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fcat-agent-skills\u002Fblob\u002Fmain\u002Fsubmissions\u002Finstitutional-knowledge\u002FREADME.md",[79,87,95,103,111,119],{"skillNo":80,"name":81,"nameZh":17,"description":82,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":86},"01M78JRK2QFNHAYH9EMNP4E3PE","work-iq-sphere","Build or refresh a personal \"My Work IQ\" visual from the signed-in user's own Microsoft 365 work (mail, calendar, Teams chats and the OneDrive and SharePoint files they worked on, with Week, Month and 3 months views from one read of their data, about all their work or one customer, programme or topic they name) as an interactive 3D sphere (self-contained HTML), a customer-safe copy and a matching Microsoft-style PowerPoint slide. Every build is a fresh, evidence-checked analysis of that one person's own data. Use when someone says \"build my Work IQ sphere\", \"show my Work IQ\", \"refresh\" or \"update my Work IQ\", \"make my Work IQ slide\", \"visualise my work graph\", \"show me the Work IQ sphere demo\", or wants to show customers what Work IQ (context, memory, skills) means using their own work. Do NOT use for generic decks, Work IQ product or licensing questions with no personal data, or anyone else's, team or org-wide analytics.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fcat-agent-skills\u002Fblob\u002Fmain\u002Fsubmissions\u002Fwork-iq-sphere\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":88,"name":89,"nameZh":17,"description":90,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":91,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":86},"01M78JR9DRC9079YGA8WFGGGA5","severity-recordability","Runs the deterministic local v2 draft classifier; reporting\u002Fdeadlines remain undetermined. Use for \"explain blocked reporting determination\", \"is this recordable\", \"classify this incident\", \"what severity is this\", or \"is this OSHA reportable\". Do NOT use for source intake, history retrieval or routing — use incident-intake, ehs-knowledge-retrieve or routing-notify. No diagnosis or operational decision; EHS REVIEW REQUIRED.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fcat-agent-skills\u002Fblob\u002Fmain\u002Fsubmissions\u002Fsafety-incident-assist\u002Fseverity-recordability\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fcat-agent-skills\u002Fblob\u002Fmain\u002Fsubmissions\u002Fsafety-incident-assist\u002Fseverity-recordability\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":17,"description":98,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":99,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":86},"01M78JR22JZZVK3PJ4YE0F9EFQ","routing-notify","Computes proposed investigators and unsent recipients from validated local classification, history and governance. Use for \"propose unsent incident recipients\", \"who investigates this\", \"route this incident\", \"who do we notify\", or \"start the OSHA clock\" (only to explain the blocked clock). Do NOT use for classification or terminal drafting — use severity-recordability or incident-writeup. Never sends, files or starts a clock; EHS REVIEW REQUIRED.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fcat-agent-skills\u002Fblob\u002Fmain\u002Fsubmissions\u002Fsafety-incident-assist\u002Frouting-notify\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fcat-agent-skills\u002Fblob\u002Fmain\u002Fsubmissions\u002Fsafety-incident-assist\u002Frouting-notify\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":17,"description":106,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":107,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":86},"01M78JQTG1XJARH3X8GSJ1PFAR","incident-writeup","Revalidates and recomputes every terminal v2 hop, then renders a null-aware local Markdown draft and blank RCA template. Use for \"prepare an evidence-grounded incident draft\", \"draft the incident summary\", \"write up the incident\", \"give me the RCA template\", or \"prepare the OSHA writeup\". Do NOT use for intake, classification or routing — use incident-intake, severity-recordability or routing-notify. No operational actions; EHS REVIEW REQUIRED.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fcat-agent-skills\u002Fblob\u002Fmain\u002Fsubmissions\u002Fsafety-incident-assist\u002Fincident-writeup\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fcat-agent-skills\u002Fblob\u002Fmain\u002Fsubmissions\u002Fsafety-incident-assist\u002Fincident-writeup\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":17,"description":114,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":115,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":86},"01M78JQK60RHC14GNJNN120AS5","incident-intake","Preserves cited authorized user-supplied incident files, including real incidents, as v2 inputs for human-reviewed drafts only. Use for \"preserve conflicting incident accounts\", \"intake this incident\", \"process this safety report\", \"extract incident facts\", or \"intake this near miss\". Do NOT use for classification, routing or terminal drafting — use severity-recordability, routing-notify or incident-writeup respectively. No live retrieval or official determinations; EHS REVIEW REQUIRED.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fcat-agent-skills\u002Fblob\u002Fmain\u002Fsubmissions\u002Fsafety-incident-assist\u002Fincident-intake\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fcat-agent-skills\u002Fblob\u002Fmain\u002Fsubmissions\u002Fsafety-incident-assist\u002Fincident-intake\u002FSKILL.md",[],[],{"skillNo":120,"name":121,"nameZh":17,"description":122,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":123,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":86},"01M78JQD6J780DZZQABNVFERNV","ehs-knowledge-retrieve","Attaches cited local OSHA, ISO summaries, JHA and policies and computes supplied-log history. Use for \"find cited local safety evidence\", \"pull the OSHA criteria\", \"get the JHA\", \"attach local EHS evidence\", or \"have we had this incident before\". Do NOT use for incident intake, recordability decisions or drafting — use incident-intake, severity-recordability or incident-writeup. No live retrieval; EHS REVIEW REQUIRED.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fcat-agent-skills\u002Fblob\u002Fmain\u002Fsubmissions\u002Fsafety-incident-assist\u002Fehs-knowledge-retrieve\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fcat-agent-skills\u002Fblob\u002Fmain\u002Fsubmissions\u002Fsafety-incident-assist\u002Fehs-knowledge-retrieve\u002FSKILL.md",[],[]]