Skip to content

fix(installer): separate skill and agent counts in summary#1932

Merged
alexeyv merged 1 commit intobmad-code-org:mainfrom
alexeyv:fix/skill-count-display
Mar 12, 2026
Merged

fix(installer): separate skill and agent counts in summary#1932
alexeyv merged 1 commit intobmad-code-org:mainfrom
alexeyv:fix/skill-count-display

Conversation

@alexeyv
Copy link
Copy Markdown
Collaborator

@alexeyv alexeyv commented Mar 12, 2026

Summary

  • Subtract agent count from total skill directories so the install summary shows non-agent skills and agents as distinct counts (e.g. 34 skills, 10 agents instead of 44 skills, 10 agents)
  • Fixes double-counting where agent skill directories were included in both the skill total and the agent count

Verification

  • node test/test-installation-components.js — all 223 tests pass
  • Manual install with --tools claude-code shows 34 skills, 10 agents
  • Manual install with --tools none shows No IDE selected

Subtract agents from total skill directories so the summary shows
non-agent skills and agents as distinct counts (e.g. 34 skills, 10
agents) instead of double-counting agents in the skill total.
@alexeyv alexeyv merged commit 7b4875b into bmad-code-org:main Mar 12, 2026
7 checks passed
@alexeyv alexeyv deleted the fix/skill-count-display branch March 12, 2026 15:13
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 12, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 3622d1f6-51c2-413b-af34-e184ad510fe8

📥 Commits

Reviewing files that changed from the base of the PR and between c575064 and 5782ab1.

📒 Files selected for processing (3)
  • test/test-installation-components.js
  • tools/cli/installers/lib/ide/_config-driven.js
  • tools/cli/installers/lib/ide/manager.js

📝 Walkthrough

Walkthrough

The changes refactor how installer summary skill counts are calculated. Instead of using a separate totalSkills value, the skill count is now derived by subtracting agents from the directory-based total (totalDirs). Tests are updated to reflect that skills are no longer reported in the detail summary alongside agent counts.

Changes

Cohort / File(s) Summary
Skill Count Calculation Refactor
tools/cli/installers/lib/ide/_config-driven.js, tools/cli/installers/lib/ide/manager.js
Changed skill count derivation from separate totalSkills to skillCount = totalDirs - agents, updating the summary computation logic in both files.
Test Assertion Update
test/test-installation-components.js
Updated installer detail assertion to expect "2 agents" only, removing the "2 skills" portion from the expected output string.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

  • bmad-code-org/BMAD-METHOD#1915: Modifies the same installer summary logic, replacing skill count calculation methods and updating test expectations for skills vs agents reporting.
  • bmad-code-org/BMAD-METHOD#1841: Alters skill count computation in the same installer files and updates matching test assertions for how skills and agents are counted/reported.
  • bmad-code-org/BMAD-METHOD#1868: Modifies skill counting logic in the installer configuration files with related changes to skill handling and calculation.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
📝 Coding Plan for PR comments
  • Generate coding plan

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.

@augmentcode
Copy link
Copy Markdown

augmentcode bot commented Mar 12, 2026

🤖 Augment PR Summary

Summary: Updates the installer summary/detail output to avoid double-counting agent skill directories in the overall “skills” total.
Changes: Computes non-agent skill count as (skill directories − agents) and updates the installation component test to match the new reporting.

🤖 Was this summary useful? React with 👍 or 👎

Copy link
Copy Markdown

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

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

Review completed. 1 suggestion posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

const totalSkills = r.skillDirectories || (r.workflows || 0) + (r.tasks || 0) + (r.tools || 0) + (r.skills || 0);
if (totalSkills > 0) parts.push(`${totalSkills} skills`);
const totalDirs = r.skillDirectories || (r.workflows || 0) + (r.tasks || 0) + (r.tools || 0) + (r.skills || 0);
const skillCount = totalDirs - (r.agents || 0);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

skillCount = totalDirs - (r.agents || 0) assumes agents maps 1:1 to directories included in skillDirectories; if agents is a write-count or if any names collide, this can undercount (or go negative and silently drop the skills portion). Consider guarding against that mismatch so the summary can’t drift from what was actually written.

Severity: low

Other Locations
  • tools/cli/installers/lib/ide/_config-driven.js:717

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

alexeyv added a commit to alexeyv/BMAD-METHOD that referenced this pull request Mar 13, 2026
…-org#1932)

Subtract agents from total skill directories so the summary shows
non-agent skills and agents as distinct counts (e.g. 34 skills, 10
agents) instead of double-counting agents in the skill total.
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