Skip to content

armgit / Pake

Public Imported from GitHub
0

Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.

chore: add Claude Code skills and update gitignore

Tw93951ba826010f
diff --git a/.claude/skills/code-review/SKILL.md b/.claude/skills/code-review/SKILL.md
new file mode 100644
index 00000000..dee34da2
--- /dev/null
+++ b/.claude/skills/code-review/SKILL.md
@@ -0,0 +1,48 @@
+---
+name: code-review
+description: Use this skill for Pake PR reviews with focus on TypeScript/Rust correctness, Tauri patterns, and CLI behavior.
+---
+
+# Code Review Skill
+
+Use this skill when reviewing code changes or PRs in Pake.
+
+## Review Checklist
+
+### Code Quality
+- [ ] Follows TypeScript idioms and patterns
+- [ ] Rust code follows Tauri conventions
+- [ ] Proper error handling in CLI
+- [ ] No unnecessary dependencies
+
+### Testing
+- [ ] Tests pass: `pnpm test`
+- [ ] Format check: `pnpm run format:check`
+- [ ] CLI builds successfully
+
+### Style
+- [ ] Prettier formatted
+- [ ] Rust code formatted with `cargo fmt`
+- [ ] Clear naming conventions
+
+## Quick Review Commands
+
+```bash
+# Get PR diff
+gh pr diff
+
+# Format check
+pnpm run format:check
+
+# Run tests
+pnpm test
+
+# Build CLI
+pnpm run cli:build
+```
+
+## Review Output Format
+
+1. **Critical issues** (blocking): Safety, correctness
+2. **Style issues** (non-blocking): Formatting, naming
+3. **Suggestions** (optional): Performance, clarity
diff --git a/.claude/skills/github-ops/SKILL.md b/.claude/skills/github-ops/SKILL.md
new file mode 100644
index 00000000..b8b22b84
--- /dev/null
+++ b/.claude/skills/github-ops/SKILL.md
@@ -0,0 +1,93 @@
+---
+name: github-ops
+description: Use this skill for GitHub issue, PR, and release operations in the Pake repository via gh CLI.
+---
+
+# GitHub Operations Skill
+
+Use this skill when working with GitHub issues, PRs, and releases for Pake.
+
+## Golden Rule
+
+**ALWAYS use `gh` CLI** for GitHub operations. Never use the web UI or make assumptions about state — always query first.
+
+## Issue Operations
+
+```bash
+# View a specific issue
+gh issue view 123
+
+# List open issues
+gh issue list --state open
+
+# List issues with a label
+gh issue list --label bug
+
+# Add a comment (only with explicit user request)
+gh issue comment 123 --body "..."
+
+# Close an issue
+gh issue close 123
+```
+
+## PR Operations
+
+```bash
+# List open PRs
+gh pr list
+
+# View a PR
+gh pr view 456
+
+# Check PR status and CI checks
+gh pr checks 456
+
+# View PR diff
+gh pr diff 456
+
+# Merge a PR (only with explicit user request)
+gh pr merge 456 --squash
+
+# Create a PR
+gh pr create --title "..." --body "..."
+```
+
+## Release Operations
+
+```bash
+# List releases
+gh release list
+
+# View a specific release
+gh release view V3.10.0
+
+# Check CI runs for a tag
+gh run list --workflow=release.yml
+
+# Watch a running CI job
+gh run watch
+
+# View CI run logs
+gh run view <run-id> --log
+```
+
+## CI / Workflow Operations
+
+```bash
+# List recent workflow runs
+gh run list
+
+# Filter by workflow
+gh run list --workflow=release.yml
+gh run list --workflow=quality-and-test.yml
+
+# Re-run failed jobs
+gh run rerun <run-id> --failed-only
+```
+
+## Safety Rules
+
+1. **NEVER** comment on issues or PRs without explicit user request
+2. **NEVER** merge, close, or modify without explicit user request
+3. **ALWAYS** show the user the prepared content for review before posting
+4. **ALWAYS** query current state before taking action — never assume
diff --git a/.claude/skills/release/SKILL.md b/.claude/skills/release/SKILL.md
new file mode 100644
index 00000000..8a18d679
--- /dev/null
+++ b/.claude/skills/release/SKILL.md
@@ -0,0 +1,58 @@
+---
+name: release
+description: Use this skill when preparing, validating, and publishing a Pake release.
+---
+
+# Release Skill
+
+Use this skill when preparing or executing a Pake release.
+
+## Version Files
+
+Three files must be updated in sync — never update one without the others:
+
+- `package.json` → `"version"`
+- `src-tauri/Cargo.toml` → `version` under `[package]`
+- `src-tauri/tauri.conf.json` → `"version"`
+
+## Release Checklist
+
+### Pre-Release
+1. [ ] Confirm the new version number (check current: `cat package.json | jq .version`)
+2. [ ] Update all three version files above
+3. [ ] Run `pnpm run format` — must pass cleanly
+4. [ ] Run `pnpm test` — must pass cleanly
+5. [ ] No uncommitted changes: `git status`
+6. [ ] Commit version bump with message: `chore: bump version to VX.X.X`
+
+### Tagging (triggers CI)
+```bash
+git tag -a VX.X.X -m "Release VX.X.X"
+git push origin VX.X.X
+```
+
+Tag format: uppercase `V` prefix (e.g. `V3.11.0`), not `v3.11.0`.
+
+### Post-Tag Verification
+1. [ ] Confirm CI triggered: `gh run list --workflow=release.yml`
+2. [ ] Watch CI status: `gh run watch`
+3. [ ] Verify GitHub Release was created: `gh release view VX.X.X`
+4. [ ] Publish to npm (manual): `npm publish`
+
+## Build Commands (local only)
+
+```bash
+# Current platform
+pnpm build
+
+# macOS universal binary
+pnpm build:mac
+```
+
+Cross-platform builds (Windows/Linux) are handled by CI, not locally.
+
+## Safety Rules
+
+1. **NEVER** auto-commit or auto-push without explicit user request
+2. **NEVER** tag before all checks pass
+3. **ALWAYS** verify the three version files are in sync before tagging
diff --git a/.gitignore b/.gitignore
index b12f2efb..89184e49 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,7 +2,6 @@
!dist/.gitkeep
!dist/about_pake.html
!dist/cli.js
-.claude/
.DS_Store
.idea
.next