lynxprompt 0.1.1 → 0.2.0

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 CHANGED
@@ -5,9 +5,18 @@ Generate AI IDE configuration files from your terminal.
5
5
  ## Installation
6
6
 
7
7
  ```bash
8
- # Install globally
8
+ # npm (cross-platform)
9
9
  npm install -g lynxprompt
10
10
 
11
+ # Homebrew (macOS)
12
+ brew install GeiserX/lynxprompt/lynxprompt
13
+
14
+ # Chocolatey (Windows)
15
+ choco install lynxprompt
16
+
17
+ # Snap (Linux)
18
+ snap install lynxprompt
19
+
11
20
  # Or use with npx
12
21
  npx lynxprompt
13
22
  ```
@@ -17,85 +26,161 @@ The CLI is available as both `lynxprompt` and the short alias `lynxp`.
17
26
  ## Quick Start
18
27
 
19
28
  ```bash
20
- # Initialize LynxPrompt in your project
21
- lynxp init
22
-
23
- # Or use the interactive wizard for a guided setup
29
+ # Generate an AI config file (recommended for most users)
24
30
  lynxp wizard
25
31
 
26
- # Login to your LynxPrompt account
27
- lynxp login
32
+ # Quick generation with defaults (creates AGENTS.md)
33
+ lynxp wizard -y
28
34
 
29
- # List your blueprints
30
- lynxp list
35
+ # Generate for Cursor specifically
36
+ lynxp wizard -f cursor
37
+
38
+ # Login to sync with LynxPrompt cloud
39
+ lynxp login
31
40
 
32
- # Download a blueprint
41
+ # Download a blueprint from marketplace
33
42
  lynxp pull bp_abc123
43
+
44
+ # Check config status
45
+ lynxp status
34
46
  ```
35
47
 
36
48
  ## Commands
37
49
 
38
- ### Initialize (`lynxp init`)
50
+ ### Wizard (`lynxp wizard`) ⭐ Recommended
51
+
52
+ Interactive wizard for generating AI IDE configurations:
53
+
54
+ ```bash
55
+ # Interactive mode
56
+ lynxp wizard
57
+
58
+ # Quick mode with defaults (generates AGENTS.md)
59
+ lynxp wizard -y
60
+
61
+ # Generate for specific format
62
+ lynxp wizard -f cursor # .cursor/rules/
63
+ lynxp wizard -f agents # AGENTS.md (universal)
64
+ lynxp wizard -f copilot # .github/copilot-instructions.md
65
+
66
+ # Generate multiple formats
67
+ lynxp wizard -f agents,cursor,copilot
68
+
69
+ # Non-interactive with all options
70
+ lynxp wizard \
71
+ --name "my-api" \
72
+ --description "REST API for user management" \
73
+ --stack typescript,express \
74
+ --format cursor \
75
+ --persona backend \
76
+ --boundaries conservative \
77
+ --yes
78
+ ```
39
79
 
40
- Initialize LynxPrompt in your project. This command:
80
+ ### Check (`lynxp check`)
41
81
 
42
- 1. Scans for existing AI config files (AGENTS.md, .cursorrules, etc.)
43
- 2. Imports them or creates a starter template
44
- 3. Sets up the `.lynxprompt/` directory structure
82
+ Validate AI configuration files for CI/CD pipelines:
45
83
 
46
84
  ```bash
47
- # Interactive initialization
48
- lynxp init
85
+ # Interactive validation
86
+ lynxp check
87
+
88
+ # CI mode (exit code 0=pass, 1=fail)
89
+ lynxp check --ci
90
+ ```
91
+
92
+ ### Status (`lynxp status`)
49
93
 
50
- # Non-interactive (auto-import existing files)
51
- lynxp init --yes
94
+ Show current AI configuration and tracked blueprints:
52
95
 
53
- # Re-initialize even if already set up
54
- lynxp init --force
96
+ ```bash
97
+ lynxp status
55
98
  ```
56
99
 
57
- After initialization, your project will have:
100
+ ### Pull (`lynxp pull`)
101
+
102
+ Download and track a blueprint from the marketplace:
58
103
 
104
+ ```bash
105
+ # Download and track
106
+ lynxp pull bp_abc123
107
+
108
+ # Push local file to cloud
109
+ lynxp push
110
+
111
+ # Preview content first
112
+ lynxp pull bp_abc123 --preview
113
+
114
+ # Don't track for future syncs
115
+ lynxp pull bp_abc123 --no-track
59
116
  ```
60
- .lynxprompt/
61
- ├── conf.yml # Configuration (exporters, sources)
62
- ├── rules/ # Your rules (edit here!)
63
- │ └── agents.md # Starter rules file
64
- ├── README.md # Documentation
65
- └── .gitignore # Ignores local state files
117
+
118
+ ### Link / Unlink
119
+
120
+ Connect local files to cloud blueprints:
121
+
122
+ ```bash
123
+ # Link existing file to blueprint
124
+ lynxp link AGENTS.md bp_abc123
125
+
126
+ # List all tracked blueprints
127
+ lynxp link --list
128
+
129
+ # Disconnect from cloud
130
+ lynxp unlink AGENTS.md
66
131
  ```
67
132
 
68
- ### Wizard (`lynxp wizard`)
133
+ ### Diff
69
134
 
70
- Interactive wizard for generating AI IDE configurations with full customization:
135
+ Show changes between local and cloud:
71
136
 
72
137
  ```bash
73
- # Start the interactive wizard
74
- lynxp wizard
138
+ # Compare with cloud blueprint
139
+ lynxp diff bp_abc123
75
140
 
76
- # Non-interactive mode with all options
77
- lynxp wizard \
78
- --name "my-api" \
79
- --description "REST API for user management" \
80
- --stack typescript,express \
81
- --platforms cursor,claude \
82
- --persona backend \
83
- --boundaries conservative \
84
- --yes
141
+ # Compare local rules with exports
142
+ lynxp diff --local
85
143
  ```
86
144
 
87
- **Options:**
145
+ ### Push (`lynxp push`)
146
+
147
+ Upload a local configuration file to LynxPrompt cloud:
148
+
149
+ ```bash
150
+ # Push current AGENTS.md (auto-detected)
151
+ lynxp push
152
+
153
+ # Push a specific file
154
+ lynxp push .cursor/rules/project.mdc
155
+
156
+ # Push with options
157
+ lynxp push AGENTS.md \
158
+ --name "My Project Rules" \
159
+ --description "AI config for my project" \
160
+ --visibility PUBLIC \
161
+ --tags "nextjs,typescript,react"
88
162
 
89
- | Flag | Description |
90
- |------|-------------|
91
- | `-n, --name` | Project name |
92
- | `-d, --description` | Project description |
93
- | `-s, --stack` | Tech stack (comma-separated) |
94
- | `-p, --platforms` | Target platforms (comma-separated) |
95
- | `--persona` | AI persona (backend, frontend, fullstack, devops, data, security) |
96
- | `--boundaries` | Boundary preset (conservative, standard, permissive) |
97
- | `--preset` | Agent preset (test-agent, docs-agent, etc.) |
98
- | `-y, --yes` | Skip prompts, use defaults |
163
+ # Non-interactive mode
164
+ lynxp push -y --name "My Config"
165
+ ```
166
+
167
+ ### Search (`lynxp search`)
168
+
169
+ Search public blueprints in the marketplace:
170
+
171
+ ```bash
172
+ lynxp search "nextjs typescript"
173
+ lynxp search react --limit 10
174
+ ```
175
+
176
+ ### List (`lynxp list`)
177
+
178
+ List your own blueprints:
179
+
180
+ ```bash
181
+ lynxp list
182
+ lynxp list --visibility PUBLIC
183
+ ```
99
184
 
100
185
  ### Authentication
101
186
 
@@ -110,64 +195,53 @@ lynxp whoami
110
195
  lynxp logout
111
196
  ```
112
197
 
113
- ### Blueprints
198
+ ### Advanced: Init and Sync
199
+
200
+ For power users who want to manage rules across multiple AI editors:
114
201
 
115
202
  ```bash
116
- # List your blueprints
117
- lynxp list
118
- lynxp list --visibility PUBLIC
119
- lynxp list --limit 50
203
+ # Initialize .lynxprompt/ folder
204
+ lynxp init
120
205
 
121
- # Download a blueprint
122
- lynxp pull bp_abc123
123
- lynxp pull bp_abc123 --output ./config
206
+ # Sync rules to all configured agents
207
+ lynxp sync
208
+ lynxp sync --dry-run # Preview changes
124
209
 
125
- # Search public blueprints
126
- lynxp search "nextjs typescript"
210
+ # Manage AI agents
211
+ lynxp agents
212
+ ```
213
+
214
+ ## Blueprint Tracking
215
+
216
+ When you pull a blueprint, LynxPrompt tracks it in `.lynxprompt/blueprints.yml`:
127
217
 
128
- # Check current config status
218
+ - **Marketplace blueprints** - Read-only, can pull updates but changes won't sync back
219
+ - **Team blueprints** - Full sync, push and pull changes with your team
220
+ - **Private blueprints** - Your own, full control
221
+
222
+ ```bash
223
+ # See all tracked blueprints
129
224
  lynxp status
225
+
226
+ # Or
227
+ lynxp link --list
130
228
  ```
131
229
 
132
230
  ## Environment Variables
133
231
 
134
232
  | Variable | Description |
135
233
  |----------|-------------|
136
- | `LYNXPROMPT_TOKEN` | API token (alternative to login) |
234
+ | `LYNXPROMPT_TOKEN` | API token for CI/CD (skips browser auth) |
137
235
  | `LYNXPROMPT_API_URL` | Custom API URL (for development) |
138
236
 
139
- ## Project Structure
140
-
141
- LynxPrompt uses a simple directory structure:
142
-
143
- - **`.lynxprompt/conf.yml`** - Configuration file with exporters and sources
144
- - **`.lynxprompt/rules/`** - Your rules in markdown format (single source of truth)
145
-
146
- **Workflow:**
147
-
148
- 1. Edit rules in `.lynxprompt/rules/`
149
- 2. Run `lynxp sync` to export to agent formats (AGENTS.md, .cursorrules, etc.)
150
- 3. Your AI assistants pick up the changes automatically
151
-
152
- ## Configuration File
153
-
154
- The `conf.yml` file controls how rules are exported:
237
+ ## CI/CD Integration
155
238
 
156
239
  ```yaml
157
- version: "1"
158
- exporters:
159
- - agents # AGENTS.md (Claude, Copilot, etc.)
160
- - cursor # .cursorrules
161
- sources:
162
- - type: local
163
- path: .lynxprompt/rules
240
+ # GitHub Actions example
241
+ - name: Validate AI config
242
+ run: npx lynxprompt check --ci
164
243
  ```
165
244
 
166
- ## API Access
167
-
168
- API access requires a Pro, Max, or Teams subscription. Generate tokens at:
169
- https://lynxprompt.com/settings?tab=api-tokens
170
-
171
245
  ## Documentation
172
246
 
173
247
  Full documentation: https://lynxprompt.com/docs/cli