Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Rust patterns from the codex-rs workspace v1.0.0

Use this resource to write or review async Rust, command-line tools or tokio services that handle shutdown and errors well

New

  • 597 downloads
  • 218 likes
  • 212 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install codex-rust-practices

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent writes or reviews Rust against 63 rules drawn from the codex-rs workspace: async cancellation, error enums, process isolation, secret hardening and tests with wiremock and insta. Each rule cites the source file where the pattern lives. You get Rust code that shuts down and handles errors cleanly.

Mostly picked by

Updated November 2, 2026

Card for the “Rust patterns from the codex-rs workspace” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • references/: cards on cancellation, bounded channels and spawned tasks
  • references/: cards on panic discipline, secrets and sandboxing

Good fit for

  • Your tokio service does not shut down cleanly when interrupted
  • You are structuring a Rust workspace with several crates

Not for

    Tags

    • rust
    • tokio
    • async
    • cancellation
    • codex

    About

    You say

    “Review this tokio service: tasks are not cancelled on shutdown and the channel is unbounded.”

    Card for the “Rust patterns from the codex-rs workspace” skill

    Skill published by pproenca under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to write or review async Rust, command-line tools or tokio services that handle shutdown and errors well
    3. Review and adjust the result

    Content preview

    Files

    • AGENTS.md15.6 KB
    • gotchas.md2.5 KB
    • LICENSE1.1 KB
    • metadata.json1.1 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • README.md4.8 KB
    • references/_sections.md4.1 KB
    • references/async-abort-on-drop-handle.md2.2 KB
    • references/async-biased-select-for-cancellation.md1.8 KB
    • references/async-bounded-vs-unbounded-channel-split.md1.8 KB
    • references/async-child-cancellation-tokens.md2.2 KB
    • references/async-graceful-then-forceful-cancel.md2 KB
    • references/async-shared-boxfuture-joinhandle.md1.9 KB
    • references/defensive-banned-interpreter-prefixes.md2.1 KB
    • references/defensive-canonicalize-approval-cache-key.md2.2 KB
    • references/defensive-debug-assert-with-early-return.md1.6 KB
    • references/defensive-deny-unwrap-workspace-wide.md1.7 KB
    • references/defensive-fault-isolate-plugin-load.md2.3 KB
    • references/defensive-head-tail-output-buffer.md2.5 KB
    • references/defensive-io-drain-timeout-grandchildren.md2.4 KB
    • references/defensive-recover-poisoned-lock.md2 KB
    • references/defensive-refuse-to-run-unsandboxed.md2 KB
    • references/errors-boundary-error-translator.md2.6 KB
    • references/errors-carry-retry-delay-in-variant.md2 KB
    • references/errors-exhaustive-retryable-match.md2.1 KB
    • references/errors-io-error-with-context-struct.md2.4 KB
    • references/errors-struct-display-payload.md2.4 KB
    • references/errors-tool-call-respond-vs-fatal.md2.4 KB
    • references/errors-transient-permanent-type-split.md1.9 KB
    • references/otel-field-empty-then-record.md2.8 KB
    • references/otel-instrument-at-trace-level.md2.8 KB
    • references/otel-layered-subscribers-env-filter.md2.9 KB
    • references/otel-log-only-vs-trace-safe-targets.md2.5 KB
    • references/otel-w3c-traceparent-propagation.md3.3 KB
    • references/proto-double-option-tri-state.md2.4 KB
    • references/proto-experimental-runtime-gate.md2.5 KB
    • references/proto-internal-vs-wire-error-split.md3 KB
    • references/proto-internally-tagged-rpc-dispatch.md2.6 KB
    • references/proto-removed-feature-tombstone.md1.9 KB
    • references/proto-rename-alias-wire-migration.md1.9 KB
    • references/proto-sse-idle-timeout-terminator.md2.5 KB
    • references/sandbox-argv0-multiplex-binary.md2.1 KB
    • references/sandbox-dev-null-first-missing-mount.md2.4 KB
    • references/sandbox-env-clear-pre-exec.md2.3 KB
    • references/sandbox-resolve-before-allow-dns-rebinding.md2.2 KB
    • references/sandbox-shared-policy-data-model.md2.4 KB
    • references/sandbox-staged-restrictions-re-exec.md2.2 KB
    • references/sandbox-three-layer-network-isolation.md2.7 KB
    • references/secrets-ctor-pre-main-hardening.md2.2 KB
    • references/secrets-manual-debug-elide.md1.9 KB
    • references/secrets-read-into-locked-buffer.md2.3 KB
    • references/testing-atomic-bool-test-opt-in.md2.4 KB
    • references/testing-insta-snapshot-tui-rendering.md2.6 KB
    • references/testing-path-attribute-sibling-tests.md1.9 KB
    • references/testing-paused-runtime-advance.md2.4 KB
    • references/testing-wiremock-sse-fakes.md2.3 KB
    • references/tui-drop-guard-panic-hook-chain.md2.4 KB
    • references/tui-event-broker-pause-resume.md2.5 KB
    • references/tui-paste-burst-state-machine.md2.7 KB
    • references/tui-schedule-frame-coalescer.md2.6 KB
    • references/tui-two-gear-hysteresis-chunking.md2.3 KB
    • references/types-non-exhaustive-public-enums.md2.3 KB
    • references/types-thread-local-raii-serde.md3.1 KB
    • references/types-try-from-newtype-validation.md2.3 KB
    • references/types-unknown-variant-forward-compat.md2.4 KB
    • references/workspace-ban-per-crate-features.md2.2 KB
    • references/workspace-layered-transport-api-core.md2.3 KB
    • references/workspace-lint-config-package.md2.3 KB
    • references/workspace-test-support-as-member-crates.md2.3 KB
    • references/workspace-utils-microcrate-fanout.md2.4 KB
    • SKILL.md14.8 KB

    Origin and licence

    Listed unmodified

    Author
    pproenca
    Source
    github.com/pproenca/dot-skills/tree/cf93c57cac89d6fc3e4194686000411567f5caf3/skills/.experimental/openai-codex-rust-patterns
    Licence
    MIT

    Notice

    « openai-codex-rust-patterns » (pproenca, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.