feat: track built-in command usage - #303
Conversation
📝 WalkthroughWalkthroughThe dashboard now extracts manual slash-command names from root transcripts, classifies them with a packaged catalog, aggregates counts by time window, exposes the data in JSON, and displays a Built-in Commands report in the Skills view. Command arguments and surrounding prompt text are excluded. ChangesManual command extraction
Command classification
Aggregation and dashboard data
Skills view report
Sequence Diagram(s)sequenceDiagram
participant TranscriptParser
participant Aggregator
participant DashboardJSON
participant SkillsView
TranscriptParser->>Aggregator: provide manual command records
Aggregator->>Aggregator: classify and count records
Aggregator->>DashboardJSON: add by_command_usage
DashboardJSON->>SkillsView: provide command usage data
Merge Risk: 🟡 Moderate · up to Command-usage reports can misclassify valid built-in aliases and count non-invocations, while the privacy documentation incorrectly states that surrounding transcript text is never collected. Correct these before relying on the new reporting and privacy guarantees. 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
✨ Simplify code
Comment |
|
@coderabbitai Review |
✅ Action performedReview finished.
|
There was a problem hiding this comment.
Actionable comments posted: 3
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Team
Run ID: f39fdfe1-8b8d-42e9-a65b-beba975044fe
📒 Files selected for processing (18)
README.mdpyproject.tomlsrc/claude_prospector/aggregator.pysrc/claude_prospector/builtin_commands.pysrc/claude_prospector/cli/dashboard.pysrc/claude_prospector/data/claude-code-commands.jsonsrc/claude_prospector/models.pysrc/claude_prospector/parser.pysrc/claude_prospector/renderer.pysrc/claude_prospector/static/views/skills.jstests/fixtures/dashboard_snapshot_pre_refactor.jsontests/test_aggregator.pytests/test_builtin_commands.pytests/test_cli.pytests/test_parser.pytests/test_phase2_shell.pytests/test_renderer.pytests/test_skills_view.py
Included review availability: 9 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 10 reviews per hour.
- anchor manual command extraction to canonical envelopes - classify documented built-in aliases - clarify transient transcript parsing in privacy docs
Summary
<command-name>entries while retaining only command names and timestamps/doctorVerification
python -m pytest -q— 1011 passed, 2 skippedpython -m ruff check .python -m ruff format --check .Closes #298
Summary by CodeRabbit
New Features
Documentation