CommunityProductivity & Collaborationgithub.com

gener8v/gener8v.claude-skills.engineering

Before a commit, find every document that describes what the change touched and update it in the same commit, or confirm in one line that no document needs a change. Catches stale text, missing documentation and facts kept in two places. Use before any commit or PR, and when asked 'are the docs up to date', 'update the docs for this change' or 'did I miss a README change'. Not for creating a documentation set or filling large gaps (documentation-bootstrap), and not for gener8v pipeline documents under .gener8v/, which the pipeline skills own.

What is gener8v.claude-skills.engineering?

gener8v.claude-skills.engineering is a Claude Code agent skill that before a commit, find every document that describes what the change touched and update it in the same commit, or confirm in one line that no document needs a change. Catches stale text, missing documentation and facts kept in two places. Use before any commit or PR, and when asked 'are the docs up to date', 'update the docs for this change' or 'did I miss a README change'. Not for creating a documentation set or filling large gaps (documentation-bootstrap), and not for gener8v pipeline documents under .gener8v/, which the pipeline skills own.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/gener8v/gener8v.claude-skills.engineering/tree/HEAD/skills/documentation-sync

Installed? Explore more Productivity & Collaboration skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Documentation sync

Code and its documents change together, in the same commit. A document that is wrong is worse than no document.

Three ways documents go wrong

  • Stale. The document still describes the old behavior, name or command.
  • Missing. New behavior, a new command or a new setting has no documentation.
  • Duplicated. The same fact is in two places. Later, one copy changes and the other does not.

Steps

  1. See what changed.
    git diff --cached --stat
    git diff --stat
    
  2. Find the repository's own rules. Read CLAUDE.md, CONTRIBUTING.md and docs/README.md. If they say which document owns which subject, follow them. They come before step 3.
  3. Route each change to its owner. Use resources/doc-routing.md. One fact has one home. Other documents link to it.
  4. Find stale references. For each name that you renamed or removed (a function, flag, endpoint, setting, file path, command):
    git grep -n '<old name>'
    
    Fix each hit in a document. Run the grep again. The post-condition is: no hits, or only hits that must stay (for example a CHANGELOG entry about the rename).
  5. Edit. Change only what the code change makes wrong or incomplete. Do not rewrite unrelated sections. For clear wording, use the simple-english skill if it is installed.
  6. Commit together. Stage the document changes with the code. Do not put them in a later PR.
  7. Report. List the documents that you changed. If none needed a change, say so in one line and give the reason. For example: "No docs: internal refactor, no change to behavior, commands or settings."

When the owner is not clear

Ask the user. Do not create a new document to avoid the question.

A useful test: is it a fact about the current state (a setting, a version, a status)? It goes in the reference or status document. Is it a procedure (steps someone follows)? It goes in the guide, runbook or skill that owns that procedure.

Specifications come first

If the repository has a SPEC.md (see engineering:spec-writing) or gener8v specifications under .gener8v/specifications/, they define the intended behavior.

  • If your change does what the specification says, the specification needs no edit.
  • If your change contradicts the specification, stop. Tell the user. Change the specification first, through its owner: engineering:spec-writing for SPEC.md, gener8v:specification for pipeline specifications. Do not edit the specification silently to match the code.

Pipeline documents

Do not edit files under .gener8v/ by hand. The gener8v pipeline skills write and update them.

Related skills

  • engineering:documentation-bootstrap: when a whole document is missing, not just a paragraph.
  • engineering:github-pr-merge: runs this check before a PR.
  • engineering:github-release: reads the CHANGELOG Unreleased section that this skill keeps current.

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

gener8v/gener8v.claude-skills.engineering

Find and run a project's test, lint, type-check, build and dev-server commands, read the results correctly, and seed a throwaway database when UI work needs realistic data. Never seeds the project's real or default database. Use before 'run the tests', 'lint this', 'does it build', 'start the app so I can see it', 'seed some demo data', and before you claim that a change works. Not for deployment or CI pipeline design; use the project's own deploy tooling for those.

gener8v/gener8v.claude-skills.engineering

Create or top up a project's documentation set: list what exists, let the user choose which document types to add, collect one shared fact sheet from the code, write the documents (in parallel when there are several), then check them against each other and against the code. Use when asked to 'bootstrap the docs', 'start the documentation', 'we have no README or ARCHITECTURE', or 'fill in the missing docs'. Not for the per-commit update of existing documents (documentation-sync), and not for gener8v pipeline documents (gener8v:brownfield and gener8v:planning make those).

gener8v/gener8v.claude-skills.engineering

Put work on the correct branch before the first edit. Finds the base branch, starts a well-named branch from the current remote tip, and sets up one worktree per agent for parallel work. Use at the start of any change to a tracked file, such as 'start on issue 42', 'fix this typo', 'set up branches for these three tickets', or before you start sub-agents that edit code. Not for opening or merging a PR (github-pr-merge) or for history rewrites and other risky git commands (git-safety).

gener8v/gener8v.claude-skills.engineering

Approval gate for git commands that destroy work or skip checks: force-push, --no-verify, signing bypass, reset --hard, clean -f, discarding uncommitted edits, branch or tag deletion, rewriting pushed commits and push --mirror. Each one needs the user's explicit approval at that moment; an earlier approval never carries over. Also covers a secrets check before a commit and what to do when a secret is already committed. Use before any of these commands, or when asked to 'force push', 'skip the hooks', 'throw away my changes' or 'delete that branch'. Not for normal branching (git-branching) or the PR flow (github-pr-merge).

Related Skills