Skip to main content
ClaudeWave
Slash Command388 estrellas del repoactualizado 25d ago

github-init

The github-init command guides users through setting up the ClaudeForge CI/CD system by verifying the GitHub Actions directory, running the bootstrap workflow to create labels and milestones, establishing a dev branch, configuring branch protection rules for main and dev branches, and setting dev as the default branch. Use this command when initially setting up a ClaudeForge repository to ensure proper CI/CD pipeline infrastructure and branching strategy are in place.

Instalar en Claude Code
Copiar
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/alirezarezvani/ClaudeForge/HEAD/.claude/commands/github/github-init.md -o ~/.claude/commands/github-init.md
Después abre una sesión nueva de Claude Code; el slash command carga automáticamente.

github-init.md

# GitHub CI/CD Initialization

You are helping the user initialize the ClaudeForge CI/CD system.

## Workflow

1. **Check Current State**
   - Verify `.github/workflows/` directory exists
   - Check if bootstrap workflow has been run (look for labels/milestones)
   - Check if dev branch exists
   - Check branch protection status

2. **Run Bootstrap Workflow**
   - If not yet run, guide user to run bootstrap workflow:
     - Go to Actions → Bootstrap Repository → Run workflow
     - Enable all options (create labels, milestones, validate settings)
   - Explain what will be created (23 labels, 3 milestones)

3. **Create Dev Branch** (if not exists)
   ```bash
   git checkout -b dev
   git push -u origin dev
   ```

4. **Configure Branch Protection**

   Guide user step-by-step:

   **For main branch:**
   - Go to Settings → Branches → Add rule
   - Pattern: `main`
   - Enable:
     - Require PR before merging
     - Require status checks: `quality-gates`, `production-build`, `validate-release-pr`
     - Require linear history
     - Block force pushes
     - Restrict deletions

   **For dev branch:**
   - Pattern: `dev`
   - Enable:
     - Require PR before merging
     - Require status checks: `quality-gates`, `validate-pr`
     - Require linear history
     - Block force pushes
     - Restrict deletions

5. **Set Default Branch**
   - Settings → General → Default branch → Change to `dev`
   - This ensures new PRs target dev by default

6. **Verification**
   - Show current branch protection rules
   - Verify workflows are present
   - Confirm setup is complete

7. **Next Steps**
   - Point to docs/GITHUB_WORKFLOWS.md for workflow reference
   - Point to docs/BRANCHING_STRATEGY.md for branch flow
   - Suggest creating first feature branch to test

## Commands to provide

```bash
# Check current setup
gh repo view --json name,defaultBranchRef,hasIssuesEnabled

# List workflows
ls -la .github/workflows/

# Check labels
gh label list

# Check milestones
gh api repos/:owner/:repo/milestones

# Check branch protection
gh api repos/:owner/:repo/branches/main/protection 2>/dev/null || echo "Not protected"
gh api repos/:owner/:repo/branches/dev/protection 2>/dev/null || echo "Not protected"
```

## Success Criteria

✅ Bootstrap workflow run successfully
✅ Dev branch created and pushed
✅ Branch protection configured for main and dev
✅ Default branch set to dev
✅ User understands next steps

Provide clear, step-by-step guidance with actual commands the user can copy-paste.
commit-smartSlash Command

Create smart commit with quality checks and conventional format

create-prSlash Command

Create pull request with proper validation

releaseSlash Command

Create GitHub release with automated notes

claude-md-enhancerSkill

Analyzes, generates, and enhances CLAUDE.md files for any project type using best practices, modular architecture support, and tech stack customization. Use when setting up new projects, improving existing CLAUDE.md files, or establishing AI-assisted development standards.

claude-md-dependency-rescanSkill

Re-detect this project's tech stack from package.json / requirements.txt / pyproject.toml / go.mod / Cargo.toml and diff it against the Tech Stack section of every CLAUDE.md. Read-only — returns added / removed / renamed dependencies, never edits.

claude-md-drift-auditSkill

Audit every CLAUDE.md in this project for drift against the last week of git history. Flags sections that reference deleted files, renamed paths, or removed dependencies. Read-only — returns a punch list, never edits.

claude-md-link-checkSkill

Verify every @path chain import and every markdown link inside every CLAUDE.md in this project resolves to an existing file. Read-only — returns broken links with file:line refs, never edits.

karpathy-guidelinesSkill

Behavioral guardrails for LLM-assisted coding. Use when writing, reviewing, or refactoring code in any project to avoid overcomplication, keep changes surgical, surface assumptions early, and execute against verifiable success criteria.