一键导入
project-context
Resume, handoff, and long-running repo work by keeping durable context across threads or agents: task briefs, logs, and reusable reference notes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Resume, handoff, and long-running repo work by keeping durable context across threads or agents: task briefs, logs, and reusable reference notes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | project-context |
| description | Resume, handoff, and long-running repo work by keeping durable context across threads or agents: task briefs, logs, and reusable reference notes. |
Keep durable repo context in ordinary files so later sessions can resume without rebuilding state.
Use this skill when repo work needs durable context across threads or agents: resume or handoff, long-running work, subagent follow-through, reusable reference notes, a current task brief, or append-only logs.
Do not bootstrap for read-only questions, one-shot inspections, or implicit migration of scattered legacy docs. If the layout is missing, choose explicit adoption or migration.
docs/reference/**.BRIEF.md.logs/*.md.docs/
reference/**/*.md
tasks/yyyy/mm-dd/<task-slug>/
BRIEF.md
logs/{DECISIONS,WORKLOG}.md
[optional] <purpose-named-backlog>.md
[optional] working/
[optional] archive/
[optional] BACKLOG.md
docs/reference/**: current trusted reference context only. Keep reusable rules and reliable facts here, not investigation history, progress, timeline narrative, code indexes, implementation tours, or source-file tables of contents. Include paths only for the minimum owner surfaces needed to verify the rule or fact. When user corrections or deletion requests affect a reference claim, rewrite or remove the stale claim; keep only the corrected reliable fact or a pointer to the authoritative owner.docs/tasks/yyyy/mm-dd/<task-slug>/: default task workspace for real work.BRIEF.md: rewrite-only compact resume card, not a report or log. Keep stable goal, scope boundary, current facts or conclusions, current resumable state, and nearest next step.BRIEF.md at each phase boundary so it contains only current resumable state; move phase history and evidence to logs/, working/, or archive/.logs/DECISIONS.md and logs/WORKLOG.md: append-only decision and execution trail. Keep evidence here, not in the brief.[optional] <purpose-named-backlog>.md: unresolved carry-over only, such as RESEARCH-BACKLOG.md or QA-BACKLOG.md. Add it only when one next step is not enough.[optional] working/: in-progress drafts, probes, staging evidence, and undecided plans.[optional] archive/: completed, rejected, replaced, or stale remnants that no longer own current state.[optional] docs/BACKLOG.md: not-yet-active repo-level future work only. Once active, move state into a dated task and remove the repo backlog item.BRIEF.md OwnershipUse only these top-level headings unless the user explicitly asks otherwise:
Goal or IntentScopeCurrent Understanding or Current FactsCurrent StateNext Step or Next ActionsWorking BoundarySemantic rules:
Apply user corrections and deletion requests by rewriting current state; BRIEF.md keeps only the resulting fact, boundary, or next step.
Goal states the stable task target only. Keep background and rationale elsewhere.
Scope is a boundary summary, not a touched-file list.
Current Understanding is for compact conclusions only. Move design policy or durable conclusions to a current-canonical task doc or docs/reference/** when reusable; move investigation notes, benchmark tables, and staging evidence to working/ or logs.
Current State says what is true if the task resumes now. Move "what was done" narration to logs/WORKLOG.md.
Next Step owns only the nearest restartable move, not a backlog. For finished work, use a compact Reopen if ... condition when useful.
Do not add sections such as Validation, Files Changed, Touched Files, History, Worklog, Investigation, Evidence, Completed, or Checklist.
Do not include command output, validation transcripts, investigation history, benchmark matrices, PR/release/deploy chronology, completed-work history, or touched-file inventories.
If validation status matters, summarize it in one Current State sentence and keep details in logs/WORKLOG.md.
If exact paths materially lower reopen cost, put the smallest useful repo-relative path set in Working Boundary, usually at most 5 paths.
Budgets are soft review triggers: usually keep BRIEF.md around 300-500 words, each section around 1-5 bullets, and Scope around 1-3 bullets. Repeated pressure means the material needs another owning surface.
BRIEF.md, logs/DECISIONS.md, and logs/WORKLOG.md; larger tasks may add current-canonical docs or routers when they make the task easier to scan.working/; chronology and validation detail in logs; completed, replaced, or stale docs in archive/.Logs are append-only, but not command transcripts.
For logs/WORKLOG.md:
For logs/DECISIONS.md:
Background, Decision, Why, Impact.DECISIONS.md or the compact current state in BRIEF.md.For both logs:
**YYYY-MM-DD**.scripts/task_logs.py path and use its append entrypoints by default. If unavailable, append manually with the same block shape.<repo-root>, <task-root>, and $CODEX_HOME; never user-specific absolute paths.BRIEF.md and canonical logs.Read reusable context.
rg in docs/reference/**/*.md for the active topic.Check one related task.
BRIEF.md first.Decide reuse or new task.
Ensure the task shell.
docs/reference/ and one dated task with BRIEF.md and logs.Write canonical surfaces.
BRIEF.md in place.docs/reference/**; keep investigation, progress, and one-off task state in task-local surfaces.Add optional surfaces only when needed.
If context is missing, proceed with explicit assumptions and record corrections after execution.
BRIEF.md into append history, reusable docs, validation notes, file inventory, or rationale.Scope become a touched-file list.Current State narrate work sequence instead of resumable state.Next Step become a backlog.docs/reference/** into investigation notes, progress, or timeline narrative.docs/reference/** into a code inventory, implementation tour, or table of contents for current source files.docs/BACKLOG.md.WORKLOG.md.BRIEF.md and WORKLOG.md unless the second surface adds a new interpretation.Run the bundled checker by resolving scripts/check_runtime_shape.py from the installed project-context skill directory and executing it from the active repo root. If running from a subdirectory, pass --repo-root <path> when nested docs trees could confuse root detection.
The checker covers runtime shape only: required files, latest log-block shape, task/reference path markers, and secret-like markers. It does not judge ownership, semantic quality, full history, merge correctness, or broader scope discipline.
Before finalizing:
BRIEF.md if it contains forbidden sections, path inventory, progress narration, a backlog-like next step, or more detail than needed to resume.working/, logs, or archive/.BRIEF.md without reconstructing state?docs/reference/** instead of task logs?logs/*.md?git status --short shows untracked project-context files, are they intentionally kept, ignored, or moved into the right task/reference/archive surface?