export

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package export regenerates ~/.claude/agents and ~/.claude/skills from canonical cards, so Claude Code merges them into every repo natively and per-repo copies can be deleted. A hash manifest of everything culi wrote makes hand-edits detectable: export never clobbers a file it cannot prove it generated (contract C4).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Written []string // files created or refreshed (would-be, in check mode)
	Removed []string // stale generated files deleted (would-be, in check mode)
	Edited  []string // hand-edited generated files — never touched
	Skipped []string // export cards not exported (non-global scope), with reason
}

Result reports one export (or check) run.

func Run

func Run(knowledgeDir, targetDir, statePath string, check, force bool) (Result, error)

Run generates targetDir (usually ~/.claude) from export-capable global cards in knowledgeDir. check reports without writing; force overwrites even hand-edited files.

func (Result) Drifted

func (r Result) Drifted() bool

Drifted reports whether the target dir disagrees with what export would produce — the --check exit condition.

Jump to

Keyboard shortcuts

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