Skip to content

Add CLAUDE.md with repo architecture and dev guidance - #8

Open
jcbowman1017 wants to merge 1 commit into
WorldFlowAI:mainfrom
jcbowman1017:main
Open

Add CLAUDE.md with repo architecture and dev guidance#8
jcbowman1017 wants to merge 1 commit into
WorldFlowAI:mainfrom
jcbowman1017:main

Conversation

@jcbowman1017

@jcbowman1017 jcbowman1017 commented Aug 7, 2026

Copy link
Copy Markdown

Summary

  • Adds a root CLAUDE.md documenting this repo as a Claude Code plugin (not an app): directory layout, the hooks.json/scripts split, package-manager detection, and authoring conventions for agents/skills/commands/rules.

Test plan

  • node tests/run-all.js passes (62/62)

Summary by CodeRabbit

  • Documentation
    • Added contributor documentation covering repository structure, testing commands, configuration, implementation conventions, and package-manager workflows.
    • Clarified the distinct purposes of the project’s primary documentation files.

Documents the plugin/config structure, hook config-vs-implementation
split, package manager detection, and authoring conventions for
future Claude Code sessions working in this repo.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Added CLAUDE.md with repository architecture, test commands, hook and package-manager conventions, authoring guidance, and documentation boundaries.

Changes

Repository Guidance

Layer / File(s) Summary
Repository overview and architecture
CLAUDE.md
Documents Node-based test commands, the test model, absent build tooling, component directories, installation targets, and configuration structure.
Hook and package-manager conventions
CLAUDE.md
Documents declarative hook wiring, Node.js hook implementations, validation rules, cross-platform constraints, and package-manager detection.
Authoring and documentation conventions
CLAUDE.md
Defines conventions for repository components and distinguishes public README.md content from maintainer-specific WORLDFLOWAI.md content.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the addition of repository architecture and development guidance in CLAUDE.md.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@CLAUDE.md`:
- Line 28: Update the source-code guidance in CLAUDE.md to acknowledge the
substantial inline Node implementations in hooks/hooks.json, including the
PostToolUse PR parser, TypeScript check, and Stop Git scan. State that
scripts/hooks/ is the preferred location for new non-trivial hook logic, or
migrate those existing handlers there while preserving their behavior.
- Around line 47-49: Update the documentation near the statement about agents/,
commands/, rules/, and skills/ to acknowledge the existing cross-file contracts,
including skill, context, and /setup-pm script references. Replace the claim of
no cross-file coupling with guidance to search and update all references before
renaming or moving files, directories, or paths.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: e3eccf2e-ab7f-414e-9d95-01e90f88aa91

📥 Commits

Reviewing files that changed from the base of the PR and between 432485b and 5c55128.

📒 Files selected for processing (1)
  • CLAUDE.md

Comment thread CLAUDE.md
directly executable and prints pass/fail counts; `tests/run-all.js` just shells out to each one in turn and
aggregates results.

There is no lint/build/typecheck step — the only "source code" is the hook implementation under `scripts/`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Correct the documented source-code boundary.

CLAUDE.md says that the only source code is under scripts/ and that non-trivial hook logic uses scripts/hooks/. However, hooks/hooks.json contains substantial inline Node implementations, including the PostToolUse PR parser, the TypeScript check, and the Stop Git scan. Clarify that this is the preferred rule for new hooks, or move these existing handlers into scripts.

Also applies to: 53-65

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@CLAUDE.md` at line 28, Update the source-code guidance in CLAUDE.md to
acknowledge the substantial inline Node implementations in hooks/hooks.json,
including the PostToolUse PR parser, TypeScript check, and Stop Git scan. State
that scripts/hooks/ is the preferred location for new non-trivial hook logic, or
migrate those existing handlers there while preserving their behavior.

Comment thread CLAUDE.md
Comment on lines +47 to +49
Everything under `agents/`, `commands/`, `rules/`, `skills/` is a leaf config file (or small directory for
multi-file skills) — there's no cross-file coupling between them beyond naming conventions, so most changes
are additive and isolated to a single file.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Document the existing cross-file contracts.

The statement that these directories have no cross-file coupling is incorrect. Line 37 documents skill references from commands and agents. Line 43 documents context references from hooks and commands. Lines 78-79 document the /setup-pm reference to scripts/setup-package-manager.js. A rename or move can break these references. Replace this statement with guidance to check references before changing names or paths.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@CLAUDE.md` around lines 47 - 49, Update the documentation near the statement
about agents/, commands/, rules/, and skills/ to acknowledge the existing
cross-file contracts, including skill, context, and /setup-pm script references.
Replace the claim of no cross-file coupling with guidance to search and update
all references before renaming or moving files, directories, or paths.

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