Skip to content

chore: enable agents to update public docs when making public changes - #129

Merged
mwbrooks merged 2 commits into
mainfrom
mwbrooks-agents-public-docs-rule
Aug 31, 2026
Merged

chore: enable agents to update public docs when making public changes#129
mwbrooks merged 2 commits into
mainfrom
mwbrooks-agents-public-docs-rule

Conversation

@mwbrooks

@mwbrooks mwbrooks commented Aug 31, 2026

Copy link
Copy Markdown
Member

Summary

This pull request tells agents working in this repo that a public-facing change is not done until docs/ is updated, so the page developers actually read stops trailing the code by a PR.

AGENTS.md covers commands, cross-skill references, skill descriptions, testing, CI, and releasing, but says nothing about docs/. An agent adding a public capability therefore has no reason to open docs/slack-skills-plugin.md, and the connection to docs.slack.dev is not discoverable from this repo at all: the sync lives in slackapi/docs, in a sources.json entry pointing at this directory on main.

The new ## Public documentation section states where docs/ goes and that the edit belongs in the same PR, then enumerates what counts: a new or changed install command, a skill added/removed/renamed (and so the skills table), a capability that differs by surface, and anything that makes an existing statement on the page wrong. It closes by pointing at README.md as the same obligation for people arriving via GitHub.

Testing

No changeset: AGENTS.md is agent guidance, not a user-facing change, so it does not belong in the published CHANGELOG.

Requirements

AGENTS.md said nothing about `docs/`, so an agent making a public-facing
change to the plugin had no reason to touch the page that documents it.
That happened in #128: the Codex install path landed with README and
changeset updates but not the docs.slack.dev page, and the omission was
caught in review rather than by the guidance.

Adds a `## Public documentation` section stating that `docs/` is synced
to docs.slack.dev from `main` by `slackapi/docs`, so the edit belongs in
the same PR with no follow-up to open, and enumerating what counts as a
public-facing change (install paths, the skills table, per-surface
capability differences, anything that makes an existing statement wrong).
@changeset-bot

changeset-bot Bot commented Aug 31, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 0b917f9

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@mwbrooks mwbrooks self-assigned this Aug 31, 2026
@mwbrooks mwbrooks added docs Improvements or additions to documentation semver:patch Changes trigger a patch version bump chore Maintainer work: repo files, release scaffolding, general maintenance and removed docs Improvements or additions to documentation labels Aug 31, 2026
@mwbrooks mwbrooks changed the title docs: require public docs updates in the same PR chore: agents should update public docs in the same PR Aug 31, 2026
@mwbrooks mwbrooks changed the title chore: agents should update public docs in the same PR chore: enable agents to update public docs when making public changes Aug 31, 2026
@mwbrooks
mwbrooks marked this pull request as ready for review August 31, 2026 18:35
@mwbrooks
mwbrooks requested a review from a team as a code owner August 31, 2026 18:35

@WilliamBergamin WilliamBergamin 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.

Thanks for adding this 🚀

I have one none blocking concern about ending up with unreleased info in our documentation, left a comment about it

Comment thread AGENTS.md

## Public documentation

`docs/` is published to [docs.slack.dev](https://docs.slack.dev/ai/slack-skills-plugin). The `slackapi/docs` repo syncs this directory from `main` (see its `sources.json`), so editing `docs/slack-skills-plugin.md` here is the whole job: there is no second PR to open, and the change goes live when it merges.

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.

Do you think this will entice agents to edit the documentation along with changes?

From what I understand we want to merge docs changes along with the changeset PR so that we don't end up with unreleased information on the docs site 🤔

Maybe this is a none issue though

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@lukegalbraithrussell What's your take on this? When will the docs/ changes go live - on merge?

I agree with @WilliamBergamin - sometimes we'd like docs changes to go out immediately, but if they are documenting a change in a specific version, then we'd need it to go out when we do the release (which is when the changesets are merged).

@WilliamBergamin WilliamBergamin Aug 31, 2026

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 we should pull the docs from the most recent tag 🤔? this way we the docs and "code" are bundled together

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's on merge. the problem with tying docs to release versions is you basically have to freeze the docs until release goes out. Example:

docs change 1: next-release only feature
docs change 2: typo fix
docs change 3: clarifying instructions

because the doc on main at change 1 is now tied to the release, changes 2 and 3 following are also waiting on the release. (it all also requires manually overriding the main listing on our side, and then reverting back, but i should figure out an easier solution for that)

Would it be possible to have the docs changes for a release be merged to a [release-version] branch instead of main, then that branch is merged to main on release?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good point @lukegalbraithrussell - there are 2 scenarios here:

  1. Immediate Updates: typos, minor improvements related to the current production experience
  2. Versioned Updates: updates dependent on unreleased features or changes

Right now, whatever is on main goes out immediately.

This seems to be true for all of our open source projects, so we should take a step back and find a solution that works across everything. Changesets and their chore: release PR might be a pattern we can leverage to protect the "Versioned Updates" scenario.

💬 I'll open a discussion around this topic.

:shipit: Sounds like we'll ship this PR, since it's aligned with how docs work today.

@mwbrooks
mwbrooks merged commit 09ab07e into main Aug 31, 2026
7 checks passed
@mwbrooks
mwbrooks deleted the mwbrooks-agents-public-docs-rule branch August 31, 2026 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintainer work: repo files, release scaffolding, general maintenance docs Improvements or additions to documentation semver:patch Changes trigger a patch version bump

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants