Agent skill
lc-explain
Generate markdown explanation for a LeetCode solution (project)
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/lc-explain
SKILL.md
LeetCode Explain
Generate a markdown explanation for a solved problem.
Usage
/lc-explain <problem_id> - Generate explanation for the problem
Instructions
- Find the solution file in
problems/directory (e.g.,problems/1.two-sum.rs) - Read the solution code
- Create explanation file at
explanation/problems/<problem_id>.<problem-name>.md
Explanation Format
# <problem_id>. <Problem Title>
## 問題
<問題の簡潔な説明>
Input: ... Output: ...
## 解法: <解法名>
### アイデア
<解法の核心を1-2文で>
### アルゴリズム
1. <ステップ1>
2. <ステップ2>
3. ...
### コード解説
```rust
<コードの重要部分を抜粋して解説>
計算量
- 時間: O(?) - <理由>
- 空間: O(?) - <理由>
別解との比較(任意)
| 解法 | 時間 | 空間 |
|---|---|---|
| ... | ... | ... |
## Notes
- 日本語で書く
- Rust の API(HashMap, entry, etc.)の使い方も解説する
- 初心者にもわかりやすく
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?