prompt

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package prompt implements the "ctx prompt" command for managing reusable prompt templates.

Prompt templates are plain markdown files stored in .context/prompts/. They provide a lightweight alternative to full skills for reusable prompt patterns like code review checklists or refactoring guard rails.

Subcommands:

  • list: list available prompt templates (default)
  • show: print a prompt template to stdout
  • add: create a new prompt from embedded template or stdin
  • rm: remove a prompt template

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd() *cobra.Command

Cmd returns the prompt command with subcommands.

When invoked without a subcommand, it lists all prompt templates.

Returns:

  • *cobra.Command: Configured prompt command with subcommands

Types

This section is empty.

Directories

Path Synopsis
cmd
add
Package add implements the ctx prompt add subcommand.
Package add implements the ctx prompt add subcommand.
list
Package list implements the ctx prompt list subcommand.
Package list implements the ctx prompt list subcommand.
rm
Package rm implements the ctx prompt rm subcommand.
Package rm implements the ctx prompt rm subcommand.
show
Package show implements the ctx prompt show subcommand.
Package show implements the ctx prompt show subcommand.
Package core provides shared helpers used by all prompt subcommand packages.
Package core provides shared helpers used by all prompt subcommand packages.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL