Coding
PromptBeginner5 minmarkdown
Markdown Converter
Agent skill for markdown-converter
7
- **Build**: `cargo build` or `cargo build --release` (builds the Rust shell)
Sign in to like and favorite skills
cargo build or cargo build --release (builds the Rust shell)cargo run (runs the shell directly)cargo check (fast compilation check without building)cargo test (runs all unit tests)cargo clippy (Rust linter)nix fmt (treefmt with rustfmt, biome, taplo, etc)nix build (builds using Nix flake)git add) before
nix build will pick them up, as Nix only includes tracked files in the
build.nix build .#typescript (builds the TypeScript shell)biome check . (lints with Biome)biome format --write . (formats code)tsc (TypeScript type checking)timeout with ags run src/app.ts to test the shell.use statements, group by std/external/local with blank
lines between groupsanyhow::Result for fallible functions, thiserror
for custom error typessrc/services/ (background workers for system monitoring)src/widgets/src/tiles/src/utils/src/tests/relm4::Worker trait with
Init, Input, and Output types. Use enum variants for output messages
(e.g., BatteryUpdate, BluetoothWorkerOutput). Services handle system
monitoring via D-Bus (zbus), file watching (inotify), or direct system
APIssrc/utils/icons.rs, add new icon names in
build.rsview! macro for
cleaner, more maintainable code. Follow the pattern in src/tiles/clock.rsrelm4::spawn to spawn worker threads, use channels for
communicationanygit log for examples)