@invariant.guru/cli 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +163 -0
- package/dist/main.js +1520 -0
- package/package.json +66 -0
package/README.md
ADDED
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
# Invariant CLI
|
|
2
|
+
|
|
3
|
+
A package manager for Claude AI specification files. Install, compose, and manage reusable markdown instruction blocks for your `CLAUDE.md` files.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
yarn global add @invariant--labs/cli
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Quick Start
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
# Initialize a project
|
|
15
|
+
invariant init
|
|
16
|
+
|
|
17
|
+
# Install a package
|
|
18
|
+
invariant install everything-claude-code
|
|
19
|
+
|
|
20
|
+
# Add items from the package
|
|
21
|
+
invariant add agent:everything-claude-code/planner
|
|
22
|
+
|
|
23
|
+
# Generate CLAUDE.md
|
|
24
|
+
invariant claude
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Commands
|
|
28
|
+
|
|
29
|
+
### `invariant init`
|
|
30
|
+
|
|
31
|
+
Initialize Invariant in your project. Creates `invariant.json` and `.invariant/` directory.
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
invariant init
|
|
35
|
+
invariant init --name my-project
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### `invariant install [package]`
|
|
39
|
+
|
|
40
|
+
Install a package from the registry.
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
invariant install everything-claude-code
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### `invariant add <target> [<target>...]`
|
|
47
|
+
|
|
48
|
+
Activate items from installed packages. Accepts one or more targets.
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
# Add all items from a package
|
|
52
|
+
invariant add everything-claude-code
|
|
53
|
+
|
|
54
|
+
# Add a specific agent
|
|
55
|
+
invariant add agent:everything-claude-code/planner
|
|
56
|
+
|
|
57
|
+
# Add multiple items at once
|
|
58
|
+
invariant add skill:my-pkg/react-expert skill:my-pkg/ts-patterns
|
|
59
|
+
|
|
60
|
+
# Mix types and packages
|
|
61
|
+
invariant add agent:pkg-a/planner skill:pkg-b/tdd
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### `invariant remove <target> [<target>...]`
|
|
65
|
+
|
|
66
|
+
Remove added items (inverse of `add`). The package stays in cache for future use. Accepts one or more targets.
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
# Remove all active items from a package
|
|
70
|
+
invariant remove everything-claude-code
|
|
71
|
+
|
|
72
|
+
# Remove a specific agent
|
|
73
|
+
invariant remove agent:everything-claude-code/planner
|
|
74
|
+
|
|
75
|
+
# Remove multiple items at once
|
|
76
|
+
invariant remove skill:my-pkg/react-expert skill:my-pkg/ts-patterns
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### `invariant uninstall <package>`
|
|
80
|
+
|
|
81
|
+
Completely remove a package: deletes all added items, removes from cache, and removes from config.
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
invariant uninstall everything-claude-code
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### `invariant inspect [package]`
|
|
88
|
+
|
|
89
|
+
Show package contents with active items highlighted.
|
|
90
|
+
|
|
91
|
+
**Without a target** — shows only active (added) items across all installed packages:
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
invariant inspect
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
```
|
|
98
|
+
everything-claude-code@main
|
|
99
|
+
────────────────────────────────────────
|
|
100
|
+
agents/
|
|
101
|
+
✓ planner
|
|
102
|
+
skills/
|
|
103
|
+
✓ backend-patterns/SKILL
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
**With `--details`** — shows all items (active and inactive) across all packages:
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
invariant inspect --details
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
```
|
|
113
|
+
everything-claude-code@main
|
|
114
|
+
────────────────────────────────────────
|
|
115
|
+
agents/
|
|
116
|
+
✓ planner
|
|
117
|
+
○ architect
|
|
118
|
+
○ code-reviewer
|
|
119
|
+
skills/
|
|
120
|
+
✓ backend-patterns/SKILL
|
|
121
|
+
○ tdd-workflow/SKILL
|
|
122
|
+
contexts/
|
|
123
|
+
○ dev
|
|
124
|
+
○ review
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
**With a specific package** — always shows all items (active and inactive):
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
invariant inspect everything-claude-code
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
| Flag | Description |
|
|
134
|
+
|------|-------------|
|
|
135
|
+
| `-d, --details` | Show all items including inactive ones |
|
|
136
|
+
|
|
137
|
+
### `invariant list`
|
|
138
|
+
|
|
139
|
+
List installed or available packages.
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
invariant list # List installed packages
|
|
143
|
+
invariant list --remote # List available packages from registry
|
|
144
|
+
invariant list --active # List only packages with active items
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### `invariant claude`
|
|
148
|
+
|
|
149
|
+
Generate a `CLAUDE.md` file from all active package items.
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
invariant claude
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### `invariant plan "<instructions>"`
|
|
156
|
+
|
|
157
|
+
Create a session file with task instructions.
|
|
158
|
+
|
|
159
|
+
```bash
|
|
160
|
+
invariant plan "implement user authentication"
|
|
161
|
+
invariant plan "implement user authentication" --full
|
|
162
|
+
invariant plan "implement user authentication" --context everything-claude-code/dev
|
|
163
|
+
```
|