Skip to content

fix: correct structure analysis documentation#1333

Closed
reazul7 wants to merge 1 commit intoaffaan-m:mainfrom
reazul7:fix/structure-analysis-issues
Closed

fix: correct structure analysis documentation#1333
reazul7 wants to merge 1 commit intoaffaan-m:mainfrom
reazul7:fix/structure-analysis-issues

Conversation

@reazul7
Copy link
Copy Markdown

@reazul7 reazul7 commented Apr 9, 2026

What Changed

Why This Change

Testing Done

  • Manual testing completed
  • Automated tests pass locally (node tests/run-all.js)
  • Edge cases considered and tested

Type of Change

  • fix: Bug fix
  • feat: New feature
  • refactor: Code refactoring
  • docs: Documentation
  • test: Tests
  • chore: Maintenance/tooling
  • ci: CI/CD changes

Security & Quality Checklist

  • No secrets or API keys committed (ghp_, sk-, AKIA, xoxb, xoxp patterns checked)
  • JSON files validate cleanly
  • Shell scripts pass shellcheck (if applicable)
  • Pre-commit hooks pass locally (if configured)
  • No sensitive data exposed in logs or output
  • Follows conventional commits format

Documentation

  • Updated relevant documentation
  • Added comments for complex logic
  • README updated (if needed)

Summary by cubic

Updates and corrects the Structure Analysis docs by adding docs/structure-analysis.md with an accurate overview of the repo layout and components. Clarifies counts, categories, and file roles so contributors can quickly find agents, skills, commands, schemas, scripts, and docs.

  • Bug Fixes
    • Corrected component counts and groupings (25 agents, 108 skills, 57 commands; 9 language rule sets).
    • Documented schemas, scripts, and configuration files with concise purposes, plus i18n coverage.
    • Standardized formatting (directory tree, small tables, short lists) for quick scanning.

Written for commit 4ba651f. Summary will update on new commits.

Summary by CodeRabbit

  • Documentation
    • Added comprehensive structural overview documentation detailing the plugin's organization, core components (agents, skills, commands), directory layout, and configuration structure to help users understand the system architecture.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 9, 2026

📝 Walkthrough

Walkthrough

A new documentation file is added that provides a comprehensive structural overview of the everything-claude-code Claude Code plugin, detailing repository directory layout, 25 agent roles, 108 skills grouped by domain, 57 slash commands, rule categories, JSON schemas, scripts, and key configuration files.

Changes

Cohort / File(s) Summary
Documentation
docs/structure-analysis.md
New structural overview documenting the plugin's directory layout, 25 agent roles, 108 skills, 57 slash commands, rule categories, JSON schemas, scripts, and configuration files.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Possibly related PRs

Suggested reviewers

  • affaan-m

Poem

🐰 A map through the warren of code now appears,
With agents and skills laid out crystal clear,
Structure and schemas, all documented with care,
A rabbit hops gently through layers and layers! 📚✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Title check ⚠️ Warning The PR title 'fix: correct structure analysis documentation' does not match the actual change, which is adding new documentation, not fixing existing documentation. Use a more accurate title like 'docs: add structure analysis documentation' to reflect that this is new documentation being added, not a fix to existing content.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ 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 and usage tips.

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps bot commented Apr 9, 2026

Greptile Summary

This PR adds a new docs/structure-analysis.md file intended to document the repo's directory structure and component inventory. However, the counts and listings are significantly out of date — the actual repository is considerably larger than what's described.

  • Wrong directory counts: agents/ has 47 files (not 25), commands/ has 79 (not 57), skills/ has 181 entries (not 108), rules/ has 15 subdirs (not 9), and schemas/ has 10 files (not 9).
  • Agents table incomplete: 22 agents are unlisted, including typescript-reviewer, java-reviewer, flutter-reviewer, csharp-reviewer, performance-optimizer, silent-failure-hunter, and others.
  • Rules section incomplete: csharp, dart, java, rust, web, and zh language categories are missing from the tree.

Confidence Score: 4/5

Safe to merge only after the factual counts and missing entries are corrected — no runtime risk, but the document is inaccurate in its current form.

Three P1 findings (wrong counts throughout, incomplete agents table, missing rules categories) mean the document does not achieve its stated goal of accurately describing the repo structure. These need to be addressed before the analysis is useful as a reference.

docs/structure-analysis.md — all numeric counts and enumerated lists need to be regenerated from the actual directory contents.

Vulnerabilities

No security concerns identified.

Important Files Changed

Filename Overview
docs/structure-analysis.md New documentation file describing the repo structure, but contains multiple factual inaccuracies: wrong file counts for agents (25 vs 47), commands (57 vs 79), skills (108 vs 181), rules (9 vs 15 dirs), schemas (9 vs 10); agents table is missing 22 agents; rules section omits 6 language categories.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[docs/structure-analysis.md] --> B[Directory Tree\ncounts claimed]
    A --> C[Agents Table\n25 listed]
    A --> D[Rules Tree\n9 dirs listed]
    A --> E[Schemas List\n9 listed]

    B -->|agents: 25| F["❌ Actual: 47"]
    B -->|commands: 57| G["❌ Actual: 79"]
    B -->|skills: 108| H["❌ Actual: 181"]
    B -->|rules: 9 dirs| I["❌ Actual: 15"]
    B -->|schemas: 9| J["❌ Actual: 10"]

    C -->|missing 22 agents| K["csharp-reviewer, flutter-reviewer,\njava-reviewer, typescript-reviewer,\nperformance-optimizer, + 17 more"]
    D -->|missing 6 dirs| L["csharp, dart, java, rust, web, zh"]
    E -->|missing 1 schema| M["provenance.schema.json"]
Loading

Reviews (1): Last reviewed commit: "fix: correct structure analysis document..." | Re-trigger Greptile

Comment on lines +11 to +17
├── agents/ (25 files) Specialized subagents for delegation
├── skills/ (108 dirs) Workflow definitions & domain knowledge
├── commands/ (57 files) Slash commands invoked by users
├── hooks/ (2 files) Trigger-based automations
├── rules/ (9 dirs) Always-follow guidelines by language
├── scripts/ (20+ files) Cross-platform Node.js utilities
├── tests/ (5 dirs) Test suite (ci, hooks, integration, lib, scripts)
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.

P1 Inaccurate file counts throughout the directory tree

The counts shown in the directory tree do not match the actual repository state. Actual counts are:

  • agents/: 47 files (not 25)
  • commands/: 79 files (not 57)
  • skills/: 181 entries (not 108)
  • rules/: 15 subdirectories (not 9)
  • schemas/: 10 files (not 9)

The "Key Observations" section (line 142) also repeats these wrong numbers: 108 skills + 25 agents + 57 commands. Since the PR title is "fix: correct structure analysis documentation", these inaccuracies defeat the stated purpose of the change.

Comment on lines +80 to +91
```
rules/
├── common/ Cross-language guidelines
├── typescript/ TypeScript-specific rules
├── python/ Python-specific rules
├── golang/ Go-specific rules
├── kotlin/ Kotlin-specific rules
├── cpp/ C++-specific rules
├── perl/ Perl-specific rules
├── php/ PHP-specific rules
└── swift/ Swift-specific rules
```
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.

P1 Rules section missing 6 language categories

The rules tree lists 9 subdirectories, but the actual rules/ directory contains 15: common, cpp, csharp, dart, golang, java, kotlin, perl, php, python, rust, swift, typescript, web, zh. The following are omitted: csharp, dart, java, rust, web, zh.

Comment on lines +34 to +39
| Category | Agents |
| --------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| **Code Review** | code-reviewer, cpp-reviewer, go-reviewer, java-reviewer, kotlin-reviewer, python-reviewer, rust-reviewer, database-reviewer, security-reviewer |
| **Build Resolution** | build-error-resolver, cpp-build-resolver, go-build-resolver, java-build-resolver, kotlin-build-resolver, rust-build-resolver |
| **Planning & Architecture** | architect, planner, chief-of-staff |
| **Workflow & Ops** | tdd-guide, e2e-runner, loop-operator, refactor-cleaner, doc-updater, docs-lookup, harness-optimizer |
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.

P1 Agents table covers only ~half of the actual agents

The table accounts for 25 agents but agents/ contains 47 .md files. Notable omissions include: code-architect, code-explorer, code-simplifier, csharp-reviewer, dart-build-resolver, flutter-reviewer, java-reviewer, typescript-reviewer, performance-optimizer, silent-failure-hunter, pr-test-analyzer, pytorch-build-resolver, opensource-forker/packager/sanitizer, seo-specialist, healthcare-reviewer, type-design-analyzer, and three GAN agents (gan-evaluator, gan-generator, gan-planner).

Comment on lines +95 to +104
JSON Schema definitions for validation:
- `hooks.schema.json` - Hook configuration format
- `plugin.schema.json` - Plugin manifest format
- `package-manager.schema.json` - Package manager detection
- `ecc-install-config.schema.json` - ECC install config
- `install-components.schema.json` - Component definitions
- `install-modules.schema.json` - Module definitions
- `install-profiles.schema.json` - Installation profiles
- `install-state.schema.json` - Install state tracking
- `state-store.schema.json` - State storage format
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.

P2 Missing schema: provenance.schema.json

The schemas list has 9 entries but schemas/ contains 10 files. provenance.schema.json is present in the directory but not documented here.

5. **Multi-agent orchestration**: Commands like /multi-plan, /orchestrate, worktree-based parallel execution
6. **I18n**: Documentation in English, Chinese (simplified + traditional), Japanese, Korean
7. **Cross-platform**: Node.js scripts for Windows, macOS, Linux compatibility
8. **Business domains**: Extends beyond pure development into logistics, finance, compliance, content No newline at end of file
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.

P2 Missing newline at end of file

The file is missing a trailing newline, which causes markdownlint to flag it and is inconsistent with other .md files in the repo.

Suggested change
8. **Business domains**: Extends beyond pure development into logistics, finance, compliance, content
8. **Business domains**: Extends beyond pure development into logistics, finance, compliance, content

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (3)
docs/structure-analysis.md (3)

69-69: Fix escaped wildcard notation in commands table.

The entries /rust-\* (line 69) and /instinct-\* (line 72) use backslash-escaped asterisks that render awkwardly. The backslash escape is unnecessary in markdown table cells and creates visual inconsistency with other entries.

🔧 Proposed fix
-| **Language-specific**  | /cpp-build, /cpp-review, /cpp-test, /gradle-build, /go-_, /kotlin-_, /rust-\*, /python-review                                                                                  |
+| **Language-specific**  | /cpp-build, /cpp-review, /cpp-test, /gradle-build, /go-*, /kotlin-*, /rust-*, /python-review                                                                                  |
-| **Learning**           | /learn, /learn-eval, /evolve, /instinct-\*                                                                                                                                      |
+| **Learning**           | /learn, /learn-eval, /evolve, /instinct-*                                                                                                                                      |

Additionally, line 69 contains /go-_ and /kotlin-_ with underscores that should likely be asterisks for consistency:

-| **Language-specific**  | /cpp-build, /cpp-review, /cpp-test, /gradle-build, /go-_, /kotlin-_, /rust-*, /python-review                                                                                  |
+| **Language-specific**  | /cpp-build, /cpp-review, /cpp-test, /gradle-build, /go-*, /kotlin-*, /rust-*, /python-review                                                                                  |

Also applies to: 72-72

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/structure-analysis.md` at line 69, Update the commands table entries to
remove unnecessary backslash escapes and fix likely typos: replace the escaped
entries "/rust-\*" and "/instinct-\*" with "/rust-*" and "/instinct-*" (remove
the backslashes) and change the inconsistent "/go-_" and "/kotlin-_" to "/go-*"
and "/kotlin-*" so all wildcard notations match the other language-specific
entries in the table.

49-49: Clarify placeholder notation for skill names.

The entries swift-_, cpp-_, and perl-_ use underscore placeholders that are inconsistent with other skill names in the table. This notation may confuse readers about the actual skill names available.

Consider either:

  • Listing the actual skill names (e.g., swift-patterns, cpp-patterns, perl-patterns)
  • Using a clearer wildcard notation (e.g., swift-*, cpp-*, perl-*)
  • Omitting the underscore suffix if these represent categories rather than specific skills
📝 Proposed clarification
-| **Languages/Frameworks** | python-patterns, rust-patterns, kotlin-patterns, golang-patterns, swift-_, cpp-_, perl-_, django-_, laravel-_, springboot-_, compose-multiplatform-patterns                                                                                             |
+| **Languages/Frameworks** | python-patterns, rust-patterns, kotlin-patterns, golang-patterns, swift-patterns, cpp-patterns, perl-patterns, django-patterns, laravel-patterns, springboot-patterns, compose-multiplatform-patterns                                                                                             |
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/structure-analysis.md` at line 49, The table uses ambiguous placeholders
`swift-_`, `cpp-_`, and `perl-_`; update these entries in the
Languages/Frameworks row to a clear form (e.g., replace with `swift-patterns`,
`cpp-patterns`, `perl-patterns` or use a wildcard like `swift-*`, `cpp-*`,
`perl-*`, or remove the suffix if they are categories) so the notation matches
other skills such as `python-patterns` and `rust-patterns` and avoids reader
confusion.

10-26: Consider adding a maintenance note for this documentation.

This documentation contains specific counts (25 agents, 108 skills, 57 commands) and detailed component listings that will require updates as the repository evolves. Without a maintenance strategy, this documentation could quickly become outdated and misleading.

Consider adding a note at the top or bottom indicating:

  • When this analysis was last updated
  • How to verify/update the counts (e.g., reference to scripts or commands)
  • Who is responsible for maintaining this documentation
📋 Example maintenance note

Add near the top after line 5:

> **Last Updated:** April 2026  
> **Maintenance:** Run `npm run analyze-structure` to regenerate counts and verify accuracy.

Or reference the doc-updater agent per the retrieved learnings:

> **Maintenance:** Use the `doc-updater` agent to keep this documentation current with repository changes.

Based on learnings: Use the doc-updater agent (located in ~/.claude/agents/) for updating documentation.

Also applies to: 28-149

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/structure-analysis.md` around lines 10 - 26, The document contains
hard-coded component counts that will go stale; update structure-analysis.md by
inserting a short maintenance note near the top that records Last Updated
(date), Maintenance instructions (e.g., run `npm run analyze-structure` to
regenerate counts or use the doc-updater agent located in ~/.claude/agents/),
and an owner/responsible person or team; ensure the note clearly instructs how
to verify/update counts and mention the `doc-updater` agent as an automated
option so future PRs can refresh the tree counts.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/structure-analysis.md`:
- Line 1: The PR title/commit type and the new file header "Structure Analysis -
everything-claude-code" are inconsistent: decide whether this is a new doc or a
correction and update the PR accordingly; if it's a new file, change the
commit/PR title to "docs: add structure analysis documentation" and update the
PR description to summarize what the document contains and why it was added, or
if it's a correction, change the title to "fix: correct structure analysis
documentation", update the PR description to list what was corrected (specific
sections/phrasing) and adjust the file diff to reflect an edit rather than a new
file; ensure the PR description clearly states the intent and the summary of
changes so reviewers can verify.

---

Nitpick comments:
In `@docs/structure-analysis.md`:
- Line 69: Update the commands table entries to remove unnecessary backslash
escapes and fix likely typos: replace the escaped entries "/rust-\*" and
"/instinct-\*" with "/rust-*" and "/instinct-*" (remove the backslashes) and
change the inconsistent "/go-_" and "/kotlin-_" to "/go-*" and "/kotlin-*" so
all wildcard notations match the other language-specific entries in the table.
- Line 49: The table uses ambiguous placeholders `swift-_`, `cpp-_`, and
`perl-_`; update these entries in the Languages/Frameworks row to a clear form
(e.g., replace with `swift-patterns`, `cpp-patterns`, `perl-patterns` or use a
wildcard like `swift-*`, `cpp-*`, `perl-*`, or remove the suffix if they are
categories) so the notation matches other skills such as `python-patterns` and
`rust-patterns` and avoids reader confusion.
- Around line 10-26: The document contains hard-coded component counts that will
go stale; update structure-analysis.md by inserting a short maintenance note
near the top that records Last Updated (date), Maintenance instructions (e.g.,
run `npm run analyze-structure` to regenerate counts or use the doc-updater
agent located in ~/.claude/agents/), and an owner/responsible person or team;
ensure the note clearly instructs how to verify/update counts and mention the
`doc-updater` agent as an automated option so future PRs can refresh the tree
counts.
🪄 Autofix (Beta)

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

Run ID: 0d36d6f5-f19c-4fee-9542-4332bfcbc5fe

📥 Commits

Reviewing files that changed from the base of the PR and between dc36a63 and 4ba651f.

📒 Files selected for processing (1)
  • docs/structure-analysis.md

@@ -0,0 +1,149 @@
# Structure Analysis - everything-claude-code
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.

⚠️ Potential issue | 🟡 Minor

Inconsistency between PR title and file status.

The PR title indicates "fix: correct structure analysis documentation" suggesting a correction to existing documentation, but the AI summary and file markers indicate this is a completely new file being added. The PR description provides no details about what was corrected or why this change was made.

Consider either updating the PR description to clarify what issues this documentation addresses, or if this is indeed a new file, using a more appropriate conventional commit type like docs: add structure analysis documentation.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/structure-analysis.md` at line 1, The PR title/commit type and the new
file header "Structure Analysis - everything-claude-code" are inconsistent:
decide whether this is a new doc or a correction and update the PR accordingly;
if it's a new file, change the commit/PR title to "docs: add structure analysis
documentation" and update the PR description to summarize what the document
contains and why it was added, or if it's a correction, change the title to
"fix: correct structure analysis documentation", update the PR description to
list what was corrected (specific sections/phrasing) and adjust the file diff to
reflect an edit rather than a new file; ensure the PR description clearly states
the intent and the summary of changes so reviewers can verify.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

2 issues found across 1 file

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="docs/structure-analysis.md">

<violation number="1" location="docs/structure-analysis.md:11">
P2: Hard-coded inventory counts in the structure analysis are already inaccurate versus the repo contents, so the documentation will mislead readers and drift as files change.</violation>

<violation number="2" location="docs/structure-analysis.md:149">
P3: Missing trailing newline at end of file; many formatters/linters require an EOF newline and may fail CI.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review, or fix all with cubic.

@@ -0,0 +1,149 @@
# Structure Analysis - everything-claude-code
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot Apr 9, 2026

Choose a reason for hiding this comment

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

P2: Hard-coded inventory counts in the structure analysis are already inaccurate versus the repo contents, so the documentation will mislead readers and drift as files change.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At docs/structure-analysis.md, line 11:

<comment>Hard-coded inventory counts in the structure analysis are already inaccurate versus the repo contents, so the documentation will mislead readers and drift as files change.</comment>

<file context>
@@ -0,0 +1,149 @@
+
+```
+everything-claude-code/
+├── agents/          (25 files)   Specialized subagents for delegation
+├── skills/          (108 dirs)   Workflow definitions & domain knowledge
+├── commands/        (57 files)   Slash commands invoked by users
</file context>
Fix with Cubic

5. **Multi-agent orchestration**: Commands like /multi-plan, /orchestrate, worktree-based parallel execution
6. **I18n**: Documentation in English, Chinese (simplified + traditional), Japanese, Korean
7. **Cross-platform**: Node.js scripts for Windows, macOS, Linux compatibility
8. **Business domains**: Extends beyond pure development into logistics, finance, compliance, content No newline at end of file
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot Apr 9, 2026

Choose a reason for hiding this comment

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

P3: Missing trailing newline at end of file; many formatters/linters require an EOF newline and may fail CI.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At docs/structure-analysis.md, line 149:

<comment>Missing trailing newline at end of file; many formatters/linters require an EOF newline and may fail CI.</comment>

<file context>
@@ -0,0 +1,149 @@
+5. **Multi-agent orchestration**: Commands like /multi-plan, /orchestrate, worktree-based parallel execution
+6. **I18n**: Documentation in English, Chinese (simplified + traditional), Japanese, Korean
+7. **Cross-platform**: Node.js scripts for Windows, macOS, Linux compatibility
+8. **Business domains**: Extends beyond pure development into logistics, finance, compliance, content
\ No newline at end of file
</file context>
Fix with Cubic

@reazul7 reazul7 closed this Apr 9, 2026
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