rust-portable-json-application
Rust portable JSON application.
Skill by Literate AI maintainers <literate-ai-maintainers@users.noreply.github.com>
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/jordanhubbard-rust-portable-json-application
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: productivity
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/rust-portable-json-application
What's inside
- Skill name
rust-portable-json-application- Description
- Rust portable JSON application. Use for Literate AI workflow tasks.
- License
- Apache-2.0
- Metadata
- author: Literate AI maintainers <literate-ai-maintainers@users.noreply.github.com>
- Instructions
- 13 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Rust portable JSON application Implement the selected Rust Flavor as straightforward, auditable Rust 2021 source. Without a selected build-system Flavor, root it at source/main.rs and keep it compilable by one direct rustc invocation. With Cargo selected, use its conventional source/src/main.rs package layout and locked registry dependency rules instead. Put the native generated-test implementation in the location required by the selected build profile, include it unconditionally from the application through an explicit path module, and dispatch the Standard `--litai-test` and `--litai-smoke` modes before ordinary argument parsing without reading source/tests/manifest.json. Do not use `#[cfg(test)]` for this module: the exported runtime artifact must contain it. When Bazel is selected, list both `main.rs` and `tests/litai_test.rs` in every `rust_binary` or `rust_test` that compiles `main.rs`, set `crate_root = "main.rs"` explicitly on each such rule because Bazel cannot infer the root of a multi-file `srcs` list, and recursively declare any other module sources as well. Use conventional multiline rustfmt-style structure rather than minified one-line functions, and re-read the finished source for balanced delimiters, complete match arms, and valid character/string escapes. Without Cargo, use only the Rust standard library and do not create Cargo manifests, fetch crates, or depend on serde. Read one complete UTF-8 JSON arguments array from argv[1], validate every shape and domain invariant used by the specification, perform the general computation rather than matching examples, and write exactly one deterministic JSON value plus a trailing newline to standard output. Implement the small JSON reader and string escaper required by the selected contract inside the generated source; correctly handle JSON whitespace, escapes, Unicode escape pairs, signed integer bounds, nested arrays and objects, and rejection of trailing input. Use owned String as the single error type across parser, environment, application, and main-result chains; convert borrowed literals and system errors explicitly before combining Result values with and_then or the question-mark operator. Keep output field ordering stable where the specification makes exact comparison observable. Send concise failures only to standard error and exit nonzero. For extrema with deterministic string tie-breakers, do not return nested borrowed keys from `min_by_key` or `max_by_key` closures. Compare entries explicitly with `min_by` or `max_by`, or return an owned cloned key, so closure lifetimes are independent and the same source compiles on every supported Rust toolchain. Any helper function that takes more than one reference parameter and returns a borrowed value MUST name an explicit lifetime parameter (`fn f<'a>(x: &'a T, y: &'a U) -> &'a V`) rather than relying on elision; the compiler cannot infer which parameter the return value borrows from once there is more than one reference input, and this is rejected with E0106. Prefer returning an owned value instead of a lifetime-parameterized reference whenever the caller does not need zero-copy access. For internal/private helper functions (not the Component's `main` entry point already covered by `source/tests/manifest.json`) with a non-obvious precondition, postcondition, or invariant relied on by a caller — one whose violation would produce silently wrong output rather than an obvious crash — add an `assert!`/`assert_eq!` at the point the condition must hold, with a message identifying which invariant failed (`assert!(idx < items.len(), "idx out of range in resolve_offset");`). Rust's `assert!` compiles unconditionally into both debug and release builds, so it is the correct default for an invariant whose violation must never silently ship; use `debug_assert!`/`debug_assert_eq!` instead only when the check is O(n) or worse relative to the function's own cost and the function sits on a hot path, since `debug_assert!` compiles out under a release (non-`debug_assertions`) build. Do not use either macro to validate data that originates outside the process (the JSON arguments array from argv[1], file contents) — that is an ordinary domain-invariant failure the function must already report through its `Result<_, String>` chain (per this skill's existing "validate every shape and domain invariant used by the specification" rule), not a programmer-error assertion. Do not add an assertion for an invariant the type system already enforces (e.g. a parameter typed `NonZeroUsize` needs no runtime nonzero check). Even when Cargo is selected, do not add a third-party assertion crate; use only `assert!`/`assert_eq!`/`debug_assert!`/`debug_assert_eq!` from the standard prelude. A contract assertion that panics during `source/tests/litai_test.rs` or `--litai-test` execution is an ordinary generated-test failure, not a new failure channel; repair it the same way any other failing manifest case is repaired before completing generation.
From jordanhubbard/literate-ai, Apache-2.0.
More from jordanhubbard/literate-ai
- 0.638score
regenerate-literate-ai-manager-overview
jordanhubbard
Regenerate and refresh the Literate-AI manager and engineering overview document pair (presentation and narrative) when the framework, CLI, qualification…
SkillAFreshness: A★ 28Claude Code +9 - 0.547score
generate-nvidia-cuda-application
Literate AI maintainers <literate-ai-maintainers@users.noreply.github.com>
Generate and test a C++ CUDA or Python CUDA application from a Literate AI specification after an exact NVIDIA stack has been selected.
SkillAFreshness: A★ 28Claude Code +9 - 0.547score
agent
Literate AI maintainers <literate-ai-maintainers@users.noreply.github.com>
Shared rules for Literate AI agent skills nested under skills/agent.
SkillAFreshness: A★ 28Claude Code +9 - 0.546score
repo-man-build-system
Literate AI maintainers <literate-ai-maintainers@users.noreply.github.com>
NVIDIA repo_man build-entrypoint design.
SkillAFreshness: A★ 28Claude Code +9 - 0.544score
backend-application
Literate AI maintainers <literate-ai-maintainers@users.noreply.github.com>
Fundamental back-end generation indexed off selected language Flavors.
SkillAFreshness: A★ 28Claude Code +9 - 0.544score
docker-container-application
Literate AI maintainers <literate-ai-maintainers@users.noreply.github.com>
Docker container image assembly from selected packaging Flavors, declared entrypoints, and parent-container Flavor closure.
SkillAFreshness: A★ 28Claude Code +9 - 0.544score
frontend-application
Literate AI maintainers <literate-ai-maintainers@users.noreply.github.com>
Fundamental browser front-end generation in JavaScript.
SkillAFreshness: A★ 28Claude Code +9 - 0.544score
language-elixir
Literate AI maintainers <literate-ai-maintainers@users.noreply.github.com>
Recover evidence-backed Elixir and Erlang/OTP behavior when translating Elixir source into Literate AI specifications.
SkillAFreshness: A★ 28Claude Code +9 - 0.544score
mcp-application
Literate AI maintainers <literate-ai-maintainers@users.noreply.github.com>
MCP as a product protocol for generated applications: tools, resources, schema validation, and structured errors.
SkillAFreshness: A★ 28Claude Code +9 - 0.543score
debug-spec-map
Literate AI maintainers <literate-ai-maintainers@users.noreply.github.com>
Debug spec-to-source mapping anchors.
SkillAFreshness: A★ 28Claude Code +9 - 0.542score
bazel-build-system
Literate AI maintainers <literate-ai-maintainers@users.noreply.github.com>
Bazel-preferred build-system design.
SkillAFreshness: A★ 28Claude Code +9 - 0.542score
cmake-build-system
Literate AI maintainers <literate-ai-maintainers@users.noreply.github.com>
CMake build-system design.
SkillAFreshness: A★ 28Claude Code +9
Signals
- Stars
- 28
- Forks
- 10
- Open issues
- 26
- Last commit (this folder)
- Oct 9, 2026 (21 days ago)
- Last release
- Oct 12, 2026 (17 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/jordanhubbard/literate-ai
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Literate AI maintainers <literate-ai-maintainers@users.noreply.github.com>
- 0.547score
generate-nvidia-cuda-application
Literate AI maintainers <literate-ai-maintainers@users.noreply.github.com>
Generate and test a C++ CUDA or Python CUDA application from a Literate AI specification after an exact NVIDIA stack has been selected.
SkillAFreshness: A★ 28Claude Code +9 - 0.547score
agent
Literate AI maintainers <literate-ai-maintainers@users.noreply.github.com>
Shared rules for Literate AI agent skills nested under skills/agent.
SkillAFreshness: A★ 28Claude Code +9 - 0.546score
repo-man-build-system
Literate AI maintainers <literate-ai-maintainers@users.noreply.github.com>
NVIDIA repo_man build-entrypoint design.
SkillAFreshness: A★ 28Claude Code +9 - 0.544score
frontend-application
Literate AI maintainers <literate-ai-maintainers@users.noreply.github.com>
Fundamental browser front-end generation in JavaScript.
SkillAFreshness: A★ 28Claude Code +9 - 0.544score
language-elixir
Literate AI maintainers <literate-ai-maintainers@users.noreply.github.com>
Recover evidence-backed Elixir and Erlang/OTP behavior when translating Elixir source into Literate AI specifications.
SkillAFreshness: A★ 28Claude Code +9 - 0.544score
backend-application
Literate AI maintainers <literate-ai-maintainers@users.noreply.github.com>
Fundamental back-end generation indexed off selected language Flavors.
SkillAFreshness: A★ 28Claude Code +9
Cite this page
rust-portable-json-application skill. Agent Mart. https://agentmart.dev/skills/jordanhubbard-rust-portable-json-application (last updated 2026-10-24)