feat(plugin): add extract/write domain skills and refactor report template#181
Conversation
Extend stage-outputs schema with six new extract/write domain schemas (ai-collaboration, ai-control, burnout-risk, context-engineering, skill-resilience, tool-mastery). Consolidate stage name enum usage in save-stage-output MCP tool to use shared STAGE_NAMES as single source of truth. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add shared research-insights.md with cross-domain research findings used by extract and write skills for consistent analysis guidance. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add extraction skills for ai-collaboration, ai-control, burnout-risk, context-engineering, skill-resilience, and tool-mastery. These skills extract raw metrics and evidence from session data for downstream analysis and report generation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add write skills for ai-collaboration, ai-control, burnout-risk, context-engineering, skill-resilience, and tool-mastery. These skills transform extracted domain data into structured report sections with narrative insights and actionable recommendations. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Update five analyze-* skills and bp-analyze orchestrator to integrate with the new extract/write skill pipeline. Analysis skills now coordinate with extract skills for data gathering and write skills for report section generation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Extract generateBaseCss, renderNavDotsHtml, renderIdentitySection, renderMetricsBar, renderScrollSpyScript, and buildRadarScores into reusable functions. Eliminates duplication between generateReportHtml and generateCanonicalReportHtml, replacing the fragile regex-based CSS extraction pattern. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add scanner recognition for the new extract/write skill directories to ensure proper session scanning coverage. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Rebuild dist bundles reflecting updated MCP server, hooks, and report template changes. Old chunk-2RN5XMRL replaced by chunk-V7ACYTOR. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Expand README uninstall section with full cleanup checklist for plugin registry entries. Add 13 report screenshot assets showing hero, heatmap, personality radar, diagnosis, strengths, and mobile views. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Code ReviewFound 4 issues (scored ≥ 80/100): 1.
2. Script injection via
Fix: Use 3. XSS via unescaped In 4. The PR's commit message states the goal as "unify stage name enum as single source of truth" and achieves this for BetterPrompt/packages/plugin/lib/stage-db.ts Lines 15 to 34 in 357f2ab Generated with Claude Code If useful, react with a thumbs-up. Otherwise, thumbs-down. |
Add escHtml() helper to sanitize project names and session summaries before innerHTML injection. Escape angle brackets in JSON.stringify output embedded in <script> tags. Update stage-outputs module comment to reflect that dimension extractors now exist in the plugin. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Code Review UpdateIssues 1 and 4 are false positives — upon deeper investigation,
Both Issues 2 and 3 (XSS) are fixed in commit
Generated with Claude Code |
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add missing stage output fixtures for extractAiCollaboration, extractContextEngineering, extractToolMastery, extractBurnoutRisk, extractAiControl, extractSkillResilience, and content stage data to match the new domain skill pipeline from #181. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…#183) * test(plugin): add extract domain and content stage fixtures Add missing stage output fixtures for extractAiCollaboration, extractContextEngineering, extractToolMastery, extractBurnoutRisk, extractAiControl, extractSkillResilience, and content stage data to match the new domain skill pipeline from #181. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * test(plugin): update report gating assertions for new template sections Update HTML content assertions to match refactored report template: - Planning Analysis → Top Focus Areas - Critical Thinking → Personality Summary - Anti-Patterns → Weekly Insights Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
Changes
feat(plugin): add new stage output schemas and unify stage name enumfeat(plugin): add shared skill research insightsfeat(plugin): add six extract domain skillsfeat(plugin): add six write domain skillsrefactor(plugin): update analysis skills for extract/write pipelinerefactor(plugin): extract shared helpers from report templatefix(plugin): update scanner source for new skill pathschore(plugin): rebuild dist artifactsdocs: update README uninstall guide and add report screenshotsTest Plan
Generated with Claude Code using /ship-it