Skip to content

Infra: docs enablement first attempt - #3689

Closed
kaitlynmichael wants to merge 10 commits into
mainfrom
docs-enablement
Closed

Infra: docs enablement first attempt#3689
kaitlynmichael wants to merge 10 commits into
mainfrom
docs-enablement

Conversation

@kaitlynmichael

@kaitlynmichael kaitlynmichael commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Note

Low Risk
Process and template-only changes with no runtime or published user doc content; risk is limited to contributor guidance and PR expectations, not production behavior.

Overview
Introduces docs contributor infrastructure so humans and AI tools share one style bar and a repeatable workflow before PR review.

CLAUDE.md codifies Redis docs writing rules (Google dev style, voice, terminology, frontmatter, coverage-first IA, placeholders/security). AGENTS.md tells Codex and other agents to follow the same file. CONTRIBUTING.md documents when docs are required, the golden path (search → hugo new archetype → AI draft → self-check → PR), templates, and the “ready for review” bar.

Adds a GitHub PR template with a docs checklist (coverage, template type, build/frontmatter, accuracy, style) plus a “no docs needed” escape hatch for non–user-facing changes.

Adds Hugo archetypes/ for task, concept, and reference pages with frontmatter scaffolding and inline author guidance.

Adds a first-cut Claude command spec .claude/commands/docs/review-doc describing deterministic checks (Vale, links, Hugo build, frontmatter) and an AI rubric (voice, structure, IA, security placeholders); implementation mechanics are explicitly left as a stub/TODO.

Reviewed by Cursor Bugbot for commit 657b103. Bugbot is set up for automated code reviews on this repo. Configure here.

@mich-elle-luna mich-elle-luna left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you! Just a few thoughts off the top of my head

Comment thread AGENTS.md
@@ -0,0 +1,5 @@
# AGENTS.md

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think AGENTS.md is a special name that is used for something else

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AGENTS.md is actually the intended name here — it's the emerging cross-tool open standard for agent instructions (Codex, Cursor, and others auto-read a root AGENTS.md). Since a lot of the company uses Cursor or Codex, I think it's necessary: it routes those tools to the same rules in CLAUDE.md, so there's still a single source of truth for style and conventions. So it's not colliding with anything — it is the special name, pointed at our one source.

Comment thread docs-enablement/enablement-walkthrough.md Outdated

| Change type | What's required |
|---|---|
| No user-facing impact (refactor, internal, tests, CI) | Assert **"no docs needed"** on the PR. |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add new product

Comment thread docs-enablement/enablement-walkthrough.md Outdated
Comment thread docs-enablement/enablement-walkthrough.md Outdated
Comment thread docs-enablement/enablement-walkthrough.md Outdated
Comment thread docs-enablement/enablement-walkthrough.md Outdated
Comment thread docs-enablement/enablement-walkthrough.md Outdated
Comment thread docs-enablement/enablement-walkthrough.md Outdated
Comment thread CONTRIBUTING.md

## Do I need to write docs for this change?

- **No user-facing change** (refactor, internal, tests, CI) → **no docs.** Note "no docs needed" on your PR.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add new product

@kaitlynmichael
kaitlynmichael marked this pull request as ready for review July 27, 2026 15:32
@github-actions

Copy link
Copy Markdown
Contributor

🧠 Redis Memory

Found 5 related items from repository history:

Memory updated at 5c1a9b7

@github-actions

Copy link
Copy Markdown
Contributor

🧠 Redis Memory

Found 5 related items from repository history:

Memory updated at 5493219

@github-actions

Copy link
Copy Markdown
Contributor

🧠 Redis Memory

Found 5 related items from repository history:

Memory updated at 657b103

@andy-stark-redis andy-stark-redis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few thoughts and suggestions - it's looking pretty good so far :-)

Comment thread archetypes/concept.md
@@ -0,0 +1,36 @@
---

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Page templates might be a good idea to have. However, I'm not sure if the ones you've got here make it look like these are strict heading structures that we already use (not every reference page needs a syntax section, for example). Also, maybe we should consider using mdschema for this? It can create page boilerplate like this but can also validate the structure (eg, it can check that required frontmatter fields are present and of the right type, like an integer for the weight, etc).

@@ -0,0 +1,16 @@
## Summary

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An AI tool won't see these directly, but if a human sees this, will they really know if the checks have been passed or not (it will probably be AI that writes the page)? We might want something like /make-pr skill that actually opens the PR; the skill could contain a checklist like this that the AI could use.

Comment thread CLAUDE.md
@@ -0,0 +1,57 @@
# Redis docs — writing conventions (humans + AI)

Base style: **Google developer documentation style**; fall back to the **Microsoft Writing Style Guide** where Google is silent. Follow these on every docs change. AI tools working in this repo inherit these rules automatically.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe link to these explicitly?

Suggested change
Base style: **Google developer documentation style**; fall back to the **Microsoft Writing Style Guide** where Google is silent. Follow these on every docs change. AI tools working in this repo inherit these rules automatically.
Base style: [**Google developer documentation style**](https://developers.google.com/style); fall back to the [**Microsoft Writing Style Guide**](https://learn.microsoft.com/en-us/style-guide/welcome/) where Google is silent. Follow these on every docs change. AI tools working in this repo inherit these rules automatically.

@@ -0,0 +1,36 @@
---

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be worth making this into a skill rather than a command. The reason is that a command has to be invoked explicitly with the slash syntax, whereas the LLM can use a skill at its own discretion when the task seems to require it. If we use a command then we should explicitly say somewhere "Type /docs:review-doc to run the review". Otherwise, people might say "please review what I've just written", etc, and the LLM won't run the command.

Comment thread CLAUDE.md
## Coverage-aware authoring — do this FIRST

- Before creating a page, **check whether the topic already exists.** Prefer to **fold into / extend / cross-link** an existing page over making a new one.
- Create a new page only when it's genuinely new — and **never leave it orphaned**: link it from its section index.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The LLM might not know about _index.md pages with auto-indexing (ie, hideListLinks not set to true). Maybe we should start using hideListLinks: false and add links in the content for all section index pages? The auto-generated lists don't look very good anyway.

Comment thread CONTRIBUTING.md

Each step names the actual action — a prompt to the AI, a command, or a click.

1. **Check what already exists.** Ask Claude or Codex in the repo: *"Is there already a page about `<topic>` under `content/`? If so, where, and should I add to it instead of making a new one?"* — or in the editor, `Cmd/Ctrl+Shift+F` across `content/` for the topic, and check the search box on the docs site. If there's a related page, add to it instead of creating a new one.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe mention that a well-written Jira ticket or a discussion on a Slack thread is often a good starting point for a docs plan? Claude can access both from VSCode using the connectors. Claude Tag or the Jira tool can make a Jira ticket by summarising a Slack thread.

Comment thread CONTRIBUTING.md
3. **Draft with AI in the repo.** In the Claude Code (or Codex) panel, paste your source material and ask it to draft — *"Draft this task page from these notes: `<spec>`."* It reads the committed `CLAUDE.md` automatically, so the draft comes out in our voice, naming, and shortcodes.
4. **Self-check and preview.** Run `/docs:review-doc` — or manually: `vale content/<path>`, the link check, and `make serve`, then open `http://localhost:1313` to eyeball the page. Fix what's flagged, then actually run the steps or commands the page describes to confirm they work.
5. **Open a PR.** Commit and push the branch (or tell the AI "commit and push this branch"), then open a PR on GitHub — the PR template auto-loads the docs checklist, so fill it in and request a reviewer. A docs teammate reviews for voice, structure, and placement, then merges. Merging to `main` publishes to the live site automatically — so review happens *before* merge, and changes to sensitive areas (security, release notes) always get a human reviewer first.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe mention that they should expect Bugbot feedback sometimes, but they can handle it easily using /docs:bugbot.

@kaitlynmichael

Copy link
Copy Markdown
Contributor Author

Closing in favor of using one file (onboarding.md) which Michelle is developing.

@github-actions github-actions Bot mentioned this pull request Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants