Files
skillkit/packages/cli
Rohit Ghumare aafa086314 feat: add skillkit doctor command and enhance skillkit status (#64)
* feat: add `skillkit doctor` command and enhance `skillkit status`

- New `skillkit doctor` command with 10 health checks across 3 categories
  (environment, configuration, skills) with --json and --fix flags
- Enhanced `skillkit status` shows project overview dashboard when no
  active session exists instead of bare "No active session found" message
- Overview includes agent, config, version, skills count, recent history

* feat: add skill activity log, session snapshots, and session explain

Three new session intelligence features:

- Activity Log: tracks which skills were active per git commit
  (`skillkit activity` with --skill, --limit, --json flags)
- Session Snapshots: save/restore named snapshots of session state
  (`skillkit session snapshot save|restore|list|delete`)
- Session Explain: structured summary of current session
  (`skillkit session explain` with --json, --no-git flags)

Includes path traversal protection on snapshot names, YAML validation
on parsed activity data, and robust error handling on snapshot restore.

983 tests passing (942 core + 41 CLI including 14 E2E tests).

* feat: add issue planner - generate plans from GitHub Issues

New `skillkit issue plan` and `skillkit issue list` commands that
fetch GitHub Issues via `gh` CLI and generate StructuredPlans.
Parses checkboxes, file mentions, and labels from issue body.
29 new tests, all passing.

* fix: address CodeRabbit review suggestions for PR #64

- doctor.ts: use execFileSync, typed AgentType, remove as-any casts
- activity.ts: validate parseInt with radix and NaN guard
- issue.ts: wrap JSON.parse in try/catch for gh CLI output
- issue-planner.ts: guard JSON.parse, fix includeTests no-op ternary,
  remove duplicate IssuePlanMetadata (import from types.ts)
- status.ts: typed StatusOverview interface, remove as-any casts
- snapshot-manager.ts: align observations param with SessionSnapshot type
- session.ts: proper type mapping for observations (no double cast)
- activity-log.ts: min-length guard for SHA prefix match
- e2e tests: use top-level imports instead of inline require()
- commands.test.ts: add assertions for DoctorCommand, IssuePlanCommand,
  IssueListCommand

* fix: address review feedback from CodeRabbit and Devin

- Include test step in no-checklist fallback when includeTests is true
- Restore observations from snapshot in SessionSnapshotRestoreCommand

* fix: address remaining CodeRabbit and Devin review feedback

- doctor.ts: Use getAdapter() per AgentType instead of getAllAdapters()
  spread (which destroys prototype methods like isDetected)
- doctor.ts: Use getGlobalSkillsDir() from AGENT_CONFIG instead of
  hardcoded path formula
- session-explainer.ts: Defensively default state.history and
  state.decisions to empty arrays
- session-explainer.ts: Use loadConfig().agent with skillSource fallback
  instead of always using skillSource as agent name
- observation-store.ts: Add static readAll() that reads observations
  without sessionId mismatch clearing
- session.ts: Use ObservationStore.readAll() for snapshot save to avoid
  empty observations due to sessionId mismatch
2026-02-11 20:26:51 +00:00
..
2026-02-10 11:21:57 +00:00

@skillkit/cli

npm version License

Command-line interface for SkillKit - install, manage, translate, and sync skills across 32 AI coding agents.

Installation

npm install -g @skillkit/cli
# or
npm install -g skillkit  # includes CLI

Quick Start

# Get skill recommendations for your project
skillkit recommend

# Install skills from GitHub
skillkit install anthropics/skills

# Translate skills between agents
skillkit translate my-skill --to cursor

# Launch interactive TUI
skillkit ui

All Commands

Skill Management

skillkit install <source>     # Install from GitHub/GitLab/Bitbucket/local
skillkit remove <skills>      # Remove installed skills
skillkit update [skills]      # Update skills from source
skillkit list                 # List installed skills
skillkit enable <skills>      # Enable specific skills
skillkit disable <skills>     # Disable specific skills
skillkit sync                 # Sync to agent config
skillkit read <skills>        # Read skill content

Discovery & Recommendations

skillkit recommend                     # Project-based recommendations
skillkit recommend --search "auth"     # Task-based search
skillkit recommend --category security # Filter by category
skillkit recommend --min-score 80      # Quality threshold

skillkit marketplace                   # Browse skills
skillkit marketplace search "react"    # Search marketplace
skillkit marketplace --tags typescript # Filter by tags
skillkit marketplace refresh           # Refresh index

Translation

skillkit translate <skill> --to <agent>  # Translate single skill
skillkit translate --all --to cursor     # Translate all skills
skillkit translate skill --dry-run       # Preview without writing

Context Management

skillkit context init          # Analyze project, create context
skillkit context show          # Display current context
skillkit context sync --all    # Sync to all detected agents
skillkit context export        # Export context file

Session Memory

skillkit memory status         # View memory status
skillkit memory search "auth"  # Search learnings
skillkit memory list           # List all learnings
skillkit memory compress       # Compress observations
skillkit memory export <id>    # Export as skill
skillkit memory add            # Add manual learning
skillkit memory --global       # Use global scope

Testing & Workflows

skillkit test                  # Run all skill tests
skillkit test ./my-skill       # Test specific skill
skillkit test --tags unit      # Run tagged tests

skillkit workflow list         # List workflows
skillkit workflow run <name>   # Execute workflow
skillkit workflow create       # Create new workflow

skillkit cicd github-action    # Generate GitHub Actions
skillkit cicd gitlab-ci        # Generate GitLab CI
skillkit cicd pre-commit       # Generate pre-commit hook
skillkit cicd init             # Initialize CI/CD templates

Team Collaboration

skillkit team init --name "Team"     # Initialize team
skillkit team share <bundle>         # Share skill bundle
skillkit team import <path>          # Import bundle
skillkit team list                   # List team bundles
skillkit team sync                   # Sync with remote
skillkit team remove <bundle>        # Remove bundle
skillkit team bundle-create          # Create new bundle
skillkit team bundle-export <id>     # Export bundle
skillkit team bundle-list            # List all bundles

Plugin System

skillkit plugin list                 # List installed plugins
skillkit plugin install <name>       # Install plugin
skillkit plugin uninstall <name>     # Uninstall plugin
skillkit plugin enable <name>        # Enable plugin
skillkit plugin disable <name>       # Disable plugin
skillkit plugin info <name>          # Plugin details

Methodologies & Plans

skillkit methodology list            # List methodologies
skillkit methodology load <name>     # Load methodology
skillkit methodology apply <name>    # Apply to project

skillkit plan parse <file>           # Parse plan file
skillkit plan validate <file>        # Validate plan
skillkit plan execute <file>         # Execute plan
skillkit plan status                 # Plan execution status

Hooks & Automation

skillkit hook list                   # List registered hooks
skillkit hook register <event>       # Register new hook
skillkit hook trigger <event>        # Trigger hook manually
skillkit hook enable <id>            # Enable hook
skillkit hook disable <id>           # Disable hook

Agent Commands

skillkit command generate <agent>    # Generate agent-native commands
skillkit command list <agent>        # List available commands

Security Scanning

skillkit scan <path>                  # Scan skill for vulnerabilities
skillkit scan <path> --format json    # Output as JSON
skillkit scan <path> --format sarif   # SARIF for GitHub Code Scanning
skillkit scan <path> --fail-on high   # Exit code 1 if HIGH+ findings
skillkit scan <path> --skip-rules UC001,UC002  # Skip specific rules

Detects: prompt injection, command injection, data exfiltration, tool abuse, hardcoded secrets, unicode steganography.

Skills are automatically scanned during install (use --no-scan to skip) and publish.

Utilities

skillkit init                  # Initialize in project
skillkit init --agent cursor   # Initialize for specific agent
skillkit validate ./skill      # Validate skill format
skillkit create my-skill       # Create new skill
skillkit settings              # View all settings
skillkit settings --set key=value  # Update setting

Install Options

skillkit install owner/repo              # GitHub repository
skillkit install gitlab:owner/repo       # GitLab repository
skillkit install ./local/path            # Local directory

# Options
--list                    # List available skills without installing
--skills=pdf,xlsx         # Install specific skills
--all                     # Install all discovered skills
--yes                     # Skip confirmation prompts
--global                  # Install globally
--force                   # Overwrite existing
--no-scan                 # Skip security scan
--agent=cursor,windsurf   # Install to specific agents

Programmatic Usage

import {
  installCommand,
  listCommand,
  syncCommand,
  translateCommand,
  recommendCommand,
} from '@skillkit/cli';

// Install skills programmatically
await installCommand('anthropics/skills', {
  agent: ['claude-code', 'cursor'],
  yes: true,
});

// List installed skills
const skills = await listCommand({ json: true });

// Security scan
import { SkillScanner, formatResult } from '@skillkit/core';
const scanner = new SkillScanner({ failOnSeverity: 'high' });
const result = await scanner.scan('./my-skill');
console.log(formatResult(result, 'summary'));

// Sync to agent
await syncCommand({ all: true });

// Translate skill
await translateCommand('my-skill', {
  to: 'cursor',
  dryRun: false,
});

// Get recommendations
const recs = await recommendCommand({
  path: './my-project',
  minScore: 70,
});

CI/CD Usage

# GitHub Actions example
- name: Setup skills
  run: |
    npx skillkit install owner/skills --skills=lint,test --yes
    npx skillkit sync --yes

Supported Agents

Agent Format
Claude Code SKILL.md
Cursor MDC (.mdc)
Codex SKILL.md
Gemini CLI SKILL.md
Windsurf Markdown
GitHub Copilot Markdown
+ 26 more SKILL.md

Documentation

Full documentation: https://github.com/rohitg00/skillkit

License

Apache-2.0