skills/mp-setup-sveltekit/SKILL.md
Create a new SvelteKit project from template with GitHub repo, branch protection, and CI. Use when: "setup Svelte project", "new Svelte project", "create SvelteKit app"
npx skillsauth add MartinoPolo/mpx-claude-code mp-setup-sveltekitInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Create a new SvelteKit project from template-sveltekit with GitHub repo, branching strategy, branch protection, and CI verification. $ARGUMENTS
If $ARGUMENTS does not contain a project name, ask the user.
Ask for GitHub visibility: public or private.
Resolve the GitHub username:
gh api user --jq '.login'
Clone from template:
gh repo create <project-name> --template <user>/template-sveltekit --public|--private --clone
If the template repo does not exist, inform the user they need to create template-sveltekit first and stop.
git -C <path> checkout -b dev
git -C <path> push -u origin dev
gh repo edit <owner>/<project-name> --default-branch dev
Apply protection to both main and dev:
gh api repos/{owner}/{repo}/branches/main/protection -X PUT \
--input - <<'EOF'
{
"required_status_checks": {"strict": false, "contexts": ["checks"]},
"enforce_admins": true,
"required_pull_request_reviews": {"required_approving_review_count": 0},
"restrictions": null
}
EOF
Repeat for dev. If protection fails (e.g., free plan limitations), warn but continue.
pnpm -C <path> install
pnpm -C <path> run check:all
pnpm -C <path> run test
If checks fail, report errors but do NOT abort.
Ask user: "Do you want to add Svelte MCP support?"
If yes:
npx -C <path> sv add mcp
Create .mpx/CONTEXT.md and .mpx/DECISIONS.md (see skills/shared/DOCUMENTATION_STRATEGY.md for format):
.mpx/CONTEXT.md:
# [Project Name] Context
## What This Is
[3-sentence project summary]
## Domain Language
[Terms added via `/mp-grill` or `/mp-vocabulary`]
## Core Features
[Feature index: name + status + PRD#]
## Key Constraints
[Settled facts about the system]
.mpx/DECISIONS.md:
# Decisions
Settled architectural and design decisions. Updated via `/mp-grill` and `/mp-harvest-decisions`.
Svelte rules are loaded from user-level ~/.claude/rules/svelte.md (symlinked from mpx-claude-code). No per-project rule setup is needed.
Verify the user-level rules are in place:
ls -la ~/.claude/rules/svelte.md
If missing, inform the user:
Svelte rules not found at
~/.claude/rules/. Ensure~/.claude/rules/is symlinked to your mpx-claude-coderules/directory. SeeWINDOWS-SETUP.mdfor Windows symlink instructions.
Do NOT abort — this is informational only.
git -C <path> add -A
git -C <path> commit -m "chore: initial project setup"
git -C <path> push
Output summary:
Repo: <GitHub URL>
Default branch: dev
Branch protection: [applied | failed (reason)]
Template checks: [passing | failing (details)]
Svelte MCP: [added | skipped]
Svelte rules: [found at ~/.claude/rules/ | missing — see instructions above]
pnpm as the package managertemplate-sveltekit under the user's GitHub accountgit -C <path> for all git commands -- never cd && gittools
Show current project progress. Displays phase status and next steps. Use when: "show status", "project progress", "what's done"
data-ai
Unified project setup. Auto-detects state and orchestrates mpx skills/agents for init, conversion, or restructure.
testing
Track bugs/issues in .mpx/ phase system. Parses reports, finds related phases, adds fix tasks or creates bugfix phases. Use when: "track this bug", "add issue to project", "log this bug", "add bug to checklist"
development
Project workflow guidance for spec-driven development. Background knowledge auto-loaded when relevant.