igmarin/rust-core-skills · Archived

load-context

MANDATORY on an existing crate before code, tests, or review. Read Cargo.toml, toolchain, one neighbor module and its test. Cite paths. Trigger: load context, existing crate, before I code, workspace, rustc version.

First seen Aug 21, 2026

Installation

$ npx skills add igmarin/rust-core-skills --skill load-context

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from igmarin/rust-core-skills.

npx skills add igmarin/rust-core-skills

Browse all from igmarin/rust-core-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

License LICENSE
Default branch main
Open issues 0
Status Archived

Skill metadata

Parsed from SKILL.md frontmatter.

Version1.0.0
LicenseMIT
More metadata
version
1.0.0
user-invocable
true

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,551 B
  • docs SUMMARY.md 235 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 2 installs

SKILL.md

Load context

Goal

Match the crate in front of you, not a generic tutorial.

Inputs / outputs

  • In: project root of the user’s crate
  • Out: Context Summary (template below). Confusion Block if two patterns conflict.

Reads / writes

  • Read: Cargo.toml, Cargo.lock if present (versions only), rust-toolchain.toml if present, src/lib.rs or src/main.rs, one sibling module, one sibling test
  • Write: none

Approval

None. Read-only.

RULES — no exceptions

  1. Do not propose code or tests until the Context Summary is posted
  2. Do not read the whole repo — Cargo.toml + toolchain + one neighbor + its test
  3. Cite real paths
  4. On two conflicting patterns, post a Confusion Block and wait — do not pick silently

Steps

  1. Name the layer in one line (lib API, bin/clap, async task, unsafe, workspace crate).
  2. Read Cargo.toml: edition, rust-version, bins/libs, features, relevant deps.
  3. Read rust-toolchain.toml or note “stable unspecified.”
  4. Open one neighbor that already solves a similar problem, and its test (src/…, tests/…, or #[cfg(test)]).
  5. Post the summary. If two patterns conflict, stop with a Confusion Block — do not pick silently.

Validation

Summary cites real paths. No code in the same message unless the user already approved skipping this skill.

Output

### Context Summary
**Layer:** <lib | bin | workspace member | test | build.rs>
**Cargo:** edition=<…>; rust-version=<… or none>; bins/libs=<…>
**Deps that matter:** <name ver — why>
**Neighbor:** <path> — <one convention>
**Test neighbor:** <path> — <how they assert>
**Drift:** <none | spec vs code>
**Next:** <tdd | rust-essentials>

Confusion Block

### Confusion Block
**Conflict:** <path A> does X; <path B> does Y
**Options:** <A> | <B>
**Question:** which pattern should this change follow?

Wait for an explicit answer. Do not implement.

Pitfalls

❌ ✅
Dump src/ one neighbor
Assume tokio/clap exist read Cargo.toml
Start coding summary first

Integration

Always first on an existing crate. Successor: playbook tdd, then rust-essentials.