一键导入
boss-briefing
Vault health check — workflow pattern analysis, profile sync, session gap recovery, persona rule proposals
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Vault health check — workflow pattern analysis, profile sync, session gap recovery, persona rule proposals
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Advanced Boss orchestration patterns — Agent Teams leadership, 6-section delegation template, Skill vs Agent conflict resolution, Guardian pattern, and AI-slop detection.
Initialize, manage, and search the per-project .briefing/ vault. Obsidian-compatible persistent knowledge base.
3-Phase Sprint workflow — design → execute → review with user interaction at decision points
| name | boss-briefing |
| description | Vault health check — workflow pattern analysis, profile sync, session gap recovery, persona rule proposals |
Vault sync, workflow pattern analysis, and persona rule management. Run this skill during or at the end of a session to keep .briefing/ healthy and up to date.
This skill replaces the profile update functionality from stop-profile-update.js (which remains as a fallback for sessions where /boss-briefing is not run). The existing briefing-vault skill handles vault templates and initialization; this skill handles sync, analysis, and persona learning.
The my-codex runtime uses briefing-runtime.js for state management. State is stored in .briefing/state.json and can be read/written via standard filesystem operations.
Read .briefing/state.json and extract session metadata:
date — session date (YYYY-MM-DD)workCounter — number of meaningful work eventssessionMessageCount — total prompts in this sessionlastVaultSync — ISO timestamp of last boss-briefing runsessionStartHead — git HEAD at session start (empty for non-git projects)promptCount — prompt countereditCount — edit countersubagentCount — subagent completion countersubagentSeq — sequential subagent index for agent-log enrichmentIf state.json does not exist or is empty, report that and skip to Step 6.
Compare the date field in state.json with today's date.
.briefing/sessions/ for the most recent session file (by filename date prefix, excluding *-auto* files).Read .briefing/agents/agent-log.jsonl. Parse all entries from the last 30 days.
ts field, truncated to YYYY-MM-DD).agent_type values.explore → executor → code-reviewer)phase mapping if available (e.g., research → implement → review)Phase mapping for agent_type values:
explore → researchexecutor → implementcode-reviewer → reviewtdd-guide → testplanner → plandebugger → debugIf the log file does not exist or has fewer than 2 days of data, skip pattern detection and note the reason.
Rewrite .briefing/persona/profile.md with these sections:
---
date: <today>
type: persona-profile
updated_by: boss-briefing
session_count: <N>
---
# Workflow Profile
## Philosophy
<Inferred from session patterns — e.g., "Prefers delegated execution with explicit verification steps.">
## Workflow Patterns
<Top agent types by frequency, with counts>
## Workflow Sequences
<NEW section — detected recurring sub-sequences from Step 3, e.g.:
- explore → executor → code-reviewer (seen in 5 sessions) — research → implement → review>
## Agent Affinity
<Which agents are used most, with relative percentages>
## Active Persona Rules
<List any rules in .briefing/persona/rules/*.md with their status>
## History
<Last 5 session dates with brief topic if available>
Session count idempotency: Read the existing session_count from profile.md frontmatter. Only increment if the current session date differs from the last profile update date. This prevents double-counting when the skill runs multiple times per session.
For each detected sequence pattern from Step 3 that appears in >= 2 sessions and does NOT already have a matching rule in .briefing/persona/rules/:
.briefing/persona/rules/workflow-<slug>.md:---
date: <today>
type: persona-rule
pattern: [explore, executor, code-reviewer]
phase_sequence: [research, implement, review]
occurrences: <N>
status: active
---
# Workflow Rule: <descriptive name>
## Pattern
<agent_type sequence>
## When to Apply
<Description of when Boss should suggest or follow this sequence>
## Rationale
Detected in <N> sessions over the last 30 days.
If no new patterns qualify, skip this step and note why.
Check .briefing/sessions/ for a file matching today's date (YYYY-MM-DD prefix) that is NOT an -auto file.
Read .briefing/INDEX.md and rebuild the dynamic sections:
[[wiki-links]].[[wiki-links]].[[wiki-links]].Preserve all other sections (Overview, Open Questions, Key Links, language frontmatter) unchanged.
Scan .briefing/archives/ for files recently moved by the session-end hook (files older than 30 days that were automatically moved from sessions/, decisions/, and learnings/).
-auto in the nameReview the session's prompt history and changed files for recurring concepts:
.briefing/wiki/<concept>.md exists, suggest creating one.briefing/wiki/_schema.mdWrite the current ISO timestamp to state.json field lastVaultSync:
{
"lastVaultSync": "2026-04-21T14:30:00.000Z"
}
Read the current state, update only the lastVaultSync field, and write back. Do not reset other counters.
If sessionStartHead is empty (non-git project), use YYYY-MM-DD:cwd as the session identifier fallback. This is already handled by briefing-runtime.js in session-sync.js ensureState(), but verify it during gap detection (Step 2) — do not attempt git operations if the project has no .git directory.
/boss-briefing and can be run at any point during a session.stop-session-enforcement.js checks lastVaultSync to determine if this skill was run today.UserPromptSubmit hook in session-sync.js suggests running this skill after 5+ messages if it hasn't been run today.stop-profile-update.js remains as a fallback — it runs on every Stop event and handles basic profile updates for sessions where /boss-briefing was not invoked.