← スキル一覧に戻る

new-project
by nathanial
⭐ 0🍴 0📅 2026年1月25日
SKILL.md
name: new-project description: Scaffold a new Lean 4 project in the workspace. Use when creating a new project, library, or application.
New Project Scaffolding
Create a new Lean 4 project with the correct structure for this workspace.
Quick Start
- Determine project category and name
- Create directory structure
- Generate lakefile.lean with GitHub-style dependencies
- Create README.md and CLAUDE.md
- Set up test structure with Crucible
Project Categories
| Category | Purpose | Directory |
|---|---|---|
| graphics | TUI, GPU, widgets, rendering | graphics/ |
| web | HTTP, HTML, templates | web/ |
| network | HTTP client, protocols | network/ |
| data | Databases, data structures | data/ |
| apps | Applications | apps/ |
| util | Utilities, tools | util/ |
| math | Linear algebra, units | math/ |
| audio | Sound synthesis | audio/ |
| testing | Test frameworks | testing/ |
Directory Structure
<category>/<project>/
├── lakefile.lean
├── README.md
├── CLAUDE.md
├── <Project>/
│ └── Basic.lean
├── <Project>.lean
└── Tests/
└── Main.lean
Template: lakefile.lean
import Lake
open Lake DSL
package «projectName» where
leanOptions := #[
⟨`autoImplicit, false⟩
]
@[default_target]
lean_lib «ProjectName» where
roots := #[`ProjectName]
require crucible from git "https://github.com/nathanial/crucible" @ "v0.0.1"
lean_exe tests where
root := `Tests.Main
@[test_driver]
script test do
let result ← IO.Process.run {
cmd := ".lake/build/bin/tests"
args := #[]
}
IO.println result
return 0
Template: Main Library (.lean)
import ProjectName.Basic
Template: Basic.lean
namespace ProjectName
-- Your code here
end ProjectName
Template: Tests/Main.lean
import Crucible
import ProjectName
open Crucible
def main : IO Unit := Crucible.runTests "ProjectName" do
describe "Basic" do
it "works" do
assert true
Template: CLAUDE.md
# <Project Name>
Brief description.
## Build
\`\`\`bash
lake build && lake test
\`\`\`
## Usage
\`\`\`lean
import ProjectName
\`\`\`
Naming Conventions
- Directory: lowercase with hyphens (e.g.,
my-project) - Package: lowercase with hyphens in lakefile
- Library/namespace: PascalCase (e.g.,
MyProject) - GitHub repo: matches directory name (except
chronos→chronos-lean)
After Creation
lake buildto verify structurelake testto run initial testsgit init && git add -A && git commit -m "Initial commit"- Create GitHub repo and push
- Add to workspace CLAUDE.md project list
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です