cmd-clink

Document Clink's Windows cmd.exe integration, APIs, and Lua scripting.

1.4k|36|Updated Mar 17, 2020
One-click install
npx skills add https://github.com/carapace-sh/carapace --skill cmd-clink
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cmd-clink
Source: https://github.com/carapace-sh/carapace/tree/main/skills/cmd-clink
Command: npx skills add https://github.com/carapace-sh/carapace --skill cmd-clink

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides a comprehensive reference for Clink's Windows cmd.exe integration, clarifying how to extend and diagnose the Readline-powered shell enhancements, prompts, and scripting capabilities.

Core Features & Use Cases

  • Comprehensive API references for clink's cmd.exe integration, argmatcher, generators, and scripting
  • Guidance on injection, autorun, profile management, and prompt customization
  • Cross-project references for integration with carapace

Quick Start

Open this skill's references to learn how to implement and extend Clink in cmd.exe.

Frequently Asked Questions about cmd-clink

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

FAQPage Schema
How do I add custom argument completion to cmd.exe using Clink?

Clink provides an argmatcher API for cmd.exe that allows you to define custom argument completion. You can implement matchers using Lua scripting to generate dynamic completions for specific commands.

How does Clink integrate with the Windows cmd.exe shell?

Clink integrates with cmd.exe through an injection mechanism and autorun configuration. This allows it to intercept command input and provide Readline-powered line editing, history, and completion enhancements.

Can I customize the command prompt in cmd.exe with Clink?

Yes, Clink supports prompt customization within cmd.exe. You can modify the prompt appearance and behavior using Lua scripts and specific settings provided by the Clink API.

Does Clink work with carapace for shell completion?

Yes, Clink provides cross-project references for integration with carapace. This allows you to leverage carapace's completion capabilities alongside Clink's Lua scripting and argmatcher ecosystem in cmd.exe.

How do I manage Clink profiles and settings in Windows?

Clink offers profile management and settings configuration for your Windows cmd.exe environment. You can adjust line editing, coloring, and history behaviors by modifying these persistent settings files.

What is the best way to generate dynamic completions in Clink?

Clink uses generators within its Lua scripting ecosystem to create dynamic completions. These generators execute during line editing to produce real-time argument matches for your cmd.exe commands.