Skip to content

Add Agent Playbook section for automated updates - #5016

Merged
stefanvacareanu7 merged 1 commit into
masterfrom
docs/agent-update-playbook
Jul 29, 2026
Merged

Add Agent Playbook section for automated updates#5016
stefanvacareanu7 merged 1 commit into
masterfrom
docs/agent-update-playbook

Conversation

@stefanvacareanu7

Copy link
Copy Markdown
Contributor

Summary

  • Documents this repo's structure, version-pinning locations, and update procedure for an AI coding agent (or human) so a future automation can perform a version bump without re-investigating from scratch.
  • Only README.md is touched — no functional changes.

Test plan

  • N/A (documentation-only change to README.md)

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

AI Reviewer: first review requested successfully. AI can make mistakes. Always validate suggestions.

Run reviewer

TIP This summary will be updated as you push new changes.

@codacy-production codacy-production Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

The proposed Agent Playbook contains a critical instructional error regarding dependency management. Specifically, the recommendation to use --omit=dev will prune the toolchain (TypeScript, ESLint, test runners) required for the subsequent verification steps, effectively breaking the local workflow for any agent or developer following the guide.

While Codacy results are up to standards, there are significant gaps in the documentation coverage. The playbook currently lacks specific guidance for updating src/eslintPlugins.ts, executing npm run build:docs for machine-consumed file updates, and utilizing codacy-plugins-test for local validation. These missing elements are necessary to ensure a complete and reliable update process.

About this PR

  • The documentation systematically recommends using --omit=dev during dependency updates. This should be corrected across all sections of the playbook to ensure the development environment remains functional for linting and testing.

Test suggestions

  • Verify the documentation includes specific instructions for updating 'src/eslintPlugins.ts' when adding new plugins.
  • Verify the playbook correctly identifies the need to run 'npm run build:docs' to update machine-consumed files in 'docs/'.
  • Verify the inclusion of 'codacy-plugins-test' local execution in the validation steps.
Prompt proposal for missing tests
Consider implementing these tests if applicable:
1. Verify the documentation includes specific instructions for updating 'src/eslintPlugins.ts' when adding new plugins.
2. Verify the playbook correctly identifies the need to run 'npm run build:docs' to update machine-consumed files in 'docs/'.
3. Verify the inclusion of 'codacy-plugins-test' local execution in the validation steps.

TIP Improve review quality by adding custom instructions
TIP How was this review? Give us feedback

Comment thread README.md

1. **Install/bump the target package(s)** in `package.json`:
```bash
npm install --legacy-peer-deps --omit=dev <package-name>@<version>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔴 HIGH RISK

Remove the --omit=dev flag to ensure that the development dependencies needed for building and testing the engine are preserved.

Comment thread README.md

| File | What it controls | What to check |
|---|---|---|
| `package.json` → `dependencies` | The pinned version of ESLint itself (`"eslint": "^8.57.0"`) and every bundled plugin/config (`eslint-plugin-*`, `eslint-config-*`, `@scope/eslint-plugin-*`, plus supporting libs like `typescript`, `webpack`, `next`, etc.) | Bump the specific package(s) named in the task, e.g. `npm install --legacy-peer-deps --omit=dev eslint-plugin-jsdoc@latest` (see recent commit `c1a4471` "Bump eslint-plugin-jsdoc" for the exact shape: only `package.json`/`package-lock.json` + regenerated `docs/description/*` changed). Respect the `preupgrade` script's excluded packages (`@teambit/react.eslint-config-bit-react`, `eslint` itself pinned to `latest` overall, `eslint-plugin-lodash` pinned to minor) if doing a bulk upgrade. |

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔴 HIGH RISK

The recommendation to use --omit=dev will remove development dependencies required for the subsequent build, lint, and test steps. Remove this flag to ensure the local environment remains functional for the entire playbook workflow.

@stefanvacareanu7
stefanvacareanu7 merged commit 9fcfbcb into master Jul 29, 2026
5 checks passed
@stefanvacareanu7
stefanvacareanu7 deleted the docs/agent-update-playbook branch July 29, 2026 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants