Skip to content

Skills for Claude Code CLI such as full stack dev Cloudflare, React, Tailwind v4, and AI integrations.

refactor: Delete github-project-automation skill - rarely used niche use case

Jezd07acd20c545
diff --git a/SESSION.md b/SESSION.md
index e1f58ca3..a82f2cd4 100644
--- a/SESSION.md
+++ b/SESSION.md
@@ -3236,19 +3236,20 @@ grep -n "^| \*\*" skills/cloudflare-r2/SKILL.md
**Skills Deleted:**
1. ✅ claude-code-bash-patterns (1,186 lines removed - redundant with official Claude Code docs)
2. ✅ gemini-cli (692 lines removed - redundant with google-gemini-api skill, niche CLI tool use case)
+3. ✅ github-project-automation (963 lines removed - rarely used, niche repo setup use case)
**Documents Created:**
1. ✅ KNOWLEDGE_GAP_AUDIT_CHECKLIST.md (comprehensive 12-step process)
**Cumulative Impact:**
- Skills audited: 27 of 59 (46%)
-- Skills deleted: 2
+- Skills deleted: 3
- Lines removed: ~20,137 lines (2,041 from fastmcp)
- Tokens saved: ~67,029 tokens per invocation (across 27 audited skills)
- Average reduction: 55.2% (excluding new skill)
- Annual savings (5 uses/month): ~4,021,740 tokens across these 27 skills
-**Next:** Continue A-Z systematic audit (next skill: github-project-automation)
+**Next:** Continue A-Z systematic audit (next skill: google-gemini-api)
---
@@ -3313,15 +3314,17 @@ grep -n "^| \*\*" skills/cloudflare-r2/SKILL.md
56. ✅ Trimmed fastmcp (574 lines, 78.0% reduction, 1 package update, 11 major 2025 knowledge gaps, 25 errors preserved)
57. ✅ Evaluated gemini-cli (deletion decision)
58. ✅ DELETED gemini-cli (692 lines removed - redundant with google-gemini-api skill, niche CLI tool use case)
+59. ✅ Evaluated github-project-automation (deletion decision)
+60. ✅ DELETED github-project-automation (963 lines removed - rarely used, niche repo setup use case)
**Next Session:**
-1. Continue A-Z systematic audit (next skill alphabetically: github-project-automation)
+1. Continue A-Z systematic audit (next skill alphabetically: google-gemini-api)
2. Follow KNOWLEDGE_GAP_AUDIT_CHECKLIST.md process
3. Research → Audit → Trim → Commit (one skill per session)
4. Pattern validated: ~55.2% average reduction across 27 skills (excluding new skill)
**Long Term:**
-- Audit remaining 30 skills alphabetically (27 audited + 2 deleted = 29 of 59 complete, 49%)
+- Audit remaining 29 skills alphabetically (27 audited + 3 deleted = 30 of 59 complete, 51%)
- Update skill creation guidelines with "knowledge gap test"
- Establish quarterly review process for skills
- Target: Continue 50-70% token savings across all skills
@@ -3331,7 +3334,7 @@ grep -n "^| \*\*" skills/cloudflare-r2/SKILL.md
## Last Checkpoint
**Date**: 2025-11-25
-**Commit**: 249386a
-**Message**: "refactor: Delete gemini-cli skill - redundant with google-gemini-api"
+**Commit**: [pending]
+**Message**: "refactor: Delete github-project-automation skill - rarely used niche use case"
-**Status**: Phase 2 in progress - 27 skills audited (46%), 2 skills deleted (claude-code-bash-patterns, gemini-cli), ~20,137 lines removed from audits, ~67,029 tokens saved per invocation, 55.2% average reduction, 29 of 59 complete (49%), ready for github-project-automation
+**Status**: Phase 2 in progress - 27 skills audited (46%), 3 skills deleted (claude-code-bash-patterns, gemini-cli, github-project-automation), ~20,137 lines removed from audits, ~67,029 tokens saved per invocation, 55.2% average reduction, 30 of 59 complete (51%), ready for google-gemini-api
diff --git a/skills/github-project-automation/.claude-plugin/plugin.json b/skills/github-project-automation/.claude-plugin/plugin.json
deleted file mode 100644
index 316a4771..00000000
--- a/skills/github-project-automation/.claude-plugin/plugin.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "name": "github-project-automation",
- "description": "Automate GitHub repository setup with CI/CD workflows, issue templates, Dependabot, and CodeQL security scanning. Includes 12 production-tested workflows and prevents 18 errors: YAML syntax, action pinning, and configuration. Use when: setting up GitHub Actions CI/CD, creating issue/PR templates, enabling Dependabot or CodeQL scanning, deploying to Cloudflare Workers, implementing matrix testing, or troubleshooting YAML indentation, action version pinning, secrets syntax, runner versions, or Cod",
- "version": "1.0.0",
- "author": {
- "name": "Jeremy Dawes",
- "email": "[email protected]"
- },
- "license": "MIT",
- "repository": "https://github.com/jezweb/claude-skills",
- "keywords": ["github actions","github workflow","ci/cd","issue templates","pull request templates","dependabot","codeql","security scanning","yaml syntax","github automation","repository setup","workflow templates","github actions matrix","secrets management","branch protection"]
-}
diff --git a/skills/github-project-automation/README.md b/skills/github-project-automation/README.md
deleted file mode 100644
index c582356d..00000000
--- a/skills/github-project-automation/README.md
+++ /dev/null
@@ -1,334 +0,0 @@
-# GitHub Project Automation
-
-**Status**: Production Ready ✅
-**Last Updated**: 2025-11-06
-**Production Tested**: Based on GitHub Actions official documentation + 3 test projects
-
----
-
-## Auto-Trigger Keywords
-
-Claude Code automatically discovers this skill when you mention:
-
-### Primary Keywords
-- github actions setup
-- create github workflow
-- ci/cd github
-- github automation
-- github repository setup
-- github actions ci
-- github actions deployment
-
-### Workflow & Configuration
-- issue templates github
-- pull request template
-- github workflow template
-- github actions workflow
-- github actions matrix
-- workflow syntax error
-- yaml syntax error github
-- github actions yaml
-
-### Security & Dependencies
-- dependabot configuration
-- dependabot setup
-- codeql setup
-- codeql scanning
-- github security scanning
-- code scanning github
-- dependency scanning
-- security workflow github
-
-### Deployment Keywords
-- deploy cloudflare workers github
-- github actions cloudflare
-- continuous deployment github
-- automated deployment github
-- github actions deploy
-
-### Error-Based Keywords
-- workflow not triggering
-- github actions error
-- action version pinning
-- runner version github
-- secrets not found github
-- matrix strategy error
-- yaml indentation error
-- github actions troubleshooting
-- codeql not running
-- dependabot failing
-
-### Technical Keywords
-- github context syntax
-- secrets management github
-- branch protection rules
-- codeowners file
-- github projects automation
-- continuous integration github
-
----
-
-## What This Skill Does
-
-This skill provides comprehensive automation for GitHub repository setup and configuration, including CI/CD pipelines, issue/PR templates, security scanning (CodeQL, Dependabot), and multi-framework workflow templates.
-
-### Core Capabilities
-
-✅ **GitHub Actions Workflows** - 12 production-tested templates (CI, deployment, security)
-✅ **Issue/PR Templates** - YAML templates with validation (prevent incomplete issues)
-✅ **Security Automation** - CodeQL scanning, Dependabot configuration
-✅ **Multi-Framework Support** - Node.js, Python, React, Cloudflare Workers
-✅ **Error Prevention** - Prevents 18 documented GitHub Actions/YAML errors
-✅ **Integration** - Works with cloudflare-worker-base, project-planning, open-source-contributions
-
----
-
-## Known Issues This Skill Prevents
-
-| Issue | Why It Happens | Source | How Skill Fixes It |
-|-------|---------------|---------|-------------------|
-| **YAML Indentation Errors** | Spaces vs tabs, missing colons | Stack Overflow (most common) | Pre-validated 2-space templates |
-| **Missing run/uses Field** | Empty step definition | GitHub Error Logs | Complete step definitions |
-| **Action Version Pinning** | Using @latest breaks workflows | GitHub Security Best Practices | SHA-pinned actions with version comments |
-| **Incorrect Runner Version** | ubuntu-latest changed 22.04→24.04 | CI/CD Guides | Explicit ubuntu-24.04 in templates |
-| **Duplicate YAML Keys** | Copy-paste errors | YAML Parser | Unique naming conventions |
-| **Secrets Syntax Errors** | Wrong ${{ }} syntax | GitHub Actions Debugging | Correct context examples |
-| **Matrix Strategy Errors** | Invalid config, wrong variables | Troubleshooting Guides | Working matrix examples |
-| **Context Syntax Errors** | Forgetting ${{ }} wrapper | GitHub Actions Docs | All context patterns demonstrated |
-| **Overly Complex Templates** | 20+ fields, users skip | GitHub Best Practices | Minimal 5-8 field templates |
-| **Generic Prompts** | No guidance on what's needed | Template Best Practices | Specific placeholders |
-| **Multiple Template Confusion** | Single ISSUE_TEMPLATE.md | GitHub Docs | Proper ISSUE_TEMPLATE/ directory |
-| **Missing Required Fields** | Markdown doesn't validate | Community Feedback | YAML with required: true |
-| **CodeQL Not on Dependabot** | Default trigger limitations | GitHub Discussion #121836 | Dependabot/** branch triggers |
-| **Branch Protection Blocking** | Over-restrictive policies | Security Alerts Guide | Scoped protection docs |
-| **Compiled Language CodeQL** | Missing build steps | CodeQL Docs | Build examples for Java/C++ |
-| **DevDependencies Ignored** | Thinking they don't matter | Security Best Practices | Full dependency scanning |
-| **Dependabot Alert Limit** | GitHub 10 PR limit | GitHub Docs | Document limit + workaround |
-| **Workflow Duplication** | Separate CI/CodeQL workflows | DevSecOps Guides | Integrated workflow option |
-
-**Total**: 18 documented issues prevented
-
----
-
-## When to Use This Skill
-
-### ✅ Use When:
-- Setting up CI/CD for new projects
-- Creating issue/PR templates
-- Enabling GitHub security scanning (CodeQL, Dependabot)
-- Automating deployments (Cloudflare Workers, AWS, etc.)
-- Implementing multi-version testing (Node.js, Python matrices)
-- Migrating projects to GitHub Actions
-- Fixing YAML syntax errors
-- Troubleshooting workflow issues
-- Setting up contributor-friendly repositories
-
-### ❌ Don't Use When:
-- **GitHub Projects v2 automation** → See `/planning/github-projects-poc-findings.md` (separate skill planned)
-- **Writing application code** → This skill is for GitHub automation only
-- **Local development without CI** → Skill focuses on GitHub-hosted automation
-
-Claude Code will automatically combine this skill with others when needed.
-
----
-
-## Quick Usage Example
-
-```bash
-# 1. Copy workflow template
-cp templates/workflows/ci-react.yml .github/workflows/ci.yml
-
-# 2. Add security scanning
-cp templates/workflows/security-codeql.yml .github/workflows/codeql.yml
-cp templates/security/dependabot.yml .github/dependabot.yml
-
-# 3. Add issue templates
-mkdir -p .github/ISSUE_TEMPLATE
-cp templates/issue-templates/bug_report.yml .github/ISSUE_TEMPLATE/
-cp templates/issue-templates/feature_request.yml .github/ISSUE_TEMPLATE/
-
-# 4. Configure secrets (if deploying)
-gh secret set CLOUDFLARE_API_TOKEN
-
-# 5. Push and verify
-git add .github/
-git commit -m "Add GitHub automation"
-git push
-```
-
-**Result**: Complete CI/CD, security scanning, and issue templates in 15 minutes
-
-**Full instructions**: See [SKILL.md](SKILL.md)
-
----
-
-## Token Efficiency Metrics
-
-| Approach | Tokens Used | Errors Encountered | Time to Complete |
-|----------|------------|-------------------|------------------|
-| **Manual Setup** | ~26,500 | 2-5 | ~2-4 hours |
-| **With This Skill** | ~7,000 | 0 ✅ | ~15 minutes |
-| **Savings** | **~70%** | **100%** | **~85%** |
-
----
-
-## Package Versions (Verified 2025-11-06)
-
-| Action | SHA | Version |
-|--------|-----|---------|
-| actions/checkout | 11bd71901bbe5b1630ceea73d27597364c9af683 | v4.2.2 |
-| actions/setup-node | 39370e3970a6d050c480ffad4ff0ed4d3fdee5af | v4.1.0 |
-| actions/setup-python | 0b93645e9fea7318ecaed2b359559ac225c90a2b | v5.3.0 |
-| actions/upload-artifact | b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 | v4.4.3 |
-| github/codeql-action | ea9e4e37992a54ee68a9622e985e60c8e8f12d9f | v3.27.4 |
-| codecov/codecov-action | 5c47607acb93fed5485fdbf7232e8a31425f672a | v5.0.2 |
-
----
-
-## Dependencies
-
-**Prerequisites**: None (git and gh CLI recommended)
-
-**Integrates With**:
-- `cloudflare-worker-base` (CI/CD for Workers)
-- `cloudflare-nextjs` (CI/CD for Next.js on Cloudflare)
-- `project-planning` (generates automation from phases)
-- `open-source-contributions` (contributor setup)
-- All framework skills (React, Python, Node.js)
-
----
-
-## File Structure
-
-```
-github-project-automation/
-├── SKILL.md # Complete documentation (970 lines)
-├── README.md # This file
-├── templates/
-│ ├── workflows/ # GitHub Actions workflows (6 complete, 6 Phase 2)
-│ │ ├── ci-basic.yml # ✅ Generic CI (test/lint/build)
-│ │ ├── ci-node.yml # ✅ Node.js matrix (18, 20, 22)
-│ │ ├── ci-python.yml # ✅ Python matrix (3.10, 3.11, 3.12)
-│ │ ├── ci-react.yml # ✅ React/TypeScript CI
-│ │ ├── ci-cloudflare-workers.yml # ✅ Cloudflare deployment
-│ │ ├── security-codeql.yml # ✅ Code scanning
-│ │ └── [6 more in Phase 2]
-│ ├── issue-templates/ # Issue templates (2 complete, 2 Phase 2)
-│ │ ├── bug_report.yml # ✅ YAML with validation
-│ │ ├── feature_request.yml # ✅ YAML with validation
-│ │ └── [2 more in Phase 2]
-│ ├── pr-templates/ # PR templates (1 complete, 2 Phase 2)
-│ │ ├── PULL_REQUEST_TEMPLATE.md # ✅ Markdown template
-│ │ └── [2 more in Phase 2]
-│ ├── security/ # Security configs (1 complete, 2 Phase 2)
-│ │ ├── dependabot.yml # ✅ Dependency updates
-│ │ └── [2 more in Phase 2]
-│ └── misc/ # (Phase 2)
-│ ├── CODEOWNERS
-│ └── FUNDING.yml
-├── scripts/ # Automation scripts (Phase 3)
-│ ├── setup-github-project.sh
-│ ├── validate-workflows.sh
-│ ├── generate-codeowners.sh
-│ └── sync-templates.sh
-├── references/ # Documentation
-│ ├── common-errors.md # ✅ All 18 errors (complete)
-│ └── [7 more guides in Phase 2]
-└── assets/ # Visual aids (Phase 4)
-```
-
----
-
-## Quick Reference
-
-### Critical YAML Syntax Rules
-
-```yaml
-# ✅ CORRECT - SHA-pinned action
-- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-
-# ✅ CORRECT - Explicit runner
-runs-on: ubuntu-24.04
-
-# ✅ CORRECT - Secrets syntax
-env:
- TOKEN: ${{ secrets.API_TOKEN }}
-
-# ✅ CORRECT - Matrix reference
-node-version: ${{ matrix.node-version }}
-
-# ❌ WRONG - @latest (unpredictable)
-- uses: actions/checkout@latest
-
-# ❌ WRONG - ubuntu-latest (changes over time)
-runs-on: ubuntu-latest
-
-# ❌ WRONG - Missing double braces
-env:
- TOKEN: $secrets.API_TOKEN
-
-# ❌ WRONG - Missing matrix.
-node-version: ${{ node-version }}
-```
-
-### Workflow Template Selection
-
-| Project Type | Template | Matrix | Security |
-|--------------|----------|--------|----------|
-| **React App** | ci-react.yml | ❌ | ✅ CodeQL |
-| **Node.js Library** | ci-node.yml | ✅ 18,20,22 | ✅ CodeQL |
-| **Python Project** | ci-python.yml | ✅ 3.10,3.11,3.12 | ✅ CodeQL |
-| **Cloudflare Worker** | ci-cloudflare-workers.yml | ❌ | ✅ Deploy |
-| **Generic Project** | ci-basic.yml | ❌ | Optional |
-
-### Required Customizations
-
-1. **Usernames**: Update `jezweb` to your GitHub username in templates
-2. **Languages**: Add your languages to CodeQL matrix
-3. **Package Manager**: Update `npm` to `pip`/`yarn`/etc in Dependabot
-4. **Secrets**: Add deployment secrets via `gh secret set`
-
----
-
-## Official Documentation
-
-- **GitHub Actions**: https://docs.github.com/en/actions
-- **Workflow Syntax**: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
-- **CodeQL**: https://codeql.github.com/docs/
-- **Dependabot**: https://docs.github.com/en/code-security/dependabot
-- **Issue Templates**: https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests
-- **Context7 Library**: `/websites/github` or `/github/`
-
----
-
-## Related Skills
-
-- **cloudflare-worker-base** - Create Cloudflare Workers, then add CI/CD with this skill
-- **cloudflare-nextjs** - Deploy Next.js to Cloudflare, includes workflow examples
-- **project-planning** - Generate planning docs, then automate with this skill
-- **open-source-contributions** - Prepare for contributors, this skill adds templates
-- **tailwind-v4-shadcn** - Build UI, this skill handles CI/CD
-
----
-
-## Contributing
-
-Found an issue or have a suggestion?
-- Open an issue: https://github.com/jezweb/claude-skills/issues
-- See [SKILL.md](SKILL.md) for detailed documentation
-
----
-
-## License
-
-MIT License - See main repo LICENSE file
-
----
-
-**Production Tested**: Based on GitHub Actions official documentation + 3 test projects
-**Token Savings**: ~70% (26,500 → 7,000 tokens)
-**Error Prevention**: 100% (18 documented issues prevented)
-**Phase 1 Complete**: Core templates and documentation ready
-**Phases 2-4 Pending**: Advanced workflows, automation scripts, additional guides
-
-**Ready to use!** See [SKILL.md](SKILL.md) for complete setup.
diff --git a/skills/github-project-automation/SKILL.md b/skills/github-project-automation/SKILL.md
deleted file mode 100644
index 8a49b994..00000000
--- a/skills/github-project-automation/SKILL.md
+++ /dev/null
@@ -1,963 +0,0 @@
----
-name: github-project-automation
-description: |
- Automate GitHub repository setup with CI/CD workflows, issue templates, Dependabot, and CodeQL security scanning.
- Includes 12 production-tested workflows and prevents 18 errors: YAML syntax, action pinning, and configuration.
-
- Use when: setting up GitHub Actions CI/CD, creating issue/PR templates, enabling Dependabot or CodeQL scanning,
- deploying to Cloudflare Workers, implementing matrix testing, or troubleshooting YAML indentation, action version
- pinning, secrets syntax, runner versions, or CodeQL configuration.
-
- Keywords: github actions, github workflow, ci/cd, issue templates, pull request templates,
- dependabot, codeql, security scanning, yaml syntax, github automation, repository setup,
- workflow templates, github actions matrix, secrets management, branch protection, codeowners,
- github projects, continuous integration, continuous deployment, workflow syntax error,
- action version pinning, runner version, github context, yaml indentation error
-license: MIT
-metadata:
- version: 1.0.0
- last_verified: 2025-11-06
- errors_prevented: 18
- token_savings: 70%
- complexity: 8/10
----
-
-# GitHub Project Automation
-
-**Status**: Production Ready ✅
-**Last Updated**: 2025-11-06
-**Dependencies**: None (git and gh CLI recommended)
-**Latest Versions**: actions/[email protected], actions/[email protected], github/[email protected]
-
----
-
-## Quick Start (15 Minutes)
-
-### 1. Choose Your Framework
-
-Select the workflow template that matches your project:
-
-```bash
-# For React/Vite projects
-cp templates/workflows/ci-react.yml .github/workflows/ci.yml
-
-# For Node.js libraries (matrix testing)
-cp templates/workflows/ci-node.yml .github/workflows/ci.yml
-
-# For Python projects
-cp templates/workflows/ci-python.yml .github/workflows/ci.yml
-
-# For Cloudflare Workers
-cp templates/workflows/ci-cloudflare-workers.yml .github/workflows/deploy.yml
-
-# For basic projects (any framework)
-cp templates/workflows/ci-basic.yml .github/workflows/ci.yml
-```
-
-**Why this matters:**
-- Pre-validated YAML prevents syntax errors
-- SHA-pinned actions for security
-- Explicit runner versions (ubuntu-24.04)
-- All 8 GitHub Actions errors prevented
-
-### 2. Add Issue Templates
-
-```bash
-# Create directory structure
-mkdir -p .github/ISSUE_TEMPLATE
-
-# Copy YAML templates (with validation)
-cp templates/issue-templates/bug_report.yml .github/ISSUE_TEMPLATE/
-cp templates/issue-templates/feature_request.yml .github/ISSUE_TEMPLATE/
-```
-
-**Why YAML over Markdown:**
-- Required field validation (Error #12 prevented)
-- Consistent data structure
-- Better user experience
-- No incomplete issues
-
-### 3. Enable Security Scanning
-
-```bash
-# CodeQL for code analysis
-cp templates/workflows/security-codeql.yml .github/workflows/codeql.yml
-
-# Dependabot for dependency updates
-cp templates/security/dependabot.yml .github/dependabot.yml
-```
-
-**CRITICAL:**
-- CodeQL requires specific permissions (security-events: write)
-- Dependabot has 10 PR limit per ecosystem
-- Both must run on Dependabot PRs (Error #13 prevention)
-
----
-
-## The 5-Step Complete Setup Process
-
-### Step 1: Repository Structure
-
-Create the standard GitHub automation directory structure:
-
-```bash
-# Create all required directories
-mkdir -p .github/{workflows,ISSUE_TEMPLATE}
-
-# Verify structure
-tree .github/
-# .github/
-# ├── workflows/ # GitHub Actions workflows
-# ├── ISSUE_TEMPLATE/ # Issue templates
-# └── dependabot.yml # Dependabot config (root of .github/)
-```
-
-**Key Points:**
-- workflows/ is plural
-- ISSUE_TEMPLATE/ is singular (legacy naming)
-- dependabot.yml goes in .github/, NOT workflows/
-
-### Step 2: Select Workflow Templates
-
-Choose workflows based on your project needs:
-
-**Continuous Integration (pick ONE):**
-1. `ci-basic.yml` - Generic test/lint/build (all frameworks)
-2. `ci-node.yml` - Node.js with matrix testing (18, 20, 22)
-3. `ci-python.yml` - Python with matrix testing (3.10, 3.11, 3.12)
-4. `ci-react.yml` - React/TypeScript with type checking
-
-**Deployment (optional):**
-5. `ci-cloudflare-workers.yml` - Deploy to Cloudflare Workers
-
-**Security (recommended):**
-6. `security-codeql.yml` - Code scanning
-7. `dependabot.yml` - Dependency updates
-
-**Copy selected templates:**
-```bash
-# Example: React app with security
-cp templates/workflows/ci-react.yml .github/workflows/ci.yml
-cp templates/workflows/security-codeql.yml .github/workflows/codeql.yml
-cp templates/security/dependabot.yml .github/dependabot.yml
-```
-
-### Step 3: Configure Secrets (if deploying)
-
-For deployment workflows (Cloudflare, AWS, etc.), add secrets:
-
-```bash
-# Using gh CLI
-gh secret set CLOUDFLARE_API_TOKEN
-# Paste your token when prompted
-
-# Verify
-gh secret list
-```
-
-**Critical Syntax:**
-```yaml
-# ✅ CORRECT
-env:
- API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
-
-# ❌ WRONG - Missing double braces
-env:
- API_TOKEN: $secrets.CLOUDFLARE_API_TOKEN
-```
-
-Prevents Error #6 (secrets syntax).
-
-### Step 4: Add Issue/PR Templates
-
-**Issue templates (YAML format):**
-```bash
-cp templates/issue-templates/bug_report.yml .github/ISSUE_TEMPLATE/
-cp templates/issue-templates/feature_request.yml .github/ISSUE_TEMPLATE/
-```
-
-**PR template (Markdown format):**
-```bash
-cp templates/pr-templates/PULL_REQUEST_TEMPLATE.md .github/
-```
-
-**Why separate formats:**
-- Issue templates: YAML for validation
-- PR template: Markdown (GitHub limitation)
-
-### Step 5: Customize for Your Project
-
-**Required customizations:**
-
-1. **Update usernames/emails:**
- ```yaml
- # In issue templates
- assignees:
- - jezweb # ← Change to your GitHub username
-
- # In dependabot.yml
- reviewers:
- - "jezweb" # ← Change to your username
- ```
-
-2. **Adjust languages (CodeQL):**
- ```yaml
- # In security-codeql.yml
- matrix:
- language: ['javascript-typescript'] # ← Add your languages
- # Options: c-cpp, csharp, go, java-kotlin, python, ruby, swift
- ```
-
-3. **Update package manager (Dependabot):**
- ```yaml
- # In dependabot.yml
- - package-ecosystem: "npm" # ← Change if using yarn/pnpm/pip/etc
- ```
-
-4. **Set deployment URL (Cloudflare):**
- ```yaml
- # In ci-cloudflare-workers.yml
- echo "Worker URL: https://your-worker.your-subdomain.workers.dev"
- # ← Update with your actual Worker URL
- ```
-
----
-
-## Critical Rules
-
-### Always Do
-
-✅ **Pin actions to SHA, not @latest**
-```yaml
-# ✅ CORRECT
-- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-
-# ❌ WRONG
-- uses: actions/checkout@latest
-```
-
-✅ **Use explicit runner versions**
-```yaml
-# ✅ CORRECT
-runs-on: ubuntu-24.04 # Locked to specific LTS
-
-# ❌ RISKY
-runs-on: ubuntu-latest # Changes over time
-```
-
-✅ **Include secrets in context syntax**
-```yaml
-# ✅ CORRECT
-${{ secrets.API_TOKEN }}
-
-# ❌ WRONG
-$secrets.API_TOKEN
-```
-
-✅ **Validate YAML before committing**
-```bash
-# Use yamllint or GitHub's workflow validator
-yamllint .github/workflows/*.yml
-```
-
-✅ **Test workflows on feature branch first**
-```bash
-git checkout -b test/github-actions
-# Push and verify CI runs before merging to main
-```
-
-### Never Do
-
-❌ **Don't use @latest for action versions**
-- Breaks without warning when actions update
-- Security risk (unvetted versions auto-adopted)
-
-❌ **Don't hardcode secrets in workflows**
-```yaml
-# ❌ NEVER DO THIS
-env:
- API_TOKEN: "sk_live_abc123..." # Secret exposed in repo!
-```
-
-❌ **Don't skip build steps for compiled languages (CodeQL)**
-```yaml
-# ❌ WRONG - CodeQL fails for Java without build
-- name: Perform CodeQL Analysis # No .class files to analyze
-
-# ✅ CORRECT - Include build
-- name: Build project
- run: ./mvnw clean install
-- name: Perform CodeQL Analysis # Now has .class files
-```
-
-❌ **Don't ignore devDependencies in Dependabot**
-- DevDependencies run during build, can execute malicious code
-- Include both prod and dev dependencies
-
-❌ **Don't use single ISSUE_TEMPLATE.md file**
-```
-# ❌ OLD WAY
-.github/ISSUE_TEMPLATE.md
-
-# ✅ NEW WAY
-.github/ISSUE_TEMPLATE/
- bug_report.yml
- feature_request.yml
-```
-
----
-
-## Known Issues Prevention
-
-This skill prevents **18** documented issues:
-
-### Issue #1: YAML Indentation Errors
-**Error**: `workflow file is invalid. mapping values are not allowed in this context`
-**Source**: Stack Overflow (most common GitHub Actions error)
-**Why It Happens**: Spaces vs tabs, missing spaces after colons, inconsistent indentation
-**Prevention**: Use skill templates with validated 2-space indentation
-
-### Issue #2: Missing `run` or `uses` Field
-**Error**: `Error: Step must have a run or uses key`
-**Source**: GitHub Actions Error Logs
-**Why It Happens**: Empty step definition, forgetting to add command
-**Prevention**: Templates include complete step definitions
-
-### Issue #3: Action Version Pinning Issues
-**Error**: Workflow breaks unexpectedly after action updates
-**Source**: GitHub Security Best Practices 2025
-**Why It Happens**: Using `@latest` or `@v4` instead of specific SHA
-**Prevention**: All templates pin to SHA with version comment
-
-### Issue #4: Incorrect Runner Version
-**Error**: Unexpected environment changes, compatibility issues
-**Source**: CI/CD Troubleshooting Guides
-**Why It Happens**: `ubuntu-latest` changed from 22.04 → 24.04 in 2024
-**Prevention**: Templates use explicit `ubuntu-24.04`
-
-### Issue #5: Multiple Keys with Same Name
-**Error**: `duplicate key found in mapping`
-**Source**: YAML Parser Updates
-**Why It Happens**: Copy-paste errors, duplicate job/step names
-**Prevention**: Templates use unique, descriptive naming
-
-### Issue #6: Secrets Not Available
-**Error**: `Secret not found` or empty variable
-**Source**: GitHub Actions Debugging Guides
-**Why It Happens**: Wrong syntax (`$secrets.NAME` instead of `${{ secrets.NAME }}`)
-**Prevention**: Templates demonstrate correct context syntax
-
-### Issue #7: Matrix Strategy Errors
-**Error**: Matrix doesn't expand, tests skipped
-**Source**: Troubleshooting Guides
-**Why It Happens**: Invalid matrix config, wrong variable reference
-**Prevention**: Templates include working matrix examples
-
-### Issue #8: Context Syntax Errors
-**Error**: Variables not interpolated, empty values
-**Source**: GitHub Actions Docs
-**Why It Happens**: Forgetting `${{ }}` wrapper
-**Prevention**: Templates show all context patterns
-
-### Issue #9: Overly Complex Templates
-**Error**: Contributors ignore template, incomplete issues
-**Source**: GitHub Best Practices
-**Why It Happens**: 20+ fields, asking irrelevant details
-**Prevention**: Skill templates are minimal (5-8 fields max)
-
-### Issue #10: Generic Prompts Without Context
-**Error**: Vague bug reports, hard to reproduce
-**Source**: Template Best Practices
-**Why It Happens**: No guidance on what info is needed
-**Prevention**: Templates include specific placeholders
-
-### Issue #11: Multiple Template Confusion
-**Error**: Users don't know which template to use
-**Source**: GitHub Docs
-**Why It Happens**: Using single `ISSUE_TEMPLATE.md` file
-**Prevention**: Proper `ISSUE_TEMPLATE/` directory with config.yml
-
-### Issue #12: Missing Required Fields
-**Error**: Incomplete issues, missing critical info
-**Source**: Community Feedback
-**Why It Happens**: Markdown templates don't validate
-**Prevention**: YAML templates with `required: true`
-
-### Issue #13: CodeQL Not Running on Dependabot PRs
-**Error**: Security scans skipped on dependency updates
-**Source**: GitHub Community Discussion #121836
-**Why It Happens**: Default trigger limitations
-**Prevention**: Templates include `push: branches: [dependabot/**]`
-
-### Issue #14: Branch Protection Blocking All PRs
-**Error**: Legitimate PRs blocked, development stalled
-**Source**: Security Alerts Guide
-**Why It Happens**: Over-restrictive alert policies
-**Prevention**: Reference docs explain proper scoping
-
-### Issue #15: Compiled Language CodeQL Setup
-**Error**: `No code found to analyze`
-**Source**: CodeQL Documentation
-**Why It Happens**: Missing build steps for Java/C++/C#
-**Prevention**: Templates include build examples
-
-### Issue #16: Development Dependencies Ignored
-**Error**: Vulnerable devDependencies not scanned
-**Source**: Security Best Practices
-**Why It Happens**: Thinking devDependencies don't matter
-**Prevention**: Templates scan all dependencies
-
-### Issue #17: Dependabot Alert Limit
-**Error**: Only 10 alerts auto-fixed, others queued
-**Source**: GitHub Docs (hard limit)
-**Why It Happens**: GitHub limits 10 open PRs per ecosystem
-**Prevention**: Templates document limit and workaround
-
-### Issue #18: Workflow Duplication
-**Error**: Wasted CI minutes, maintenance overhead
-**Source**: DevSecOps Guides
-**Why It Happens**: Separate workflows for CI/CodeQL/dependency review
-**Prevention**: Templates offer integrated option
-
-**See**: `references/common-errors.md` for detailed error documentation with examples
-
----
-
-## Configuration Files Reference
-
-### dependabot.yml (Full Example)
-
-```yaml
-version: 2
-updates:
- # npm dependencies (including devDependencies)
- - package-ecosystem: "npm"
- directory: "/"
- schedule:
- interval: "weekly"
- day: "monday"
- time: "09:00"
- timezone: "Australia/Sydney"
- open-pull-requests-limit: 10 # GitHub hard limit
- reviewers:
- - "jezweb"
- labels:
- - "dependencies"
- - "npm"
- commit-message:
- prefix: "chore"
- prefix-development: "chore"
- include: "scope"
-
- # GitHub Actions
- - package-ecosystem: "github-actions"
- directory: "/"
- schedule:
- interval: "weekly"
- open-pull-requests-limit: 5
- labels:
- - "dependencies"
- - "github-actions"
-```
-
-**Why these settings:**
-- Weekly schedule reduces noise vs daily
-- 10 PR limit matches GitHub maximum
-- Includes devDependencies (Error #16 prevention)
-- Reviewers auto-assigned for faster triage
-- Conventional commit prefixes (chore: for deps)
-
-### CodeQL Workflow (security-codeql.yml)
-
-```yaml
-name: CodeQL Security Scan
-
-on:
- push:
- branches: [main, master]
- pull_request:
- branches: [main, master]
- schedule:
- - cron: '0 0 * * 0' # Weekly on Sundays
-
-jobs:
- analyze:
- runs-on: ubuntu-24.04
- permissions:
- actions: read
- contents: read
- security-events: write # REQUIRED for CodeQL
-
- strategy:
- fail-fast: false
- matrix:
- language: ['javascript-typescript'] # Add your languages
-
- steps:
- - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
-
- - name: Initialize CodeQL
- uses: github/codeql-action/init@ea9e4e37992a54ee68a9622e985e60c8e8f12d9f
- with:
- languages: ${{ matrix.language }}
-
- # For compiled languages, add build here
-
- - name: Perform CodeQL Analysis
- uses: github/codeql-action/analyze@ea9e4e37992a54ee68a9622e985e60c8e8f12d9f
-```
-
-**Critical permissions:**
-- `security-events: write` is REQUIRED for CodeQL uploads
-- Without it, workflow fails silently
-
----
-
-## Common Patterns
-
-### Pattern 1: Multi-Framework Matrix Testing
-
-Use for libraries that support multiple Node.js/Python versions:
-
-```yaml
-strategy:
- matrix:
- node-version: [18, 20, 22] # LTS versions
- fail-fast: false # Test all versions even if one fails
-
-steps:
- - uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
- with:
- node-version: ${{ matrix.node-version }}
- cache: 'npm' # Cache dependencies for speed
-
- - run: npm ci # Use ci (not install) for reproducible builds
- - run: npm test
-```
-
-**When to use**: Libraries, CLI tools, packages with broad version support
-
-### Pattern 2: Conditional Deployment
-
-Deploy only on push to main (not PRs):
-
-```yaml
-jobs:
- deploy:
- if: github.event_name == 'push' && github.ref == 'refs/heads/main'
- steps:
- - run: npx wrangler deploy
- env:
- CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
-```
-
-**When to use**: Production deployments, avoiding test deployments from PRs
-
-### Pattern 3: Artifact Upload/Download
-
-Share build outputs between jobs:
-
-```yaml
-jobs:
- build:
- steps:
- - run: npm run build
- - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882
- with:
- name: build-output
- path: dist/
- retention-days: 7
-
- deploy:
- needs: build
- steps:
- - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
- with:
- name: build-output
- path: dist/
- - run: # Deploy from dist/
-```
-
-**When to use**: Separating build and deployment, sharing test results
-
----
-
-## Using Bundled Resources
-
-### Scripts (scripts/)
-
-**Coming in Phase 3** - Automation scripts for common tasks:
-
-- `setup-github-project.sh` - Interactive setup wizard
-- `validate-workflows.sh` - YAML validation before commit
-- `generate-codeowners.sh` - Auto-generate from git log
-- `sync-templates.sh` - Update existing projects
-
-**Example Usage:**
-```bash
-./scripts/setup-github-project.sh react
-# Prompts for project details, generates .github/ structure
-```
-
-### References (references/)
-
-**Load when needed** for detailed error resolution:
-
-- `references/common-errors.md` - All 18 errors with solutions (complete)
-- `references/github-actions-reference.md` - Complete Actions API (Phase 2)
-- `references/workflow-syntax.md` - YAML syntax guide (Phase 2)
-- `references/dependabot-guide.md` - Dependabot deep-dive (Phase 2)
-- `references/codeql-guide.md` - CodeQL configuration (Phase 2)
-- `references/secrets-management.md` - Secrets best practices (Phase 2)
-- `references/matrix-strategies.md` - Matrix patterns (Phase 2)
-
-**When Claude should load these**: When user encounters specific errors, needs deep configuration, or troubleshooting complex scenarios
-
-### Templates (templates/)
-
-**Complete collection** - 45+ files organized by type:
-
-**Workflows (12 templates):**
-- Phase 1 (complete): ci-basic, ci-node, ci-python, ci-react, ci-cloudflare-workers, security-codeql
-- Phase 2: ci-matrix, cd-production, release, pr-checks, scheduled-maintenance, security-dependency-review
-
-**Issue Templates (4 templates):**
-- Phase 1 (complete): bug_report.yml, feature_request.yml
-- Phase 2: documentation.yml, config.yml
-
-**PR Templates (3 templates):**
-- Phase 1 (complete): PULL_REQUEST_TEMPLATE.md
-- Phase 2: feature.md, bugfix.md
-
-**Security (3 templates):**
-- Phase 1 (complete): dependabot.yml
-- Phase 2: SECURITY.md, codeql-config.yml
-
-**Misc (2 templates):**
-- Phase 2: CODEOWNERS, FUNDING.yml
-
----
-
-## Integration with Existing Skills
-
-### cloudflare-worker-base → Add CI/CD
-
-When user creates new Worker project:
-
-```bash
-# User: "Create Cloudflare Worker with CI/CD"
-
-# This skill runs AFTER cloudflare-worker-base
-cp templates/workflows/ci-cloudflare-workers.yml .github/workflows/deploy.yml
-
-# Configure secrets
-gh secret set CLOUDFLARE_API_TOKEN
-```
-
-**Result**: New Worker with automated deployment on push to main
-
-### project-planning → Generate Automation
-
-When user uses project-planning skill:
-
-```bash
-# User: "Plan new React app with GitHub automation"
-
-# project-planning generates IMPLEMENTATION_PHASES.md
-# Then this skill sets up GitHub automation
-cp templates/workflows/ci-react.yml .github/workflows/ci.yml
-cp templates/issue-templates/*.yml .github/ISSUE_TEMPLATE/
-```
-
-**Result**: Planned project with complete GitHub automation
-
-### open-source-contributions → Setup Contributor Experience
-
-When preparing project for open source:
-
-```bash
-# User: "Prepare repo for open source contributions"
-
-# open-source-contributions skill handles CONTRIBUTING.md
-# This skill adds issue templates and CODEOWNERS
-cp templates/issue-templates/*.yml .github/ISSUE_TEMPLATE/
-cp templates/misc/CODEOWNERS .github/
-```
-
-**Result**: Contributor-friendly repository
-
----
-
-## Advanced Topics
-
-### Integrating with GitHub Projects v2
-
-**Status**: Researched, not implemented (see `/planning/github-projects-poc-findings.md`)
-
-**Why separate skill**: Complex GraphQL API, ID management, niche use case
-
-**When to consider**: Team projects needing automated board management
-
-### Custom Workflow Composition
-
-**Combining workflows for efficiency**:
-
-```yaml
-# Option A: Separate workflows (easier maintenance)
-.github/workflows/
- ci.yml # Test and build
- codeql.yml # Security scanning
- deploy.yml # Production deployment
-
-# Option B: Integrated workflow (fewer CI minutes)
-.github/workflows/
- main.yml # All-in-one: test, scan, deploy
-```
-
-**Trade-off**: Separate = clearer, Integrated = faster (Error #18 prevention)
-
-### Multi-Environment Deployments
-
-**Deploy to staging and production**:
-
-```yaml
-jobs:
- deploy-staging:
- if: github.ref == 'refs/heads/develop'
- steps:
- - run: npx wrangler deploy --env staging
-
- deploy-production:
- if: github.ref == 'refs/heads/main'
- steps:
- - run: npx wrangler deploy --env production
-```
-
-**Requires**: Wrangler environments configured in `wrangler.jsonc`
-
----
-
-## Dependencies
-
-**Required**:
-- **Git** 2.0+ - Version control
-- **GitHub CLI (gh)** 2.0+ - Secret management, PR creation (optional but recommended)
-
-**Optional**:
-- **yamllint** 1.20+ - YAML validation before commit
-- **act** (local GitHub Actions runner) - Test workflows locally
-
-**Install gh CLI**:
-```bash
-# macOS
-brew install gh
-
-# Ubuntu
-sudo apt install gh
-
-# Verify
-gh --version
-```
-
----
-
-## Official Documentation
-
-- **GitHub Actions**: https://docs.github.com/en/actions
-- **Workflow Syntax**: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
-- **CodeQL**: https://codeql.github.com/docs/
-- **Dependabot**: https://docs.github.com/en/code-security/dependabot
-- **Issue Templates**: https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests
-
-**Context7 Library ID**: Search for `/websites/github` or `/github/` in Context7 MCP
-
----
-
-## Package Versions (Verified 2025-11-06)
-
-**GitHub Actions (SHA-pinned in templates)**:
-
-```yaml
-actions/checkout: 11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-actions/setup-node: 39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
-actions/setup-python: 0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
-actions/upload-artifact: b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
-actions/download-artifact: fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
-github/codeql-action/init: ea9e4e37992a54ee68a9622e985e60c8e8f12d9f # v3.27.4
-github/codeql-action/analyze: ea9e4e37992a54ee68a9622e985e60c8e8f12d9f # v3.27.4
-codecov/codecov-action: 5c47607acb93fed5485fdbf7232e8a31425f672a # v5.0.2
-```
-
-**Verification Command**:
-```bash
-# Check latest action versions
-gh api repos/actions/checkout/releases/latest
-gh api repos/github/codeql-action/releases/latest
-```
-
----
-
-## Production Example
-
-This skill is based on production testing across 3 projects:
-
-**Project 1: React App**
-- **Template Used**: ci-react.yml
-- **Build Time**: 2m 15s (CI), 45s (local)
-- **Errors**: 0 (all 18 known issues prevented)
-- **Validation**: ✅ Type checking, linting, testing, build, CodeQL
-
-**Project 2: Cloudflare Worker**
-- **Template Used**: ci-cloudflare-workers.yml
-- **Deploy Time**: 1m 30s (automated)
-- **Errors**: 0
-- **Validation**: ✅ Deployed to production, Wrangler deployment successful
-
-**Project 3: Python CLI Tool**
-- **Template Used**: ci-python.yml (matrix)
-- **Test Time**: 3m 45s (3 Python versions in parallel)
-- **Errors**: 0
-- **Validation**: ✅ Matrix testing on 3.10, 3.11, 3.12
-
-**Token Savings**: ~70% (26,500 → 7,000 tokens avg)
-
----
-
-## Troubleshooting
-
-### Problem: Workflow not triggering
-
-**Symptoms**: Pushed code but CI doesn't run
-
-**Solutions**:
-1. Check workflow is in `.github/workflows/` (not `.github/workflow/`)
-2. Verify YAML is valid: `yamllint .github/workflows/*.yml`
-3. Check trigger matches your branch: `on: push: branches: [main]`
-4. Ensure workflow file is committed and pushed
-5. Check Actions tab in GitHub for error messages
-
-### Problem: CodeQL failing with "No code found"
-
-**Symptoms**: CodeQL workflow completes but finds nothing
-
-**Solutions**:
-1. For compiled languages (Java, C++, C#), add build step:
- ```yaml
- - name: Build project
- run: ./mvnw clean install
- ```
-2. Verify language is correct in matrix:
- ```yaml
- language: ['java-kotlin'] # Not just 'java'
- ```
-3. Check CodeQL supports your language (see docs)
-
-### Problem: Secrets not available in workflow
-
-**Symptoms**: `Secret not found` or empty variable
-
-**Solutions**:
-1. Verify secret added to repository: `gh secret list`
-2. Check syntax uses double braces: `${{ secrets.NAME }}`
-3. Secrets are case-sensitive (use exact name)
-4. For forks, secrets aren't available (security)
-
-### Problem: Dependabot PRs keep failing
-
-**Symptoms**: Automated PRs fail CI checks
-
-**Solutions**:
-1. Ensure CodeQL triggers on Dependabot PRs:
- ```yaml
- on:
- push:
- branches: [dependabot/**]
- ```
-2. Check branch protection doesn't block bot PRs
-3. Verify tests pass with updated dependencies locally
-4. Review Dependabot logs: Settings → Security → Dependabot
-
-### Problem: Matrix builds all failing
-
-**Symptoms**: All matrix jobs fail with same error
-
-**Solutions**:
-1. Check variable reference includes `matrix.`:
- ```yaml
- node-version: ${{ matrix.node-version }} # NOT ${{ node-version }}
- ```
-2. Verify matrix values are valid:
- ```yaml
- matrix:
- node-version: [18, 20, 22] # Valid LTS versions
- ```
-3. Use `fail-fast: false` to see all failures:
- ```yaml
- strategy:
- fail-fast: false
- ```
-
----
-
-## Complete Setup Checklist
-
-Use this checklist to verify your GitHub automation setup:
-
-**Workflows:**
-- [ ] Created `.github/workflows/` directory
-- [ ] Copied appropriate CI workflow template
-- [ ] Updated usernames in workflow files
-- [ ] Configured secrets (if deploying)
-- [ ] SHA-pinned all actions (not @latest)
-- [ ] Explicit runner version (ubuntu-24.04)
-- [ ] Workflow triggers match branches (main/master)
-
-**Issue Templates:**
-- [ ] Created `.github/ISSUE_TEMPLATE/` directory
-- [ ] Copied bug_report.yml
-- [ ] Copied feature_request.yml
-- [ ] Updated assignees to your GitHub username
-- [ ] YAML templates use `required: true` for critical fields
-
-**PR Template:**
-- [ ] Copied PULL_REQUEST_TEMPLATE.md to `.github/`
-- [ ] Customized checklist for your project needs
-
-**Security:**
-- [ ] Copied security-codeql.yml
-- [ ] Added correct languages to CodeQL matrix
-- [ ] Set `security-events: write` permission
-- [ ] Copied dependabot.yml
-- [ ] Updated package-ecosystem (npm/pip/etc.)
-- [ ] Set reviewers in dependabot.yml
-
-**Testing:**
-- [ ] Pushed to feature branch first (not main)
-- [ ] Verified CI runs successfully
-- [ ] Checked Actions tab for any errors
-- [ ] Validated YAML syntax locally
-- [ ] Tested secret access (if applicable)
-
-**Documentation:**
-- [ ] Added badge to README.md (optional)
-- [ ] Documented required secrets in README
-- [ ] Updated CONTRIBUTING.md (if open source)
-
----
-
-**Questions? Issues?**
-
-1. Check `references/common-errors.md` for all 18 errors
-2. Verify workflow YAML is valid: `yamllint .github/workflows/*.yml`
-3. Check GitHub Actions tab for detailed error messages
-4. Review official docs: https://docs.github.com/en/actions
-5. Ensure secrets are configured: `gh secret list`
-
-**Phase 1 Complete** - Core templates and documentation ready
-**Phase 2-4 Pending** - Advanced workflows, scripts, additional guides
-
----
-
-**Last Updated**: 2025-11-06
-**Version**: 1.0.0
-**Status**: Production Ready (Phase 1 Complete)
diff --git a/skills/github-project-automation/assets/example-template.txt b/skills/github-project-automation/assets/example-template.txt
deleted file mode 100644
index 349fec2d..00000000
--- a/skills/github-project-automation/assets/example-template.txt
+++ /dev/null
@@ -1,14 +0,0 @@
-[TODO: Example Template File]
-
-[TODO: This directory contains files that will be used in the OUTPUT that Claude produces.]
-
-[TODO: Examples:]
-- Templates (.html, .tsx, .md)
-- Images (.png, .svg)
-- Fonts (.ttf, .woff)
-- Boilerplate code
-- Configuration file templates
-
-[TODO: Delete this file and add your actual assets]
-
-These files are NOT loaded into context. They are copied or used directly in the final output.
diff --git a/skills/github-project-automation/references/common-errors.md b/skills/github-project-automation/references/common-errors.md
deleted file mode 100644
index 317ec030..00000000
--- a/skills/github-project-automation/references/common-errors.md
+++ /dev/null
@@ -1,672 +0,0 @@
-# Common Errors in GitHub Automation - Complete Reference
-
-This document catalogs **18 documented errors** that this skill prevents, with sources and solutions.
-
-**Last Updated**: 2025-11-06
-**Sources**: Stack Overflow, GitHub Issues, Community Discussions, Official Docs
-
----
-
-## Table of Contents
-
-1. [GitHub Actions Syntax Errors (8 issues)](#github-actions-syntax-errors)
-2. [Issue/PR Templates (4 issues)](#issuepr-templates)
-3. [Dependabot & Security (6 issues)](#dependabot--security)
-
----
-
-## GitHub Actions Syntax Errors
-
-### Error #1: YAML Indentation Errors
-
-**Frequency**: Most Common
-**Source**: Stack Overflow, GitHub Issues
-**Impact**: Workflow fails to parse, CI doesn't run
-
-**Cause**:
-- Spaces vs tabs confusion
-- Incorrect indentation levels
-- Missing spaces after colons
-
-**Examples**:
-```yaml
-# ❌ WRONG - Missing spaces
-jobs:
-test:
- runs-on:ubuntu-latest
-
-# ❌ WRONG - Inconsistent indentation
-jobs:
- test:
- runs-on: ubuntu-latest # 6 spaces instead of 4
- steps: # 4 spaces
-
-# ✅ CORRECT - Consistent 2-space indentation
-jobs:
- test:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout
-```
-
-**Solution**: Use skill templates with correct formatting
-
----
-
-### Error #2: Missing `run` or `uses` Field
-
-**Frequency**: Common
-**Source**: GitHub Actions Error Logs
-**Impact**: "Error: Step must have a `run` or `uses` key"
-
-**Cause**:
-- Empty step definition
-- Forgetting to add the actual command
-
-**Examples**:
-```yaml
-# ❌ WRONG - Empty step
-steps:
- - name: Run tests
-
-# ❌ WRONG - Only name provided
-steps:
- - name: Build project
- env:
- NODE_ENV: production
-
-# ✅ CORRECT - Has `run` field
-steps:
- - name: Run tests
- run: npm test
-
-# ✅ CORRECT - Has `uses` field
-steps:
- - name: Checkout
- uses: actions/checkout@v4
-```
-
-**Solution**: Templates include complete step definitions
-
----
-
-### Error #3: Action Version Pinning Issues
-
-**Frequency**: Common
-**Source**: GitHub Best Practices 2025
-**Impact**: Unexpected breaking changes, security vulnerabilities
-
-**Cause**:
-- Using `@latest` or `@v4` instead of specific SHA or semver
-- Actions update and break your workflow
-
-**Examples**:
-```yaml
-# ❌ WRONG - @latest is unpredictable
-- uses: actions/checkout@latest
-
-# ❌ WRONG - Major version only
-- uses: actions/checkout@v4
-
-# ✅ GOOD - Semantic version
-- uses: actions/[email protected]
-
-# ✅ BEST - Pinned to SHA (most secure)
-- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-```
-
-**Solution**: Skill templates pin to specific SHA with version comment
-
----
-
-### Error #4: Incorrect Runner Version
-
-**Frequency**: Common
-**Source**: CI/CD Troubleshooting Guides
-**Impact**: Unexpected environment changes, compatibility issues
-
-**Cause**:
-- Using `ubuntu-latest` without understanding it changes
-- Not aware that `ubuntu-latest` moved from 22.04 → 24.04 in 2024
-
-**Examples**:
-```yaml
-# ❌ RISKY - Version changes over time
-runs-on: ubuntu-latest # Currently 24.04, was 22.04
-
-# ✅ BETTER - Explicit version
-runs-on: ubuntu-24.04 # Locked to specific LTS
-
-# ✅ BEST - Document why you chose this version
-runs-on: ubuntu-24.04 # Using 24.04 for Node.js 20 support
-```
-
-**Solution**: Templates use explicit `ubuntu-24.04`
-
----
-
-### Error #5: Multiple Keys with Same Name
-
-**Frequency**: Rare but Breaking
-**Source**: YAML Parser Updates
-**Impact**: YAML parse error, workflow invalid
-
-**Cause**:
-- Duplicate job names
-- Duplicate step names
-- Copy-paste errors
-
-**Examples**:
-```yaml
-# ❌ WRONG - Duplicate job names
-jobs:
- test:
- runs-on: ubuntu-24.04
- steps:
- - run: npm test
-
- test: # ERROR: Duplicate key
- runs-on: ubuntu-24.04
- steps:
- - run: npm run lint
-
-# ✅ CORRECT - Unique job names
-jobs:
- test-unit:
- runs-on: ubuntu-24.04
- steps:
- - run: npm test
-
- test-lint:
- runs-on: ubuntu-24.04
- steps:
- - run: npm run lint
-```
-
-**Solution**: Templates use unique, descriptive naming conventions
-
----
-
-### Error #6: Secrets Not Available
-
-**Frequency**: Common
-**Source**: GitHub Actions Debugging
-**Impact**: "Secret not found" error, deployment failures
-
-**Cause**:
-- Incorrect syntax: `$SECRETS.NAME` instead of `${{ secrets.NAME }}`
-- Secret not added to repository settings
-- Wrong secret name
-
-**Examples**:
-```yaml
-# ❌ WRONG - Missing double braces
-env:
- API_TOKEN: $secrets.API_TOKEN
-
-# ❌ WRONG - Wrong syntax
-env:
- API_TOKEN: ${secrets.API_TOKEN}
-
-# ✅ CORRECT - Proper context syntax
-env:
- API_TOKEN: ${{ secrets.API_TOKEN }}
-
-# ✅ CORRECT - Inline usage
-- run: echo "Token: ${{ secrets.API_TOKEN }}"
-```
-
-**Solution**: Templates show correct `${{ secrets.NAME }}` syntax
-
----
-
-### Error #7: Matrix Strategy Errors
-
-**Frequency**: Common
-**Source**: Troubleshooting Guides
-**Impact**: Matrix doesn't expand correctly, tests don't run
-
-**Cause**:
-- Invalid matrix configuration
-- Missing `fail-fast` setting
-- Incorrect variable reference
-
-**Examples**:
-```yaml
-# ❌ WRONG - Missing matrix values
-strategy:
- matrix:
- node-version: # ERROR: No values
-
-# ❌ WRONG - Incorrect variable reference
-strategy:
- matrix:
- node-version: [18, 20]
-steps:
- - uses: actions/setup-node@v4
- with:
- node-version: ${{ node-version }} # Missing matrix.
-
-# ✅ CORRECT - Complete matrix
-strategy:
- matrix:
- node-version: [18, 20, 22]
- fail-fast: false
-steps:
- - uses: actions/setup-node@v4
- with:
- node-version: ${{ matrix.node-version }}
-```
-
-**Solution**: Templates include working matrix examples
-
----
-
-### Error #8: Context Syntax Errors
-
-**Frequency**: Common
-**Source**: GitHub Actions Docs
-**Impact**: Variables not interpolated, empty values
-
-**Cause**:
-- Forgetting `${{ }}` wrapper
-- Wrong context name (`github.branch` instead of `github.ref`)
-
-**Examples**:
-```yaml
-# ❌ WRONG - No context wrapper
-- name: Print branch
- run: echo github.ref
-
-# ❌ WRONG - Incorrect context
-- name: Check branch
- if: github.branch == 'main' # Should be github.ref
-
-# ✅ CORRECT - Proper context syntax
-- name: Print branch
- run: echo "${{ github.ref }}"
-
-# ✅ CORRECT - Branch check
-- name: Deploy
- if: github.ref == 'refs/heads/main'
-```
-
-**Solution**: Templates demonstrate correct context usage
-
----
-
-## Issue/PR Templates
-
-### Error #9: Overly Complex Templates
-
-**Frequency**: Common
-**Source**: GitHub Best Practices
-**Impact**: Contributors ignore template, provide incomplete info
-
-**Cause**:
-- Too many fields (20+ questions)
-- Asking for irrelevant details
-- No clear prioritization
-
-**Examples**:
-```markdown
-❌ TOO COMPLEX (users skip it):
-- Environment
- - OS
- - OS Version
- - Architecture
- - Locale
- - Timezone
- - Shell
- - Terminal emulator
- - Node version
- - npm version
- - yarn version
- - Browser
- - Browser version
- - Screen resolution
- - ...20 more fields
-
-✅ FOCUSED (users complete it):
-- OS: [Windows/macOS/Linux]
-- Browser: [Chrome/Firefox/Safari]
-- Version: [e.g. 1.2.3]
-```
-
-**Solution**: Skill templates are minimal and focused (5-8 fields max)
-
----
-
-### Error #10: Generic Prompts Without Context
-
-**Frequency**: Common
-**Source**: Template Best Practices
-**Impact**: Vague bug reports, hard to reproduce
-
-**Cause**:
-- Prompts like "Steps to reproduce" without examples
-- No guidance on what information is needed
-
-**Examples**:
-```yaml
-# ❌ VAGUE
-- type: textarea
- attributes:
- label: Steps to Reproduce
- description: How to reproduce the issue
-
-# ✅ SPECIFIC
-- type: textarea
- attributes:
- label: Steps to Reproduce
- description: Detailed steps to reproduce the behavior
- placeholder: |
- 1. Go to '...'
- 2. Click on '...'
- 3. Scroll down to '...'
- 4. See error
-```
-
-**Solution**: Templates include specific, actionable prompts
-
----
-
-### Error #11: Multiple Template Confusion
-
-**Frequency**: Common
-**Source**: GitHub Docs
-**Impact**: Users don't know which template to use
-
-**Cause**:
-- Using single `ISSUE_TEMPLATE.md` file
-- Not using `ISSUE_TEMPLATE/` directory
-
-**Examples**:
-```
-❌ OLD WAY (confusing):
-.github/
- ISSUE_TEMPLATE.md # Only one template available
-
-✅ NEW WAY (clear choices):
-.github/
- ISSUE_TEMPLATE/
- bug_report.yml # Bug reports
- feature_request.yml # Feature requests
- documentation.yml # Docs updates
- config.yml # Template configuration
-```
-
-**Solution**: Skill uses proper `ISSUE_TEMPLATE/` directory structure
-
----
-
-### Error #12: Missing Required Fields
-
-**Frequency**: Common
-**Source**: Community Feedback
-**Impact**: Incomplete issues, missing critical info
-
-**Cause**:
-- Markdown templates don't validate
-- No required field enforcement
-
-**Examples**:
-```markdown
-❌ MARKDOWN TEMPLATE (no validation):
-## Bug Description
-<!-- User can leave this blank -->
-
-## Steps to Reproduce
-<!-- User can leave this blank -->
-
-✅ YAML TEMPLATE (validation):
-- type: textarea
- id: description
- attributes:
- label: Bug Description
- validations:
- required: true # GitHub enforces this!
-```
-
-**Solution**: Skill uses YAML templates with required field validation
-
----
-
-## Dependabot & Security
-
-### Error #13: CodeQL Not Running on Dependabot PRs
-
-**Frequency**: Common
-**Source**: GitHub Community Discussion #121836
-**Impact**: Security scans skipped on dependency updates
-
-**Cause**:
-- Default setup limitations
-- Permissions issues on Dependabot PRs
-- Branch protection rules
-
-**Examples**:
-```yaml
-# ❌ DOESN'T RUN ON DEPENDABOT
-on:
- pull_request:
- branches: [main]
-
-# ✅ INCLUDES DEPENDABOT
-on:
- pull_request:
- branches: [main]
- # Dependabot creates PRs from special branches
- push:
- branches: [dependabot/**]
-```
-
-**Solution**: Templates include proper trigger configuration
-
----
-
-### Error #14: Branch Protection Blocking All PRs
-
-**Frequency**: Common
-**Source**: Security Alerts Guide
-**Impact**: Legitimate PRs blocked, development stalled
-
-**Cause**:
-- Over-restrictive alert policies
-- Requiring ALL security checks pass
-- Not exempting minor alerts
-
-**Examples**:
-```
-❌ TOO RESTRICTIVE:
-Branch protection requires:
- ✓ All security alerts resolved (blocks devDependencies alerts)
- ✓ All CodeQL checks pass (blocks on info-level findings)
-
-✅ BALANCED:
-Branch protection requires:
- ✓ Critical/High security alerts resolved
- ✓ CodeQL error-level checks pass
- ⚠ Medium/Low alerts can be addressed later
-```
-
-**Solution**: Reference docs explain proper protection scoping
-
----
-
-### Error #15: Compiled Language CodeQL Setup
-
-**Frequency**: Common for Java/C++/C#
-**Source**: CodeQL Documentation
-**Impact**: CodeQL fails with "No code found"
-
-**Cause**:
-- Missing build steps
-- CodeQL can't analyze without compiled artifacts
-
-**Examples**:
-```yaml
-# ❌ WRONG - No build step for Java
-- name: Initialize CodeQL
- uses: github/codeql-action/init@v3
- with:
- languages: 'java'
-
-- name: Perform CodeQL Analysis # FAILS - no .class files
- uses: github/codeql-action/analyze@v3
-
-# ✅ CORRECT - Include build
-- name: Initialize CodeQL
- uses: github/codeql-action/init@v3
- with:
- languages: 'java'
-
-- name: Build project
- run: ./mvnw clean install # Creates .class files
-
-- name: Perform CodeQL Analysis # SUCCESS
- uses: github/codeql-action/analyze@v3
-```
-
-**Solution**: Templates include build steps for compiled languages
-
----
-
-### Error #16: Development Dependencies Ignored
-
-**Frequency**: Common
-**Source**: Security Best Practices
-**Impact**: Vulnerable devDependencies not scanned
-
-**Cause**:
-- Thinking devDependencies don't matter
-- Not enabling full dependency scanning
-
-**Examples**:
-```yaml
-# ❌ WRONG - Ignores devDependencies
-ignore:
- - dependency-name: "*"
- dependency-type: development
-
-# ✅ CORRECT - Includes all dependencies
-# No ignore rules, or specific exclusions only
-ignore:
- - dependency-name: "webpack"
- update-types: ["version-update:semver-major"]
-```
-
-**Why This Matters**: DevDependencies run during build, can execute malicious code
-
-**Solution**: Templates scan both prod and dev dependencies
-
----
-
-### Error #17: Dependabot Alert Limit
-
-**Frequency**: Common for large projects
-**Source**: GitHub Docs
-**Impact**: Only 10 alerts auto-fixed, others require manual review
-
-**Cause**:
-- GitHub limits Dependabot to 10 open PRs per ecosystem
-- Large projects exceed this quickly
-
-**Examples**:
-```
-❌ PROBLEM: 50 outdated npm packages
-Dependabot creates:
- ✓ 10 PRs (auto-opened)
- ❌ 40 alerts (queued, not opened)
-
-✅ SOLUTION: Increase open-pull-requests-limit
-# dependabot.yml
-- package-ecosystem: "npm"
- open-pull-requests-limit: 10 # Default
- # Still capped at 10 by GitHub!
-
-WORKAROUND:
-1. Merge PRs in batches
-2. Use @dependabot rebase for stale PRs
-3. Manually update remaining packages
-```
-
-**Solution**: Templates document this limitation, reference workaround
-
----
-
-### Error #18: Workflow Duplication
-
-**Frequency**: Common
-**Source**: DevSecOps Guides
-**Impact**: Maintenance overhead, confusion, wasted CI time
-
-**Cause**:
-- Separate workflows for CI, CodeQL, Dependabot review
-- All run similar setup steps
-
-**Examples**:
-```
-❌ DUPLICATED WORKFLOWS:
-.github/workflows/
- ci.yml # Checkout, setup, test
- codeql.yml # Checkout, setup, scan
- dependency-review.yml # Checkout, setup, review
-
-Total: 3× checkout, 3× setup, 3× CI minutes
-
-✅ INTEGRATED WORKFLOW:
-.github/workflows/
- ci-security.yml # Checkout, setup ONCE, then:
- # - test
- # - CodeQL scan
- # - dependency review
-
-Total: 1× checkout, 1× setup, optimized
-```
-
-**Solution**: Templates offer both separate and integrated options
-
----
-
-## Summary Table
-
-| # | Error | Frequency | Impact | Prevented By |
-|---|-------|-----------|--------|--------------|
-| 1 | YAML Indentation Errors | Very High | Parse failure | Pre-validated templates |
-| 2 | Missing run/uses Field | High | Step failure | Complete step definitions |
-| 3 | Action Version Pinning | High | Breaking changes | SHA-pinned actions |
-| 4 | Incorrect Runner Version | High | Compatibility | Explicit ubuntu-24.04 |
-| 5 | Duplicate YAML Keys | Low | Parse failure | Unique naming |
-| 6 | Secrets Syntax Errors | High | Deployment failure | Correct context syntax |
-| 7 | Matrix Strategy Errors | Medium | Test skipped | Working matrix examples |
-| 8 | Context Syntax Errors | High | Empty variables | Context reference guide |
-| 9 | Overly Complex Templates | High | Low completion | Minimal templates |
-| 10 | Generic Prompts | High | Vague reports | Specific placeholders |
-| 11 | Multiple Template Confusion | Medium | Wrong template | Proper directory structure |
-| 12 | Missing Required Fields | High | Incomplete issues | YAML validation |
-| 13 | CodeQL Not on Dependabot | Medium | Security gap | Proper triggers |
-| 14 | Branch Protection Blocking | Medium | Dev stalled | Scoped rules guide |
-| 15 | Compiled Language CodeQL | Medium | Scan failure | Build steps |
-| 16 | DevDependencies Ignored | High | Vulnerable deps | Full scanning |
-| 17 | Dependabot Alert Limit | Medium | Manual work | Document limit |
-| 18 | Workflow Duplication | Medium | Wasted CI | Integrated templates |
-
-**Total**: 18 documented errors with solutions
-
----
-
-## How This Skill Prevents These Errors
-
-1. **Pre-validated Templates**: All YAML is tested and correct
-2. **SHA-pinned Actions**: Security best practices built-in
-3. **Complete Examples**: No guessing about syntax
-4. **Reference Guides**: All 18 errors documented with fixes
-5. **Validation Scripts**: Check before committing
-
-**Result**: 100% error prevention vs manual setup
-
----
-
-**Last Verified**: 2025-11-06
-**Next Review**: 2026-02-06 (Quarterly)
diff --git a/skills/github-project-automation/scripts/generate-codeowners.sh b/skills/github-project-automation/scripts/generate-codeowners.sh
deleted file mode 100755
index c8df02ab..00000000
--- a/skills/github-project-automation/scripts/generate-codeowners.sh
+++ /dev/null
@@ -1,174 +0,0 @@
-#!/bin/bash
-# CODEOWNERS Generator
-# Auto-generates CODEOWNERS file based on git history
-#
-# Usage: ./scripts/generate-codeowners.sh
-
-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"
-}
-
-# Check if in git repo
-if [ ! -d ".git" ]; then
- print_error "Not a git repository"
- exit 1
-fi
-
-print_header "CODEOWNERS Generator"
-
-# Get GitHub username
-if command -v gh &> /dev/null; then
- DEFAULT_OWNER=$(gh api user -q .login 2>/dev/null || echo "")
-else
- DEFAULT_OWNER=$(git config user.name | tr '[:upper:]' '[:lower:]' | tr ' ' '-' 2>/dev/null || echo "")
-fi
-
-read -p "Default owner [@$DEFAULT_OWNER]: " OWNER
-OWNER=${OWNER:-$DEFAULT_OWNER}
-
-if [ -z "$OWNER" ]; then
- print_error "No owner specified"
- exit 1
-fi
-
-# Analyze git history to find frequent contributors per path
-print_header "Analyzing Git History"
-
-echo "Finding top contributors for each directory..."
-echo ""
-
-# Create temporary file
-TEMP_FILE=$(mktemp)
-CODEOWNERS_FILE=".github/CODEOWNERS"
-
-# Write header
-cat > "$TEMP_FILE" << 'EOF'
-# Code Owners
-#
-# Auto-generated based on git history
-# Review and customize as needed
-#
-# Documentation: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
-
-EOF
-
-# Default owner for everything
-echo "# Default owner" >> "$TEMP_FILE"
-echo "* @$OWNER" >> "$TEMP_FILE"
-echo "" >> "$TEMP_FILE"
-
-# Find directories and their top contributors
-echo "# Directory-specific owners (based on commit history)" >> "$TEMP_FILE"
-
-find . -type d -not -path '*/\.*' -not -path './node_modules/*' -not -path './dist/*' -not -path './build/*' | sort | while read -r dir; do
- # Skip root directory
- if [ "$dir" = "." ]; then
- continue
- fi
-
- # Get commits for this directory
- COMMITS=$(git log --format="%ae" -- "$dir" 2>/dev/null | wc -l)
-
- if [ "$COMMITS" -gt 5 ]; then
- # Get top contributor
- TOP_CONTRIBUTOR=$(git log --format="%ae" -- "$dir" 2>/dev/null | sort | uniq -c | sort -rn | head -1 | awk '{print $2}')
-
- if [ -n "$TOP_CONTRIBUTOR" ]; then
- # Extract GitHub username from email (best effort)
- GITHUB_USER=$(echo "$TOP_CONTRIBUTOR" | cut -d'@' -f1 | tr '[:upper:]' '[:lower:]' | tr '.' '-')
-
- # Only add if different from default owner
- if [ "$GITHUB_USER" != "$OWNER" ]; then
- echo "$dir/ @$GITHUB_USER @$OWNER" >> "$TEMP_FILE"
- echo " $dir/ -> @$GITHUB_USER"
- fi
- fi
- fi
-done
-
-echo "" >> "$TEMP_FILE"
-
-# Add common patterns
-cat >> "$TEMP_FILE" << EOF
-# Documentation
-*.md @$OWNER
-/docs/ @$OWNER
-
-# Configuration files
-*.yml @$OWNER
-*.yaml @$OWNER
-*.json @$OWNER
-*.toml @$OWNER
-
-# GitHub workflows
-/.github/ @$OWNER
-
-# Dependencies (requires careful review)
-package.json @$OWNER
-package-lock.json @$OWNER
-requirements.txt @$OWNER
-EOF
-
-# Create .github directory if it doesn't exist
-mkdir -p .github
-
-# Move temp file to CODEOWNERS
-mv "$TEMP_FILE" "$CODEOWNERS_FILE"
-
-print_success "Generated $CODEOWNERS_FILE"
-
-# Show preview
-print_header "Preview"
-
-head -30 "$CODEOWNERS_FILE"
-
-if [ $(wc -l < "$CODEOWNERS_FILE") -gt 30 ]; then
- echo "..."
- echo "(Showing first 30 lines. See $CODEOWNERS_FILE for full file)"
-fi
-
-# Next steps
-print_header "Next Steps"
-
-echo "1. Review and customize $CODEOWNERS_FILE"
-echo " - Verify GitHub usernames are correct"
-echo " - Add team names if applicable (e.g., @org/team-name)"
-echo " - Adjust ownership as needed"
-echo ""
-echo "2. Commit the file:"
-echo " git add $CODEOWNERS_FILE"
-echo " git commit -m \"Add CODEOWNERS file\""
-echo " git push"
-echo ""
-echo "3. Enable branch protection:"
-echo " - Go to Settings > Branches"
-echo " - Require review from code owners"
-
-print_success "Done!"
-
-exit 0
diff --git a/skills/github-project-automation/scripts/setup-github-project.sh b/skills/github-project-automation/scripts/setup-github-project.sh
deleted file mode 100755
index bc342204..00000000
--- a/skills/github-project-automation/scripts/setup-github-project.sh
+++ /dev/null
@@ -1,214 +0,0 @@
-#!/bin/bash
-# GitHub Project Setup Wizard
-# Interactive script to set up GitHub automation for a project
-#
-# Usage: ./scripts/setup-github-project.sh [framework]
-# Example: ./scripts/setup-github-project.sh react
-
-set -e # Exit on error
-
-# Colors
-RED='\033[0;31m'
-GREEN='\033[0;32m'
-YELLOW='\033[1;33m'
-BLUE='\033[0;34m'
-NC='\033[0m' # No Color
-
-# Helper functions
-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"
-}
-
-# Check if running in a git repository
-if [ ! -d ".git" ]; then
- print_error "Not a git repository. Run 'git init' first."
- exit 1
-fi
-
-print_header "GitHub Project Automation Setup"
-
-# Determine framework
-FRAMEWORK=${1:-""}
-
-if [ -z "$FRAMEWORK" ]; then
- echo "Which framework are you using?"
- echo " 1) React/Vite"
- echo " 2) Node.js library"
- echo " 3) Python"
- echo " 4) Cloudflare Workers"
- echo " 5) Generic/Other"
- read -p "Choose (1-5): " choice
-
- case $choice in
- 1) FRAMEWORK="react" ;;
- 2) FRAMEWORK="node" ;;
- 3) FRAMEWORK="python" ;;
- 4) FRAMEWORK="cloudflare" ;;
- 5) FRAMEWORK="basic" ;;
- *) print_error "Invalid choice"; exit 1 ;;
- esac
-fi
-
-print_success "Framework: $FRAMEWORK"
-
-# 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
-
-# Create .github directory structure
-print_header "Creating Directory Structure"
-
-mkdir -p .github/workflows
-mkdir -p .github/ISSUE_TEMPLATE
-
-print_success "Created .github/workflows/"
-print_success "Created .github/ISSUE_TEMPLATE/"
-
-# Copy workflow template based on framework
-print_header "Setting Up CI/CD Workflow"
-
-case $FRAMEWORK in
- react)
- cp "$TEMPLATES_DIR/workflows/ci-react.yml" .github/workflows/ci.yml
- print_success "Copied React CI workflow"
- ;;
- node)
- cp "$TEMPLATES_DIR/workflows/ci-node.yml" .github/workflows/ci.yml
- print_success "Copied Node.js matrix CI workflow"
- ;;
- python)
- cp "$TEMPLATES_DIR/workflows/ci-python.yml" .github/workflows/ci.yml
- print_success "Copied Python matrix CI workflow"
- ;;
- cloudflare)
- cp "$TEMPLATES_DIR/workflows/ci-cloudflare-workers.yml" .github/workflows/deploy.yml
- print_success "Copied Cloudflare Workers deployment workflow"
- ;;
- basic)
- cp "$TEMPLATES_DIR/workflows/ci-basic.yml" .github/workflows/ci.yml
- print_success "Copied basic CI workflow"
- ;;
-esac
-
-# Ask about security scanning
-echo ""
-read -p "Enable security scanning (CodeQL + Dependabot)? [Y/n] " enable_security
-enable_security=${enable_security:-Y}
-
-if [[ $enable_security =~ ^[Yy]$ ]]; then
- cp "$TEMPLATES_DIR/workflows/security-codeql.yml" .github/workflows/codeql.yml
- cp "$TEMPLATES_DIR/security/dependabot.yml" .github/dependabot.yml
- print_success "Enabled CodeQL scanning"
- print_success "Enabled Dependabot updates"
-fi
-
-# Ask about issue templates
-echo ""
-read -p "Add issue templates? [Y/n] " enable_issues
-enable_issues=${enable_issues:-Y}
-
-if [[ $enable_issues =~ ^[Yy]$ ]]; then
- cp "$TEMPLATES_DIR/issue-templates/bug_report.yml" .github/ISSUE_TEMPLATE/
- cp "$TEMPLATES_DIR/issue-templates/feature_request.yml" .github/ISSUE_TEMPLATE/
- cp "$TEMPLATES_DIR/issue-templates/documentation.yml" .github/ISSUE_TEMPLATE/
- cp "$TEMPLATES_DIR/issue-templates/config.yml" .github/ISSUE_TEMPLATE/
- print_success "Added issue templates"
-fi
-
-# Ask about PR template
-echo ""
-read -p "Add pull request template? [Y/n] " enable_pr
-enable_pr=${enable_pr:-Y}
-
-if [[ $enable_pr =~ ^[Yy]$ ]]; then
- cp "$TEMPLATES_DIR/pr-templates/PULL_REQUEST_TEMPLATE.md" .github/
- print_success "Added PR template"
-fi
-
-# Ask about CODEOWNERS
-echo ""
-read -p "Add CODEOWNERS file? [Y/n] " enable_codeowners
-enable_codeowners=${enable_codeowners:-Y}
-
-if [[ $enable_codeowners =~ ^[Yy]$ ]]; then
- cp "$TEMPLATES_DIR/misc/CODEOWNERS" .github/
- print_success "Added CODEOWNERS file"
-fi
-
-# Ask about SECURITY.md
-echo ""
-read -p "Add SECURITY.md policy? [Y/n] " enable_security_md
-enable_security_md=${enable_security_md:-Y}
-
-if [[ $enable_security_md =~ ^[Yy]$ ]]; then
- cp "$TEMPLATES_DIR/security/SECURITY.md" .
- print_success "Added SECURITY.md"
-fi
-
-# Customization reminder
-print_header "Customization Required"
-
-print_warning "Don't forget to customize the following:"
-echo " 1. Replace 'jezweb' with your GitHub username in:"
-echo " - .github/ISSUE_TEMPLATE/*.yml (assignees)"
-echo " - .github/dependabot.yml (reviewers)"
-echo " - .github/CODEOWNERS"
-echo ""
-echo " 2. Update CodeQL languages in .github/workflows/codeql.yml"
-echo " Current: javascript-typescript"
-echo " Options: c-cpp, csharp, go, java-kotlin, python, ruby, swift"
-echo ""
-echo " 3. Configure deployment secrets (if using deployment workflows):"
-echo " gh secret set CLOUDFLARE_API_TOKEN"
-echo " gh secret set NPM_TOKEN"
-echo ""
-echo " 4. Update URLs in templates:"
-echo " - SECURITY.md (email, website)"
-echo " - issue-templates/config.yml (links)"
-
-# Git status
-print_header "Next Steps"
-
-echo "1. Review and customize the files"
-echo "2. Test locally:"
-echo " - Validate YAML: yamllint .github/workflows/*.yml"
-echo " - Check templates look correct"
-echo ""
-echo "3. Commit and push:"
-echo " git add .github/ SECURITY.md"
-echo " git commit -m \"Add GitHub automation\""
-echo " git push"
-echo ""
-echo "4. Verify workflows run successfully in GitHub Actions tab"
-
-print_success "Setup complete!"
-
-# Show what was created
-echo ""
-echo "Files created:"
-find .github -type f | sed 's/^/ /'
-[ -f "SECURITY.md" ] && echo " SECURITY.md"
-
-exit 0
diff --git a/skills/github-project-automation/scripts/sync-templates.sh b/skills/github-project-automation/scripts/sync-templates.sh
deleted file mode 100755
index 8de2c676..00000000
--- a/skills/github-project-automation/scripts/sync-templates.sh
+++ /dev/null
@@ -1,188 +0,0 @@
-#!/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
diff --git a/skills/github-project-automation/scripts/validate-workflows.sh b/skills/github-project-automation/scripts/validate-workflows.sh
deleted file mode 100755
index dd6ef653..00000000
--- a/skills/github-project-automation/scripts/validate-workflows.sh
+++ /dev/null
@@ -1,198 +0,0 @@
-#!/bin/bash
-# Workflow Validation Script
-# Validates GitHub Actions workflows for syntax errors
-#
-# Usage: ./scripts/validate-workflows.sh
-
-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"
-}
-
-print_header "GitHub Workflows Validation"
-
-# Check if .github/workflows exists
-if [ ! -d ".github/workflows" ]; then
- print_error "No .github/workflows directory found"
- exit 1
-fi
-
-# Count workflow files
-WORKFLOW_COUNT=$(find .github/workflows -name "*.yml" -o -name "*.yaml" | wc -l)
-
-if [ "$WORKFLOW_COUNT" -eq 0 ]; then
- print_warning "No workflow files found in .github/workflows"
- exit 0
-fi
-
-echo "Found $WORKFLOW_COUNT workflow file(s)"
-echo ""
-
-# Check if yamllint is installed
-HAS_YAMLLINT=false
-if command -v yamllint &> /dev/null; then
- HAS_YAMLLINT=true
-fi
-
-# Check if yq is installed (alternative YAML parser)
-HAS_YQ=false
-if command -v yq &> /dev/null; then
- HAS_YQ=true
-fi
-
-ERRORS=0
-
-# Validate each workflow
-for workflow in .github/workflows/*.yml .github/workflows/*.yaml 2>/dev/null; do
- [ -f "$workflow" ] || continue
-
- filename=$(basename "$workflow")
- echo "Validating: $filename"
-
- # Basic checks
- ISSUES=()
-
- # Check for @latest usage (Error #3)
- if grep -q "@latest" "$workflow"; then
- ISSUES+=("Uses @latest for action versions (should use SHA)")
- fi
-
- # Check for ubuntu-latest (Error #4)
- if grep -q "runs-on:.*ubuntu-latest" "$workflow"; then
- ISSUES+=("Uses ubuntu-latest (should use ubuntu-24.04)")
- fi
-
- # Check for incorrect secrets syntax (Error #6)
- if grep -q '\$secrets\.' "$workflow"; then
- ISSUES+=("Incorrect secrets syntax (missing {{ }})")
- fi
-
- # Check for required fields
- if ! grep -q "^name:" "$workflow"; then
- ISSUES+=("Missing 'name:' field")
- fi
-
- if ! grep -q "^on:" "$workflow"; then
- ISSUES+=("Missing 'on:' trigger")
- fi
-
- # YAML syntax validation
- if [ "$HAS_YAMLLINT" = true ]; then
- if ! yamllint -d relaxed "$workflow" >/dev/null 2>&1; then
- ISSUES+=("YAML syntax errors (run yamllint for details)")
- fi
- elif [ "$HAS_YQ" = true ]; then
- if ! yq eval '.' "$workflow" >/dev/null 2>&1; then
- ISSUES+=("YAML syntax errors")
- fi
- else
- # Basic Python YAML check
- if command -v python3 &> /dev/null; then
- if ! python3 -c "import yaml; yaml.safe_load(open('$workflow'))" 2>/dev/null; then
- ISSUES+=("YAML syntax errors")
- fi
- fi
- fi
-
- # Report results
- if [ ${#ISSUES[@]} -eq 0 ]; then
- print_success "$filename"
- else
- print_error "$filename - ${#ISSUES[@]} issue(s) found:"
- for issue in "${ISSUES[@]}"; do
- echo " - $issue"
- done
- ERRORS=$((ERRORS + 1))
- fi
-
- echo ""
-done
-
-# Validate dependabot.yml if it exists
-if [ -f ".github/dependabot.yml" ]; then
- echo "Validating: dependabot.yml"
-
- ISSUES=()
-
- # Check for version field
- if ! grep -q "^version:" ".github/dependabot.yml"; then
- ISSUES+=("Missing 'version:' field")
- fi
-
- # Check for updates field
- if ! grep -q "updates:" ".github/dependabot.yml"; then
- ISSUES+=("Missing 'updates:' section")
- fi
-
- # YAML syntax validation
- if [ "$HAS_YAMLLINT" = true ]; then
- if ! yamllint -d relaxed ".github/dependabot.yml" >/dev/null 2>&1; then
- ISSUES+=("YAML syntax errors")
- fi
- elif [ "$HAS_YQ" = true ]; then
- if ! yq eval '.' ".github/dependabot.yml" >/dev/null 2>&1; then
- ISSUES+=("YAML syntax errors")
- fi
- fi
-
- if [ ${#ISSUES[@]} -eq 0 ]; then
- print_success "dependabot.yml"
- else
- print_error "dependabot.yml - ${#ISSUES[@]} issue(s) found:"
- for issue in "${ISSUES[@]}"; do
- echo " - $issue"
- done
- ERRORS=$((ERRORS + 1))
- fi
-
- echo ""
-fi
-
-# Summary
-print_header "Validation Summary"
-
-if [ $ERRORS -eq 0 ]; then
- print_success "All workflows validated successfully!"
- echo ""
- echo "Next steps:"
- echo " 1. Commit your changes: git add .github/ && git commit -m \"Add workflows\""
- echo " 2. Push to GitHub: git push"
- echo " 3. Check Actions tab for workflow runs"
- exit 0
-else
- print_error "$ERRORS file(s) with issues"
- echo ""
- echo "Fix the issues above before committing."
- echo ""
- echo "Recommended tools:"
- if [ "$HAS_YAMLLINT" = false ]; then
- echo " - Install yamllint: pip install yamllint"
- fi
- echo " - GitHub CLI: gh workflow list"
- echo " - Online validator: https://www.yamllint.com/"
- exit 1
-fi
diff --git a/skills/github-project-automation/templates/issue-templates/bug_report.yml b/skills/github-project-automation/templates/issue-templates/bug_report.yml
deleted file mode 100644
index ea45893d..00000000
--- a/skills/github-project-automation/templates/issue-templates/bug_report.yml
+++ /dev/null
@@ -1,120 +0,0 @@
-# Bug Report Template (YAML Format)
-# Prevents Error #11 (multiple template confusion), #12 (missing required fields)
-#
-# Benefits of YAML format:
-# - Form validation (required fields)
-# - Dropdowns for consistent data
-# - Better UX than Markdown templates
-
-name: Bug Report
-description: File a bug report to help us improve
-title: "[Bug]: "
-labels: ["bug", "triage"]
-assignees:
- - jezweb # Replace with your GitHub username
-
-body:
- - type: markdown
- attributes:
- value: |
- Thanks for taking the time to file a bug report! Please fill out this form as completely as possible.
-
- - type: checkboxes
- id: pre-checks
- attributes:
- label: Pre-submission Checks
- description: Please confirm you've completed these steps
- options:
- - label: I have searched existing issues to avoid duplicates
- required: true
- - label: I have tested this on the latest version
- required: true
-
- - type: textarea
- id: description
- attributes:
- label: Bug Description
- description: A clear and concise description of what the bug is
- placeholder: "When I click the submit button, the form doesn't validate..."
- validations:
- required: true
-
- - type: textarea
- id: reproduction
- attributes:
- label: Steps to Reproduce
- description: Detailed steps to reproduce the behavior
- placeholder: |
- 1. Go to '...'
- 2. Click on '...'
- 3. Scroll down to '...'
- 4. See error
- validations:
- required: true
-
- - type: textarea
- id: expected
- attributes:
- label: Expected Behavior
- description: What you expected to happen
- placeholder: "The form should validate and display success message..."
- validations:
- required: true
-
- - type: textarea
- id: actual
- attributes:
- label: Actual Behavior
- description: What actually happened
- placeholder: "Instead, I see an error: 'Network request failed'..."
- validations:
- required: true
-
- - type: dropdown
- id: severity
- attributes:
- label: Severity
- description: How severe is this bug?
- options:
- - Critical (blocks all functionality)
- - High (major feature broken)
- - Medium (feature partially works)
- - Low (minor issue or cosmetic)
- validations:
- required: true
-
- - type: textarea
- id: environment
- attributes:
- label: Environment
- description: |
- Provide details about your environment:
- - OS: [e.g. Windows 11, macOS 14, Ubuntu 24.04]
- - Browser: [e.g. Chrome 120, Firefox 121]
- - Version: [e.g. 1.2.3]
- placeholder: |
- - OS: macOS 14
- - Browser: Chrome 120
- - Version: 1.2.3
- validations:
- required: true
-
- - type: textarea
- id: logs
- attributes:
- label: Error Logs
- description: Paste any relevant error logs or console output
- render: shell
-
- - type: textarea
- id: screenshots
- attributes:
- label: Screenshots
- description: If applicable, add screenshots or videos to help explain the problem
- placeholder: Drag and drop images/videos here
-
- - type: textarea
- id: additional
- attributes:
- label: Additional Context
- description: Add any other context about the problem here
diff --git a/skills/github-project-automation/templates/issue-templates/config.yml b/skills/github-project-automation/templates/issue-templates/config.yml
deleted file mode 100644
index 22214c63..00000000
--- a/skills/github-project-automation/templates/issue-templates/config.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-# Issue Template Configuration
-# Controls the issue template chooser interface
-
-blank_issues_enabled: true # Allow blank issues
-
-contact_links:
- - name: 💬 Discussions
- url: https://github.com/your-username/your-repo/discussions
- about: Ask questions and discuss ideas with the community
-
- - name: 📖 Documentation
- url: https://your-docs-site.com
- about: Read the official documentation
-
- - name: 🔒 Security Issues
- url: https://github.com/your-username/your-repo/security/advisories/new
- about: Report security vulnerabilities privately
diff --git a/skills/github-project-automation/templates/issue-templates/documentation.yml b/skills/github-project-automation/templates/issue-templates/documentation.yml
deleted file mode 100644
index bef33f7f..00000000
--- a/skills/github-project-automation/templates/issue-templates/documentation.yml
+++ /dev/null
@@ -1,99 +0,0 @@
-# Documentation Update Template (YAML Format)
-
-name: Documentation Update
-description: Suggest improvements or corrections to documentation
-title: "[Docs]: "
-labels: ["documentation", "triage"]
-assignees:
- - jezweb # Replace with your GitHub username
-
-body:
- - type: markdown
- attributes:
- value: |
- Thanks for helping improve our documentation!
-
- - type: dropdown
- id: doc-type
- attributes:
- label: Documentation Type
- description: What type of documentation needs updating?
- options:
- - README
- - API documentation
- - Code comments
- - Tutorial/Guide
- - Installation instructions
- - Configuration guide
- - Troubleshooting guide
- - Other
- validations:
- required: true
-
- - type: textarea
- id: location
- attributes:
- label: Location
- description: Where is the documentation that needs updating?
- placeholder: |
- - File: README.md, line 42
- - URL: https://docs.example.com/api/auth
- - Section: "Installation" > "Prerequisites"
- validations:
- required: true
-
- - type: dropdown
- id: issue-type
- attributes:
- label: Issue Type
- description: What kind of documentation issue is this?
- options:
- - Missing information
- - Incorrect/outdated information
- - Unclear explanation
- - Broken link
- - Typo/grammar
- - Code example doesn't work
- - Needs more examples
- - Formatting issue
- validations:
- required: true
-
- - type: textarea
- id: current
- attributes:
- label: Current Documentation
- description: Quote the current documentation (if applicable)
- placeholder: |
- ```
- Current text here...
- ```
-
- - type: textarea
- id: suggested
- attributes:
- label: Suggested Improvement
- description: How should it be changed?
- placeholder: |
- Suggested new text or explanation...
- validations:
- required: true
-
- - type: textarea
- id: context
- attributes:
- label: Additional Context
- description: Why is this change needed? Who will benefit?
- placeholder: "This confused me when I was trying to..."
-
- - type: dropdown
- id: willingness
- attributes:
- label: Willingness to Contribute
- description: Can you submit a PR with this documentation update?
- options:
- - "Yes, I can submit a PR"
- - "No, but I can help review"
- - "No, just reporting the issue"
- validations:
- required: false
diff --git a/skills/github-project-automation/templates/issue-templates/feature_request.yml b/skills/github-project-automation/templates/issue-templates/feature_request.yml
deleted file mode 100644
index 3f3bfb64..00000000
--- a/skills/github-project-automation/templates/issue-templates/feature_request.yml
+++ /dev/null
@@ -1,99 +0,0 @@
-# Feature Request Template (YAML Format)
-# Prevents Error #11 (multiple template confusion), #12 (missing required fields)
-
-name: Feature Request
-description: Suggest a new feature or enhancement
-title: "[Feature]: "
-labels: ["enhancement", "triage"]
-assignees:
- - jezweb # Replace with your GitHub username
-
-body:
- - type: markdown
- attributes:
- value: |
- Thanks for suggesting a new feature! Please provide as much detail as possible.
-
- - type: checkboxes
- id: pre-checks
- attributes:
- label: Pre-submission Checks
- description: Please confirm you've completed these steps
- options:
- - label: I have searched existing issues to avoid duplicates
- required: true
- - label: This feature aligns with the project's goals
- required: false
-
- - type: textarea
- id: problem
- attributes:
- label: Problem Statement
- description: Is your feature request related to a problem? Please describe.
- placeholder: "I'm frustrated when I try to... because..."
- validations:
- required: true
-
- - type: textarea
- id: solution
- attributes:
- label: Proposed Solution
- description: Describe the solution you'd like
- placeholder: "I would like to see a feature that..."
- validations:
- required: true
-
- - type: textarea
- id: alternatives
- attributes:
- label: Alternatives Considered
- description: Describe any alternative solutions or features you've considered
- placeholder: "I considered using... but it doesn't..."
-
- - type: dropdown
- id: priority
- attributes:
- label: Priority
- description: How important is this feature to you?
- options:
- - Critical (blocking my work)
- - High (important, but workaround exists)
- - Medium (would be nice to have)
- - Low (minor improvement)
- validations:
- required: true
-
- - type: dropdown
- id: willingness
- attributes:
- label: Willingness to Contribute
- description: Are you willing to help implement this feature?
- options:
- - "Yes, I can submit a PR"
- - "Yes, I can help test"
- - "No, but I can provide feedback"
- - "No, I just want to suggest the idea"
- validations:
- required: false
-
- - type: textarea
- id: use-case
- attributes:
- label: Use Case
- description: Describe a specific use case for this feature
- placeholder: "As a user, I want to... so that I can..."
- validations:
- required: true
-
- - type: textarea
- id: mockups
- attributes:
- label: Mockups or Examples
- description: If applicable, add mockups, sketches, or examples from other projects
- placeholder: Drag and drop images here
-
- - type: textarea
- id: additional
- attributes:
- label: Additional Context
- description: Add any other context, screenshots, or examples about the feature request
diff --git a/skills/github-project-automation/templates/misc/CODEOWNERS b/skills/github-project-automation/templates/misc/CODEOWNERS
deleted file mode 100644
index 44df7f63..00000000
--- a/skills/github-project-automation/templates/misc/CODEOWNERS
+++ /dev/null
@@ -1,70 +0,0 @@
-# Code Owners
-#
-# This file defines who should review PRs that modify specific files/directories.
-# GitHub automatically requests reviews from code owners when a PR touches their files.
-#
-# Format: path/to/file @username @team-name
-# More specific patterns take precedence over less specific ones.
-#
-# Documentation: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
-
-# Default owners for everything in the repo
-# These owners will be requested for review unless a more specific rule below applies
-* @jezweb
-
-# Documentation
-*.md @jezweb
-/docs/ @jezweb
-
-# Configuration files
-*.yml @jezweb
-*.yaml @jezweb
-*.json @jezweb
-*.toml @jezweb
-wrangler.jsonc @jezweb
-package.json @jezweb
-tsconfig.json @jezweb
-
-# GitHub workflows
-/.github/ @jezweb
-
-# Source code
-/src/ @jezweb
-
-# Tests
-/test/ @jezweb
-/tests/ @jezweb
-/**/*.test.ts @jezweb
-/**/*.spec.ts @jezweb
-
-# Build configuration
-vite.config.ts @jezweb
-webpack.config.js @jezweb
-rollup.config.js @jezweb
-
-# Security-sensitive files
-SECURITY.md @jezweb
-/scripts/ @jezweb
-
-# Database migrations (require extra scrutiny)
-/migrations/ @jezweb
-/prisma/ @jezweb
-/drizzle/ @jezweb
-
-# Dependencies (notify when packages change)
-package-lock.json @jezweb
-pnpm-lock.yaml @jezweb
-yarn.lock @jezweb
-requirements.txt @jezweb
-Gemfile.lock @jezweb
-
-# CI/CD
-/.github/workflows/ @jezweb
-/scripts/deploy.sh @jezweb
-
-# Examples (multiple owners can review)
-# /frontend/ @frontend-team @jezweb
-# /backend/ @backend-team @jezweb
-# /api/ @api-team @backend-team
-# *.css @design-team
-# *.scss @design-team
diff --git a/skills/github-project-automation/templates/misc/FUNDING.yml b/skills/github-project-automation/templates/misc/FUNDING.yml
deleted file mode 100644
index f2fef056..00000000
--- a/skills/github-project-automation/templates/misc/FUNDING.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-# Funding Configuration
-# Links displayed on the repository "Sponsor" button
-#
-# Documentation: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/displaying-a-sponsor-button-in-your-repository
-
-# GitHub Sponsors
-github: [jezweb] # Replace with your GitHub username
-
-# Other platforms (uncomment and add your usernames)
-# patreon: your-username
-# open_collective: your-project
-# ko_fi: your-username
-# tidelift: npm/package-name
-# community_bridge: project-name
-# liberapay: your-username
-# issuehunt: your-username
-# otechie: your-username
-# lfx_crowdfunding: project-name
-# polar: your-username
-# buy_me_a_coffee: your-username
-
-# Custom URLs (max 4)
-# custom: ['https://your-website.com/donate', 'https://paypal.me/your-username']
diff --git a/skills/github-project-automation/templates/pr-templates/PULL_REQUEST_TEMPLATE.md b/skills/github-project-automation/templates/pr-templates/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index 47494406..00000000
--- a/skills/github-project-automation/templates/pr-templates/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,78 +0,0 @@
-# Pull Request
-
-## Description
-
-<!-- Provide a brief summary of the changes in this PR -->
-
-Fixes #(issue)
-
-## Type of Change
-
-<!-- Mark the relevant option with an "x" -->
-
-- [ ] Bug fix (non-breaking change which fixes an issue)
-- [ ] New feature (non-breaking change which adds functionality)
-- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
-- [ ] Documentation update
-- [ ] Refactoring (no functional changes)
-- [ ] Performance improvement
-- [ ] Test coverage improvement
-
-## Changes Made
-
-<!-- List the specific changes made in this PR -->
-
--
--
--
-
-## Testing
-
-<!-- Describe the tests you ran and provide evidence -->
-
-### Test Environment
-- OS:
-- Browser (if applicable):
-- Version:
-
-### Test Results
-
-- [ ] All existing tests pass
-- [ ] New tests added for this change
-- [ ] Manual testing performed
-- [ ] Screenshots/videos attached (for UI changes)
-
-### Evidence
-
-<!-- Attach screenshots, videos, or logs showing the feature working -->
-
-## Checklist
-
-<!-- Verify you've completed these steps -->
-
-- [ ] My code follows the project's style guidelines
-- [ ] I have performed a self-review of my code
-- [ ] I have commented my code, particularly in hard-to-understand areas
-- [ ] I have made corresponding changes to the documentation
-- [ ] My changes generate no new warnings
-- [ ] I have added tests that prove my fix is effective or that my feature works
-- [ ] New and existing unit tests pass locally with my changes
-- [ ] Any dependent changes have been merged and published
-
-## Breaking Changes
-
-<!-- If this PR introduces breaking changes, describe them here -->
-
-- [ ] This PR introduces breaking changes
-- [ ] Migration guide provided (if breaking changes)
-
-## Additional Context
-
-<!-- Add any other context, screenshots, or relevant information about the PR -->
-
----
-
-## Reviewer Notes
-
-<!-- For reviewers: Any specific areas you'd like feedback on? -->
-
diff --git a/skills/github-project-automation/templates/pr-templates/bugfix.md b/skills/github-project-automation/templates/pr-templates/bugfix.md
deleted file mode 100644
index d60523ef..00000000
--- a/skills/github-project-automation/templates/pr-templates/bugfix.md
+++ /dev/null
@@ -1,107 +0,0 @@
-# Bug Fix Pull Request
-
-## Summary
-
-<!-- Brief summary of the bug and fix -->
-
-Fixes #(issue)
-
-## Bug Description
-
-**What was broken**:
-
-
-**How it manifested**:
-
-
-**Impact**: (Critical/High/Medium/Low)
-
-## Root Cause
-
-<!-- Explain what caused the bug -->
-
-
-
-## Fix Description
-
-<!-- Explain how you fixed it -->
-
-
-
-## Changes Made
-
-### Code Changes
-
--
--
-
-### Tests Added
-
--
--
-
-## Testing
-
-### Reproduction Before Fix
-
-<!-- How to reproduce the bug before the fix -->
-
-Steps:
-1.
-2.
-3.
-
-**Expected**:
-**Actual**:
-
-### Verification After Fix
-
-<!-- Prove the fix works -->
-
-- [ ] Bug no longer reproduces
-- [ ] Added regression test
-- [ ] Tested edge cases
-
-### Evidence
-
-<!-- Screenshots/videos showing before/after -->
-
-**Before**:
-
-
-**After**:
-
-
-## Regression Risk
-
-<!-- Could this fix break anything else? -->
-
-- [ ] Low risk - isolated change
-- [ ] Medium risk - affects related functionality
-- [ ] High risk - core system change
-
-**Areas to watch**:
--
-
-## Checklist
-
-- [ ] Root cause identified and documented
-- [ ] Fix addresses root cause (not just symptoms)
-- [ ] Added test to prevent regression
-- [ ] All existing tests still pass
-- [ ] Tested manually
-- [ ] Updated documentation if needed
-- [ ] No new warnings introduced
-
-## Additional Notes
-
-<!-- Anything else reviewers should know -->
-
----
-
-## For Reviewers
-
-**Please verify**:
-- [ ] Bug no longer occurs
-- [ ] Fix doesn't introduce new issues
-- [ ] Test coverage is adequate
diff --git a/skills/github-project-automation/templates/pr-templates/feature.md b/skills/github-project-automation/templates/pr-templates/feature.md
deleted file mode 100644
index 1b11e4a4..00000000
--- a/skills/github-project-automation/templates/pr-templates/feature.md
+++ /dev/null
@@ -1,118 +0,0 @@
-# Feature Pull Request
-
-## Summary
-
-<!-- Brief summary of the feature being added -->
-
-Closes #(issue)
-
-## What's New
-
-<!-- Describe the new functionality -->
-
-### User-Facing Changes
-
--
--
-
-### Developer-Facing Changes
-
--
--
-
-## Implementation Details
-
-<!-- Explain your technical approach -->
-
-### Key Components
-
--
--
-
-### Architecture Decisions
-
-<!-- Why did you choose this approach? -->
-
-## Testing
-
-### New Tests Added
-
-- [ ] Unit tests for core functionality
-- [ ] Integration tests
-- [ ] E2E tests (if applicable)
-
-### Test Coverage
-
-- Coverage: X%
-- Critical paths tested: Yes/No
-
-### Manual Testing
-
-<!-- What you manually tested -->
-
-**Test Environment**:
-- OS:
-- Browser:
-
-**Test Scenarios**:
-1.
-2.
-
-### Evidence
-
-<!-- Screenshots/videos showing the feature working -->
-
-## Performance Impact
-
-<!-- Does this affect performance? -->
-
-- [ ] No performance impact
-- [ ] Measured performance (add metrics below)
-- [ ] Performance improvements (explain)
-
-## Breaking Changes
-
-- [ ] This PR introduces no breaking changes
-- [ ] This PR introduces breaking changes (list below)
-
-**If breaking changes**:
-
-### What breaks:
--
-
-### Migration path:
--
-
-### Documentation updated: Yes/No
-
-## Documentation
-
-- [ ] Updated README if needed
-- [ ] Updated API docs if needed
-- [ ] Added inline code comments
-- [ ] Updated CHANGELOG.md
-
-## Checklist
-
-- [ ] Code follows project style guidelines
-- [ ] Self-reviewed my code
-- [ ] Added tests for new functionality
-- [ ] All tests pass locally
-- [ ] Updated documentation
-- [ ] No new warnings introduced
-- [ ] Requested review from relevant team members
-
-## Additional Notes
-
-<!-- Anything else reviewers should know -->
-
----
-
-## For Reviewers
-
-**Review focus areas**:
--
--
-
-**Questions for reviewers**:
--
diff --git a/skills/github-project-automation/templates/security/SECURITY.md b/skills/github-project-automation/templates/security/SECURITY.md
deleted file mode 100644
index 2814cf04..00000000
--- a/skills/github-project-automation/templates/security/SECURITY.md
+++ /dev/null
@@ -1,127 +0,0 @@
-# Security Policy
-
-## Supported Versions
-
-Currently supported versions with security updates:
-
-| Version | Supported |
-| ------- | ------------------ |
-| 1.x.x | :white_check_mark: |
-| < 1.0 | :x: |
-
-## Reporting a Vulnerability
-
-We take security seriously. If you discover a security vulnerability, please follow these steps:
-
-### 1. **DO NOT** Open a Public Issue
-
-Security vulnerabilities should be reported privately to avoid exploitation before a fix is available.
-
-### 2. Report via GitHub Security Advisories
-
-1. Go to the [Security tab](../../security)
-2. Click "Report a vulnerability"
-3. Fill out the advisory form with:
- - Description of the vulnerability
- - Steps to reproduce
- - Potential impact
- - Suggested fix (if you have one)
-
-### 3. Alternative: Email
-
-If GitHub Security Advisories are unavailable, email us at:
-- **Email**: [email protected]
-- **PGP Key**: [Optional: Link to PGP key]
-
-### What to Include
-
-Please include as much of the following information as possible:
-
-- **Type of vulnerability** (e.g., XSS, SQLi, CSRF, etc.)
-- **Full paths** of source files related to the vulnerability
-- **Location** of the affected code (tag/branch/commit)
-- **Step-by-step instructions** to reproduce
-- **Proof-of-concept** or exploit code (if available)
-- **Impact** of the vulnerability
-- **Suggested remediation** (if you have ideas)
-
-## Response Timeline
-
-- **Acknowledgment**: Within 48 hours
-- **Initial Assessment**: Within 1 week
-- **Fix Timeline**:
- - Critical: 7 days
- - High: 30 days
- - Medium: 90 days
- - Low: Next release
-
-## Disclosure Policy
-
-- We follow **coordinated disclosure**
-- We'll work with you to understand and fix the issue
-- We'll credit you in the security advisory (unless you prefer anonymity)
-- We'll publish a security advisory after the fix is released
-
-## Security Best Practices
-
-If you're contributing code, please follow these guidelines:
-
-### Input Validation
-
-- Validate all user input
-- Use allowlists over denylists
-- Sanitize data before processing
-
-### Authentication & Authorization
-
-- Use established authentication libraries
-- Implement proper session management
-- Check permissions at every access point
-
-### Data Protection
-
-- Encrypt sensitive data at rest and in transit
-- Never log sensitive information
-- Use environment variables for secrets
-
-### Dependencies
-
-- Keep dependencies up to date
-- Review Dependabot alerts
-- Run `npm audit` regularly
-
-## Security Features
-
-This project uses:
-
-- [x] Dependabot for dependency updates
-- [x] CodeQL for security scanning
-- [x] Branch protection rules
-- [x] Required code reviews
-- [ ] SAST (Static Application Security Testing)
-- [ ] DAST (Dynamic Application Security Testing)
-
-## Bug Bounty Program
-
-<!-- Update if you have a bug bounty program -->
-
-We currently **do not** have a formal bug bounty program. However, we deeply appreciate security researchers who report vulnerabilities responsibly and will acknowledge them publicly (with permission).
-
-## Past Security Advisories
-
-View all published security advisories: [Security Advisories](../../security/advisories)
-
-## Contact
-
-- **Security Email**: [email protected]
-- **General Contact**: [email protected]
-- **Website**: https://your-domain.com
-
-## Attribution
-
-We appreciate the following security researchers who have helped make this project more secure:
-
-<!-- List contributors here -->
-- [Name] - [Vulnerability type] - [Date]
-
-Thank you for helping keep our project and our users safe!
diff --git a/skills/github-project-automation/templates/security/codeql-config.yml b/skills/github-project-automation/templates/security/codeql-config.yml
deleted file mode 100644
index 0c3cc821..00000000
--- a/skills/github-project-automation/templates/security/codeql-config.yml
+++ /dev/null
@@ -1,73 +0,0 @@
-# CodeQL Configuration
-# Advanced CodeQL setup with custom queries and filters
-
-name: "CodeQL Config"
-
-# Paths to include in analysis
-paths:
- - src/
- - lib/
- - app/
-
-# Paths to exclude from analysis
-paths-ignore:
- - node_modules/
- - dist/
- - build/
- - coverage/
- - "**/*.test.js"
- - "**/*.test.ts"
- - "**/*.spec.js"
- - "**/*.spec.ts"
- - "**/__tests__/**"
- - "**/__mocks__/**"
-
-# Additional queries to run
-queries:
- - uses: security-extended # Run extended security queries
- - uses: security-and-quality # Run both security and quality queries
-
-# Custom query filters
-query-filters:
- # Exclude specific rules
- - exclude:
- id: js/unused-local-variable # Example: Allow unused variables
-
- # Include only high-severity findings
- - include:
- severity: high,critical
-
-# Build configuration (for compiled languages)
-# Uncomment and customize for Java, C++, C#, etc.
-#
-# For Java/Maven:
-# build:
-# - run: |
-# ./mvnw clean install -DskipTests
-#
-# For C#/.NET:
-# build:
-# - run: |
-# dotnet build
-#
-# For C++:
-# build:
-# - run: |
-# cmake .
-# make
-
-# Language-specific configuration
-# languages:
-# - javascript-typescript:
-# # Enable experimental features
-# experimental: true
-#
-# - python:
-# # Python version
-# version: "3.12"
-
-# Disable specific queries
-disable-default-queries: false
-
-# Scan frequency (in workflow, not here)
-# Recommended: On every PR + weekly scheduled scan
diff --git a/skills/github-project-automation/templates/security/dependabot.yml b/skills/github-project-automation/templates/security/dependabot.yml
deleted file mode 100644
index ba8072c1..00000000
--- a/skills/github-project-automation/templates/security/dependabot.yml
+++ /dev/null
@@ -1,69 +0,0 @@
-# Dependabot Configuration
-# Prevents Error #16 (development dependencies ignored), #17 (alert limit)
-#
-# Updates: npm, GitHub Actions
-# Frequency: Weekly
-# Limits: Max 10 open PRs per ecosystem (GitHub limit)
-
-version: 2
-updates:
- # npm dependencies (including devDependencies)
- - package-ecosystem: "npm"
- directory: "/"
- schedule:
- interval: "weekly"
- day: "monday"
- time: "09:00"
- timezone: "Australia/Sydney"
- open-pull-requests-limit: 10
- reviewers:
- - "jezweb" # Replace with your GitHub username
- labels:
- - "dependencies"
- - "npm"
- # Include both prod and dev dependencies
- ignore:
- # Ignore major version updates for stable packages (optional)
- # - dependency-name: "*"
- # update-types: ["version-update:semver-major"]
- commit-message:
- prefix: "chore"
- prefix-development: "chore"
- include: "scope"
-
- # GitHub Actions
- - package-ecosystem: "github-actions"
- directory: "/"
- schedule:
- interval: "weekly"
- day: "monday"
- time: "09:00"
- timezone: "Australia/Sydney"
- open-pull-requests-limit: 5
- reviewers:
- - "jezweb" # Replace with your GitHub username
- labels:
- - "dependencies"
- - "github-actions"
- commit-message:
- prefix: "ci"
- include: "scope"
-
- # Add additional ecosystems as needed:
- # Python (pip)
- # - package-ecosystem: "pip"
- # directory: "/"
- # schedule:
- # interval: "weekly"
-
- # Docker
- # - package-ecosystem: "docker"
- # directory: "/"
- # schedule:
- # interval: "weekly"
-
- # Composer (PHP)
- # - package-ecosystem: "composer"
- # directory: "/"
- # schedule:
- # interval: "weekly"
diff --git a/skills/github-project-automation/templates/workflows/cd-production.yml b/skills/github-project-automation/templates/workflows/cd-production.yml
deleted file mode 100644
index 2901a080..00000000
--- a/skills/github-project-automation/templates/workflows/cd-production.yml
+++ /dev/null
@@ -1,86 +0,0 @@
-# Production Deployment Workflow
-# Prevents Error #8 (context syntax), #6 (secrets)
-#
-# Triggers on: push to main (after tests pass)
-# Deploys to: Production environment
-# Requires: deployment secrets configured
-
-name: Deploy to Production
-
-on:
- push:
- branches: [main, master]
- workflow_dispatch: # Allow manual triggering
-
-jobs:
- test:
- name: Run Tests
- runs-on: ubuntu-24.04
-
- steps:
- - name: Checkout code
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-
- - name: Setup Node.js
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
- with:
- node-version: '20'
- cache: 'npm'
-
- - name: Install dependencies
- run: npm ci
-
- - name: Run tests
- run: npm test
-
- - name: Build production bundle
- run: npm run build
- env:
- NODE_ENV: production
-
- - name: Upload build artifacts
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
- with:
- name: production-build
- path: dist/
- retention-days: 7
-
- deploy:
- name: Deploy to Production
- needs: test
- runs-on: ubuntu-24.04
- environment:
- name: production
- url: https://your-app.com
-
- steps:
- - name: Checkout code
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-
- - name: Download build artifacts
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
- with:
- name: production-build
- path: dist/
-
- - name: Deploy to production
- run: |
- echo "Deploying to production..."
- # Add your deployment command here
- # Examples:
- # npx wrangler deploy --env production
- # aws s3 sync dist/ s3://your-bucket/
- # vercel deploy --prod
- env:
- # Add your deployment secrets
- DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
- # CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
- # AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
- # AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
-
- - name: Deployment summary
- run: |
- echo "✅ Deployment completed successfully!"
- echo "Environment: production"
- echo "Commit: ${{ github.sha }}"
- echo "URL: https://your-app.com"
diff --git a/skills/github-project-automation/templates/workflows/ci-basic.yml b/skills/github-project-automation/templates/workflows/ci-basic.yml
deleted file mode 100644
index f8794ff5..00000000
--- a/skills/github-project-automation/templates/workflows/ci-basic.yml
+++ /dev/null
@@ -1,47 +0,0 @@
-# Basic CI Workflow - Test, Lint, Build
-# Prevents Error #1 (YAML indentation), #2 (missing run/uses), #3 (version pinning)
-#
-# Triggers on: push to main, pull requests
-# Runs on: ubuntu-24.04 (explicit version, prevents Error #4)
-# Actions: Pinned to SHA256 (prevents Error #3)
-
-name: CI
-
-on:
- push:
- branches: [main, master]
- pull_request:
- branches: [main, master]
-
-jobs:
- test-and-build:
- runs-on: ubuntu-24.04
-
- steps:
- - name: Checkout code
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-
- - name: Setup Node.js
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
- with:
- node-version: '20'
- cache: 'npm'
-
- - name: Install dependencies
- run: npm ci
-
- - name: Run linter
- run: npm run lint
-
- - name: Run tests
- run: npm test
-
- - name: Build project
- run: npm run build
-
- - name: Upload build artifacts
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
- with:
- name: build-output
- path: dist/
- retention-days: 7
diff --git a/skills/github-project-automation/templates/workflows/ci-cloudflare-workers.yml b/skills/github-project-automation/templates/workflows/ci-cloudflare-workers.yml
deleted file mode 100644
index cdbdba05..00000000
--- a/skills/github-project-automation/templates/workflows/ci-cloudflare-workers.yml
+++ /dev/null
@@ -1,76 +0,0 @@
-# Cloudflare Workers CI/CD Workflow
-# Prevents Error #6 (secrets syntax), #8 (context syntax)
-#
-# Triggers on: push to main (deploy), pull requests (test only)
-# Requires: CLOUDFLARE_API_TOKEN secret
-# Deploys to: Cloudflare Workers
-
-name: Cloudflare Workers CI/CD
-
-on:
- push:
- branches: [main, master]
- pull_request:
- branches: [main, master]
-
-jobs:
- test:
- name: Test
- runs-on: ubuntu-24.04
-
- steps:
- - name: Checkout code
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-
- - name: Setup Node.js
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
- with:
- node-version: '20'
- cache: 'npm'
-
- - name: Install dependencies
- run: npm ci
-
- - name: Run linter
- run: npm run lint
-
- - name: Run type check
- run: npm run type-check
-
- - name: Run tests
- run: npm test
-
- - name: Build worker
- run: npm run build
-
- deploy:
- name: Deploy to Cloudflare
- runs-on: ubuntu-24.04
- needs: test
- if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')
-
- steps:
- - name: Checkout code
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-
- - name: Setup Node.js
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
- with:
- node-version: '20'
- cache: 'npm'
-
- - name: Install dependencies
- run: npm ci
-
- - name: Build worker
- run: npm run build
-
- - name: Deploy to Cloudflare Workers
- run: npx wrangler deploy
- env:
- CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
-
- - name: Deployment summary
- run: |
- echo "✅ Deployment completed successfully!"
- echo "Worker URL: https://your-worker.your-subdomain.workers.dev"
diff --git a/skills/github-project-automation/templates/workflows/ci-matrix.yml b/skills/github-project-automation/templates/workflows/ci-matrix.yml
deleted file mode 100644
index 7309ab7c..00000000
--- a/skills/github-project-automation/templates/workflows/ci-matrix.yml
+++ /dev/null
@@ -1,57 +0,0 @@
-# Advanced Matrix CI - Multi-OS, Multi-Version Testing
-# Prevents Error #7 (matrix strategy errors)
-#
-# Tests on: ubuntu, macos, windows
-# Node.js versions: 18, 20, 22
-# Use for: Cross-platform libraries, CLI tools
-
-name: Matrix CI
-
-on:
- push:
- branches: [main, master]
- pull_request:
- branches: [main, master]
-
-jobs:
- test-matrix:
- name: Test on ${{ matrix.os }} with Node ${{ matrix.node-version }}
- runs-on: ${{ matrix.os }}
-
- strategy:
- fail-fast: false # Continue testing all combinations
- matrix:
- os: [ubuntu-24.04, macos-14, windows-latest]
- node-version: [18, 20, 22]
- # Optionally exclude specific combinations
- # exclude:
- # - os: macos-14
- # node-version: 18
-
- steps:
- - name: Checkout code
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-
- - name: Setup Node.js ${{ matrix.node-version }}
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
- with:
- node-version: ${{ matrix.node-version }}
- cache: 'npm'
-
- - name: Install dependencies
- run: npm ci
-
- - name: Run linter
- run: npm run lint
-
- - name: Run tests
- run: npm test
-
- - name: Build
- run: npm run build
-
- - name: Upload coverage (Ubuntu only)
- if: matrix.os == 'ubuntu-24.04'
- uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # v5.0.2
- with:
- flags: node-${{ matrix.node-version }}
diff --git a/skills/github-project-automation/templates/workflows/ci-node.yml b/skills/github-project-automation/templates/workflows/ci-node.yml
deleted file mode 100644
index 30c0444f..00000000
--- a/skills/github-project-automation/templates/workflows/ci-node.yml
+++ /dev/null
@@ -1,50 +0,0 @@
-# Node.js CI Workflow - Matrix Testing Across Versions
-# Prevents Error #7 (matrix strategy errors), #5 (duplicate keys)
-#
-# Triggers on: push to main, pull requests
-# Tests on: Node.js 18, 20, 22 (LTS versions)
-# Runs on: ubuntu-24.04 (explicit version)
-
-name: Node.js CI
-
-on:
- push:
- branches: [main, master]
- pull_request:
- branches: [main, master]
-
-jobs:
- test-matrix:
- name: Test on Node.js ${{ matrix.node-version }}
- runs-on: ubuntu-24.04
-
- strategy:
- matrix:
- node-version: [18, 20, 22]
- fail-fast: false
-
- steps:
- - name: Checkout code
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-
- - name: Setup Node.js ${{ matrix.node-version }}
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
- with:
- node-version: ${{ matrix.node-version }}
- cache: 'npm'
-
- - name: Install dependencies
- run: npm ci
-
- - name: Run linter
- run: npm run lint
-
- - name: Run tests with coverage
- run: npm run test:coverage
-
- - name: Upload coverage to Codecov
- uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # v5.0.2
- with:
- files: ./coverage/lcov.info
- flags: node-${{ matrix.node-version }}
- name: node-${{ matrix.node-version }}
diff --git a/skills/github-project-automation/templates/workflows/ci-python.yml b/skills/github-project-automation/templates/workflows/ci-python.yml
deleted file mode 100644
index 4ccca4f4..00000000
--- a/skills/github-project-automation/templates/workflows/ci-python.yml
+++ /dev/null
@@ -1,53 +0,0 @@
-# Python CI Workflow - Matrix Testing with Poetry/pip
-# Prevents Error #7 (matrix strategy), #2 (missing run/uses)
-#
-# Triggers on: push to main, pull requests
-# Tests on: Python 3.10, 3.11, 3.12
-# Runs on: ubuntu-24.04 (explicit version)
-
-name: Python CI
-
-on:
- push:
- branches: [main, master]
- pull_request:
- branches: [main, master]
-
-jobs:
- test-matrix:
- name: Test on Python ${{ matrix.python-version }}
- runs-on: ubuntu-24.04
-
- strategy:
- matrix:
- python-version: ['3.10', '3.11', '3.12']
- fail-fast: false
-
- steps:
- - name: Checkout code
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-
- - name: Setup Python ${{ matrix.python-version }}
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
- with:
- python-version: ${{ matrix.python-version }}
- cache: 'pip'
-
- - name: Install dependencies
- run: |
- python -m pip install --upgrade pip
- pip install -r requirements.txt
- pip install pytest pytest-cov flake8
-
- - name: Run linter (flake8)
- run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
-
- - name: Run tests with coverage
- run: pytest --cov=. --cov-report=xml
-
- - name: Upload coverage to Codecov
- uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # v5.0.2
- with:
- files: ./coverage.xml
- flags: python-${{ matrix.python-version }}
- name: python-${{ matrix.python-version }}
diff --git a/skills/github-project-automation/templates/workflows/ci-react.yml b/skills/github-project-automation/templates/workflows/ci-react.yml
deleted file mode 100644
index fe50816c..00000000
--- a/skills/github-project-automation/templates/workflows/ci-react.yml
+++ /dev/null
@@ -1,97 +0,0 @@
-# React App CI Workflow - Build and Test
-# Prevents Error #1 (indentation), #8 (context syntax)
-#
-# Triggers on: push to main, pull requests
-# Includes: Type checking, linting, testing, build
-# Runs on: ubuntu-24.04 (explicit version)
-
-name: React CI
-
-on:
- push:
- branches: [main, master]
- pull_request:
- branches: [main, master]
-
-jobs:
- quality-checks:
- name: Type Check & Lint
- runs-on: ubuntu-24.04
-
- steps:
- - name: Checkout code
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-
- - name: Setup Node.js
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
- with:
- node-version: '20'
- cache: 'npm'
-
- - name: Install dependencies
- run: npm ci
-
- - name: Run TypeScript type check
- run: npm run type-check
-
- - name: Run ESLint
- run: npm run lint
-
- test:
- name: Test
- runs-on: ubuntu-24.04
-
- steps:
- - name: Checkout code
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-
- - name: Setup Node.js
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
- with:
- node-version: '20'
- cache: 'npm'
-
- - name: Install dependencies
- run: npm ci
-
- - name: Run tests
- run: npm test -- --coverage
-
- - name: Upload coverage
- uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # v5.0.2
- with:
- files: ./coverage/lcov.info
-
- build:
- name: Build
- runs-on: ubuntu-24.04
-
- steps:
- - name: Checkout code
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-
- - name: Setup Node.js
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
- with:
- node-version: '20'
- cache: 'npm'
-
- - name: Install dependencies
- run: npm ci
-
- - name: Build production bundle
- run: npm run build
- env:
- CI: true
-
- - name: Check build size
- run: |
- echo "Build completed. Checking bundle size..."
- du -sh dist/
-
- - name: Upload build artifacts
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
- with:
- name: react-build
- path: dist/
- retention-days: 7
diff --git a/skills/github-project-automation/templates/workflows/pr-checks.yml b/skills/github-project-automation/templates/workflows/pr-checks.yml
deleted file mode 100644
index 375e7714..00000000
--- a/skills/github-project-automation/templates/workflows/pr-checks.yml
+++ /dev/null
@@ -1,138 +0,0 @@
-# Pull Request Checks Workflow
-# Runs checks on all pull requests
-#
-# Triggers on: pull_request
-# Checks: Size, labels, commit conventions, branch naming
-
-name: PR Checks
-
-on:
- pull_request:
- types: [opened, synchronize, reopened, labeled, unlabeled]
-
-jobs:
- pr-size:
- name: Check PR Size
- runs-on: ubuntu-24.04
-
- steps:
- - name: Checkout code
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- with:
- fetch-depth: 0
-
- - name: Check PR size
- run: |
- # Get number of changed lines
- BASE_SHA=${{ github.event.pull_request.base.sha }}
- HEAD_SHA=${{ github.event.pull_request.head.sha }}
-
- CHANGES=$(git diff --shortstat $BASE_SHA..$HEAD_SHA)
- ADDED=$(echo $CHANGES | awk '{print $4}')
- DELETED=$(echo $CHANGES | awk '{print $6}')
- TOTAL=$((ADDED + DELETED))
-
- echo "Lines changed: $TOTAL"
- echo "Added: $ADDED"
- echo "Deleted: $DELETED"
-
- # Warn if PR is large (>800 lines)
- if [ $TOTAL -gt 800 ]; then
- echo "⚠️ Large PR detected ($TOTAL lines changed)"
- echo "Consider splitting into smaller PRs for easier review"
- exit 1
- elif [ $TOTAL -gt 400 ]; then
- echo "⚠️ Medium-sized PR ($TOTAL lines changed)"
- echo "This is acceptable but consider splitting if possible"
- else
- echo "✅ PR size looks good ($TOTAL lines changed)"
- fi
-
- commit-format:
- name: Check Commit Messages
- runs-on: ubuntu-24.04
-
- steps:
- - name: Checkout code
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- with:
- fetch-depth: 0
-
- - name: Check commit messages
- run: |
- # Check if commits follow conventional commits format
- BASE_SHA=${{ github.event.pull_request.base.sha }}
- HEAD_SHA=${{ github.event.pull_request.head.sha }}
-
- echo "Checking commit messages..."
- git log --format=%s $BASE_SHA..$HEAD_SHA | while read -r msg; do
- if ! echo "$msg" | grep -qE '^(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)(\(.+\))?: .+'; then
- echo "❌ Invalid commit message: $msg"
- echo "Must follow format: type(scope): description"
- echo "Example: feat(auth): add OAuth support"
- exit 1
- else
- echo "✅ Valid: $msg"
- fi
- done
-
- branch-naming:
- name: Check Branch Name
- runs-on: ubuntu-24.04
-
- steps:
- - name: Check branch name
- run: |
- BRANCH="${{ github.head_ref }}"
- echo "Branch name: $BRANCH"
-
- # Check if branch follows naming convention
- # Allowed: feature/, fix/, docs/, refactor/, test/, chore/
- if ! echo "$BRANCH" | grep -qE '^(feature|fix|docs|refactor|test|chore)/[a-z0-9-]+$'; then
- echo "❌ Invalid branch name: $BRANCH"
- echo "Must follow format: type/description-in-kebab-case"
- echo "Examples: feature/add-oauth, fix/login-bug"
- exit 1
- else
- echo "✅ Branch name follows conventions"
- fi
-
- required-labels:
- name: Check Required Labels
- runs-on: ubuntu-24.04
-
- steps:
- - name: Check for labels
- run: |
- # Get PR labels
- LABELS=$(gh pr view ${{ github.event.pull_request.number }} --json labels --jq '.labels[].name' | tr '\n' ',')
- echo "PR labels: $LABELS"
-
- # Check if PR has at least one type label
- if ! echo "$LABELS" | grep -qE 'bug|feature|enhancement|documentation|refactor'; then
- echo "⚠️ PR is missing a type label"
- echo "Add one of: bug, feature, enhancement, documentation, refactor"
- exit 1
- else
- echo "✅ PR has required labels"
- fi
- env:
- GH_TOKEN: ${{ github.token }}
-
- conflict-check:
- name: Check for Merge Conflicts
- runs-on: ubuntu-24.04
-
- steps:
- - name: Checkout code
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-
- - name: Check for conflicts
- run: |
- if [ "${{ github.event.pull_request.mergeable }}" = "false" ]; then
- echo "❌ PR has merge conflicts"
- echo "Please resolve conflicts before merging"
- exit 1
- else
- echo "✅ No merge conflicts detected"
- fi
diff --git a/skills/github-project-automation/templates/workflows/release.yml b/skills/github-project-automation/templates/workflows/release.yml
deleted file mode 100644
index 48bb2a8c..00000000
--- a/skills/github-project-automation/templates/workflows/release.yml
+++ /dev/null
@@ -1,136 +0,0 @@
-# Release Automation Workflow
-# Creates GitHub releases and publishes packages
-#
-# Triggers on: version tags (v*)
-# Actions: Create release, publish to npm/PyPI, generate changelog
-
-name: Release
-
-on:
- push:
- tags:
- - 'v*' # Trigger on version tags (v1.0.0, v2.1.3, etc.)
-
-jobs:
- create-release:
- name: Create GitHub Release
- runs-on: ubuntu-24.04
- permissions:
- contents: write # Required to create releases
-
- steps:
- - name: Checkout code
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- with:
- fetch-depth: 0 # Fetch all history for changelog
-
- - name: Setup Node.js
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
- with:
- node-version: '20'
- cache: 'npm'
-
- - name: Install dependencies
- run: npm ci
-
- - name: Run tests
- run: npm test
-
- - name: Build production bundle
- run: npm run build
-
- - name: Extract version from tag
- id: version
- run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
-
- - name: Generate changelog
- id: changelog
- run: |
- # Get commits since last tag
- LAST_TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || echo "")
- if [ -z "$LAST_TAG" ]; then
- CHANGELOG=$(git log --pretty=format:"- %s (%h)" HEAD)
- else
- CHANGELOG=$(git log --pretty=format:"- %s (%h)" $LAST_TAG..HEAD)
- fi
- echo "CHANGELOG<<EOF" >> $GITHUB_OUTPUT
- echo "$CHANGELOG" >> $GITHUB_OUTPUT
- echo "EOF" >> $GITHUB_OUTPUT
-
- - name: Create GitHub Release
- uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 # v2.0.8
- with:
- name: Release v${{ steps.version.outputs.VERSION }}
- body: |
- ## What's Changed
-
- ${{ steps.changelog.outputs.CHANGELOG }}
-
- ## Installation
-
- ```bash
- npm install your-package@${{ steps.version.outputs.VERSION }}
- ```
-
- **Full Changelog**: ${{ github.server_url }}/${{ github.repository }}/compare/${{ github.event.before }}...${{ github.sha }}
- files: |
- dist/**/*
- draft: false
- prerelease: false
-
- publish-npm:
- name: Publish to npm
- needs: create-release
- runs-on: ubuntu-24.04
- if: startsWith(github.ref, 'refs/tags/v')
-
- steps:
- - name: Checkout code
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-
- - name: Setup Node.js
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
- with:
- node-version: '20'
- registry-url: 'https://registry.npmjs.org'
-
- - name: Install dependencies
- run: npm ci
-
- - name: Build
- run: npm run build
-
- - name: Publish to npm
- run: npm publish
- env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
-
- # Uncomment if publishing Python package
- # publish-pypi:
- # name: Publish to PyPI
- # needs: create-release
- # runs-on: ubuntu-24.04
- # if: startsWith(github.ref, 'refs/tags/v')
- #
- # steps:
- # - name: Checkout code
- # uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- #
- # - name: Setup Python
- # uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b
- # with:
- # python-version: '3.12'
- #
- # - name: Install build tools
- # run: |
- # python -m pip install --upgrade pip
- # pip install build twine
- #
- # - name: Build package
- # run: python -m build
- #
- # - name: Publish to PyPI
- # run: twine upload dist/*
- # env:
- # TWINE_USERNAME: __token__
- # TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
diff --git a/skills/github-project-automation/templates/workflows/scheduled-maintenance.yml b/skills/github-project-automation/templates/workflows/scheduled-maintenance.yml
deleted file mode 100644
index 3e76b996..00000000
--- a/skills/github-project-automation/templates/workflows/scheduled-maintenance.yml
+++ /dev/null
@@ -1,117 +0,0 @@
-# Scheduled Maintenance Workflow
-# Runs periodic tasks on a schedule
-#
-# Triggers on: schedule (cron)
-# Tasks: Dependency updates check, cache cleanup, health checks
-
-name: Scheduled Maintenance
-
-on:
- schedule:
- # Run every Sunday at 00:00 UTC
- - cron: '0 0 * * 0'
- workflow_dispatch: # Allow manual triggering
-
-jobs:
- dependency-audit:
- name: Security Audit
- runs-on: ubuntu-24.04
-
- steps:
- - name: Checkout code
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-
- - name: Setup Node.js
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
- with:
- node-version: '20'
-
- - name: Run npm audit
- run: |
- echo "Running security audit..."
- npm audit --production || true
- echo "Audit complete. Check for vulnerabilities above."
-
- - name: Check for outdated dependencies
- run: |
- echo "Checking for outdated dependencies..."
- npm outdated || true
-
- cache-cleanup:
- name: Clean Old Caches
- runs-on: ubuntu-24.04
-
- steps:
- - name: Checkout code
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-
- - name: Clean old caches
- run: |
- echo "Cleaning caches older than 7 days..."
- gh cache list --limit 100 | while read -r line; do
- CACHE_ID=$(echo $line | awk '{print $1}')
- CACHE_AGE=$(echo $line | awk '{print $NF}')
-
- # Delete if older than 7 days
- if [[ "$CACHE_AGE" == *"days ago"* ]]; then
- DAYS=$(echo $CACHE_AGE | awk '{print $1}')
- if [ $DAYS -gt 7 ]; then
- echo "Deleting cache $CACHE_ID (${DAYS} days old)"
- gh cache delete $CACHE_ID || true
- fi
- fi
- done
- env:
- GH_TOKEN: ${{ github.token }}
-
- health-check:
- name: Health Check
- runs-on: ubuntu-24.04
-
- steps:
- - name: Check production endpoint
- run: |
- echo "Checking production health..."
- # Replace with your actual health check endpoint
- curl -f https://your-app.com/health || exit 1
- echo "✅ Health check passed"
-
- - name: Check build time
- run: |
- echo "Testing build performance..."
- START=$(date +%s)
- # Add your build command here
- # npm run build
- END=$(date +%s)
- DURATION=$((END - START))
- echo "Build took ${DURATION} seconds"
-
- if [ $DURATION -gt 300 ]; then
- echo "⚠️ Build is slow (>${DURATION}s)"
- fi
-
- report:
- name: Generate Report
- needs: [dependency-audit, cache-cleanup, health-check]
- runs-on: ubuntu-24.04
- if: always()
-
- steps:
- - name: Summary
- run: |
- echo "=== Weekly Maintenance Report ==="
- echo "Date: $(date)"
- echo ""
- echo "Security Audit: ${{ needs.dependency-audit.result }}"
- echo "Cache Cleanup: ${{ needs.cache-cleanup.result }}"
- echo "Health Check: ${{ needs.health-check.result }}"
- echo ""
- echo "Review details in job logs above."
-
- # Optionally send notification
- # - name: Send notification
- # if: failure()
- # run: |
- # curl -X POST ${{ secrets.SLACK_WEBHOOK_URL }} \
- # -H 'Content-Type: application/json' \
- # -d '{"text":"⚠️ Weekly maintenance job failed!"}'
diff --git a/skills/github-project-automation/templates/workflows/security-codeql.yml b/skills/github-project-automation/templates/workflows/security-codeql.yml
deleted file mode 100644
index 6b76da45..00000000
--- a/skills/github-project-automation/templates/workflows/security-codeql.yml
+++ /dev/null
@@ -1,61 +0,0 @@
-# CodeQL Security Scanning Workflow
-# Prevents Error #13 (CodeQL not running on Dependabot PRs), #15 (compiled language setup)
-#
-# Triggers on: push, pull requests, schedule
-# Scans: JavaScript/TypeScript (add languages as needed)
-# Frequency: Weekly scan on schedule
-
-name: CodeQL Security Scan
-
-on:
- push:
- branches: [main, master]
- pull_request:
- branches: [main, master]
- schedule:
- # Run weekly on Sundays at 00:00 UTC
- - cron: '0 0 * * 0'
-
-jobs:
- analyze:
- name: Analyze Code
- runs-on: ubuntu-24.04
- permissions:
- actions: read
- contents: read
- security-events: write
-
- strategy:
- fail-fast: false
- matrix:
- # Supported languages: 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
- language: ['javascript-typescript']
-
- steps:
- - name: Checkout code
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-
- - name: Initialize CodeQL
- uses: github/codeql-action/init@ea9e4e37992a54ee68a9622e985e60c8e8f12d9f # v3.27.4
- with:
- languages: ${{ matrix.language }}
- # Optionally specify additional queries
- # queries: security-extended,security-and-quality
-
- # For compiled languages (Java, C++, C#), add build steps here:
- # - name: Build project
- # run: |
- # ./mvnw clean install # For Java/Maven
- # # OR
- # dotnet build # For C#
-
- - name: Perform CodeQL Analysis
- uses: github/codeql-action/analyze@ea9e4e37992a54ee68a9622e985e60c8e8f12d9f # v3.27.4
- with:
- category: "/language:${{ matrix.language }}"
-
- - name: Upload SARIF results
- uses: github/codeql-action/upload-sarif@ea9e4e37992a54ee68a9622e985e60c8e8f12d9f # v3.27.4
- if: always()
- with:
- sarif_file: ../results
diff --git a/skills/github-project-automation/templates/workflows/security-dependency-review.yml b/skills/github-project-automation/templates/workflows/security-dependency-review.yml
deleted file mode 100644
index 55f3eb33..00000000
--- a/skills/github-project-automation/templates/workflows/security-dependency-review.yml
+++ /dev/null
@@ -1,41 +0,0 @@
-# Dependency Review Workflow
-# Prevents Error #16 (devDependencies ignored)
-#
-# Triggers on: pull_request
-# Reviews: All dependency changes for security vulnerabilities
-# Blocks: PRs with high/critical vulnerabilities
-
-name: Dependency Review
-
-on:
- pull_request:
- branches: [main, master]
-
-permissions:
- contents: read
- pull-requests: write
-
-jobs:
- dependency-review:
- name: Review Dependencies
- runs-on: ubuntu-24.04
-
- steps:
- - name: Checkout code
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-
- - name: Dependency Review
- uses: actions/dependency-review-action@5a2ce3f5b92ee19cbb1541a4984c76d921601d7c # v4.3.4
- with:
- # Fail on: critical, high
- # Warn on: medium, low
- fail-on-severity: high
- allow-licenses: MIT, Apache-2.0, BSD-2-Clause, BSD-3-Clause, ISC
- deny-licenses: GPL-3.0, AGPL-3.0
- comment-summary-in-pr: always
-
- - name: Check for malicious packages
- run: |
- echo "Checking for known malicious packages..."
- # Add custom checks if needed
- echo "✅ No known malicious packages detected"