Markdown Converter
Agent skill for markdown-converter
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Sign in to like and favorite skills
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Claude Code RiskExec is a Node.js CLI tool for setting up Claude Code configurations and providing real-time analytics. The project uses modern JavaScript/Node.js development practices and includes a comprehensive analytics dashboard with modular architecture.
npm install - Install all dependenciesnpm install --save <package> - Install a production dependencynpm install --save-dev <package> - Install a development dependencynpm update - Update all dependenciesnpm audit - Check for security vulnerabilitiesnpm audit fix - Fix security vulnerabilitiesnpm start - Run the CLI toolnpm run analytics:start - Start the analytics dashboard servernpm run analytics:test - Run analytics-specific testsnode src/analytics.js - Direct analytics server startupnpm test - Run all tests with Jestnpm run test:watch - Run tests in watch modenpm run test:coverage - Run tests with coverage reportnpm run test:unit - Run unit tests onlynpm run test:integration - Run integration tests onlynpm run test:e2e - Run end-to-end testsnpm run test:analytics - Run analytics module testsnpm run test:all - Run comprehensive test suitenpm run lint - Run ESLint (if configured)npm run format - Format code (if configured)node --check src/analytics.js - Check syntaxnpm run dev:link - Link package for local developmentnpm run dev:unlink - Unlink packagenpm version patch|minor|major - Bump versionnpm publish - Publish to npm registry# Start the analytics dashboard npm run analytics:start # Open browser to http://localhost:3333 # The dashboard provides real-time monitoring of Claude Code sessions
The analytics dashboard follows a modular architecture with:
node --checksrc/ ├── index.js # CLI entry point ├── analytics.js # Analytics dashboard server ├── analytics/ # Analytics modules │ ├── core/ # Core business logic │ │ ├── StateCalculator.js │ │ ├── ProcessDetector.js │ │ ├── ConversationAnalyzer.js │ │ └── FileWatcher.js │ ├── data/ # Data management │ │ └── DataCache.js │ ├── notifications/ # Real-time communication │ │ ├── WebSocketServer.js │ │ └── NotificationManager.js │ └── utils/ # Utilities │ └── PerformanceMonitor.js ├── analytics-web/ # Frontend components │ ├── index.html # Main dashboard page │ ├── components/ # UI components │ ├── services/ # Frontend services │ └── assets/ # Static assets ├── templates/ # Configuration templates └── utils/ # CLI utilities tests/ ├── unit/ # Unit tests ├── integration/ # Integration tests ├── e2e/ # End-to-end tests └── fixtures/ # Test data
StateCalculator.js), camelCase for utilitiesStateCalculator)getUserData)API_BASE_URL)_privateMethod)module.exports, require())fs-extra for enhanced file operationspath.join() for cross-platform path handlingdescribe blocks// jest.config.js module.exports = { testEnvironment: 'node', collectCoverageFrom: [ 'src/**/*.js', '!src/**/*.test.js' ], coverageThreshold: { global: { branches: 70, functions: 70, lines: 70, statements: 70 } } };
// Unit test example describe('StateCalculator', () => { let stateCalculator; beforeEach(() => { stateCalculator = new StateCalculator(); }); it('should detect active state for recent messages', () => { const messages = [/* test data */]; const lastModified = new Date(); const state = stateCalculator.determineConversationState(messages, lastModified); expect(state).toBe('active'); }); });
# Ensure Node.js 14+ is installed node --version # Install dependencies npm install # Install development dependencies npm install --save-dev jest # Link for local development npm link
package.json for dependency managementnpm audit to check for security vulnerabilitiesnpm updateThe analytics dashboard has been refactored into a modular architecture in 4 phases:
npm audit and npm updatenpm audit to check for known vulnerabilitiesnpm install to install dependenciesnode --check src/analytics.jsnpm testnpm run test:watchnpm run analytics:start automaticallynpm testnode --check src/analytics.jsnpm run analytics:testThis CLI tool manages a comprehensive component system for Claude Code configurations:
AI specialists organized by domain expertise:
frontend-developer, fullstack-developer, devops-engineersecurity-auditor, penetration-tester, compliance-specialistdata-scientist, ml-engineer, nlp-engineerproduct-strategist, business-analyst, legal-advisorCustom slash commands for development workflows:
/setup-ci-cd-pipeline, /setup-testing, /migrate-to-typescript/optimize-bundle, /performance-audit, /add-caching/generate-tests, /setup-e2e, /test-coverage/update-docs, /generate-api-docs, /create-guideExternal service connections:
postgresql-integration, supabase, mysql-integrationgithub-integration, context7, filesystem-accessplaywright-mcp, browsermcp, browser-use-mcp-serverClaude Code configuration files:
performance-optimization, bash-timeouts, mcp-timeoutsread-only-mode, deny-sensitive-files, allow-git-operationscontext-monitor, git-branch-statusline, time-statuslineAutomation triggers for development workflows:
auto-git-add, smart-commit, pre-commit-validationdiscord-notifications, slack-notifications, telegram-notificationsperformance-monitor, lint-on-save, test-runnerThe repository ships with a lightweight Spec Kit setup that pairs with BMAD role agents to run gated feature development inside Claude Code.
specs/constitution.md — Phase 1 quality rules and review checklist.specs/<feature>/spec.md — Functional specification authored during /specify.specs/<feature>/plan.md — Technical plan from /plan.specs/<feature>/tasks.md — Task breakdown from /tasks./specify — Invokes bmad-analyst (with PM support) to create or revise the specification./plan — Invokes bmad-architect to translate the spec into a technical blueprint./tasks — Invokes bmad-pm (with QA partnership) to build the actionable task list./implement — Invokes bmad-developer (with QA validation) to execute approved tasks.Each command accepts an optional
<feature-name> argument (default Feature-A) and reads/writes the corresponding files under specs/ while enforcing constitution rules.
Refer to
.claude/agents/bmad-team/ for full agent prompts and to .claude/commands/ for command details. Follow the gated order (Specify → Plan → Tasks → Implement) and obtain approvals at each stage before progressing.
# Install specific components npx claude-code-riskexec@latest --agent <name> npx claude-code-riskexec@latest --command <name> npx claude-code-riskexec@latest --mcp <name> npx claude-code-riskexec@latest --setting <name> npx claude-code-riskexec@latest --hook <name> # Batch installation npx claude-code-riskexec@latest --agent security-auditor --command security-audit --setting read-only-mode # Interactive mode npx claude-code-riskexec@latest
Statusline System with Python Scripts
.claude/scripts/ relative to projectstatusline/context-monitor installs both JSON config and Python scriptsrc/index.js:installIndividualSetting():if (settingName.includes('statusline/')) { const pythonFileName = settingName.split('/')[1] + '.py'; const pythonUrl = githubUrl.replace('.json', '.py'); additionalFiles['.claude/scripts/' + pythonFileName] = { content: pythonContent, executable: true }; }
The
generate_components_json.py script creates the component catalog:
.py files from public listings (they remain as background dependencies)docs/components.json for the web interface at riskexec.com.claude/scripts/ for project-local filespath.join() for cross-platform compatibilityThe statusline context monitor system demonstrates key architectural patterns:
cli-tool/components/security-auditor.md)python generate_components_json.py to update catalog--setting, --agent, etc.# Bump version (automatically updates package.json) npm version patch # 1.20.2 -> 1.20.3 npm version minor # 1.20.3 -> 1.21.0 npm version major # 1.21.0 -> 2.0.0 # Publish to npm npm publish
npm test)python generate_components_json.py).claude/scripts/) instead of absolute pathsThis codebase represents a comprehensive Claude Code component ecosystem with real-time analytics, modular architecture, and extensive automation capabilities. The system is designed for scalability, maintainability, and ease of use while providing powerful development workflow enhancements.