Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

write-context-doc

Skill by google

Writes or updates a Site Kit convention doc in docs/context/js/ or docs/context/php/. It explains how features use and extend a system, without copying internal code. Built for contributors to the google/site-kit-wp repo.

  • Score 79
  • 1.4k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install write-context-doc

Built from the published package, never by AI.

git clone --depth 1 https://github.com/google/site-kit-wp /tmp/site-kit-wp && mkdir -p ~/.claude/skills && cp -r /tmp/site-kit-wp/.agents/skills/write-context-doc ~/.claude/skills/write-context-doc

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install write-context-doc in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

write-context-doc is an agent skill for the google/site-kit-wp repository. It writes or updates a context doc in docs/context/js/ or docs/context/php/. Each doc explains how a feature uses or extends one system, covering its public API, arguments, filters, actions, rules and expected behavior.

The skill tells the agent to read the source of every class it describes before writing, and to fix any mismatch with the old doc in favor of the code. It favors evergreen wording, adds new docs to the scope map and Gemini styleguide list, and lists stale sections in its report instead of rewriting them. It does not commit, push or open a PR unless asked. It is for contributors who maintain Site Kit's context docs.

Written from the project's SKILL.md and checked against it.

What it can do

  • Set the scopeWorks out which doc and sections a change touches, and avoids rewriting unrelated sections.
  • Read the codeChecks every class, method, hook and constant it names against the source before writing.
  • Decide what belongsKeeps facts a feature needs, such as the public API, extension points and rules, and leaves out internal code.
  • Structure each sectionUses a fixed layout with locations, constructor argument tables and behavior bullets.
  • Write code examplesAdds short examples that show only how a feature registers or uses something.
  • Add a new docCreates a kebab-case file and adds it to the scope map and the Gemini styleguide list.
  • Verify and reportRechecks each claim against the code and reports changed sections and stale ones.

What you need

  • Access to the google/site-kit-wp repository
  • Agent skills in the .agents/skills directory

Try asking

  • Document the new prompts system in docs/context
  • Rewrite the Notices section of admin-features.md
  • Update the context doc for this change

Good to know

  • Does not commit, push or open a PR unless the user explicitly asks
  • Limited to docs under docs/context/js/ and docs/context/php/
  • Stale sections outside the requested scope are listed, not rewritten

Security check

B
  • Allowed to use Bash, Edit, Write without limitsIn SKILL.md

Checked automatically: .agents/skills/write-context-doc/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: BashReadGrepGlobEditWrite

Alternatives to write-context-doc

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

write-context-doc: common questions

Does this skill copy code into the context doc?

No. The source says a context doc is not a copy of the code. It explains how a feature uses a system and leaves out class bodies and private methods.

Where does the skill save the doc it writes?

It saves new docs in docs/context/js/ or docs/context/php/, named after the system in kebab case, such as admin-features.md.

Does the skill commit its changes?

No. The source says not to commit, push or open a PR unless the user explicitly asks for it.

How do I install write-context-doc?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is write-context-doc free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is write-context-doc safe to use?

It scores 79 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use bash, edit, write without limits). Review the code before you install. How grades work.

What are alternatives to write-context-doc?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

write-context-doc Install

Add to stack

Loading.