up-cli 0.1.0__tar.gz
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.
- up_cli-0.1.0/.claude/settings.local.json +13 -0
- up_cli-0.1.0/.gitignore +15 -0
- up_cli-0.1.0/PKG-INFO +186 -0
- up_cli-0.1.0/README.md +158 -0
- up_cli-0.1.0/Readme.md +158 -0
- up_cli-0.1.0/pyproject.toml +52 -0
- up_cli-0.1.0/scripts/export_claude_history.py +590 -0
- up_cli-0.1.0/scripts/export_cursor_history.py +850 -0
- up_cli-0.1.0/skills/docs-system/SKILL.md +27 -0
- up_cli-0.1.0/skills/docs-system/standards/HEADERS.md +23 -0
- up_cli-0.1.0/skills/docs-system/templates/CONTEXT.md +34 -0
- up_cli-0.1.0/skills/docs-system/templates/STRUCTURE.md +26 -0
- up_cli-0.1.0/skills/docs-system/templates/architecture_README.md +25 -0
- up_cli-0.1.0/skills/docs-system/templates/changelog_README.md +19 -0
- up_cli-0.1.0/skills/docs-system/templates/decisions_README.md +27 -0
- up_cli-0.1.0/skills/docs-system/templates/development_README.md +11 -0
- up_cli-0.1.0/skills/docs-system/templates/features_README.md +30 -0
- up_cli-0.1.0/skills/docs-system/templates/guides_README.md +7 -0
- up_cli-0.1.0/skills/docs-system/templates/handoff_README.md +24 -0
- up_cli-0.1.0/skills/docs-system/templates/learnings_README.md +15 -0
- up_cli-0.1.0/skills/docs-system/templates/operations_README.md +11 -0
- up_cli-0.1.0/skills/docs-system/templates/releases_README.md +26 -0
- up_cli-0.1.0/skills/docs-system/templates/research_README.md +7 -0
- up_cli-0.1.0/skills/docs-system/templates/reviews_README.md +19 -0
- up_cli-0.1.0/skills/docs-system/templates/roadmap_README.md +12 -0
- up_cli-0.1.0/skills/docs-system/templates/tests_README.md +10 -0
- up_cli-0.1.0/skills/docs-system/templates/todo_README.md +10 -0
- up_cli-0.1.0/skills/learning-system/README.md +157 -0
- up_cli-0.1.0/skills/learning-system/SKILL.md +222 -0
- up_cli-0.1.0/skills/learning-system/analysis_engine.py +103 -0
- up_cli-0.1.0/skills/learning-system/insights/gap-analysis.md +181 -0
- up_cli-0.1.0/skills/learning-system/insights/patterns.md +199 -0
- up_cli-0.1.0/skills/learning-system/learn.sh +84 -0
- up_cli-0.1.0/skills/learning-system/planning_engine.py +69 -0
- up_cli-0.1.0/skills/learning-system/prd.json +280 -0
- up_cli-0.1.0/skills/learning-system/project_analyzer.py +261 -0
- up_cli-0.1.0/skills/learning-system/research/2026-01-28-function-design-patterns.md +234 -0
- up_cli-0.1.0/skills/learning-system/research/2026-01-28-taint-analysis.md +221 -0
- up_cli-0.1.0/skills/learning-system/research/2026-01-28-web-hunt-dast.md +61 -0
- up_cli-0.1.0/skills/learning-system/research_agent.py +97 -0
- up_cli-0.1.0/skills/learning-system/sources.json +72 -0
- up_cli-0.1.0/skills/product-loop/LOOP_INSTRUCTIONS.md +87 -0
- up_cli-0.1.0/skills/product-loop/RALPH_HYBRID_README.md +80 -0
- up_cli-0.1.0/skills/product-loop/README.md +205 -0
- up_cli-0.1.0/skills/product-loop/SKILL.md +677 -0
- up_cli-0.1.0/skills/product-loop/SKILL_OLD.md +619 -0
- up_cli-0.1.0/skills/product-loop/autonomous_agent.py +231 -0
- up_cli-0.1.0/skills/product-loop/ralph_circuit_breaker.py +267 -0
- up_cli-0.1.0/skills/product-loop/ralph_hybrid.sh +1679 -0
- up_cli-0.1.0/skills/product-loop/ralph_rate_limiter.py +164 -0
- up_cli-0.1.0/skills/product-loop/ralph_response_analyzer.py +238 -0
- up_cli-0.1.0/skills/product-loop/ralph_state.py +236 -0
- up_cli-0.1.0/skills/product-loop/run-loop-advanced.sh +434 -0
- up_cli-0.1.0/skills/product-loop/run-loop.sh +222 -0
- up_cli-0.1.0/skills/product-loop/start-autonomous.sh +172 -0
- up_cli-0.1.0/src/up/__init__.py +3 -0
- up_cli-0.1.0/src/up/cli.py +28 -0
- up_cli-0.1.0/src/up/commands/__init__.py +1 -0
- up_cli-0.1.0/src/up/commands/init.py +71 -0
- up_cli-0.1.0/src/up/commands/new.py +72 -0
- up_cli-0.1.0/src/up/templates/__init__.py +54 -0
- up_cli-0.1.0/src/up/templates/config/__init__.py +86 -0
- up_cli-0.1.0/src/up/templates/docs_skill/__init__.py +49 -0
- up_cli-0.1.0/src/up/templates/learn/__init__.py +93 -0
- up_cli-0.1.0/src/up/templates/loop/__init__.py +91 -0
- up_cli-0.1.0/tests/__init__.py +0 -0
- up_cli-0.1.0/tests/test_cursor_history.py +328 -0
up_cli-0.1.0/.gitignore
ADDED
up_cli-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: up-cli
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: AI-powered project scaffolding with docs, learn, and product-loop systems
|
|
5
|
+
Project-URL: Homepage, https://github.com/yourusername/up-cli
|
|
6
|
+
Project-URL: Documentation, https://github.com/yourusername/up-cli#readme
|
|
7
|
+
Project-URL: Repository, https://github.com/yourusername/up-cli
|
|
8
|
+
Author-email: Your Name <you@example.com>
|
|
9
|
+
License-Expression: MIT
|
|
10
|
+
Keywords: ai,claude,cli,cursor,productivity,scaffolding
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Topic :: Software Development :: Code Generators
|
|
20
|
+
Requires-Python: >=3.10
|
|
21
|
+
Requires-Dist: click>=8.0
|
|
22
|
+
Requires-Dist: pyyaml>=6.0
|
|
23
|
+
Requires-Dist: rich>=13.0
|
|
24
|
+
Provides-Extra: dev
|
|
25
|
+
Requires-Dist: pytest>=7.0; extra == 'dev'
|
|
26
|
+
Requires-Dist: ruff>=0.1.0; extra == 'dev'
|
|
27
|
+
Description-Content-Type: text/markdown
|
|
28
|
+
|
|
29
|
+
# up-cli
|
|
30
|
+
|
|
31
|
+

|
|
32
|
+
|
|
33
|
+
An AI-powered CLI tool for scaffolding projects with built-in documentation, learning systems, and product-loop workflows designed for use with Claude Code and Cursor AI.
|
|
34
|
+
|
|
35
|
+
**Learned from real practice** - Built on insights from 5+ billion tokens of development experience and commercial products. Extracts best practices from chat history, documentation patterns, and proven workflows.
|
|
36
|
+
|
|
37
|
+
## Installation
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
pip install -e .
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Quick Start
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
# Create new project
|
|
47
|
+
up new my-project
|
|
48
|
+
|
|
49
|
+
# Or initialize in existing project
|
|
50
|
+
cd existing-project
|
|
51
|
+
up init
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Commands
|
|
55
|
+
|
|
56
|
+
| Command | Description |
|
|
57
|
+
|---------|-------------|
|
|
58
|
+
| `up new <name>` | Create a new project with full scaffolding |
|
|
59
|
+
| `up new <name> --template <type>` | Create project from specific template |
|
|
60
|
+
| `up init` | Initialize up systems in current directory |
|
|
61
|
+
| `up init --ai claude` | Initialize for Claude Code only |
|
|
62
|
+
| `up init --ai cursor` | Initialize for Cursor AI only |
|
|
63
|
+
| `up init --systems docs,learn` | Initialize specific systems only |
|
|
64
|
+
|
|
65
|
+
## Usage Examples
|
|
66
|
+
|
|
67
|
+
### Create a new project
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
# Create a new project with all systems
|
|
71
|
+
up new my-saas-app
|
|
72
|
+
|
|
73
|
+
# Create with a specific template
|
|
74
|
+
up new my-api --template fastapi
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### Initialize in existing project
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
cd my-existing-project
|
|
81
|
+
|
|
82
|
+
# Full initialization
|
|
83
|
+
up init
|
|
84
|
+
|
|
85
|
+
# Claude Code focused setup
|
|
86
|
+
up init --ai claude
|
|
87
|
+
|
|
88
|
+
# Only add docs and learn systems
|
|
89
|
+
up init --systems docs,learn
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Using the Learn System
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
# Auto-analyze your project and generate insights
|
|
96
|
+
/learn auto
|
|
97
|
+
|
|
98
|
+
# Research a specific topic with web sources
|
|
99
|
+
/learn research "authentication patterns"
|
|
100
|
+
|
|
101
|
+
# Generate a PRD from your codebase
|
|
102
|
+
/learn plan
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### Using the Product Loop
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
# Start autonomous development loop
|
|
109
|
+
./skills/product-loop/start-autonomous.sh
|
|
110
|
+
|
|
111
|
+
# Run with circuit breaker protection
|
|
112
|
+
./skills/product-loop/ralph_hybrid.sh
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## Systems
|
|
116
|
+
|
|
117
|
+
### 1. Docs System
|
|
118
|
+
|
|
119
|
+
```
|
|
120
|
+
docs/roadmap/vision/ # Product vision
|
|
121
|
+
docs/roadmap/phases/ # Phase roadmaps
|
|
122
|
+
docs/changelog/ # Progress tracking
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### 2. Learn System
|
|
126
|
+
|
|
127
|
+
- `/learn auto` - Auto-analyze project
|
|
128
|
+
- `/learn research [topic]` - Research topic
|
|
129
|
+
- `/learn plan` - Generate PRD
|
|
130
|
+
|
|
131
|
+
### 3. Product Loop (SESRC)
|
|
132
|
+
|
|
133
|
+
- Circuit breaker (max 3 failures)
|
|
134
|
+
- Checkpoint/rollback
|
|
135
|
+
- Health checks
|
|
136
|
+
- Budget limits
|
|
137
|
+
|
|
138
|
+
## Design Principles & Practices
|
|
139
|
+
|
|
140
|
+
### AI-First Development
|
|
141
|
+
|
|
142
|
+
**Design for AI collaboration, not just human readability.**
|
|
143
|
+
|
|
144
|
+
- **Context-aware scaffolding** - Project structures optimized for AI agents to navigate and understand quickly
|
|
145
|
+
- **Explicit over implicit** - Clear file naming, directory structures, and documentation that AI can parse without ambiguity
|
|
146
|
+
- **Prompt-friendly patterns** - Code and docs written to be easily referenced in AI conversations
|
|
147
|
+
- **Tool integration** - Native support for Claude Code skills and Cursor AI rules
|
|
148
|
+
|
|
149
|
+
### Documentation-Driven Development
|
|
150
|
+
|
|
151
|
+
**Documentation is the source of truth, not an afterthought.**
|
|
152
|
+
|
|
153
|
+
- **Docs-first workflow** - Write documentation before implementation to clarify intent
|
|
154
|
+
- **Living documentation** - Docs evolve with the codebase through automated learning systems
|
|
155
|
+
- **Knowledge extraction** - `/learn` commands analyze patterns and generate insights from real usage
|
|
156
|
+
- **Structured knowledge** - Vision, roadmaps, and changelogs in predictable locations for AI and human consumption
|
|
157
|
+
|
|
158
|
+
### Product Loop Patterns (SESRC)
|
|
159
|
+
|
|
160
|
+
**Autonomous development with safety guardrails.**
|
|
161
|
+
|
|
162
|
+
- **Circuit breaker protection** - Max 3 consecutive failures before stopping to prevent runaway loops
|
|
163
|
+
- **Checkpoint/rollback** - Save state before risky operations, restore on failure
|
|
164
|
+
- **Health checks** - Validate system state between iterations
|
|
165
|
+
- **Budget limits** - Token and time constraints to prevent unbounded execution
|
|
166
|
+
- **Human-in-the-loop** - Critical decisions require explicit approval
|
|
167
|
+
|
|
168
|
+
### Core Practices
|
|
169
|
+
|
|
170
|
+
| Practice | Description |
|
|
171
|
+
|----------|-------------|
|
|
172
|
+
| **Incremental delivery** | Ship small, working increments over big-bang releases |
|
|
173
|
+
| **Fail fast, recover faster** | Detect issues early, rollback automatically |
|
|
174
|
+
| **Observable by default** | Logging, metrics, and state visible to both AI and humans |
|
|
175
|
+
| **Convention over configuration** | Sensible defaults that work out of the box |
|
|
176
|
+
|
|
177
|
+
## Development
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
pip install -e .
|
|
181
|
+
pytest
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
## License
|
|
185
|
+
|
|
186
|
+
MIT
|
up_cli-0.1.0/README.md
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
# up-cli
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
An AI-powered CLI tool for scaffolding projects with built-in documentation, learning systems, and product-loop workflows designed for use with Claude Code and Cursor AI.
|
|
6
|
+
|
|
7
|
+
**Learned from real practice** - Built on insights from 5+ billion tokens of development experience and commercial products. Extracts best practices from chat history, documentation patterns, and proven workflows.
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
pip install -e .
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Quick Start
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
# Create new project
|
|
19
|
+
up new my-project
|
|
20
|
+
|
|
21
|
+
# Or initialize in existing project
|
|
22
|
+
cd existing-project
|
|
23
|
+
up init
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Commands
|
|
27
|
+
|
|
28
|
+
| Command | Description |
|
|
29
|
+
|---------|-------------|
|
|
30
|
+
| `up new <name>` | Create a new project with full scaffolding |
|
|
31
|
+
| `up new <name> --template <type>` | Create project from specific template |
|
|
32
|
+
| `up init` | Initialize up systems in current directory |
|
|
33
|
+
| `up init --ai claude` | Initialize for Claude Code only |
|
|
34
|
+
| `up init --ai cursor` | Initialize for Cursor AI only |
|
|
35
|
+
| `up init --systems docs,learn` | Initialize specific systems only |
|
|
36
|
+
|
|
37
|
+
## Usage Examples
|
|
38
|
+
|
|
39
|
+
### Create a new project
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
# Create a new project with all systems
|
|
43
|
+
up new my-saas-app
|
|
44
|
+
|
|
45
|
+
# Create with a specific template
|
|
46
|
+
up new my-api --template fastapi
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Initialize in existing project
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
cd my-existing-project
|
|
53
|
+
|
|
54
|
+
# Full initialization
|
|
55
|
+
up init
|
|
56
|
+
|
|
57
|
+
# Claude Code focused setup
|
|
58
|
+
up init --ai claude
|
|
59
|
+
|
|
60
|
+
# Only add docs and learn systems
|
|
61
|
+
up init --systems docs,learn
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Using the Learn System
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
# Auto-analyze your project and generate insights
|
|
68
|
+
/learn auto
|
|
69
|
+
|
|
70
|
+
# Research a specific topic with web sources
|
|
71
|
+
/learn research "authentication patterns"
|
|
72
|
+
|
|
73
|
+
# Generate a PRD from your codebase
|
|
74
|
+
/learn plan
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### Using the Product Loop
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
# Start autonomous development loop
|
|
81
|
+
./skills/product-loop/start-autonomous.sh
|
|
82
|
+
|
|
83
|
+
# Run with circuit breaker protection
|
|
84
|
+
./skills/product-loop/ralph_hybrid.sh
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Systems
|
|
88
|
+
|
|
89
|
+
### 1. Docs System
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
docs/roadmap/vision/ # Product vision
|
|
93
|
+
docs/roadmap/phases/ # Phase roadmaps
|
|
94
|
+
docs/changelog/ # Progress tracking
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### 2. Learn System
|
|
98
|
+
|
|
99
|
+
- `/learn auto` - Auto-analyze project
|
|
100
|
+
- `/learn research [topic]` - Research topic
|
|
101
|
+
- `/learn plan` - Generate PRD
|
|
102
|
+
|
|
103
|
+
### 3. Product Loop (SESRC)
|
|
104
|
+
|
|
105
|
+
- Circuit breaker (max 3 failures)
|
|
106
|
+
- Checkpoint/rollback
|
|
107
|
+
- Health checks
|
|
108
|
+
- Budget limits
|
|
109
|
+
|
|
110
|
+
## Design Principles & Practices
|
|
111
|
+
|
|
112
|
+
### AI-First Development
|
|
113
|
+
|
|
114
|
+
**Design for AI collaboration, not just human readability.**
|
|
115
|
+
|
|
116
|
+
- **Context-aware scaffolding** - Project structures optimized for AI agents to navigate and understand quickly
|
|
117
|
+
- **Explicit over implicit** - Clear file naming, directory structures, and documentation that AI can parse without ambiguity
|
|
118
|
+
- **Prompt-friendly patterns** - Code and docs written to be easily referenced in AI conversations
|
|
119
|
+
- **Tool integration** - Native support for Claude Code skills and Cursor AI rules
|
|
120
|
+
|
|
121
|
+
### Documentation-Driven Development
|
|
122
|
+
|
|
123
|
+
**Documentation is the source of truth, not an afterthought.**
|
|
124
|
+
|
|
125
|
+
- **Docs-first workflow** - Write documentation before implementation to clarify intent
|
|
126
|
+
- **Living documentation** - Docs evolve with the codebase through automated learning systems
|
|
127
|
+
- **Knowledge extraction** - `/learn` commands analyze patterns and generate insights from real usage
|
|
128
|
+
- **Structured knowledge** - Vision, roadmaps, and changelogs in predictable locations for AI and human consumption
|
|
129
|
+
|
|
130
|
+
### Product Loop Patterns (SESRC)
|
|
131
|
+
|
|
132
|
+
**Autonomous development with safety guardrails.**
|
|
133
|
+
|
|
134
|
+
- **Circuit breaker protection** - Max 3 consecutive failures before stopping to prevent runaway loops
|
|
135
|
+
- **Checkpoint/rollback** - Save state before risky operations, restore on failure
|
|
136
|
+
- **Health checks** - Validate system state between iterations
|
|
137
|
+
- **Budget limits** - Token and time constraints to prevent unbounded execution
|
|
138
|
+
- **Human-in-the-loop** - Critical decisions require explicit approval
|
|
139
|
+
|
|
140
|
+
### Core Practices
|
|
141
|
+
|
|
142
|
+
| Practice | Description |
|
|
143
|
+
|----------|-------------|
|
|
144
|
+
| **Incremental delivery** | Ship small, working increments over big-bang releases |
|
|
145
|
+
| **Fail fast, recover faster** | Detect issues early, rollback automatically |
|
|
146
|
+
| **Observable by default** | Logging, metrics, and state visible to both AI and humans |
|
|
147
|
+
| **Convention over configuration** | Sensible defaults that work out of the box |
|
|
148
|
+
|
|
149
|
+
## Development
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
pip install -e .
|
|
153
|
+
pytest
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
## License
|
|
157
|
+
|
|
158
|
+
MIT
|
up_cli-0.1.0/Readme.md
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
# up-cli
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
An AI-powered CLI tool for scaffolding projects with built-in documentation, learning systems, and product-loop workflows designed for use with Claude Code and Cursor AI.
|
|
6
|
+
|
|
7
|
+
**Learned from real practice** - Built on insights from 5+ billion tokens of development experience and commercial products. Extracts best practices from chat history, documentation patterns, and proven workflows.
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
pip install -e .
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Quick Start
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
# Create new project
|
|
19
|
+
up new my-project
|
|
20
|
+
|
|
21
|
+
# Or initialize in existing project
|
|
22
|
+
cd existing-project
|
|
23
|
+
up init
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Commands
|
|
27
|
+
|
|
28
|
+
| Command | Description |
|
|
29
|
+
|---------|-------------|
|
|
30
|
+
| `up new <name>` | Create a new project with full scaffolding |
|
|
31
|
+
| `up new <name> --template <type>` | Create project from specific template |
|
|
32
|
+
| `up init` | Initialize up systems in current directory |
|
|
33
|
+
| `up init --ai claude` | Initialize for Claude Code only |
|
|
34
|
+
| `up init --ai cursor` | Initialize for Cursor AI only |
|
|
35
|
+
| `up init --systems docs,learn` | Initialize specific systems only |
|
|
36
|
+
|
|
37
|
+
## Usage Examples
|
|
38
|
+
|
|
39
|
+
### Create a new project
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
# Create a new project with all systems
|
|
43
|
+
up new my-saas-app
|
|
44
|
+
|
|
45
|
+
# Create with a specific template
|
|
46
|
+
up new my-api --template fastapi
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Initialize in existing project
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
cd my-existing-project
|
|
53
|
+
|
|
54
|
+
# Full initialization
|
|
55
|
+
up init
|
|
56
|
+
|
|
57
|
+
# Claude Code focused setup
|
|
58
|
+
up init --ai claude
|
|
59
|
+
|
|
60
|
+
# Only add docs and learn systems
|
|
61
|
+
up init --systems docs,learn
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Using the Learn System
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
# Auto-analyze your project and generate insights
|
|
68
|
+
/learn auto
|
|
69
|
+
|
|
70
|
+
# Research a specific topic with web sources
|
|
71
|
+
/learn research "authentication patterns"
|
|
72
|
+
|
|
73
|
+
# Generate a PRD from your codebase
|
|
74
|
+
/learn plan
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### Using the Product Loop
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
# Start autonomous development loop
|
|
81
|
+
./skills/product-loop/start-autonomous.sh
|
|
82
|
+
|
|
83
|
+
# Run with circuit breaker protection
|
|
84
|
+
./skills/product-loop/ralph_hybrid.sh
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Systems
|
|
88
|
+
|
|
89
|
+
### 1. Docs System
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
docs/roadmap/vision/ # Product vision
|
|
93
|
+
docs/roadmap/phases/ # Phase roadmaps
|
|
94
|
+
docs/changelog/ # Progress tracking
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### 2. Learn System
|
|
98
|
+
|
|
99
|
+
- `/learn auto` - Auto-analyze project
|
|
100
|
+
- `/learn research [topic]` - Research topic
|
|
101
|
+
- `/learn plan` - Generate PRD
|
|
102
|
+
|
|
103
|
+
### 3. Product Loop (SESRC)
|
|
104
|
+
|
|
105
|
+
- Circuit breaker (max 3 failures)
|
|
106
|
+
- Checkpoint/rollback
|
|
107
|
+
- Health checks
|
|
108
|
+
- Budget limits
|
|
109
|
+
|
|
110
|
+
## Design Principles & Practices
|
|
111
|
+
|
|
112
|
+
### AI-First Development
|
|
113
|
+
|
|
114
|
+
**Design for AI collaboration, not just human readability.**
|
|
115
|
+
|
|
116
|
+
- **Context-aware scaffolding** - Project structures optimized for AI agents to navigate and understand quickly
|
|
117
|
+
- **Explicit over implicit** - Clear file naming, directory structures, and documentation that AI can parse without ambiguity
|
|
118
|
+
- **Prompt-friendly patterns** - Code and docs written to be easily referenced in AI conversations
|
|
119
|
+
- **Tool integration** - Native support for Claude Code skills and Cursor AI rules
|
|
120
|
+
|
|
121
|
+
### Documentation-Driven Development
|
|
122
|
+
|
|
123
|
+
**Documentation is the source of truth, not an afterthought.**
|
|
124
|
+
|
|
125
|
+
- **Docs-first workflow** - Write documentation before implementation to clarify intent
|
|
126
|
+
- **Living documentation** - Docs evolve with the codebase through automated learning systems
|
|
127
|
+
- **Knowledge extraction** - `/learn` commands analyze patterns and generate insights from real usage
|
|
128
|
+
- **Structured knowledge** - Vision, roadmaps, and changelogs in predictable locations for AI and human consumption
|
|
129
|
+
|
|
130
|
+
### Product Loop Patterns (SESRC)
|
|
131
|
+
|
|
132
|
+
**Autonomous development with safety guardrails.**
|
|
133
|
+
|
|
134
|
+
- **Circuit breaker protection** - Max 3 consecutive failures before stopping to prevent runaway loops
|
|
135
|
+
- **Checkpoint/rollback** - Save state before risky operations, restore on failure
|
|
136
|
+
- **Health checks** - Validate system state between iterations
|
|
137
|
+
- **Budget limits** - Token and time constraints to prevent unbounded execution
|
|
138
|
+
- **Human-in-the-loop** - Critical decisions require explicit approval
|
|
139
|
+
|
|
140
|
+
### Core Practices
|
|
141
|
+
|
|
142
|
+
| Practice | Description |
|
|
143
|
+
|----------|-------------|
|
|
144
|
+
| **Incremental delivery** | Ship small, working increments over big-bang releases |
|
|
145
|
+
| **Fail fast, recover faster** | Detect issues early, rollback automatically |
|
|
146
|
+
| **Observable by default** | Logging, metrics, and state visible to both AI and humans |
|
|
147
|
+
| **Convention over configuration** | Sensible defaults that work out of the box |
|
|
148
|
+
|
|
149
|
+
## Development
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
pip install -e .
|
|
153
|
+
pytest
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
## License
|
|
157
|
+
|
|
158
|
+
MIT
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "up-cli"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "AI-powered project scaffolding with docs, learn, and product-loop systems"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "MIT"
|
|
11
|
+
requires-python = ">=3.10"
|
|
12
|
+
authors = [
|
|
13
|
+
{ name = "Your Name", email = "you@example.com" }
|
|
14
|
+
]
|
|
15
|
+
keywords = ["cli", "scaffolding", "ai", "claude", "cursor", "productivity"]
|
|
16
|
+
classifiers = [
|
|
17
|
+
"Development Status :: 3 - Alpha",
|
|
18
|
+
"Environment :: Console",
|
|
19
|
+
"Intended Audience :: Developers",
|
|
20
|
+
"License :: OSI Approved :: MIT License",
|
|
21
|
+
"Programming Language :: Python :: 3",
|
|
22
|
+
"Programming Language :: Python :: 3.10",
|
|
23
|
+
"Programming Language :: Python :: 3.11",
|
|
24
|
+
"Programming Language :: Python :: 3.12",
|
|
25
|
+
"Topic :: Software Development :: Code Generators",
|
|
26
|
+
]
|
|
27
|
+
dependencies = [
|
|
28
|
+
"click>=8.0",
|
|
29
|
+
"rich>=13.0",
|
|
30
|
+
"pyyaml>=6.0",
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
[project.optional-dependencies]
|
|
34
|
+
dev = [
|
|
35
|
+
"pytest>=7.0",
|
|
36
|
+
"ruff>=0.1.0",
|
|
37
|
+
]
|
|
38
|
+
|
|
39
|
+
[project.scripts]
|
|
40
|
+
up = "up.cli:main"
|
|
41
|
+
|
|
42
|
+
[project.urls]
|
|
43
|
+
Homepage = "https://github.com/yourusername/up-cli"
|
|
44
|
+
Documentation = "https://github.com/yourusername/up-cli#readme"
|
|
45
|
+
Repository = "https://github.com/yourusername/up-cli"
|
|
46
|
+
|
|
47
|
+
[tool.hatch.build.targets.wheel]
|
|
48
|
+
packages = ["src/up"]
|
|
49
|
+
|
|
50
|
+
[tool.ruff]
|
|
51
|
+
line-length = 100
|
|
52
|
+
target-version = "py310"
|