jcli-dev-guide

Map j-cli repository entry points, module responsibilities, and chat tool architecture.

6|2|Updated Feb 10, 2026
One-click install
npx skills add https://github.com/LingoJack/jcli --skill jcli-dev-guide
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: jcli-dev-guide
Source: https://github.com/LingoJack/jcli/tree/main/.jcli/skills/jcli-dev-guide
Command: npx skills add https://github.com/LingoJack/jcli --skill jcli-dev-guide

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

j-cli 开发者在不熟悉项目结构与开发流程时,容易找不到入口模块职责、难以按正确路径完成常见开发任务(如扩展命令、工具或 Chat/Hook/Permission 系统)。

Core Features & Use Cases

  • Project structure navigation:用模块速查表快速定位关键入口(CLI、命令分发、REPL/TUI、Chat 子系统)。
  • Chat subsystem blueprint:梳理 src/command/chat/ 的核心组成(Agent 循环、工具系统、权限、Hook、skill 加载与补全)。
  • Development checklists:提供“添加 CLI 子命令 / 添加 AI 工具 / 修改 Hook & Permission / 发布前检查”的工程化步骤,适合新成员或快速对齐任务要求。

Quick Start

Ask the assistant to summarize the recommended steps to add a new AI tool, including which files to edit under src/command/chat/tools/ and how the Tool trait should be implemented.

Frequently Asked Questions about jcli-dev-guide

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a new AI tool to the chat subsystem in a Rust CLI project?

To add a new AI tool, edit files under `src/command/chat/tools/` and implement the `Tool` trait. This integrates your tool into the Agent loop and makes it available to the chat subsystem.

How does the agent chat loop handle permissions and hooks?

The agent chat loop manages permissions and hooks through dedicated systems in `src/command/chat/`. The hook system intercepts chat events, while the permission system validates tool execution requests.

What is the best way to navigate a Rust CLI project structure to find command entry points?

Use a module lookup table to quickly locate key entry points like CLI dispatch, REPL/TUI, and chat subsystems. This maps module responsibilities to streamline your project structure navigation.

How do I add a CLI subcommand to an existing Rust CLI application?

Adding a CLI subcommand involves updating the command dispatch logic and following an engineering checklist for new subcommands. This ensures proper routing and integration with the existing CLI framework.

Do I need to understand skill loading and completion before modifying the chat tool architecture?

Yes, understanding skill loading and completion is necessary because they are core components of the chat subsystem blueprint. Modifying the architecture requires knowing how the Agent loop loads skills and generates completions.