initialize

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

Documentation

Overview

Package initialize implements the "ctx init" command for initializing a .context/ directory with template files.

The init command creates the foundation for persistent AI context by generating template files for constitution rules, tasks, decisions, learnings, conventions, and architecture documentation. It also sets up Claude Code integration with hooks and slash commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd() *cobra.Command

Cmd returns the "ctx init" command for initializing a .context/ directory.

Types

This section is empty.

Directories

Path Synopsis
cmd
root
Package root implements the ctx init command.
Package root implements the ctx init command.
Package core provides helper functions for the initialize command.
Package core provides helper functions for the initialize command.
backup
Package backup creates timestamped backups of files before overwriting them during initialization.
Package backup creates timestamped backups of files before overwriting them during initialization.
claude
Package claude creates or merges CLAUDE.md with ctx project instructions and content markers.
Package claude creates or merges CLAUDE.md with ctx project instructions and content markers.
entry
Package entry finds insertion points in existing Markdown files for ctx content during initialization.
Package entry finds insertion points in existing Markdown files for ctx content during initialization.
merge
Package merge orchestrates create-or-merge operations with interactive confirmation and marker-based content updates.
Package merge orchestrates create-or-merge operations with interactive confirmation and marker-based content updates.
plan
Package plan creates or merges IMPLEMENTATION_PLAN.md with project planning templates during initialization.
Package plan creates or merges IMPLEMENTATION_PLAN.md with project planning templates during initialization.
plugin
Package plugin enables and checks the ctx plugin in Claude Code settings and installed plugins configuration.
Package plugin enables and checks the ctx plugin in Claude Code settings and installed plugins configuration.
project
Package project defines project-root directories created during initialization, such as specs/ and ideas/.
Package project defines project-root directories created during initialization, such as specs/ and ideas/.
prompt
Package prompt creates or merges PROMPT.md with ctx system prompt templates during initialization.
Package prompt creates or merges PROMPT.md with ctx system prompt templates during initialization.
tpl
Package tpl deploys embedded templates to subdirectories during initialization, handling skip-or-overwrite logic for each file.
Package tpl deploys embedded templates to subdirectories during initialization, handling skip-or-overwrite logic for each file.
validate
Package validate checks that the ctx binary is available in PATH before initialization proceeds.
Package validate checks that the ctx binary is available in PATH before initialization proceeds.

Jump to

Keyboard shortcuts

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