You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 110ac9d
Browse filesBrowse the repository at this point in the historyBrowse files
chore: strengthen check_skills.py, refresh CLAUDE.md, drop AGENTS.md
check_skills.py gains two checks closing a blind spot found while
upgrading the knowledge base: file-count claims in search guides and
cuda-knowledge/SKILL.md are verified against the filesystem, and every
doc file/dir named in structure trees or backticked paths must exist.
Negative-tested by injecting 4 error classes (all caught, md5-verified
restore). CLAUDE.md: add Development Environment section (remote GPU
server workflow, rsync skill deployment), CI validation note, --gpu
flag, 13.4 refresh. Remove AGENTS.md - it duplicated CLAUDE.md for
Qoder and had drifted out of sync.
Co-Authored-By: Claude Code <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CLAUDE.md
+15-5Lines changed: 15 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
4
4
5
5
## Project Overview
6
6
7
-
A multi-skill monorepo for CUDA kernel development assistance, combining scraped NVIDIA documentation (offline RAG knowledge base) with Agent skills that form an automated profile→analyze→optimize loop for GPU kernels. Designed for AI IDE integration (Claude Code, Trae, Qoder). A parallel `AGENTS.md` provides equivalent guidance for Qoder (qoder.com).
7
+
A multi-skill monorepo for CUDA kernel development assistance, combining scraped NVIDIA documentation (offline RAG knowledge base) with Agent skills that form an automated profile→analyze→optimize loop for GPU kernels. Designed for AI IDE integration (Claude Code, Trae, Qoder).
All three checks run in CI (`.github/workflows/validate.yml`) on every push/PR to `main` — run them locally before committing skill or documentation changes.
169
+
170
+
## Development Environment
171
+
172
+
-**No local NVIDIA GPU** — the dev machine is macOS. `nvcc`, `benchmark.py`, and NCU/nsys profiling run on a remote Linux GPU server; the pre-approved `sshpass`/`scp`/`rsync` commands in `.claude/settings.local.json` hold the connection details. Typical flow: copy the kernel + scripts to the server, benchmark/profile there, pull generated reports back into the repo (e.g. `examples/ncu-profile/`) for analysis.
173
+
-**Skills deploy via rsync** — `skills/` in this repo is the source of truth; the copies under `~/.claude/skills/` are deployed with `rsync -av skills/<skill-name>/ ~/.claude/skills/<skill-name>/`. Re-run the rsync after editing a skill here, or Claude Code keeps using the stale deployed copy.
174
+
165
175
## Architecture
166
176
167
177
### Skills Pipeline (skills/)
@@ -178,7 +188,7 @@ cuda-optimizer (orchestrator)
178
188
└── cuda-code-generator → generate/rewrite .cu files with optimizations
179
189
```
180
190
181
-
`cuda-knowledge` (~1420 markdown files) provides API reference based on CUDA Toolkit 13.3 (PTX ISA 9.3, cuBLAS 13.3, Runtime/Driver/Math API 13.3); `cuda-samples` (SKILL.md ~13 KB, 10 reference files 48 KB; ~50 curated entries) provides concrete working code patterns from official NVIDIA samples with GitHub permalinks and key snippets. Both follow progressive disclosure: lightweight SKILL.md stays in context, detailed references load on demand. All three action skills ground their work in both to reduce hallucination. The optimizer drives this loop: **benchmark → evaluate exit conditions → NCU profile → implement optimizations → repeat** until performance converges (<2% improvement over 2 consecutive rounds).
191
+
`cuda-knowledge` (~1570 markdown files) provides API reference based on CUDA Toolkit 13.4 (PTX ISA 9.4, cuBLAS 13.4, Runtime/Driver/Math API 13.4); `cuda-samples` (SKILL.md ~13 KB, 10 reference files 48 KB; ~50 curated entries) provides concrete working code patterns from official NVIDIA samples with GitHub permalinks and key snippets. Both follow progressive disclosure: lightweight SKILL.md stays in context, detailed references load on demand. All three action skills ground their work in both to reduce hallucination. The optimizer drives this loop: **benchmark → evaluate exit conditions → NCU profile → implement optimizations → repeat** until performance converges (<2% improvement over 2 consecutive rounds).
182
192
183
193
### Kernel Interface Convention
184
194
@@ -210,8 +220,8 @@ A single-file script with three scraper classes for different NVIDIA doc formats
210
220
211
221
```text
212
222
skills/
213
-
cuda-knowledge/references/ # ~1420 .md files, CUDA Toolkit 13.3 (PTX ISA 9.3)
0 commit comments