Skip to content

docs: package-level CLAUDE.md across the monorepo#1711

Open
Scra3 wants to merge 5 commits into
mainfrom
docs/workflow-executor-claude-md
Open

docs: package-level CLAUDE.md across the monorepo#1711
Scra3 wants to merge 5 commits into
mainfrom
docs/workflow-executor-claude-md

Conversation

@Scra3

@Scra3 Scra3 commented Jun 25, 2026

Copy link
Copy Markdown
Member

Adds a concise, package-specific CLAUDE.md to every package so future Claude Code sessions get the right context per package, plus a rewrite of the existing workflow-executor one.

What's in here

  • workflow-executor — rewrite: condensed the long architecture-principles prose into scannable invariants, refreshed the package map, added step types & execution modes, Node ≥ 22.12 + single-test commands, and gotchas (stale cross-package build cache, hard-to-run e2e). Kept all hard-won invariants.
  • 19 new CLAUDE.md — one per package that lacked one: agent, agent-client, agent-testing, agent-toolkit, the datasource-* family (customizer, toolkit, sql, sequelize, mongo, mongoose, replica, dummy, demo-fintech), forest-cloud, forestadmin-client, mcp-server, plugin-aws-s3, plugin-export-advanced, plugin-flattener.

Conventions

  • Each file: overview/role → big-picture architecture (the parts needing several files) → workspace-scoped commands + single-test → package-specific gotchas only.
  • No duplication of the root CLAUDE.md. Grounded in actual code, verified against current main.

Not touched: _example (demo app, local WIP), ai-proxy (already had one).

🤖 Generated with Claude Code

Note

Add package-level CLAUDE.md documentation across the monorepo

Adds or rewrites CLAUDE.md guidance files for 20+ packages in the monorepo, giving Claude Code package-specific context for each area of the codebase. Each file covers overview, architecture, key entry points, CLI commands, and package-specific gotchas. More detailed packages (e.g. workflow-executor, ai-proxy, datasource-sql) include invariants, error hierarchies, idempotency schemes, and known edge cases.

Macroscope summarized bfafc7f.

Tighten the architecture-principles prose into scannable invariants, refresh
the package map (add mcp/factory/agent-with-log/record-step-executor), and add
practical context: step types & execution modes, Node >=22.12 + single-test
commands, and gotchas (stale cross-package build cache, hard-to-run e2e,
SQLite/pg test gating). Kept all hard-won invariants.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@qltysh

qltysh Bot commented Jun 25, 2026

Copy link
Copy Markdown

Qlty


Coverage Impact

⬇️ Merging this pull request will decrease total coverage on main by 0.08%.

🚦 See full report on Qlty Cloud »

🛟 Help
  • Diff Coverage: Coverage for added or modified lines of code (excludes deleted files). Learn more.

  • Total Coverage: Coverage for the whole repository, calculated as the sum of all File Coverage. Learn more.

  • File Coverage: Covered Lines divided by Covered Lines plus Missed Lines. (Excludes non-executable lines including blank lines and comments.)

    • Indirect Changes: Changes to File Coverage for files that were not modified in this PR. Learn more.

Generate a concise, package-specific CLAUDE.md for every package that lacked
one (19 packages: agent, agent-client, agent-testing, agent-toolkit, the
datasource-* family, forest-cloud, forestadmin-client, mcp-server, plugin-*).

Each captures the package's role, the big-picture architecture that needs
reading multiple files, workspace-scoped commands + single-test, and the
package-specific gotchas — without duplicating the root CLAUDE.md.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Scra3 Scra3 changed the title docs(workflow-executor): rewrite CLAUDE.md (condense + refresh) docs: package-level CLAUDE.md across the monorepo Jun 25, 2026
Comment thread packages/datasource-replica/CLAUDE.md Outdated
alban bertolini and others added 3 commits June 25, 2026 20:58
Rewrite the existing ai-proxy CLAUDE.md to match the standard format used
across the monorepo: overview + architecture (OpenAI-wire proxy, provider
dispatch, remote tools/integrations, Router discriminated union), commands,
and package gotchas. Adversarially verified against the source.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Reviewed every package CLAUDE.md against its source (one reviewer per file).
5 were clean; 16 had real inaccuracies, now corrected & re-verified, notably:
- workflow-executor: AI types come from @forestadmin/ai-proxy (not @langchain/core,
  which isn't a dependency); corrected the full Trigger Action AI-fill flow.
- agent-client: CollectionChart does not extend Chart (distinct chart endpoints).
- forestadmin-client: permissions match raw action ids; only charts are hashed.
- mcp-server / forest-cloud / datasource-mongo / datasource-sql: wrong single-test
  paths (tests live under test/, not src/).
- ai-proxy: added the AiClient surface (used by workflow-executor); error-import package.
- agent / agent-testing / datasource-* : assorted flow/handle/fixture corrections.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Flattening and write handlers are mutually exclusive: WriteDataSourceDecorator
throws at construction if any flattenOptions coexist with a write handler — not
"writes work on root collections, disabled on sub-models". Fixes the macroscope
review finding.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant