Skip to content

About

Agent skills for Codex and Claude Code that preserve project context, decisions and next steps across AI sessions in plain Markdown.

Topics

Resources

Contributing

Stars

164 stars

Watchers

0 watching

Forks

Repository files navigation

Context Docs

Keep decisions, current work and next steps in your project.

Context Docs gives Codex and Claude Code reusable instructions for saving decisions, blockers, and next steps in project Markdown so a fresh session can pick up the work.

Get started

A robot agent writes in a giant notebook labeled Project Context and says, “Dear diary, we chose SQLite. See below for why.”

Website · See an example · User guide · Evidence · Contribute

Start with one note or use your existing PRD, design, and task files. Review the agent's updates as you work, then ask your next session to read the saved notes.

Status: scoped technical beta for core skill v0.2.10, experimental adoption skill v0.1.17. The technical beta covers project-scoped installation, shared Markdown maintenance, and fresh-session handoff on the tested macOS arm64 routes. The v0.2.10 prerelease also adds experimental opt-in Markdown ticket guidance. The everyday install examples below select this bundle. The v0.2.9 release retired optional JSONL event capture. See the upgrade note for existing records. The v0.2.8 release notes retain the earlier changes. The v0.2.7 release notes cover a narrow instruction simplification and qualified checks. The Codex candidate report's automatic-loading confirmation remains unverified; Claude instruction events support loading in its checked sessions only. The v0.2.6 release notes cover metadata filtering, portable references and qualified synthetic checks. The earlier candidate’s unlinked-note coverage gap remains; the separate installed check names the note explicitly. See results and qualifications. Publication and installation are separate actions. See release history for earlier versions, feature boundaries and retained evidence. For Codex and Claude Code · Experimental Grok Build support · Experimental Antigravity support · Plain Markdown · MIT licensed

What you get

You should not have to invent a documentation system before you can preserve your work. Context Docs gives your agent instructions to:

  • Save what matters: decisions and their reasons, current work, blockers and next steps.
  • Keep it useful: update stale sections, consolidate repetition and distinguish facts from proposals.
  • Fit your project: use existing documents and choose content for their audience.
  • Help the next session start: make the context discoverable from the README or documentation index.
  • See progress in Markdown: show the documented goal, meaningful advances, blockers and next action in an existing section or a linked Markdown view.

For example, after working on an export feature, your project context might contain:

## Current work
CSV export is implemented; empty-input behavior still needs testing.

## Decision (maintainer-approved)
Keep the existing export API to preserve compatibility.

## Next step
Test empty input before calling the feature complete.

Illustrative content, not a required template. The agent should derive entries from your actual work and evidence. You review the changes; the next session reads the saved context. See a fuller before-and-after example.

Explore the worked examples: the Reading Queue walkthrough teaches the full workflow; separate Codex → Claude Code and Claude Code → Codex cases show how to hand off the same project through saved Markdown.

Get started

For a project that already has a Context Docs rule, use the technical beta setup and invocation guide.

Install both skills, then adopt them in the project you want to maintain. Already installed? Skip to Use it. The instructions below select published bundle v0.2.10: core 0.2.10 and adoption 0.1.17. See the guide for development-source installations.

Install in Codex

Ask Codex:

Use $skill-installer to install both skills from jaredchu/context-docs
at the published tag v0.2.10:
- skills/context-docs
- skills/adopt-context-docs
Install them together in ~/.agents/skills/.
Preserve existing installations and local customizations; report version
mismatches before upgrading. Report the installed VERSION values:
context-docs 0.2.10 and adopt-context-docs 0.1.17.

Manual installation and project-only setup →

Install in Claude Code

For a first installation, run these commands in a terminal:

(
  skills_dir="$HOME/.claude/skills"
  core="$skills_dir/context-docs"
  adoption="$skills_dir/adopt-context-docs"
  for target in "$core" "$adoption"; do
    if [ -e "$target" ] || [ -L "$target" ]; then
      printf 'Skill already exists: %s\n' "$target" >&2
      exit 1
    fi
  done

  source_dir=$(mktemp -d "${TMPDIR:-/tmp}/context-docs.XXXXXX") || exit 1
  new_core=
  new_adoption=
  cleanup() {
    rm -rf -- "$source_dir"
    [ -z "$new_adoption" ] || rm -rf -- "$new_adoption"
    [ -z "$new_core" ] || rm -rf -- "$new_core"
  }
  trap cleanup EXIT
  trap 'exit 1' HUP INT TERM

  git clone --depth 1 --branch v0.2.10 https://github.com/jaredchu/context-docs.git "$source_dir" || exit 1
  mkdir -p "$skills_dir" || exit 1
  mkdir "$core" || exit 1
  new_core=$core
  mkdir "$adoption" || exit 1
  new_adoption=$adoption

  cp -R "$source_dir/skills/context-docs/." "$core/" &&
  cp -R "$source_dir/skills/adopt-context-docs/." "$adoption/" &&
  cat "$core/VERSION" "$adoption/VERSION" || exit 1
  new_core= new_adoption=
)

If either skill is already installed, review the upgrade guidance before copying files. Project-only setup and instruction loading → The command stops if either skill already exists and removes its temporary checkout. Expect 0.2.10 followed by 0.1.17.

Install in Grok Build (experimental)

Install and sign in to Grok Build. Run grok inspect from the root of an already trusted project to check for both skills. For a new folder you trust, grok --trust inspect saves folder trust and lists what Grok discovers. Folder trust enables discovery of project skills and loading of AGENTS.md. For a first project installation, use the command below.

(
  skills_dir=.grok/skills
  for skill in context-docs adopt-context-docs; do
    target="$skills_dir/$skill"
    if [ -e "$target" ] || [ -L "$target" ]; then
      printf 'Skill already exists: %s\n' "$target" >&2
      exit 1
    fi
  done
  source_dir=$(mktemp -d "${TMPDIR:-/tmp}/context-docs.XXXXXX") || exit 1
  trap 'rm -rf -- "$source_dir"' EXIT
  git clone --depth 1 --branch v0.2.10 https://github.com/jaredchu/context-docs.git "$source_dir" &&
  mkdir -p "$skills_dir" &&
  cp -R "$source_dir/skills/context-docs" "$source_dir/skills/adopt-context-docs" "$skills_dir/" &&
  cat "$skills_dir/context-docs/VERSION" "$skills_dir/adopt-context-docs/VERSION"
)

Expect 0.2.10 followed by 0.1.17. Start grok in the target project and run /adopt-context-docs. One synthetic headless check covered explicit adoption and a read-only resume. Interactive slash commands, automatic skill selection, ongoing maintenance, and repeatability remain untested. Grok Build setup, evidence and troubleshooting →

Grok Build replaced Cursor in the current setup. Earlier Cursor guidance

Install in Antigravity (experimental)

Experimental Antigravity support, validated through CLI; App and IDE not separately tested. Bounded CLI results retain completion, loading and final-answer limitations. The unchanged v0.2.7 bundle was checked in project .agents/skills/. A denied-shell control and a later scoped attempt completed adoption. The longer-timeout follow-up retains task and loading limits alongside the earlier scoped outcomes and preserved original trial.

From the root of your target project, for a first installation:

(
  skills_dir=.agents/skills
  core="$skills_dir/context-docs"
  adoption="$skills_dir/adopt-context-docs"
  for target in "$core" "$adoption"; do
    if [ -e "$target" ] || [ -L "$target" ]; then
      printf 'Skill already exists: %s\n' "$target" >&2
      exit 1
    fi
  done

  source_dir=$(mktemp -d "${TMPDIR:-/tmp}/context-docs.XXXXXX") || exit 1
  new_core=
  new_adoption=
  cleanup() {
    rm -rf -- "$source_dir"
    [ -z "$new_adoption" ] || rm -rf -- "$new_adoption"
    [ -z "$new_core" ] || rm -rf -- "$new_core"
  }
  trap cleanup EXIT
  trap 'exit 1' HUP INT TERM

  git clone --depth 1 --branch v0.2.10 https://github.com/jaredchu/context-docs.git "$source_dir" || exit 1
  mkdir -p "$skills_dir" || exit 1
  mkdir "$core" || exit 1
  new_core=$core
  mkdir "$adoption" || exit 1
  new_adoption=$adoption

  cp -R "$source_dir/skills/context-docs/." "$core/" &&
  cp -R "$source_dir/skills/adopt-context-docs/." "$adoption/" &&
  cat "$core/VERSION" "$adoption/VERSION" || exit 1
  new_core= new_adoption=
)

The command preserves existing skill folders and symlinks and removes its temporary checkout. Expect 0.2.10 followed by 0.1.17. For existing copies, follow the upgrade steps. Antigravity setup, evidence and limits →

Use it

1. Set up your project

Open your project in your coding agent and invoke:

Codex Claude Code Grok Build (experimental) Antigravity (experimental)
$adopt-context-docs /adopt-context-docs /adopt-context-docs /adopt-context-docs

The adoption skill applies the context workflow and adds or reuses a maintenance rule in the project instructions your agent loads. It preserves equivalent existing rules and the project’s documentation layout, and reports when it cannot confirm instruction loading.

Adoption directs the agent to start a simple inline progress path by default when the documented goal and work support one, including during explicit re-adoption. The guidance reuses existing views and keeps them current during everyday context updates, without a second task list or repeated requests. Installation and upgrade alone do not rewrite existing project setups.

If setup or saved context seems wrong, use the read-only troubleshooting prompt.

2. Save decisions, current work and next steps

Once adopted, the project's loaded maintenance rule guides the agent to update context after meaningful changes during normal work. You do not need to name Context Docs in every prompt. Check that the rule is loaded and review the updates. If an update is missed, or you want one explicitly, ask:

Update this project's context from the work we just completed.
Preserve decisions and their reasons, current work, blockers and next steps.

Review the resulting diff. You do not need to keep a session diary or log every interaction. For shared Git context, include relevant context changes alongside code in your already-authorized commit/transfer workflow, and confirm the other checkout has those files before resuming. For ignored local-only context, use your existing private transfer/backup procedure; it does not travel with a clone.

If work accumulated outside the current session, use the same skill to refresh context against current evidence:

Use context-docs to refresh this project's context against current project evidence.

This uses existing maintenance guidance; no new skill or re-adoption is needed. See the refresh guidance and focused check. To inspect documentation without changing it, ask:

Use context-docs to audit this project's context documents without editing files.

3. Resume with the saved context

Start a new session with:

Read this project's context entry point and its relevant linked documents.
Use the recorded decisions, current work and next steps to continue with the next task.

Find the entry point in your README, documentation index, or the adoption marker’s Entry point: field. Explicitly ask the agent to read it: a saved file alone does not ensure that a new session loads it. To check what a new session takes from the saved note, use the optional read-only verification prompt. More usage examples and setup details →

This also applies when switching between Codex and Claude Code. Save and review context before switching, open the same code and notes in the receiving client, and confirm its maintenance instructions load. See the direction-specific walkthroughs and their observed checks and limits.

4. Visualize progress in Markdown

The skills add a progress view without a web app or separate tracker:

Use context-docs to visualize this project's progress in Markdown.
Show the documented goal, completed and blocked work, meaningful advances
and next action as a compact visual path. Show dependencies and put blockers
beside the work they stop. Link to sources and mark unknowns. Reuse the
existing context layout, or link a separate Markdown file if that reads better.

The guidance directs the agent to maintain an existing view during authorized context updates and distinguish activity, useful learning and completed outcomes. A possible stall requires relevant historical evidence; invented completion percentages and claims of live agent activity are forbidden.

Favor a concise tree, arrow path or nested checklist with dependencies and blockers visible, linking to detailed evidence while preserving decisions and existing layouts. A flat status table alone is insufficient; there is no fixed length limit. See the guide, synthetic example and qualified checks.

Two skills, one workflow

Skill When to use it
adopt-context-docs Set up the workflow and ongoing maintenance rule in a project. Requires the sibling core skill.
context-docs Create, maintain or audit project context. Can also be used on its own.

Ordinary maintenance requires no background service, cloud account or runtime dependency. The agent works during active sessions; this is not automatic conversation capture or unlimited memory. Your project keeps ordinary, reviewable files.

Prefer context that stays out of Git? Select the opt-in local-only setup. Existing setups are preserved.

Quality and limits

The goal is useful, accurate context with less effort for people who lack an established workflow. The project has packaging checks and recorded agent studies, including failures and reviewer disagreements. Those studies do not yet establish effort savings for the intended users or a skill-specific correctness advantage. Comparisons with competent ordinary maintenance are quality diagnostics, not a requirement to beat experts.

The skill guides an agent; it cannot guarantee factual correctness or complete preservation, and it cannot prevent concurrent editing conflicts. Review consequential claims and edits. It provides no automatic scheduler and grants no permission to publish documents or change other systems. Native integration remains experimental. The Grok Build CLI check and Antigravity CLI checks cover specific versions and workflows.

Results, methods and limitations →

Explore

Credits and license

Created and maintained by Jared Chu, with OpenAI Codex and Claude contributing implementation, documentation and evaluations. Codex led the initial AI development. See the contributor guide.

Released under the MIT license.

About

Agent skills for Codex and Claude Code that preserve project context, decisions and next steps across AI sessions in plain Markdown.

Topics

Resources

Contributing

Stars

164 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages