Skip to content
Back to skills

Lc Show

ASecurity

Show LeetCode problem details and generate Rust template (project)

  • 755 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added February 9, 2026
toolsrust

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill lc-show --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Lc Show?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Lc Show
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-lc-show/badge)](https://www.skillsdirectory.com/skills/majiayu000-lc-show)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: lc-show
description: Show LeetCode problem details and generate Rust template (project)
---

# LeetCode Show

Show problem details and generate Rust template in `problems/` directory.

## Usage

`/lc-show <problem_id>` - Show problem and generate Rust code template

## Instructions

1. Run `leetcode show <problem_id> 2>/dev/null` to display the problem description
2. Show the problem details to the user
3. Run `leetcode show <problem_id> -g -l rust 2>/dev/null` to generate the Rust template
4. Move the generated file to `problems/` directory:
   ```
   mv <problem_id>.<problem-name>.rs problems/
   ```
5. Tell the user the file is ready at `problems/<problem_id>.<problem-name>.rs`

## File Format

```rust
use std::collections::HashMap; // if needed

impl Solution {
    pub fn function_name(...) -> ... {
        // implementation
    }
}
```

Note: `struct Solution;` は含めない(LeetCode側で定義されるため)。rust-analyzer用には build.rs が lib.rs 経由で提供する。

## Commands

- Test: `leetcode test problems/<file>.rs`
- Submit: `leetcode submit problems/<file>.rs`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.