Files
Claude-Code-Workflow/ccw/src/tools
catlog22 7a40f16235 feat(skills): implement enable/disable functionality for skills
- Added new API endpoints to enable and disable skills.
- Introduced logic to manage disabled skills, including loading and saving configurations.
- Enhanced skills routes to return lists of disabled skills.
- Updated frontend to display disabled skills and allow toggling their status.
- Added internationalization support for new skill status messages.
- Created JSON schemas for plan verification agent and findings.
- Defined new types for skill management in TypeScript.
2026-01-28 00:49:39 +08:00
..

Tools

This directory contains CCW “tools”: self-contained modules that implement concrete functionality (executors, integrations, etc.) that higher-level CLI and route layers call into.

CLI Executor

The CLI executor is split into focused modules to keep responsibilities clear and keep the public API stable via re-exports.

Entry point

  • ccw/src/tools/cli-executor.ts thin facade that re-exports from cli-executor-core.ts (stable import path for callers).

Modules

  • ccw/src/tools/cli-executor-core.ts orchestrates tool execution, resume/merge logic, and conversation persistence wiring.
  • ccw/src/tools/cli-executor-utils.ts debug logging, tool availability checks (with cache), command building.
  • ccw/src/tools/cli-executor-state.ts conversation/history types + SQLite-backed storage helpers.
  • ccw/src/tools/cli-prompt-builder.ts prompt concatenation helpers (plain/YAML/JSON) and merged-conversation prompt formatting.

Dependency flow (high level)

cli-executor.ts
  -> cli-executor-core.ts
      -> cli-executor-utils.ts
      -> cli-executor-state.ts
      -> cli-prompt-builder.ts

Public API

  • Prefer importing from ccw/src/tools/cli-executor.ts.
  • cli-executor-core.ts re-exports prompt helpers/types from cli-prompt-builder.ts to preserve existing imports (PromptConcatenator, buildPrompt, PromptFormat, etc.).