From coding-studio
Automatically updates existing README.md, AGENTS.md, and CLAUDE.md files with targeted edits after significant code changes like new features, dependencies, API updates, or architecture shifts.
How this skill is triggered — by the user, by Claude, or both
Slash command
/coding-studio:project-docs-syncThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Automatically keep project documentation in sync with code changes. This skill runs **proactively in the background** during coding sessions — it is not invoked explicitly by the user.
Automatically keep project documentation in sync with code changes. This skill runs proactively in the background during coding sessions — it is not invoked explicitly by the user.
When significant code changes are detected (new features, dependency updates, architecture changes, etc.), this skill analyzes which documentation files need updating and applies minimal, targeted edits to keep them current.
package.json, pyproject.toml, Cargo.toml, go.mod, requirements.txt, etc.)Use git commands to understand what changed:
# See what files changed recently
git diff --name-only HEAD~3..HEAD
git diff --name-only HEAD~1..HEAD
# See staged changes
git diff --cached --name-only
# Get change statistics
git diff --stat HEAD~1..HEAD
# Review recent commit messages for context
git log --oneline -5
Classify changes by looking at which files were modified:
package.json, pyproject.toml, Cargo.toml, go.mod, requirements.txt, Gemfile.env.example, docker-compose.yml, Makefile, tsconfig.json, CI configssrc/, new top-level modules, changed entry pointsBefore making any edits, perform these checks:
Search for documentation files in the project root (the current working directory, NOT this skill's repository):
README.mdAGENTS.mdCLAUDE.mdCRITICAL: Only proceed for files that already exist. NEVER create new documentation files.
For each target file that exists:
Using the git diff output:
Each documentation file serves a different audience. Avoid duplicating the same information across files.
Audience: End users, new contributors, anyone discovering the project.
What to update:
When to update:
When NOT to update:
Audience: Claude Code (Anthropic's AI coding assistant).
What to update:
When to update:
Audience: OpenAI Codex and similar AI coding agents.
What to update:
When to update:
If the same information is relevant to multiple files, present it at the appropriate level for each audience:
Example: A new Redis dependency might appear in:
redis-server" in the commands section- for lists, use - (not * or +)Step 1: DETECT CHANGES
├─ Run: git diff --name-only HEAD~1..HEAD
├─ Run: git diff --cached --name-only (for staged changes)
├─ Run: git diff --stat HEAD~1..HEAD
└─ Classify changed files by category (feature, config, deps, architecture)
Step 2: EVALUATE SIGNIFICANCE
├─ Apply trigger conditions (see "Trigger Conditions" section)
├─ If changes are below threshold → exit silently, do nothing
└─ If significant → proceed to Step 3
Step 3: DISCOVER TARGET FILES
├─ Check for README.md in project root
├─ Check for AGENTS.md in project root
├─ Check for CLAUDE.md in project root
└─ If none exist → exit silently
Step 4: READ AND ANALYZE
├─ Read each existing target file completely
├─ Understand current structure, style, and language
├─ Read relevant source code changes (git diff -p for specific files)
└─ Map changes → affected documentation sections
Step 5: APPLY UPDATES
├─ For each file needing changes:
│ ├─ Identify exact section(s) to modify
│ ├─ Use Edit tool for surgical changes
│ └─ Verify surrounding content is preserved
└─ Skip files where no update is needed
Step 6: NOTIFY (brief, non-intrusive)
└─ Example: "Synced docs: updated README.md setup section (new Redis dependency),
updated CLAUDE.md architecture section (new notification module)"
Change: package.json gained "redis": "^4.6.0" as a dependency.
README.md has a "Prerequisites" section:
## Prerequisites
- Node.js 18+
- PostgreSQL 15+
Action: Edit to add Redis:
## Prerequisites
- Node.js 18+
- PostgreSQL 15+
- Redis 7.0+
Change: New file src/routes/webhooks.ts with POST /api/v2/webhooks endpoint.
README.md has an "API Reference" section listing existing endpoints.
Action: Add the new endpoint following the existing format in that section.
Change: Makefile updated — make build renamed to make build-all.
CLAUDE.md has:
## Common Commands
- Build: `make build`
Action: Edit to update:
## Common Commands
- Build: `make build-all`
Change: New directory src/services/notifications/ created with notification service implementation.
CLAUDE.md has an "Architecture" section with directory tree.
Action: Add the new module entry to the directory tree, with a brief description following the existing format.
Change: Internal refactor — src/utils/helpers.ts functions renamed for clarity. No public API change. No new dependencies. No architecture change.
Action: Do nothing. Internal refactors don't warrant documentation updates.
npx claudepluginhub jorben/jorben-skills --plugin coding-studioImplements two-phase workflow to analyze code changes via git diff and update project documentation. Use before merging branches, after features/bugfixes, or when docs stale.
Updates CLAUDE.md files with non-obvious conventions and gotchas from staged git changes. Activates on user requests like 'update CLAUDE.md' or significant code modifications.
Analyzes codebase structure and updates README.md and docs/ directories to reflect current code state, including changes since last doc update. Triggers on 'update docs' or staleness checks.