Files
Reza Rezvani 4a6b514b06 feat(commands): add git workflow and quality gate slash commands
Implemented complete slash command system adapted from claude-code-skills-factory
for streamlined git workflow and quality assurance in claude-skills repository.

## New Slash Commands

### Git Workflow (3 commands)
- **git/cm.md** (/git:cm): Stage and commit (no push)
- **git/cp.md** (/git:cp): Stage, commit, and push with quality checks
- **git/pr.md** (/git:pr): Create pull request from current branch

### Quality Gates (2 commands)
- **review.md** (/review): Local quality checks (YAML lint, schema validation, Python syntax, markdown links)
- **security-scan.md** (/security-scan): Security validation (Gitleaks, Safety audit)

### Documentation
- **README.md**: Complete command reference with usage examples and workflows

## Key Features

 Step-by-step instructions for each command
 Safety checks (secrets detection, credential scanning)
 Conventional Commit format enforcement
 Integration with CI workflows (ci-quality-gate.yml)
 Quality gate enforcement before push

## Adaptations from Factory Project

- Updated directory paths for claude-skills structure
- Configured for repository-specific workflows
- Simplified for skills library workflow
- Removed factory-specific commands (build, validate-output, etc.)
- Kept essential git and quality commands only

## Usage

Commands available in Claude Code CLI:
- /git:cm - Commit without pushing
- /git:cp - Complete git workflow
- /git:pr - Create pull request
- /review - Run quality checks
- /security-scan - Run security validation

## Integration

Commands integrate with GitHub automation:
- /git:cp triggers ci-quality-gate workflow
- /git:pr triggers claude-code-review workflow
- Merged PRs trigger pr-issue-auto-close workflow

See .claude/commands/README.md for complete documentation.
2025-11-04 22:16:53 +01:00

1.1 KiB

description
description
Run the local review gate before pushing.

Perform a complete review pass:

  1. Save work in progress and ensure the working tree is clean except for intentional changes.
  2. Install tooling (only first run):
    pip install --upgrade pip
    pip install yamllint==1.35.1 check-jsonschema==0.28.4 safety==3.2.4
    npm install --global markdown-link-check@3.12.2
    
  3. Lint GitHub workflows:
    yamllint -d '{extends: default, rules: {line-length: {max: 160}}}' .github/workflows
    check-jsonschema --schema github-workflow --base-dir . .github/workflows/*.yml
    
  4. Python syntax check:
    python -m compileall marketing-skill product-team c-level-advisor engineering-team ra-qm-team
    
  5. Markdown sanity check:
    markdown-link-check README.md
    
  6. Optional dependency audit (if requirements*.txt present):
    for f in $(find . -name "requirements*.txt" 2>/dev/null); do
        safety check --full-report --file "$f"
    done
    
  7. Summarize results in the commit template's Testing section. Fix any failures before continuing.