بنقرة واحدة
lvt-new-app
Create a new LiveTemplate application with proper setup and validation
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Create a new LiveTemplate application with proper setup and validation
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Use when deploying LiveTemplate applications to production - covers Docker containerization, Fly.io deployment, Kubernetes setup, database persistence, and production best practices
Transform app to production-ready - adds authentication, deployment config, environment setup, and best practices
Use when deploying LiveTemplate applications to production - covers Docker containerization, Fly.io deployment, Kubernetes setup, database persistence, and production best practices
Rapid end-to-end workflow - creates app, adds resources, sets up development environment in one flow
Generate test apps, capture screenshots, analyze UI for issues, and recursively fix problems in kit templates
Use when adding database migrations to LiveTemplate apps - guides both auto-generated migrations (from lvt gen resource) and custom migrations (indexes, constraints, data transformations)
| name | lvt-new-app |
| description | Create a new LiveTemplate application with proper setup and validation |
| keywords | ["lvt","livetemplate","lt"] |
| category | core |
| version | 1.0.0 |
This skill creates a new LiveTemplate application using the lvt CLI, validates the setup, and guides the user through next steps.
Before using this skill, check if the user needs brainstorming:
lvt-plan InsteadIf the user's request is:
Then STOP and use the lvt-plan skill instead:
Skill("lvt-plan")
The lvt-plan skill will:
lvt-new-app) with complete requirementsUse lvt-new-app directly only when:
Example:
lvt-plan (vague, needs planning)lvt-new-app (detailed)lvt-new-appThis skill activates when LiveTemplate context is established:
✅ Context Established By:
.lvtrc file exists in current directory (usually won't apply for "new" app)lvt-assistant agentPriority: Project context > Agent context > Keyword context
Accepted keywords (case-insensitive, whole words):
lvtlivetemplateltAccepted patterns:
With Context (any of: .lvtrc OR agent OR keywords): ✅ "create a new app called blog" ✅ "start a new project for shop" ✅ "make an app named todos"
Without Context (must include keywords): ✅ "create a new lvt app called blog" ✅ "start a livetemplate project for shop" ✅ "make a new app with lt named todos" ❌ "create a new app" (no context, no keywords)
Scenario 1: New conversation, no .lvtrc, no agent
User: "Create a new app called blog" → ❌ No context, no keywords → Don't activate
User: "Create a new livetemplate app called blog" → ✅ Keywords found → Activate skill → ✅ Context now established
Scenario 2: Using lvt-assistant agent
Scenario 3: Context persistence
User: "Use lvt to make a blog" → ✅ Keywords → Activate, establish context
User: "Actually, make it called myblog" → ✅ Context persists → Can adjust
This skill activates when the user says:
Explicit prompts:
Implicit prompts:
Kit-specific prompts:
Before executing, check the following:
.lvtrc exist in current directory?lvt command available? (Check with which lvt)go version)lvt new {app_name} --kit {kit}.lvtrc existsgo mod tidy in new directory# Check if lvt is installed
which lvt
# Check Go version
go version
# Check if already in lvt project
[ -f .lvtrc ] && echo "Already in lvt project" || echo "Not in lvt project"
# Basic app creation (multi kit is default)
lvt new {app_name}
# Or with explicit kit
lvt new {app_name} --kit multi
lvt new {app_name} --kit single
lvt new {app_name} --kit simple
# With custom module name
lvt new {app_name} --module github.com/user/{app_name}
# Enter directory
cd {app_name}
# Check .lvtrc exists
cat .lvtrc
# Tidy dependencies
go mod tidy
# Test build
go build ./cmd/{app_name}/main.go
This skill verifies successful creation by checking:
Directory Created
{app_name}/ existscd into directoryConfiguration File
.lvtrc existsGo Module
go.mod existsProject Structure
cmd/{app_name}/main.go existsapp/home/ existsdatabase/ existsweb/assets/ existsBuild Success
go build completes without errorsDependencies Resolved
go mod tidy succeedsError: lvt: command not found
go install github.com/livetemplate/lvt/cmd/lvt@latestError: directory already exists
Error: invalid module name
Error: go: command not found
Error: go mod tidy failed
Error: Build fails with import errors
go mod download then retryWhen skill completes successfully:
✅ Successfully created lvt app: {app_name}
## App Structure
- **Kit:** {kit} (Tailwind CSS / Pico CSS)
- **Module:** {module_name}
- **Location:** {full_path}
## Generated Files
- ✅ cmd/{app_name}/main.go - Application entry point
- ✅ app/home/ - Homepage handler
- ✅ database/ - Database setup
- ✅ web/assets/ - Static assets
- ✅ .lvtrc - Configuration
- ✅ go.mod - Go module
## Validation
- ✅ Build successful
- ✅ Dependencies resolved
- ✅ Ready to run
## Next Steps
You can now:
1. **Start dev server:** `cd {app_name} && lvt serve`
2. **Add your first resource:** Use the `lvt:add-resource` skill
3. **Add authentication:** Use the `lvt:add-auth` skill
4. **Run tests:** `go test ./...`
Would you like me to help with any of these?
Based on context, suggest:
app/home/"{module} - remember this for imports"lvt:quickstart"lvt:production-ready"Test 1: Basic app with multi kit (default)
Test 2: App with single kit
Test 3: App with simple kit
Test 4: App with custom module
Test 5: Error - invalid name
See docs/SKILL_TESTING_CHECKLISTS.md - "lvt:new-app" section
Key things to verify manually:
When user mentions:
--kit multi--kit single--kit simpleValid app names:
blog, myapp, task-manager, apiMy-App, app!, 123app, APPValidation regex: ^[a-z][a-z0-9-]*$
If not specified:
{app_name}/... (relative module)github.com/{user}/{app_name} (if user info available)User: "Create a new lvt app called blog"
Skill:
lvt new blogcd blog && go mod tidyUser: "Create a SPA called taskapp"
Skill:
lvt new taskapp --kit singleUser: "Create an app called My-Blog!"
Skill:
Track for this skill:
Issues discovered during testing will be documented in docs/CLAUDE_SKILLS_TRACKER.md under the "Discovered Gaps" section with format:
### GAP-XXX: Issue title
- **Skill:** lvt:new-app
- **Scenario:** Test N
- **Priority:** P0/P1/P2/P3
- **Status:** Open/Fixed