specs_nudge

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: 15 Imported by: 0

Documentation

Overview

Package specs_nudge implements the ctx system specs-nudge subcommand.

It reminds the agent to save plans to the specs/ directory for release tracking when entering plan mode.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd() *cobra.Command

Cmd returns the "ctx system specs-nudge" subcommand.

Returns:

  • *cobra.Command: Configured specs-nudge subcommand

func Run

func Run(cmd *cobra.Command, stdin *os.File) error

Run executes the specs-nudge hook logic.

Emits a PreToolUse nudge reminding the agent to save plans to specs/ when a new implementation is detected. Appends a context directory footer if available.

Parameters:

  • cmd: Cobra command for output
  • stdin: standard input for hook JSON

Returns:

  • error: Always nil (hook errors are non-fatal)

Types

This section is empty.

Jump to

Keyboard shortcuts

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