Good first issue: add tauri-rust stack budget preset (Tauri v2 + Rust + TypeScript)
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 85/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- rust, typescript
- Domain
- developer-experience
Research direction
Start by reading presetSchema in src/presets.ts and the existing presets/rust-cargo.yaml to see which keys are allowed and how a preset is laid out. Create presets/tauri-rust.yaml with 4-5 concise rules, then run npx vitest run tests/unit/presets.test.ts and npx prettier --check presets/tauri-rust.yaml. Done means npm test passes and the preset loads with name equal to tauri-rust.
Written by the indexing model from the issue text.
Description
Summary
Add a curated stack preset at presets/tauri-rust.yaml for Tauri v2 + Rust + TypeScript. Once it ships in a release, users can apply it with:
npx @framy2/ctxwise preset tauri-rust --with-guidance
This writes ctxwise.budget.yaml plus starter AGENTS.md and CLAUDE.md files built from the preset rules.
Schema
Presets are parsed by the strict Zod presetSchema in src/presets.ts. Unknown keys (for example id, title, summary, or guidance) are rejected and fail npm test.
| Key | Type | Notes |
|---|---|---|
name |
string | Must equal the file name without .yaml |
stack |
string | Human-readable stack label |
description |
string | One sentence |
budget.maxKnownTokens |
positive integer | Total known startup-context budget |
budget.maxContributorTokens |
positive integer | Largest single contributor; keep it below maxKnownTokens |
budget.unknown |
warn or fail |
Optional, defaults to warn |
recommendedMcpServers |
string[] | Optional, defaults to [] |
rules |
string[] | At least one rule |
Starter template
This template already passes presetSchema. Treat the rules as a starting point and refine them into 4-5 concise, verifiable rules (roughly 100-200 tokens in total) based on your own experience with the stack.
name: tauri-rust
stack: Tauri v2 + Rust + TypeScript
description: Lean context budget and IPC command, capability permissions, and async Rust rules for Tauri v2 desktop apps.
budget:
maxKnownTokens: 2800
maxContributorTokens: 1000
unknown: warn
recommendedMcpServers:
- github
rules:
- "Keep `#[tauri::command]` handlers async when doing filesystem, network, or CPU work so they never block the WebView main thread, and return serializable `Result<T, E>` errors instead of panicking."
- "Grant least-privilege Tauri v2 capabilities in `src-tauri/capabilities/` scoped to specific windows and paths; never wildcard filesystem or shell permissions."
- "Wrap all `invoke()` calls in a single typed TypeScript IPC module that mirrors Rust serde payloads so frontend components never hardcode raw command strings."
- "Share mutable backend state via `tauri::State<T>` with explicit locking (`Mutex`/`RwLock`) and keep lock guards dropped across `.await` points."
- "Run `cargo test --manifest-path src-tauri/Cargo.toml`, `cargo clippy --manifest-path src-tauri/Cargo.toml -- -D warnings`, and the frontend typecheck/build before marking any task complete."
References: presets/rust-cargo.yaml, presets/nextjs-typescript.yaml.
Steps
- Fork and clone the repository, then run
npm ci(Node.js 20+). - Create
presets/tauri-rust.yaml. - Validate:
npx vitest run tests/unit/presets.test.ts # loads and schema-validates every presets/*.yaml npx prettier --check presets/tauri-rust.yaml npm test - Optional end-to-end check: run
npm run build, create an empty scratch directory outside the repository, then runnode dist/cli.js preset tauri-rust --with-guidance --project <scratch-dir>. Confirm that<scratch-dir>/ctxwise.budget.yamlcontainsmaxKnownTokens: 2800, then delete the scratch directory. - Open a pull request that links and closes this issue (
Closes #<issue-number>).
Acceptance criteria
-
presets/tauri-rust.yamluses only the keys listed above andnpm testpasses. -
nameistauri-rustand does not duplicate an existing preset or alias inPRESET_ALIASES. - Rules are specific to Tauri v2 + Rust + TypeScript, actionable, and contain no secrets, personal paths, or product claims.
-
npx prettier --check presets/tauri-rust.yamlpasses.
- Dominant language
- TypeScript
- Stars
- 6
- Forks
- 1
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 23
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from FramY2/ctxwise
-
enhancement good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 2 days
-
enhancement good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 2 days
-
enhancement good first issue help wanted
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 2 days
-
Good first issue: add react-router-v7 stack budget preset (React Router v7 + TypeScript + Vite)Possibly taken @ferronatin claimed this today. Openenhancement good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 18/100
Maintainers usually reply within 2 days
-
help wanted
Difficulty 1/5 1-3 hours Newbie friendliness 35/100
Maintainers usually reply within 2 days
Similar issues
-
bug done
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
neavo/LinguaGacha#1124 ·
Maintainers usually reply within 1 day
-
[fullsend] E2E: backstage-microsoft-auth — catalogQuery missing error handler for network errorsPossibly taken @fullsend-ai-coder claimed this today. Opene2e-failure ready-to-code
Difficulty 2/5 Under an hour Newbie friendliness 78/100
redhat-developer/rhdh-plugin-export-overlays#4821 · 1 comment ·
Maintainers usually reply within 1 day
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
brylie/mission-island#225 ·
Maintainers usually reply within 1 day
-
enhancement from-app needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
nightly-labs/openbot#14986 ·
Maintainers usually reply within 1 day
-
status/need-triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
google-gemini/gemini-cli#30412 · 1 comment ·
Maintainers usually reply within 1 day