Repository navigation
Add CCCL workflow skills and helper agents - #8948
alliepiper wants to merge 9 commits into
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
/ok to test 11b0173 |
This comment has been minimized.
This comment has been minimized.
Establishes a single source-of-truth bootstrap (AGENTS.md) and a
catalogue of 14 skills + 4 agents under `.agent/{skills,agents}/`
that route by user intent. Both Claude Code and Codex resolve the
same files via the `.claude/{skills,agents}` symlinks.
Skills:
- cccl, cccl-agent-impl - orientation + concept primer
- cccl-clarify - decision-point escalation
- cccl-commit - interactive commit prep
- cccl-pr - PR lifecycle (open / edit / comment / push + CI)
- cccl-resplit-branch - rebase + resplit commit history
- cccl-triage-pr - diagnose CI failures on a PR
- cccl-triage-nightly - diagnose CI failures in the latest nightly
- cccl-ci, cccl-ci-benchmarks, cccl-bisect, cccl-devcontainers,
cccl-build-and-test-targets, cccl-cpp-builds, cccl-python,
cccl-sass-diff, cccl-libcudacxx-style - CI / build / test references
Agents (haiku, non-interactive):
- cccl-ok-to-test - SHA-verified `/ok to test` poster
- cccl-fetch-ci-failures - paginated job-failure TSV
- cccl-summarize-job-log - 5-10 line log digest
- cccl-ci-overrides - matrix-override YAML + skip-tag generation
Bootstrap:
- AGENTS.md - minimal routing README pointing at the `cccl` skill
- CLAUDE.md - symlink to AGENTS.md
- .claude/settings.json - read-only allow-list (gh / git read forms,
rg / grep / jq / sed -n, ls / cat / head / tail / wc / file / stat,
mkdir -p /tmp/claude/*) plus SessionStart hook surfacing `cccl`.
Mutating ops intentionally not allow-listed - they prompt every use.
Also renames `.agent/skills/libcudacxx-style/` to
`.agent/skills/cccl-libcudacxx-style/` to match the cccl-* prefix
convention across the rest of the catalogue.
Generated when the agent venv-installs pre-commit per AGENTS.md's "Pre-commit" section. Untracked venvs noise up `git status` and risk accidental staging.
Pre-commit hooks like pretty-format-json, end-of-file-fixer, trim-trailing-whitespace, and ruff format rewrite files in place. On failure with auto-fixes applied, the skill now routes each fixed file through cccl-clarify (re-stage / revert / discuss) - the same flow as the per-chunk action menu - rather than bulk-staging the fixes. Also notes the venv-install fallback for when pre-commit is absent from the host.
Top-level overview of the cccl-* skill and agent framework: purpose, end-to-end prompt examples, approval gates, and detailed example prompts per workflow area. Sits at .agent/skills/cccl-README.md as a sibling to the cccl/ entry skill. [skip-matrix][skip-vdc][skip-docs][skip-tpt]
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (2)
📝 WalkthroughSummary by CodeRabbit
Walkthroughimportant: Adds new CCCL skills/agents documentation, three CI leaf agents, CLAUDE startup config and symlinks, rewrites AGENTS.md, updates .gitignore and CI ignore patterns, and expands reference indexes and how-tos across CI/build/test/infra/libraries. ChangesCCCL docs, agents, and CI triage plumbing
Assessment against linked issues
Possibly related PRs
Suggested labelssuggestion: Suggested reviewers
|
There was a problem hiding this comment.
Actionable comments posted: 4
Note
Due to the large number of review comments, Critical, Major severity comments were prioritized as inline comments.
🟡 Minor comments (43)
.agent/agents/cccl-ci-fetch-failures.md-35-37 (1)
35-37:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winsuggestion: Add explicit fence languages to all code blocks to satisfy markdownlint and keep renderers/tooling consistent (
bashfor commands,tsvortextfor sample row/output).Also applies to: 43-46, 59-61, 67-78
.agent/agents/cccl-ci-overrides.md-66-85 (1)
66-85:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winsuggestion: The output example uses nested triple-backtick fences and one outer fence without a language, which will render incorrectly in many markdown parsers. Use a single fenced block with language (for example
text) and keep the inner YAML as indented text or switch outer fence length..agent/skills/cccl-bench/references/ci-bench-request.md-22-24 (1)
22-24:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winsuggestion: Add a fence language for the commit-message snippet (for example
text) to satisfy markdownlint MD040 and keep docs tooling clean..agent/skills/cccl-bench/references/nvbench-template.md-58-60 (1)
58-60:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winsuggestion: Add a language identifier to the fenced block at Line 58 to satisfy markdownlint MD040 (e.g.,
```text)..agent/skills/cccl-bisect/SKILL.md-30-38 (1)
30-38:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winsuggestion: Add language identifiers to both fenced command blocks at Line 30 and Line 52 (use
bash) to fix MD040.Also applies to: 52-61
.agent/skills/cccl-bisect/references/git_bisect_usage.md-14-46 (1)
14-46:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winsuggestion: Add a language identifier to the fenced CLI help block at Line 14 (e.g.,
textorbash) to satisfy MD040..agent/skills/cccl-bisect/references/git_bisect_usage.md-110-111 (1)
110-111:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winsuggestion: At Line 110, prefer
GitHub Actionscasing for product-name consistency in user-facing docs..agent/skills/cccl-build/SKILL.md-28-32 (1)
28-32:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winsuggestion: Add language identifiers (
bash) to fenced command blocks at Line 28, Line 49, and Line 60 to resolve MD040.Also applies to: 49-54, 60-62
.agent/skills/cccl-build/references/arch-flag.md-16-20 (1)
16-20:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winimportant: add a language identifier to this fenced block to satisfy markdownlint MD040 (for example
bash)..agent/skills/cccl-build/references/build_and_test_targets_usage.md-15-33 (1)
15-33:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winimportant: specify a fence language for this usage block (for example
textorbash) so MD040 passes consistently..agent/skills/cccl-build/references/build_common.sh_usage.md-15-38 (1)
15-38:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winimportant: both fenced blocks need explicit language tags to satisfy markdownlint MD040; use
textfor usage/layout blocks if they are not executable snippets.Also applies to: 73-79
.agent/skills/cccl-c/SKILL.md-18-33 (1)
18-33:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winimportant: add a language tag to this fenced tree block (for example
text) to avoid MD040 lint failures..agent/skills/cccl-cmake/SKILL.md-19-21 (1)
19-21:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winimportant: add explicit fence languages (
```bash) to these code blocks to satisfy MD040 and avoid markdown lint failures in docs checks.Also applies to: 25-27, 77-82
.agent/skills/cccl-commit/references/commit-message-rules.md-14-21 (1)
14-21:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winimportant: add a fence language (for example,
```text) to this code block to satisfy MD040 in markdown linting..agent/skills/cccl-commit/references/pre-commit-autofix.md-9-12 (1)
9-12:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winimportant: add a fence language (for example,
```bash) to this command block to satisfy MD040 in markdown linting..agent/skills/cccl-cub/SKILL.md-83-85 (1)
83-85:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winimportant: Add a language tag to the fenced block at Line 83 to satisfy markdown lint and keep docs tooling clean.
-``` +```cpp // %PARAM% TEST_DIM_X dimx 1:7:32:65:128</blockquote></details> <details> <summary>.agent/skills/cccl-cudax/SKILL.md-17-18 (1)</summary><blockquote> `17-18`: _⚠️ Potential issue_ | _🟡 Minor_ | _⚡ Quick win_ important: Line 17 conflicts with the referenced docs index (Line 12 in `.agent/skills/cccl-cudax/references/docs.md`) that states C++20. Align this requirement in one place, otherwise users may run unsupported compiler modes. </blockquote></details> <details> <summary>.agent/skills/cccl-devcontainer/SKILL.md-28-32 (1)</summary><blockquote> `28-32`: _⚠️ Potential issue_ | _🟡 Minor_ | _⚡ Quick win_ suggestion: Add explicit fence languages to satisfy markdownlint (MD040), e.g. use ```bash for both command blocks. Also applies to: 40-42 </blockquote></details> <details> <summary>.agent/skills/cccl-devcontainer/references/launch_usage.md-15-29 (1)</summary><blockquote> `15-29`: _⚠️ Potential issue_ | _🟡 Minor_ | _⚡ Quick win_ suggestion: Add a language tag to this fenced usage block (```text is fine) to clear MD040. </blockquote></details> <details> <summary>.agent/skills/cccl-devcontainer/references/launch_usage.md-5-5 (1)</summary><blockquote> `5-5`: _⚠️ Potential issue_ | _🟡 Minor_ | _⚡ Quick win_ suggestion: The subdirectory placeholder format looks inconsistent with the generated naming shown elsewhere (`cuda13.2-gcc14`); use a consistent pattern like `.devcontainer/cudaX.Y-<compiler>/` to avoid misrouting users. </blockquote></details> <details> <summary>.agent/skills/cccl-devcontainer/references/regenerate.md-21-23 (1)</summary><blockquote> `21-23`: _⚠️ Potential issue_ | _🟡 Minor_ | _⚡ Quick win_ suggestion: Add a fence language (```bash) for the regeneration command block to satisfy MD040 and keep lint clean. </blockquote></details> <details> <summary>.agent/skills/cccl-docs/SKILL.md-15-32 (1)</summary><blockquote> `15-32`: _⚠️ Potential issue_ | _🟡 Minor_ | _⚡ Quick win_ suggestion: Add explicit fence languages for these three code blocks (e.g., ```text for tree output and ```bash for commands) to resolve MD040. Also applies to: 40-42, 56-59 </blockquote></details> <details> <summary>.agent/skills/cccl-infra/SKILL.md-46-49 (1)</summary><blockquote> `46-49`: _⚠️ Potential issue_ | _🟡 Minor_ | _⚡ Quick win_ suggestion: Add a language tag (```bash) on this fenced command block to fix MD040. </blockquote></details> <details> <summary>.agent/skills/cccl-infra/references/release-cut.md-11-13 (1)</summary><blockquote> `11-13`: _⚠️ Potential issue_ | _🟡 Minor_ | _⚡ Quick win_ important: add a blank line before the table so markdownlint MD058 passes consistently in linted environments. ```diff Files updated by `ci/update_version.sh`: + | File | Field | |--------------------------------------------|-----------------| | `cccl-version.json` | `full`, `major`, `minor`, `patch` |.agent/skills/cccl-pr/SKILL.md-30-34 (1)
30-34:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winsuggestion: Add fence languages to all code blocks flagged by markdownlint (MD040) to keep docs lint-clean in CI.
bashfits these command/output snippets.As per coding guidelines "For CI and build scripts, focus on ... clear failures", and lint-clean docs avoid noisy/unclear CI failures in this workflow skill.
Also applies to: 46-51, 73-75, 96-102, 106-108
.agent/skills/cccl-precommit/SKILL.md-41-44 (1)
41-44:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winimportant: add fence languages to the four command blocks (e.g.,
bash) to satisfy markdownlint MD040 and keep docs lint-clean.Also applies to: 53-55, 59-61, 95-98
.agent/skills/cccl-python/SKILL.md-17-19 (1)
17-19:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winimportant: add explicit fence languages (
bashfor install,textfor tree layout) so markdown linting passes consistently.Also applies to: 35-41
.agent/skills/cccl-resplit-branch/SKILL.md-27-29 (1)
27-29:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winimportant: add
bashfence identifiers to each git command block to clear MD040 and keep docs CI green.Also applies to: 35-38, 56-58, 72-74
.agent/skills/cccl-test/SKILL.md-28-33 (1)
28-33:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winimportant: add fence languages (
bash) for the three command examples to satisfy MD040 and avoid markdownlint failures.Also applies to: 39-44, 63-65
.agent/skills/cccl-thrust/SKILL.md-61-68 (1)
61-68:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winsuggestion: add a language tag to this fenced block (e.g.,
cpp) so markdownlint MD040 doesn’t fail docs lint..agent/skills/cccl-thrust/references/execution-policies.md-5-14 (1)
5-14:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winsuggestion: specify a fence language for this hierarchy block (e.g.,
text) to satisfy MD040 and keep docs lint clean..agent/skills/cccl-triage/SKILL.md-42-44 (1)
42-44:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winsuggestion: add explicit language identifiers to both fenced blocks (
bashfor thegh apicommand block andtextfor the table block) to resolve MD040 warnings.Also applies to: 57-62
.agent/skills/cccl-triage/references/common.md-24-32 (1)
24-32:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winsuggestion: add a language tag (likely
text) to this fenced output-shape block to satisfy markdownlint MD040..agent/skills/cccl-triage/references/nightly.md-7-9 (1)
7-9:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winsuggestion: annotate this fenced command block with
bashso markdownlint MD040 passes..agent/skills/cccl-triage/references/pr.md-7-9 (1)
7-9:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winimportant: add a language to the fenced block to satisfy markdownlint MD040.
Use
bashfor this command snippet..agent/skills/cccl_detail-ci/references/inspect-changes.md-36-40 (1)
36-40:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winimportant: specify fence languages for all three code blocks to fix markdownlint MD040.
Suggested tags:
text(dependency propagation pseudo-table),bashorini(FULL_BUILD/LITE_BUILD output), andtext(public/internal split sketch).Also applies to: 54-57, 81-84
.agent/skills/cccl_detail-ci/references/inspect_changes_usage.md-14-25 (1)
14-25:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winimportant: add language identifiers to both fenced code blocks to satisfy markdown lint (
textis enough for the usage/output snippets).Also applies to: 40-43
.agent/skills/cccl_detail-ci/references/matrix-expansion.md-63-66 (1)
63-66:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winimportant: specify a language for this fenced block (
bashfits these command examples) to avoid MD040 lint warnings..agent/skills/cccl_detail-cmake/references/arch-flags.md-22-28 (1)
22-28:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winimportant: mark this fenced block with a language (use
textfor the call-chain snippet) to satisfy MD040..agent/skills/cccl_detail-cmake/references/downstream-consumers.md-53-62 (1)
53-62:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winimportant: add a language tag to this fenced block (
text) to clear MD040 and keep docs lint-clean..agent/skills/cccl_detail-test-params/SKILL.md-19-21 (1)
19-21:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winsuggestion: add a language tag to this fenced block to satisfy markdownlint MD040 and keep docs lint-clean (for example,
cpp)..claude/settings.json-63-63 (1)
63-63:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winimportant: this startup context appears self-contradictory and likely references a missing skill (
cccl-agent-impl). If that skill does not exist, new sessions will be routed to a dead instruction path; align this text to an existing entry skill only.AGENTS.md-26-47 (1)
26-47:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winimportant: Specify a language for the fenced tree block to satisfy markdown lint.
The fenced block at Line 26 should include a language (for example
text) to satisfy MD040 and avoid docs-lint noise.-``` +```text cccl/ ├── .agent/skills/ <- canonical skills (one dir per skill) ... └── CMakePresets.json</blockquote></details> </blockquote></details> --- <details> <summary>ℹ️ Review info</summary> <details> <summary>⚙️ Run configuration</summary> **Configuration used**: Path: .coderabbit.yaml **Review profile**: CHILL **Plan**: Enterprise **Run ID**: `e3a2da1b-ba64-4121-91f0-38d7315a255a` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between f358f08ba8496cfe9c73c0f86767656108568e07 and 57f1c9b97244413df0223b2e62e007d40bc0630e. </details> <details> <summary>📒 Files selected for processing (119)</summary> * `.agent/agents/cccl-ci-fetch-failures.md` * `.agent/agents/cccl-ci-overrides.md` * `.agent/agents/cccl-ci-summarize-job-log.md` * `.agent/skills/cccl-README.md` * `.agent/skills/cccl-bench/SKILL.md` * `.agent/skills/cccl-bench/references/ci-bench-request.md` * `.agent/skills/cccl-bench/references/docs.md` * `.agent/skills/cccl-bench/references/local-run.md` * `.agent/skills/cccl-bench/references/nvbench-template.md` * `.agent/skills/cccl-bench/references/tools.md` * `.agent/skills/cccl-bench/references/tuning.md` * `.agent/skills/cccl-bisect/SKILL.md` * `.agent/skills/cccl-bisect/references/docs.md` * `.agent/skills/cccl-bisect/references/git_bisect_usage.md` * `.agent/skills/cccl-bisect/references/tools.md` * `.agent/skills/cccl-build/SKILL.md` * `.agent/skills/cccl-build/references/arch-flag.md` * `.agent/skills/cccl-build/references/build_and_test_targets_usage.md` * `.agent/skills/cccl-build/references/build_common.sh_usage.md` * `.agent/skills/cccl-build/references/docs.md` * `.agent/skills/cccl-build/references/tools.md` * `.agent/skills/cccl-c/SKILL.md` * `.agent/skills/cccl-c/references/tools.md` * `.agent/skills/cccl-ci/SKILL.md` * `.agent/skills/cccl-ci/references/docs.md` * `.agent/skills/cccl-ci/references/tools.md` * `.agent/skills/cccl-clarify/SKILL.md` * `.agent/skills/cccl-clarify/references/breakdown-flow.md` * `.agent/skills/cccl-cmake/SKILL.md` * `.agent/skills/cccl-commit/SKILL.md` * `.agent/skills/cccl-commit/references/commit-message-rules.md` * `.agent/skills/cccl-commit/references/pre-commit-autofix.md` * `.agent/skills/cccl-commit/references/walkthrough-rules.md` * `.agent/skills/cccl-cub/SKILL.md` * `.agent/skills/cccl-cub/references/docs.md` * `.agent/skills/cccl-cub/references/tools.md` * `.agent/skills/cccl-cub/references/tuning-policies.md` * `.agent/skills/cccl-cudax/SKILL.md` * `.agent/skills/cccl-cudax/references/docs.md` * `.agent/skills/cccl-cudax/references/tools.md` * `.agent/skills/cccl-devcontainer/SKILL.md` * `.agent/skills/cccl-devcontainer/references/docs.md` * `.agent/skills/cccl-devcontainer/references/launch_usage.md` * `.agent/skills/cccl-devcontainer/references/regenerate.md` * `.agent/skills/cccl-devcontainer/references/tools.md` * `.agent/skills/cccl-docs/SKILL.md` * `.agent/skills/cccl-docs/references/doxygen-breathe-gotchas.md` * `.agent/skills/cccl-infra/SKILL.md` * `.agent/skills/cccl-infra/references/compiler-bump.md` * `.agent/skills/cccl-infra/references/ctk-bump.md` * `.agent/skills/cccl-infra/references/docs.md` * `.agent/skills/cccl-infra/references/project-add.md` * `.agent/skills/cccl-infra/references/release-cut.md` * `.agent/skills/cccl-infra/references/tools.md` * `.agent/skills/cccl-libcudacxx/SKILL.md` * `.agent/skills/cccl-libcudacxx/references/docs.md` * `.agent/skills/cccl-libcudacxx/references/style/headers.md` * `.agent/skills/cccl-libcudacxx/references/style/macros.md` * `.agent/skills/cccl-libcudacxx/references/style/naming.md` * `.agent/skills/cccl-libcudacxx/references/style/templates.md` * `.agent/skills/cccl-libcudacxx/references/style/testing.md` * `.agent/skills/cccl-libcudacxx/references/style/visibility.md` * `.agent/skills/cccl-libcudacxx/references/tools.md` * `.agent/skills/cccl-pr/SKILL.md` * `.agent/skills/cccl-precommit/SKILL.md` * `.agent/skills/cccl-python/SKILL.md` * `.agent/skills/cccl-python/references/docs.md` * `.agent/skills/cccl-python/references/tools.md` * `.agent/skills/cccl-resplit-branch/SKILL.md` * `.agent/skills/cccl-sass-diff/SKILL.md` * `.agent/skills/cccl-test/SKILL.md` * `.agent/skills/cccl-test/references/docs.md` * `.agent/skills/cccl-test/references/tools.md` * `.agent/skills/cccl-thrust/SKILL.md` * `.agent/skills/cccl-thrust/references/docs.md` * `.agent/skills/cccl-thrust/references/execution-policies.md` * `.agent/skills/cccl-thrust/references/tools.md` * `.agent/skills/cccl-triage/SKILL.md` * `.agent/skills/cccl-triage/references/common.md` * `.agent/skills/cccl-triage/references/nightly.md` * `.agent/skills/cccl-triage/references/pr.md` * `.agent/skills/cccl/SKILL.md` * `.agent/skills/cccl/references/docs.md` * `.agent/skills/cccl/references/skills-and-agents.md` * `.agent/skills/cccl_detail-ci/SKILL.md` * `.agent/skills/cccl_detail-ci/references/copy-pr-bot.md` * `.agent/skills/cccl_detail-ci/references/docs.md` * `.agent/skills/cccl_detail-ci/references/inspect-changes.md` * `.agent/skills/cccl_detail-ci/references/inspect_changes_usage.md` * `.agent/skills/cccl_detail-ci/references/matrix-expansion.md` * `.agent/skills/cccl_detail-ci/references/tools.md` * `.agent/skills/cccl_detail-cmake/SKILL.md` * `.agent/skills/cccl_detail-cmake/references/arch-flags.md` * `.agent/skills/cccl_detail-cmake/references/custom-commands.md` * `.agent/skills/cccl_detail-cmake/references/downstream-consumers.md` * `.agent/skills/cccl_detail-cpp-macros/SKILL.md` * `.agent/skills/cccl_detail-cpp-macros/references/compiler-detection.md` * `.agent/skills/cccl_detail-cpp-macros/references/diagnostics.md` * `.agent/skills/cccl_detail-cpp-macros/references/visibility-abi.md` * `.agent/skills/cccl_detail-devcontainer-matrix/SKILL.md` * `.agent/skills/cccl_detail-devcontainer-matrix/references/tools.md` * `.agent/skills/cccl_detail-examples/SKILL.md` * `.agent/skills/cccl_detail-examples/references/docs.md` * `.agent/skills/cccl_detail-github/SKILL.md` * `.agent/skills/cccl_detail-github/references/docs.md` * `.agent/skills/cccl_detail-release/SKILL.md` * `.agent/skills/cccl_detail-release/references/docs.md` * `.agent/skills/cccl_detail-test-params/SKILL.md` * `.agent/skills/libcudacxx-style/SKILL.md` * `.claude/agents` * `.claude/settings.json` * `.claude/skills` * `.claude/skills/libcudacxx-style/SKILL.md` * `.claude/skills/libcudacxx-test/SKILL.md` * `.gitignore` * `AGENTS.md` * `CLAUDE.md` * `CLAUDE.md` * `ci/project_files_and_dependencies.yaml` </details> <details> <summary>💤 Files with no reviewable changes (3)</summary> * .claude/skills/libcudacxx-style/SKILL.md * .agent/skills/libcudacxx-style/SKILL.md * .claude/skills/libcudacxx-test/SKILL.md </details> </details> <!-- This is an auto-generated comment by CodeRabbit for review status -->
[skip-matrix][skip-vdc][skip-tpt]
|
@coderabbitai We don't run markdown linters. Please don't spam about guidelines we don't actually enforce. |
|
Tip For best results, initiate chat on the files or code changes. Understood. I'll stop flagging markdown style issues in this repository. (ᵔᴥᵔ)🐇 ✏️ Learnings added
|
jrhemstad
left a comment
There was a problem hiding this comment.
I took a look through many of the skills and I have some fundamental questions about what goes in documentation vs skills. My core concern is drift between what our skills say and what our documentation says. Any agent will start with a copy of our docs available, so skills should be something net new on top of the docs that would go beyond something that would be appropriate to put into docs.
|
To start, I'd like to see a reference doc added to give maintainers an entrypoint into understanding what skills we have available and how to use them. My preference would be to add a "How to use CCCL maintainer skills" added under Maintainer Docs > How Tos |
@jrhemstad The point is to avoid having the agent load the full docs into memory to get basic usage info for every-day tasks. The skills are organized into progressively loaded "agent cheat sheets" for the CLI utilities that we want to encourage it to use. It saves significant context over long sessions to not clutter the initial context with repeated searches for the same docs on build/test etc, and cuts down on tool calls / startup time as well. It also includes references to where the relevant docs, scripts, and config files are for each subject, so more detailed info can be easily looked up if needed. We can revise where the line is between "cheat sheet" and "lookup later", but there's value in teaching it the progressively loaded skills over just saying "here's our docs; read them and figure it out yourself" every time. The drift concern isn't trivial, but it's also something that you can just ask an agent to review and update periodically. Same with moving agent skill info into docs. Once these are merged, you can easily ask claude to sort these out however you please. I cannot guess how you want these structured, if you have strong opinions that block merging I encourage a followup commit that addresses them. I vote for merging this now and shuffling these around to taste later. It would be very helpful to have these available to other development work while sorting this out. |
https://github.com/alliepiper/cccl/blob/2001aeee140e4aa2f13f9ef558953a3eb665f424/.agent/skills/cccl-README.md has this information already. I can push a fix to the pre-commit that moves it to the docs. |
| description: "Fetch failed jobs from a CCCL CI run — given a PR# or run ID, returns TSV of `<job-id>\\t<full-name>\\t<grouping-hint>` at a caller-specified path. Handles `gh api --paginate` slurp gotcha. Non-interactive, read-only. Called by `cccl-triage`." | ||
| model: haiku | ||
| color: cyan | ||
| tools: Bash, Read |
There was a problem hiding this comment.
Can you make any skills like this that take a conceptual argument have the argument-hint metadata? It's not part of the agentskills.io standard, but it is recognized by claude and most agent harnesses.
There are various conventions for placeholders for the arguments; claude officially supports $name, but I tend to use <name>.
Use syntax to denote defaults (foo=5), optional arguments ([foo=<N>], etc.
I would also suggest always having a section that enumerates the arguments.
There was a problem hiding this comment.
I think that'd make a great followup PR!
| tools: Bash, Read | ||
| --- | ||
|
|
||
| You are a non-interactive read-only `cccl-ci-fetch-failures` agent. The caller has a PR number or workflow run ID and wants a TSV of failed jobs for downstream summarization or override-matrix generation. You never modify files beyond writing the named output TSV and a raw-API scratch file, never call `AskUserQuestion`, never spawn subagents. |
There was a problem hiding this comment.
Instead of forbidding AskUserQuestion explicitly (something that is specific to particular harnesses), describe the behavior you don't want "never use a tool that queries the human interactively for input".
I think it's better to have a separate constraints section that enumerates:
- What the agent can do.
- What the agent cannot do.
- What the agent should ask permission to do.
| ### 3. Extract failures | ||
|
|
||
| ``` | ||
| jq -s -r '[.[].jobs[] | select(.conclusion == "failure")] | .[] | [.id, .name] | @tsv' \ |
There was a problem hiding this comment.
Put this into a script inside of the skill. Complex scripting is an easy thing for agents to trip up on, even when you give them verbatim examples.
| @@ -0,0 +1,92 @@ | |||
| --- | |||
There was a problem hiding this comment.
Why structure these as agents instead of skills?
There was a problem hiding this comment.
They read a 20MB+ logs and output about 20 lines. Rather do that in haiku (or eventually, a script as a first pass)
| ... | ||
|
|
||
| output_path: <output> | ||
| ``` |
There was a problem hiding this comment.
I would add a script that verifies the "schema" of output to ensure it is correct and consistent; then ask the agent/skill to check the output with the script.
There was a problem hiding this comment.
I would
You may! 😄
|
|
||
| ## Hard prohibitions | ||
|
|
||
| - No `AskUserQuestion`. Not available; not applicable. |
There was a problem hiding this comment.
The easiest way to prevent this is to just run the harness in non-interactive mode. I do agree it's good to have a rule about this though.
There was a problem hiding this comment.
We can def soften those -- the goal is to route things through the /cccl-clarify skill instead of having to decide "end turn with question? use harness prompt as a one-off? is the question already in my context? (I found this greatly improves interactions with claude as a personal skill, esp when combined with other skills)
| @@ -0,0 +1,92 @@ | |||
| --- | |||
There was a problem hiding this comment.
I would structure this as a plugin (see https://github.com/evo-hq/evo/tree/main/plugins/evo for an example).
That gives you namespacing (e.g. /cccl:bench instead of /cccl-bench) and makes it easier for someone to install these skills/agents into their harness if they're working outside of the repo.
It also helps with version management, which can be important as some harnesses "cache" skills and the cache can get stale.
There was a problem hiding this comment.
I considered plugins and the complexity didn't seem worthwhile. If you'd like to take that on, please go ahead :)
|
Here's the updated users guide, rewritten toward a more specific audience: |
| The skills encode entry points and project conventions — they do not | ||
| replace engineering judgment. A skill knows that ``cccl-infra`` regenerates | ||
| devcontainers from ``ci/matrix.yaml`` rather than hand-editing each | ||
| ``devcontainer.json``; it does not know whether bumping CTK 13.3 is the | ||
| right move this week. That part stays with you. |
There was a problem hiding this comment.
suggestion: This is an example of overly-verbose-LLM noise that I don't think is needed in this document.
There was a problem hiding this comment.
It's fair expectation setting IMO. Agent capabilities are genuinely surprising, and I don't know if new users will intuitively understand where the line is.
| For a new session, the routine is: | ||
|
|
||
| 1. Have the agent load ``cccl`` first — it carries the intent → skill | ||
| routing table. This should happen automatically after the first prompt, | ||
| but can be invoked manually if needed using the client's skill load command | ||
| (eg ``/cccl`` on Claude). | ||
| 2. Describe what you're actually trying to do, in plain language. | ||
| ``"Triage PR #9001"``, ``"resplit this branch"``, ``"bisect this | ||
| segfault"`` are all the agent needs to pick the right entry. | ||
| 3. Approve the mutating actions (commits, pushes, PR writes, CI | ||
| triggers) when the skill asks. |
There was a problem hiding this comment.
This is more what I was looking for for a How To guide. I think this document could effectively just be boiled down to something that looks more like this.
There was a problem hiding this comment.
Then this boils down to "we have agent skills that do stuff" and I'd question the point of this doc entirely.
| @@ -0,0 +1,313 @@ | |||
| CCCL Agent Skills | |||
There was a problem hiding this comment.
suggestion: These docs are currently a bit too verbose and sprinkled with LLM-y over explanation or conversation that just adds visual noise. I'd like to see it tightened up and made more focused.
Part of the problem is that this doc attempts to be both a reference guide and a how-to document.
A reference document answers "What skills are available and what do they do"
A how-to document answers "How do I use the skills to accomplish a task"
More importantly, it's not clear to me, does someone using these skills need to even know about each and every individual skill?
For example, consider one of the example prompts and explanations
"PR #8965 is failing in CI on the libcudacxx jobs for cuda13.2/gcc14.
Figure out why, fix it, commit with override tags so we don't re-run
the green half of the matrix, push, mark ready."
cccl-triage(cluster CI failures and summarize representatives) →
you engineer the fix →cccl-ci-overrides(minimal override
snippet) →cccl-commit(chunk walk, optional test gate, message
draft) →cccl-pr(push,/ok to test, ready). The fix arrives
with an override that re-runs only the jobs that matter.
That prompt doesn't say anything about what skills to use nor even guarantees the agent will actually use the skills in the way the explanation claims. So I'm not sure what this documentation actually accomplishes? I don't mean that to be critical, but everything is so new here that I just legitimately do not know.
There was a problem hiding this comment.
My goal with this document was to give devs an overview of what the skills can concretely do in their workflows, rather than just saying "agents can do stuff now". I find the remainder of the document compelling and informative.
That prompt doesn't say anything about what skills to use nor even guarantees the agent will actually use the skills in the way the explanation claims. So I'm not sure what this documentation actually accomplishes?
The user doesn't have to invoke any specific skills. They can use plain language, and the skills will be progressively loaded in on demand (the description field in the header is where trigger conditions are specified).
This example is meant to say "If you ask this, the agent will deploy these skills to perform these actions (cccl-triage is a skill, etc. The user doesn't have to invoke them manually, but they can).
There was a problem hiding this comment.
My goal with this document was to give devs an overview of what the skills can concretely do in their workflows
This is valuable, but I think this is ultimately a different document. This would be appropriate in an "Example Prompts for Maintainers" reference document. The skills are effectively an implementation detail of the prompts.
| ## Directory layout | ||
|
|
||
| ``` | ||
| c/ | ||
| ├── CMakeLists.txt — enables parallel/ and experimental/stf/ subprojects | ||
| ├── parallel/ | ||
| │ ├── CMakeLists.txt — builds cccl.c.parallel shared library | ||
| │ ├── include/cccl/c/ — public C headers (one per algorithm) | ||
| │ ├── src/ — CUDA/C++ implementation (one .cu per algorithm) | ||
| │ │ ├── util/ — shared context, error, type, tuning utilities | ||
| │ │ ├── nvrtc/ — NVRTC / nvJitLink helpers | ||
| │ │ ├── jit_templates/ — JIT type-wrapper template system (see below) | ||
| │ │ └── hostjit/ — optional LLVM-backed host JIT (optional, ~20 min build) | ||
| │ ├── test/ — CTest-based C++ tests (one per algorithm) | ||
| │ │ └── freestanding/ — header-isolation + bitcode tests | ||
| │ └── cmake/ — CParallelHeaderTesting.cmake | ||
| └── experimental/stf/ — C bindings for the STF (stream task framework) backend | ||
| ``` |
There was a problem hiding this comment.
This is a good example picked at random of broader theme I'm worried about: Hardcoding information (like directory structure) that is likely to change and could be trivially found through other means (like running ls) feels like a recipe for bit rot and a non-delightful experience with agents working from stale or incorrect information.
There was a problem hiding this comment.
Claude, review the cccl- skills and agents against the current repo, and fix drift/omissions.
With frontier models and harnesses, the skills are self-healing and self-maintaining.
This comment has been minimized.
This comment has been minimized.
🥳 CI Workflow Results🟩 Finished in 19h 48m: Pass: 100%/501 | Total: 6d 14h | Max: 2h 18m | Hits: 81%/784072See results here. |
There was a problem hiding this comment.
provided a few suggestions. My main concern is that the SKILLs are used as knowledge base, not to perform actions. Secondly, some of them just list paths, code, tools, which an agent should already be aware of. Both add little value compared to agent initialization, and the risk is to just pollute the context
| Run lit tests via `cccl-test` (the underlying `build_and_test_targets.sh` script takes a | ||
| `--lit-tests` flag). Unit tests run as normal CTest targets. | ||
|
|
||
| ## Directory layout |
There was a problem hiding this comment.
| ## Directory layout | |
| ## Test purpose | |
| libcudacxx tests validate library functionality. In particular: | |
| - Edge cases. | |
| - Input and output types. | |
| - Exception behavior. | |
| - Runtime and constant-evaluation behavior. | |
| - Device and host behavior. | |
| ## Directory layout |
|
|
||
| Rules: | ||
|
|
||
| - Always include top-level headers — never internal `__`-prefixed headers. |
There was a problem hiding this comment.
| - Always include top-level headers — never internal `__`-prefixed headers. | |
| - All tests must have the correct license banner. | |
| - Always include top-level headers — never internal `__`-prefixed headers. |
| device memory, system calls). The default should be `constexpr`; opt out only when a | ||
| specific run-time dependency prevents it. | ||
|
|
||
| ## Trailing return types |
There was a problem hiding this comment.
| ## Trailing return types | |
| - Use `_CCCL_CONSTEVAL` when a function can only be evaluated at compile time. | |
| ## Trailing return types |
| Use `constexpr` for all functions that do not depend on run-time features (raw pointers, | ||
| device memory, system calls). The default should be `constexpr`; opt out only when a | ||
| specific run-time dependency prevents it. |
There was a problem hiding this comment.
| Use `constexpr` for all functions that do not depend on run-time features (raw pointers, | |
| device memory, system calls). The default should be `constexpr`; opt out only when a | |
| specific run-time dependency prevents it. | |
| - Use `constexpr` for all functions that do not depend on run-time features (raw pointers, device memory, system calls). The default should be `constexpr`; opt out only when a specific run-time dependency prevents it. |
|
|
||
| ## License selection | ||
|
|
||
| | Directory | License | |
There was a problem hiding this comment.
| | Directory | License | | |
| All headers must have the correct license banner. | |
| | Directory | License | |
| 3. Normalize both identically: strip addresses, build IDs, paths, timestamps, whitespace; drop empty/comment lines. | ||
| 4. `diff -u` the normalized listings. | ||
| 5. Classify — ignore register renames with identical opcodes/operands, label renumbering, formatting-only | ||
| differences. | ||
| 6. Report top 5 non-trivial regions: kernel name, change type (opcode, memory-access size, register count delta, | ||
| control-flow), normalized line numbers, plain-language interpretation. Or: "only noise detected". |
There was a problem hiding this comment.
this should be a script otherwise it will be very token inefficient (called every time)
There was a problem hiding this comment.
This is an existing procedure in main, just reinserted into the new system. I agree that this is a good candidate for improvement, but not something that needs to be addressed in this PR.
| @@ -0,0 +1,89 @@ | |||
| --- | |||
There was a problem hiding this comment.
not 100% sure about this skill. I would expect the developer to focus on a single sub-project at the time. I would suggest to move test description per sub-project instead of globally
There was a problem hiding this comment.
The testing instructions are the same across projects, minus slightly different flags for running lit single targets, so a single skill makes sense.
This is also more discoverable IMO:
Agent needs to test, sees a test skill , vs
Agent needs to test, and has to know to dig a few levels deep into the project structure hierarchy skills to just find "ci/util/build_and_test_target.sh" no matter which path they take.
Happy to explore further, but think this can be held off for a followup.
| @@ -0,0 +1,137 @@ | |||
| --- | |||
| description: | | |||
There was a problem hiding this comment.
not sure if this SKILL is really needed. Agents already explore near code. Also, we could directly pointed out to the position, without repeating everything
There was a problem hiding this comment.
Agreed that this is low value.
| @@ -0,0 +1,121 @@ | |||
| --- | |||
| description: | | |||
There was a problem hiding this comment.
this SKILL only replies to questions, it doesn't perform actions. Not sure if really needed. Agents already can do that
| @@ -0,0 +1,22 @@ | |||
| # Architecture flag forms | |||
There was a problem hiding this comment.
this doesn't look specific to CCCL. LLMs should be already aware of it
The knowledge base aspect is intentional. Skill are not only for actions, they serve the same purpose as AGENTS.md / CLAUDE.md: To orient the agent within the repo, inform it of conventions, teach it the tools and workflows. This is knowledge-base work.
This is how the agent becomes aware of these things. Otherwise it needs to explore the codebase and research everything from scratch every session. The alternative is to list it all in AGENTS.md -- which will pollute the context. Moving it to skills allows the harness to progressively load only the bits they need. |
closes #8149
See this new doc for details.