docs-context

docs-context is a skill for Claude Code, Codex from lujiafa/houtu-project-skills. It costs 203 tokens per session (8,463 once invoked), scanned A, original, MIT.

A project-document loader and synchronizer that supplies relevant architecture, module, coding, and decision documents during development. It can also update those documents after code or design changes.

In plain words
What is it for?
Use it when changing code, APIs, schemas, or architecture to load the right project context and synchronize affected documentation afterward.
Why use it?
It keeps the coding agent aligned with the project's existing decisions and helps prevent documentation from drifting away from the code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when changing code, APIs, schemas, or architecture to load the right project context and synchronize affected documentation afterward.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lujiafa/houtu-project-skills/docs-context
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add lujiafa/houtu-project-skills --skill docs-context
Clone the repo
git clone --depth 1 https://github.com/lujiafa/houtu-project-skills

Made for: Claude Code, Codex.

Its marketplace also offers this one on its own, as the plugin docs-context/plugin install docs-context after adding the marketplace above.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for docs-context

README.md
[![agentmods](https://agentmods.dev/badge/skills/lujiafa/houtu-project-skills/docs-context/github.svg)](https://agentmods.dev/skills/lujiafa/houtu-project-skills/docs-context)
Your own site
<a href="https://agentmods.dev/skills/lujiafa/houtu-project-skills/docs-context"><img src="https://agentmods.dev/badge/skills/lujiafa/houtu-project-skills/docs-context/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for docs-context

Your own site · 80×15
<a href="https://agentmods.dev/skills/lujiafa/houtu-project-skills/docs-context"><img src="https://agentmods.dev/badge/skills/lujiafa/houtu-project-skills/docs-context.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 203 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,463 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00203 $0.08463
Opus 5 $0.00102 $0.04231
Sonnet 5 $0.00041 $0.01693
Haiku 4.5 $0.00020 $0.00846

Measured 9d ago against content hash 3714c5ba81c8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

docs-context scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/docs-context/SKILL.md · 480 lines

How it starts

The opening of the file, as written. The whole thing — 480 lines — stays where its author put it; the contents beside it link to each section on GitHub.

docs-context — Context Loader & Doc Synchronizer

Manages reading and writing of project documentation, ensuring correct contextual constraints during development and keeping docs in sync with code afterward.

Contents

  • Positioning, conflict priority, context correction taxonomy
  • Document Paths (5 doc types under docs/)
  • BCU Splitting Principle (decision flow + section-omission rule)
  • Modes & Triggers (Read / Write criteria, Removal & Rollback Sync)
  • Read Mode: always-load, task-type loading, BCU / ADR resolution, three context scenarios, post-load behavior
  • Write Mode: doc sync checklist, slug selection, ADR write flow, sync execution steps
  • Handling Missing Documents (scope, init flow, template mapping)
  • Sync Summary Format (Updated / Created / Deleted / Declined / Skipped / No Update / Shared / Needs Confirmation)

Positioning: Super Base Context

docs-context is the Super Base Context for Agent Coding — structured project docs, task-aware Read Mode, bidirectional Write Mode. The remainder of this file specifies each.

Conflict priority (when this skill's guidance collides with other instructions in the same turn): explicit user instruction > docs-context.

Context Correction, Completion, and Reconstruction

Three scenarios in which docs-context restores the agent's project context — combined documents + code/comment scanning fills the gap when docs alone are insufficient.

  • Correction — Not limited to enforcing constraints on generated code. When context degrades due to long-conversation attention decay, context compression inaccuracies, or accumulated drift, the agent can re-read the relevant documents and scan the actual codebase to restore an accurate understanding. Documents act as the ground truth that pulls distorted context back on track.
  • Completion — When the agent lacks context for the current task, documents provide the structural knowledge (architecture, module boundaries, dependencies, constraints), while code and comment scanning fills in the implementation specifics that documents may not cover.
  • Reconstruction — When starting a new session or opening a project for the first time, the agent has zero knowledge of the project. By triggering this skill, the agent loads the relevant documents (backbone) and combines them with code and comment scanning to reconstruct a complete understanding of the project from scratch.

Read the full file on GitHub · 480 lines

Files

What ships with it

9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 480 lines · 203 tokens per session scan A 3714c5ba81c8

Subscribe to this mod's changes

docs-context is a skill published in the GitHub repository lujiafa/houtu-project-skills (26 stars, last pushed 4mo ago), licensed MIT. It adds 203 tokens to every session and 8,463 once invoked, about $0.0010 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.