Skip to content

secondsky/claude-skills / plugins/github-project-automation/skills/github-project-automation

github-project-automation

Verified

GitHub repository automation (CI/CD, issue templates, Dependabot, CodeQL). Use for project setup, Actions workflows, security scanning, or encountering YAML syntax, workflow configuration, template structure errors.

FileKindSize
SKILL.mdskill md15.6 KB
assets/example-template.txtmarkdown416 B
references/advanced-configurations.mdmarkdown9.4 KB
references/common-errors.mdmarkdown15.2 KB
references/configuration-examples.mdmarkdown11.6 KB
references/troubleshooting-guide.mdmarkdown10.8 KB
references/workflow-patterns.mdmarkdown10.9 KB
scripts/generate-codeowners.shexecutablescript4.1 KB
scripts/setup-github-project.shexecutablescript6.0 KB
scripts/sync-templates.shexecutablescript4.7 KB
scripts/validate-workflows.shexecutablescript4.9 KB
templates/issue-templates/bug_report.ymlconfig3.2 KB
templates/issue-templates/config.ymlconfig568 B
templates/issue-templates/documentation.ymlconfig2.5 KB
templates/issue-templates/feature_request.ymlconfig2.8 KB
templates/misc/CODEOWNERSother1.7 KB
templates/misc/FUNDING.ymlconfig803 B
templates/pr-templates/PULL_REQUEST_TEMPLATE.mdmarkdown1.9 KB
templates/pr-templates/bugfix.mdmarkdown1.4 KB
templates/pr-templates/feature.mdmarkdown1.7 KB
templates/security/SECURITY.mdmarkdown3.4 KB
templates/security/codeql-config.ymlconfig1.4 KB
templates/security/dependabot.ymlconfig1.7 KB
templates/workflows/cd-production.ymlconfig2.8 KB
templates/workflows/ci-basic.ymlconfig1.4 KB
templates/workflows/ci-cloudflare-workers.ymlconfig2.3 KB
templates/workflows/ci-matrix.ymlconfig1.8 KB
templates/workflows/ci-node.ymlconfig1.6 KB
templates/workflows/ci-python.ymlconfig1.8 KB
templates/workflows/ci-react.ymlconfig2.8 KB
templates/workflows/pr-checks.ymlconfig6.0 KB
templates/workflows/release.ymlconfig6.1 KB
templates/workflows/scheduled-maintenance.ymlconfig4.1 KB
templates/workflows/security-codeql.ymlconfig2.1 KB
templates/workflows/security-dependency-review.ymlconfig1.5 KB

scripts/sync-templates.sh

View on GitHub
#!/bin/bash
# Template Sync Script
# Updates existing GitHub automation files with latest templates
#
# Usage: ./scripts/sync-templates.sh [--force]

set -e

# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
NC='\033[0m'

print_header() {
    echo ""
    echo -e "${BLUE}===================================${NC}"
    echo -e "${BLUE}$1${NC}"
    echo -e "${BLUE}===================================${NC}"
    echo ""
}

print_success() {
    echo -e "${GREEN}✓${NC} $1"
}

print_warning() {
    echo -e "${YELLOW}⚠${NC} $1"
}

print_error() {
    echo -e "${RED}✗${NC} $1"
}

FORCE=false
if [ "$1" = "--force" ]; then
    FORCE=true
fi

# Get skill templates directory
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
SKILL_DIR="$(dirname "$SCRIPT_DIR")"
TEMPLATES_DIR="$SKILL_DIR/templates"

if [ ! -d "$TEMPLATES_DIR" ]; then
    print_error "Templates directory not found: $TEMPLATES_DIR"
    exit 1
fi

# Check if .github exists
if [ ! -d ".github" ]; then
    print_error "No .github directory found. Run setup-github-project.sh first."
    exit 1
fi

print_header "GitHub Templates Sync"

UPDATED=0
SKIPPED=0
ERRORS=0

# Function to sync a file
sync_file() {
    local template_file=$1
    local dest_file=$2
    local file_type=$3

    if [ ! -f "$template_file" ]; then
        print_warning "Template not found: $template_file"
        return
    fi

    if [ -f "$dest_file" ]; then
        # Check if files are different
        if ! diff -q "$template_file" "$dest_file" >/dev/null 2>&1; then
            if [ "$FORCE" = true ]; then
                cp "$template_file" "$dest_file"
                print_success "Updated: $dest_file"
                UPDATED=$((UPDATED + 1))
            else
                print_warning "Different: $dest_file (use --force to update)"
                SKIPPED=$((SKIPPED + 1))
            fi
        else
            echo "  Up to date: $dest_file"
        fi
    else
        # File doesn't exist, copy it
        mkdir -p "$(dirname "$dest_file")"
        cp "$template_file" "$dest_file"
        print_success "Created: $dest_file"
        UPDATED=$((UPDATED + 1))
    fi
}

# Sync workflows
print_header "Syncing Workflows"

for workflow in "$TEMPLATES_DIR/workflows"/*.yml; do
    filename=$(basename "$workflow")
    sync_file "$workflow" ".github/workflows/$filename" "workflow"
done

# Sync Dependabot
print_header "Syncing Dependabot"

sync_file "$TEMPLATES_DIR/security/dependabot.yml" ".github/dependabot.yml" "config"

# Sync issue templates
print_header "Syncing Issue Templates"

for template in "$TEMPLATES_DIR/issue-templates"/*.yml; do
    filename=$(basename "$template")
    sync_file "$template" ".github/ISSUE_TEMPLATE/$filename" "issue template"
done

# Sync PR templates
print_header "Syncing PR Templates"

for template in "$TEMPLATES_DIR/pr-templates"/*.md; do
    filename=$(basename "$template")
    if [ "$filename" = "PULL_REQUEST_TEMPLATE.md" ]; then
        sync_file "$template" ".github/$filename" "PR template"
    else
        sync_file "$template" ".github/pr-templates/$filename" "PR template"
    fi
done

# Sync CODEOWNERS
print_header "Syncing CODEOWNERS"

if [ -f ".github/CODEOWNERS" ]; then
    print_warning "CODEOWNERS exists (skipping, likely customized)"
    SKIPPED=$((SKIPPED + 1))
else
    sync_file "$TEMPLATES_DIR/misc/CODEOWNERS" ".github/CODEOWNERS" "CODEOWNERS"
fi

# Sync SECURITY.md
print_header "Syncing SECURITY.md"

if [ -f "SECURITY.md" ]; then
    if [ "$FORCE" = true ]; then
        sync_file "$TEMPLATES_DIR/security/SECURITY.md" "SECURITY.md" "security policy"
    else
        print_warning "SECURITY.md exists (skipping, use --force to update)"
        SKIPPED=$((SKIPPED + 1))
    fi
else
    sync_file "$TEMPLATES_DIR/security/SECURITY.md" "SECURITY.md" "security policy"
fi

# Summary
print_header "Sync Summary"

echo "Results:"
echo "  Updated: $UPDATED file(s)"
echo "  Skipped: $SKIPPED file(s)"
if [ $ERRORS -gt 0 ]; then
    echo "  Errors: $ERRORS"
fi

echo ""

if [ $SKIPPED -gt 0 ] && [ "$FORCE" = false ]; then
    print_warning "Some files were skipped because they differ from templates"
    echo "Review the differences and:"
    echo "  - Run with --force to overwrite"
    echo "  - Or manually merge changes"
    echo ""
    echo "To see differences:"
    echo "  diff .github/workflows/ci.yml $TEMPLATES_DIR/workflows/ci-*.yml"
fi

if [ $UPDATED -gt 0 ]; then
    print_success "Templates updated!"
    echo ""
    echo "Next steps:"
    echo "  1. Review changes: git diff"
    echo "  2. Customize usernames/settings"
    echo "  3. Test workflows: ./scripts/validate-workflows.sh"
    echo "  4. Commit: git add .github/ && git commit -m \"Update GitHub automation\""
else
    print_success "All templates are up to date!"
fi

exit 0
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 469kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 469kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 469kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall