Skip to content

Prefix all skill domain folders with 'cockroachdb-' and add CLAUDE.md - #8

Merged
rafiss merged 2 commits into
mainfrom
skill/prefix-all-skills-with-cockroachdb
May 11, 2026
Merged

rafiss merged 2 commits into
mainfrom
skill/prefix-all-skills-with-cockroachdb

Conversation

@gregturn

Copy link
Copy Markdown
Contributor

Summary

This PR implements global uniqueness for CockroachDB skill domain folders by prefixing all 10 domain folders with cockroachdb-. This ensures that when users install skills from multiple repositories, there are no naming conflicts.

Changes

Domain Folder Renaming

All 10 skill domain folders have been renamed with the cockroachdb- prefix:

  • application-development → cockroachdb-application-development
  • cost-and-usage-management → cockroachdb-cost-and-usage-management
  • integrations-and-ecosystem → cockroachdb-integrations-and-ecosystem
  • observability-and-diagnostics → cockroachdb-observability-and-diagnostics
  • onboarding-and-migrations → cockroachdb-onboarding-and-migrations
  • operations-and-lifecycle → cockroachdb-operations-and-lifecycle
  • performance-and-scaling → cockroachdb-performance-and-scaling
  • query-and-schema-design → cockroachdb-query-and-schema-design
  • resilience-and-disaster-recovery → cockroachdb-resilience-and-disaster-recovery
  • security-and-governance → cockroachdb-security-and-governance

Note: Individual skill names remain unchanged (e.g., molt-fetch, reviewing-cluster-health, etc.)

CLAUDE.md Addition

Added comprehensive guide for AI agents (like Claude Code) working in this repository, including:

  • Repository structure overview
  • Skill authoring guidelines
  • Validation requirements
  • Domain organization
  • Python environment setup (pyenv)
  • Contributing workflow

Python Environment

  • Configured pyenv for Python 3.11.15 via .python-version
  • Updated documentation to reflect pyenv setup requirements

Impact

✅ Zero functional impact - This is purely a structural change to directory names
✅ Validation passes - All skills validated successfully with validate-spec.py
✅ Global uniqueness - Prevents conflicts when installing alongside other skill repositories
✅ Better developer experience - CLAUDE.md provides comprehensive guidance for AI-assisted development

Testing

  • Validated all skills with python scripts/validate-spec.py skills/
  • Confirmed all domain folders renamed correctly
  • Verified git history preserved through renames
  • Tested pyenv configuration

Related

Relates to EDUENG-711

@kevin-v-ngo kevin-v-ngo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks Greg!

@kevin-v-ngo

Copy link
Copy Markdown
Contributor

FYI @viragtripathi

@viragtripathi

Copy link
Copy Markdown
Contributor

@kevin-v-ngo I took a look and the prefix scheme is the right call for users mixing skill repos under ~/.claude/skills/, and the rename preserves git history (99 files tracked as renames, confirmed via gh api). A few things to address before merging:

1. Broken cross-domain markdown links inside SKILL.md files

File Broken target
cockroachdb-application-development/benchmarking-transaction-patterns/SKILL.md:14 ../../query-and-schema-design/cockroachdb-sql/SKILL.md
cockroachdb-application-development/designing-application-transactions/SKILL.md:14 same
cockroachdb-application-development/designing-multi-region-applications/SKILL.md:14 same
cockroachdb-operations-and-lifecycle/reviewing-cluster-health/SKILL.md:22-24
../../observability-and-diagnostics/{triaging-live-sql-activity,monitoring-background-jobs,analyzing-range-distribution}/SKILL.md
cockroachdb-operations-and-lifecycle/reviewing-cluster-health/SKILL.md:406 ../../observability-and-diagnostics/monitoring-background-jobs/SKILL.md

Worth running find skills -name '*.md' | xargs grep -l '\]\(\.\./\.\./[a-z]' to sweep references/ files too - I only spot-checked SKILL.md.

Intra-domain links (../<sibling-skill>/SKILL.md) are fine; only cross-domain ../../ links broke.

2. Stale references to old paths in non-skill files

Cosmetic but actively misleading to anyone copy-pasting from contributor docs:

  • .github/ISSUE_TEMPLATE/bug-report.yml:25 - placeholder shows skills/performance-and-scaling/...
  • CONTRIBUTING.md:75, 80, 131, 296 - mkdir, git add, and validate-spec.py examples
  • scripts/validate-spec.py:14 - usage docstring

All should reference skills/cockroachdb-performance-and-scaling/....

3. .python-version claim doesn't match contents

The PR description and CLAUDE.md both reference a .python-version file pinning 3.11.15, but the file isn't in the diff (git ls-tree confirms it's not present). Either add .python-version or strike the claim.

4. Coordination with #11

Heads up - #11 modifies content in 22 SKILL.md files at the old paths. This rename will conflict with all of them. Whichever lands second needs a rebase. Suggest landing #11 first since the diffs are smaller and content-localized; rebasing #8 on top is mechanical (just re-do the rename). The reverse means re-applying #11's content edits at the new paths by hand.

gregturn and others added 2 commits May 11, 2026 17:45
- Renamed all 10 domain folders to include 'cockroachdb-' prefix for global uniqueness
- Added comprehensive CLAUDE.md guide for AI agents working in this repository
- Configured pyenv for Python 3.11.15 via .python-version
- Updated repository structure to reflect new domain naming

Relates to EDUENG-711
- Fix broken cross-domain links in 4 SKILL.md files where ../../<old-domain>/
  referenced the pre-prefix paths.
- Update stale paths in CONTRIBUTING.md, scripts/validate-spec.py docstring,
  and .github/ISSUE_TEMPLATE/bug-report.yml placeholder to use the new
  cockroachdb-<domain>/ paths.
- Add the .python-version file (3.11.15) that CLAUDE.md and the PR description
  reference but was not committed.
- Clarify branch convention in CLAUDE.md and CONTRIBUTING.md: <domain> in
  branch names is the bare domain (no cockroachdb- prefix), while the on-disk
  domain folders carry the prefix.

Co-Authored-By: roachdev-claude <roachdev-claude-bot@cockroachlabs.com>
@rafiss
rafiss force-pushed the skill/prefix-all-skills-with-cockroachdb branch from f17ef43 to 3237a55 Compare May 11, 2026 22:04
@rafiss

rafiss commented May 11, 2026

Copy link
Copy Markdown
Contributor

Since i caused the rebase conflict, I went ahead and made the necessary updates. I also replied to all comments in Virag's review.

I'll go ahead and merge this!

@rafiss
rafiss merged commit 8716a65 into main May 11, 2026
1 check passed
@rafiss
rafiss deleted the skill/prefix-all-skills-with-cockroachdb branch May 11, 2026 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants