rust-neckbeard

rust-neckbeard is a skill for Claude Code, Codex from Kevin-Liu-01/Agent-Machines. It costs 71 tokens per session (7,112 once invoked), scanned A, original, MIT.

A set of rules for writing and reviewing Rust code in specified workspaces. It covers error handling, naming, visibility, resource cleanup, file structure, and limits on code size and complexity.

In plain words
What is it for?
Use it when creating, reviewing, or refactoring Rust code in the host-agent, enclave, or Rust package workspaces.
Why use it?
It gives a project-specific standard for keeping Rust code consistent and easier to review. It also flags patterns that can hide failures or make maintenance harder.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when creating, reviewing, or refactoring Rust code in the host-agent, enclave, or Rust package workspaces.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kevin-liu-01/agent-machines/rust-neckbeard
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Kevin-Liu-01/Agent-Machines --skill rust-neckbeard
Clone the repo
git clone --depth 1 https://github.com/Kevin-Liu-01/Agent-Machines

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rust-neckbeard

README.md
[![agentmods](https://agentmods.dev/badge/skills/kevin-liu-01/agent-machines/rust-neckbeard/github.svg)](https://agentmods.dev/skills/kevin-liu-01/agent-machines/rust-neckbeard)
Your own site
<a href="https://agentmods.dev/skills/kevin-liu-01/agent-machines/rust-neckbeard"><img src="https://agentmods.dev/badge/skills/kevin-liu-01/agent-machines/rust-neckbeard/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rust-neckbeard

Your own site · 80×15
<a href="https://agentmods.dev/skills/kevin-liu-01/agent-machines/rust-neckbeard"><img src="https://agentmods.dev/badge/skills/kevin-liu-01/agent-machines/rust-neckbeard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,112 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00071 $0.07112
Opus 5 $0.00036 $0.03556
Sonnet 5 $0.00014 $0.01422
Haiku 4.5 $0.00007 $0.00711

Measured 6d ago against content hash a587dc4d02d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

rust-neckbeard scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

knowledge/skills/rust-neckbeard/SKILL.md · 734 lines

How it starts

The opening of the file, as written. The whole thing — 734 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Rust Neckbeard Style

Canonical reference: style/style.md and docs/src/style/rust.mdx. Enclave crates (apps/cloud/apps/enclave/) are decent (not perfect) examples.

File Header

Every source file opens with the copyright line, then a blank line, then module docs:

// Copyright (c) 2026 Dedalus Labs, Inc. All rights reserved.

//! Module purpose in one sentence.

The copyright line uses // (not //!) because it is not Rustdoc output.

Algorithmic Preamble

For files that implement a non-trivial algorithm or protocol, add a numbered step summary inside the module doc. The reader should be able to reconstruct the high-level flow without reading function bodies.

Not every file needs this -- only files whose control flow would confuse a reader six months from now. Wire types and thin delegation layers skip it.

Hard Limits

  • Functions: 70 lines
  • Files: 500 lines (excluding #[cfg(test)] module)
  • Nesting: 3 levels
  • Arguments: 5 (excluding &self/&mut self)
  • PRs: 200 changed LOC

If a function exceeds 70 lines, extract helpers. If a function exceeds 5 args, bundle related params into a config/context struct.

Implicit Last Expression Is Idiomatic

Rust's implicit last expression is the language's idiom for return values. Clippy's default let_and_return lint warns against let x = expr; x. Do not fight the linter.

// GOOD: idiomatic Rust
fn socket_path(&self, id: &WorkspaceId) -> PathBuf {
    self.socket_dir().join(format!("{id}.sock"))
}

// BAD: triggers clippy::let_and_return
fn socket_path(&self, id: &WorkspaceId) -> PathBuf {
    let path = self.socket_dir().join(format!("{id}.sock"));
    path
}

When a return expression is genuinely complex (multi-line match, long chain with ?), a named binding improves readability. Use judgment, not a blanket rule. If the binding name is just result, you're not adding clarity.

#[must_use] on Pure Functions

Annotate every public or pub(crate) function whose return value would be a bug to ignore. This includes:

Read the full file on GitHub · 734 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 734 lines · 71 tokens per session scan A a587dc4d02d7

Subscribe to this mod's changes

rust-neckbeard is a skill published in the GitHub repository Kevin-Liu-01/Agent-Machines (27 stars, last pushed today), licensed MIT. It adds 71 tokens to every session and 7,112 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

klever-dev

End-to-end Klever blockchain development — smart contracts (Rust/WASM), transaction building (@klever/connect, klever-go-sdk), deployment via ksc + koperator, and on-chain interaction via MCP tools. Use when the task involves KLV, KDA tokens, klv1 addresses, Klever smart contracts, or Klever node/API interaction.

klever-io/mcp-klever-vm · 76 tokens

rust-project

Modern Rust project architecture guide for 2025. Use when creating Rust projects (CLI, web services, libraries). Covers workspace structure, error handling, async patterns, and idiomatic Rust best practices.

majiayu000/spellbook · 43 tokens

move-safety-core-directives

Lightweight core directives for Aptos Move always-required skills — injected into every breadth agent. Full methodology lives in the dedicated Move-Safety Agent.

PlamenTSV/plamen · 36 tokens

windows-compat

Audit and harden this Rust repo (code-graph-mcp) for Windows correctness: path-spelling drift between producers, the 32,767-char command-line cap, index-key mismatches, and path predicates that assume one ecosystem's layout. Use whenever touching code that builds, compares, prints, or stores a filesystem path; that…

sdsrss/code-graph-mcp · 165 tokens

python-debugpy

Debug Python with pdb, breakpoint(), post-mortem inspection, and debugpy remote or headless attach.

EKKOLearnAI/hermes-studio · 26 tokens

domain-cli

A set of design rules for building command-line tools, which are programs operated from a terminal. It covers command options, configuration, errors, output, exit codes, interruption, and shell completion.

moeru-ai/auv · 73 tokens