feat: improve fluency spiderweb for Claude-only users#672
Merged
Conversation
- workspaceHelpers: fix isMcpTool() to detect mcp__ (Claude Code) prefix - workspaceHelpers: fix extractMcpServerName() to parse mcp__server__tool format - claudeCodeAdapter: add extractClaudeSlashCommand() + CLAUDE_SLASH_ALLOWLIST Slash commands (/review, /bug, /think, /compact, /pr_comments) are stored as __slash__<cmd> in toolCalls.byTool without incrementing toolCalls.total - claudeCodeAdapter: route mcp__ tools to mcpTools instead of toolCalls - claudeDesktopAdapter: detect slash commands using shared extractClaudeSlashCommand - maturityScoring: recognize __slash__* entries as Prompt Engineering evidence (combined with VS Code slash commands in both personal + team scorers) - maturityScoring: exclude __slash__* from nonAutoToolCount to avoid inflating Tool Usage / Agentic scores for Claude users - maturityScoring: update customization Stage 1 tips + evidence to mention CLAUDE.md - cli/helpers: export buildCustomizationMatrix (extracted from fluency.ts + all.ts) - detects Claude Code workspaces via cwd field in JSONL events - checks for CLAUDE.md in addition to copilot-instructions.md and agents.md - cli/helpers: fix ClaudeDesktopAdapter constructor (was missing 3 required args) - cli/commands/fluency.ts + all.ts: use shared buildCustomizationMatrix from helpers - tests: add mcp__ prefix tests in workspaceHelpers.test.ts - tests: add extractClaudeSlashCommand tests in ecosystemAdapters.test.ts Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR improves the fluency spiderweb scoring for users who only use Claude Code or Claude Desktop Cowork, by surfacing prompt engineering signals and customization data that were previously invisible to the scorer.
Changes
Bug Fixes
Claude Slash Command Tracking (Prompt Engineering axis)
onAutoToolCount.
CLAUDE.md Customization Support
Tests