[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M73AADHCM1J6F3H28RQDT7MJ":3,"skill-same:01M73AADHCM1J6F3H28RQDT7MJ":68},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":36,"repositoryHtmlUrl":37,"repositoryHomepageUrl":38,"ownerHtmlUrl":39,"ownerBlogUrl":40,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M73AADHCM1J6F3H28RQDT7MJ","devops-tooling",null,"Git operations, shell scripting, CI\u002FCD pipelines, and terminal automation. Use for conventional commits, PowerShell\u002FBash scripting, configuring GitHub Actions, or automating development tooling workflows.","bg-szy\u002FTOP-SKILLS","bg-szy","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F106576190?v=4","01M73A4E8KPV67SFXRY8XZGNBX","ShuZhiyong","01M73A4E96MQ294MHM74TZBVQD",6,"MIT","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fagent-skills\u002Fdevops-tooling\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fagent-skills\u002Fdevops-tooling\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: devops-tooling\nversion: \"2.0\"\nlast_updated: 2026-09-08\ntags: [devops, tooling, workflow, quality, planning]\ndescription: \"Git operations, shell scripting, CI\u002FCD pipelines, and terminal automation. Use for conventional commits, PowerShell\u002FBash scripting, configuring GitHub Actions, or automating development tooling workflows.\"\n---\n# Devops Tooling\n\nComprehensive toolkit for Git workflows, shell scripting, and development automation.\n\n- Leverage native parallel subagent dispatch and 200k+ context windows where available.\n\n\n## When to Use This Skill\n\nUse symptom -> action triggers: when one matches, apply this skill and verify with the protocol below.\n\n- Creating conventional commits and managing Git workflows\n- Writing Bash, Zsh, or PowerShell automation scripts\n- Configuring CI\u002FCD pipelines (GitHub Actions, Azure DevOps)\n- Automating development, testing, or deployment tasks\n- Troubleshooting Git conflicts and repository hygiene issues\n\n## Part 1: Git Workflows\n\n### Conventional Commits\n\nThe conventional commit specification provides an easy-to-extend set of rules for creating an explicit commit history.\n\n#### Commit Format\n\n```\n\u003Ctype>[optional scope]: \u003Cdescription>\n\n[optional body]\n\n[optional footer(s)]\n```\n\n#### Types\n\n| Type | Purpose | Example |\n|-------|---------|---------|\n| `feat` | New feature | `feat(auth): add OAuth2 support` |\n| `fix` | Bug fix | `fix(api): resolve null reference` |\n| `docs` | Documentation only | `docs(readme): update setup guide` |\n| `style` | Formatting\u002Fstyle (no logic) | `style(ui): fix indentation` |\n| `refactor` | Refactor production code | `refactor(svc): extract helpers` |\n| `perf` | Performance improvement | `perf(db): add index on email` |\n| `test` | Adding tests | `test(auth): add unit tests` |\n| `build` | Build system or deps | `build(ci): upgrade Node to v20` |\n| `ci` | CI configuration changes | `ci(github): add workflow for PRs` |\n| `chore` | Maintenance tasks | `chore(deps): update packages` |\n| `revert` | Revert previous commit | `revert: feat(login)` |\n\n#### Breaking Changes\n\nBreaking changes must be indicated by `!` after the type\u002Fscope, or via `BREAKING CHANGE` in footer:\n\n```bash\n\n\nfeat(api)!: remove deprecated v1 endpoint\n\n\nfeat(api): remove deprecated v1 endpoint\n\nBREAKING CHANGE: v1 endpoints are no longer supported. Use v2.\n```\n\n#### Good Examples\n\n```bash\n\n\nfeat(auth): implement JWT refresh tokens\n\n\nfix(ui): resolve mobile navigation overlap issue\n\n\ndocs(api): add authentication examples\n\n\nrefactor(user): extract validation logic to separate module\n\n\nperf(images): implement lazy loading\n\n\nfeat(core)!: change data structure from array to object\n```\n\n### Git Operations\n\n#### Branch Management\n\n```bash\n\n\ngit checkout -b feature\u002FPROJ-123\u002Fuser-auth\n\n\ngit checkout develop\n\n\ngit branch -d feature\u002FPROJ-123\u002Fuser-auth\n\n\ngit push origin --delete feature\u002FPROJ-123\u002Fuser-auth\n\n\ngit branch -m new-name\n\n\ngit branch -a\n```\n\n#### Commit Workflow\n\n```bash\n\n\ngit add .\n\n\ngit add file1.ts file2.ts\n\n\ngit add -i\n\n\ngit commit -m \"feat(auth): add OAuth2 support\"\n\n\ngit commit --amend\n\n\ngit log --oneline --graph --all\n\n\ngit show \u003Ccommit-hash>\n```\n\n#### Merge & Rebase\n\n```bash\n\n\ngit merge feature\u002Fnew-feature\n\n\ngit rebase develop\n\n\ngit rebase -i HEAD~3\n\n\ngit rebase --abort\ngit merge --abort\n\n\ngit rebase --continue\ngit merge --continue\n```\n\n#### Handling Conflicts\n\n```bash\n\n\ngit status\n\n\nvim conflicting-file.ts\n\n\ngit add conflicting-file.ts\n\n\ngit commit  # for merges\ngit rebase --continue  # for rebases\n```\n\n#### Stashing\n\n```bash\n\n\ngit stash push -m \"Work in progress\"\n\n\ngit stash pop\n\n\ngit stash apply stash@{2}\n\n\ngit stash list\n\n\ngit stash drop stash@{2}\n\n\ngit stash clear\n```\n\n#### Tagging\n\n```bash\n\n\ngit tag -a v1.0.0 -m \"Release v1.0.0\"\n\n\ngit tag v1.0.0\n\n\ngit tag\n\n\ngit push origin --tags\n\n\ngit push origin v1.0.0\n\n\ngit tag -d v1.0.0\n\n\ngit push origin --delete v1.0.0\n```\n\n#### Git Diff\n\n```bash\n\n\ngit diff\n\n\ngit diff --staged\n\n\ngit diff src\u002Fapp.ts\n\n\ngit diff HEAD~2 HEAD\n\n\ngit log --oneline v1.0.0..v2.0.0\n\n\ngit diff --stat\n```\n\n#### Git Configuration\n\n```bash\n\n\ngit config --global user.name \"Your Name\"\ngit config --global user.email \"your@email.com\"\n\n\ngit config --global init.defaultBranch main\n\n\ngit config --global commit.gpgsign true\n\n\ngit config --global alias.co checkout\ngit config --global alias.br branch\ngit config --global alias.ci commit\ngit config --global alias.st status\n\n\ngit config --unset user.name\n\n\ngit config --list\n```\n\n---\n\n## Part 2: Shell Scripting (bash\u002Fzsh)\n\n### General Principles\n\n- Generate clean, simple, and concise code\n- Ensure scripts are easily readable and understandable\n- Add comments where needed for understanding\n- Generate concise echo outputs for execution status\n- Avoid unnecessary output and excessive logging\n\n### Error Handling & Safety\n\n#### Enable Strict Mode\n\nAlways enable strict mode at the top of scripts:\n\n```bash\n#!\u002Fbin\u002Fbash\nset -euo pipefail\n```\n\n- `-e`: Exit on first error\n- `-u`: Treat unset variables as errors\n- `-o pipefail`: Surface pipeline failures\n\n#### Cleanup with Traps\n\n```bash\ncleanup() {\n    # Remove temporary files\n    if [[ -n \"${TEMP_DIR:-}\" && -d \"$TEMP_DIR\" ]]; then\n        rm -rf \"$TEMP_DIR\"\n    fi\n\n    # Close connections\n    if [[ -n \"${CONNECTION:-}\" ]]; then\n        echo \"Closing connection...\"\n        # connection close logic\n    fi\n}\n\ntrap cleanup EXIT\n\n\ntrap 'echo \"Interrupted\"; cleanup; exit 1' INT TERM\n```\n\n#### Validate Requirements\n\n```bash\nvalidate_requirements() {\n    local errors=0\n\n    # Check required variables\n    if [[ -z \"${RESOURCE_GROUP:-}\" ]]; then\n        echo \"Error: RESOURCE_GROUP environment variable not set\" >&2\n        ((errors++))\n    fi\n\n    # Check required commands\n    for cmd in curl jq az; do\n        if ! command -v \"$cmd\" &> \u002Fdev\u002Fnull; then\n            echo \"Error: $cmd is not installed\" >&2\n            ((errors++))\n        fi\n    done\n\n    # Return appropriate exit code\n    return $errors\n}\n\n\nif ! validate_requirements; then\n    exit 1\nfi\n```\n\n### Working with Variables\n\n```bash\n\n\necho \"Config: ${CONFIG_FILE:-.\u002Fconfig.default.yaml}\"\n\n\nname=\"World\"\necho \"Hello, ${name}!\"\n\n\napps=(\"app1\" \"app2\" \"app3\")\nfor app in \"${apps[@]}\"; do\n    echo \"Processing: $app\"\ndone\n\n\ndeclare -A config\nconfig[host]=\"localhost\"\nconfig[port]=\"8080\"\necho \"Connecting to ${config[host]}:${config[port]}\"\n```\n\n### Control Flow\n\n```bash\n\n\nif [[ \"$OSTYPE\" == \"linux-gnu\"* ]]; then\n    echo \"Linux detected\"\nelif [[ \"$OSTYPE\" == \"darwin\"* ]]; then\n    echo \"macOS detected\"\nelse\n    echo \"Unknown OS\"\nfi\n\n\ncase \"$1\" in\n    start)\n        echo \"Starting service...\"\n        ;;\n    stop)\n        echo \"Stopping service...\"\n        ;;\n    *)\n        echo \"Usage: $0 {start|stop}\"\n        exit 1\n        ;;\nesac\n\n\nfor i in {1..5}; do\n    echo \"Iteration $i\"\ndone\n\n\ntimeout=30\nelapsed=0\nwhile [[ $elapsed -lt $timeout ]]; do\n    if check_ready; then\n        echo \"Service ready\"\n        break\n    fi\n    sleep 1\n    ((elapsed++))\ndone\n```\n\n### Parsing JSON with jq\n\n```bash\n\n\nresult=$(curl -s \"https:\u002F\u002Fapi.example.com\u002Fdata\")\nname=$(echo \"$result\" | jq -r '.name')\ncount=$(echo \"$result\" | jq '.items | length')\nfirst_item=$(echo \"$result\" | jq -r '.items[0]')\n\n\nactive_users=$(echo \"$result\" | jq '.users[] | select(.status == \"active\")')\n\n\nread -r first_name last_name email \u003C\u003C\u003C$(echo \"$result\" | jq -r '\"\\(.firstName) \\(.lastName) \\(.email)\"')\n\n\necho \"$result\" | jq '.count += 1' > updated.json\n\n\njq -n \\\n  --arg name \"John\" \\\n  --arg age \"30\" \\\n  '{name: $name, age: ($age | tonumber)}'\n```\n\n### Parsing Arguments\n\n```bash\n#!\u002Fbin\u002Fbash\n\n\nverbose=0\noutput_file=\"output.txt\"\nconfig=\".\u002Fconfig.yaml\"\n\n\nwhile [[ $# -gt 0 ]]; do\n    case $1 in\n        -v|--verbose)\n            verbose=1\n            shift\n            ;;\n        -o|--output)\n            output_file=\"$2\"\n            shift 2\n            ;;\n        -c|--config)\n            config=\"$2\"\n            shift 2\n            ;;\n        -h|--help)\n            show_help\n            exit 0\n            ;;\n        *)\n            echo \"Unknown option: $1\" >&2\n            exit 1\n            ;;\n    esac\ndone\n\necho \"Config: $config\"\necho \"Output: $output_file\"\necho \"Verbose: $verbose\"\n```\n\n### File Operations\n\n```bash\n\n\nif [[ -f \"$FILE_PATH\" ]]; then\n    echo \"File exists\"\nfi\n\n\nif [[ ! -d \"$DIR_PATH\" ]]; then\n    mkdir -p \"$DIR_PATH\"\nfi\n\n\nmkdir -p .\u002Fdir1\u002Fdir2\n\n\ncp -r source_dir\u002F dest_dir\u002F\n\n\nrm -f file.txt          # Force delete file\nrm -rf directory\u002F       # Recursive delete directory\n\n\nfind . -name \"*.py\"           # All Python files\nfind . -type f -name \"*.js\"   # All JS files (regular files only)\nfind . -mtime -7              # Modified in last 7 days\n\n\ntemp_file=$(mktemp)\necho \"data\" > \"$temp_file\"\n\n\nrm -f \"$temp_file\"\n\n\ntemp_dir=$(mktemp -d)\n\n\nrm -rf \"$temp_dir\"\n```\n\n### Process Management\n\n```bash\n\n\nif pgrep -x \"nginx\" > \u002Fdev\u002Fnull; then\n    echo \"Nginx is running\"\nelse\n    echo \"Nginx is not running\"\nfi\n\n\nwhile pgrep -x \"script-name\" > \u002Fdev\u002Fnull; do\n    sleep 1\ndone\n\n\ntimeout 30s .\u002Flong-running-script.sh || echo \"Timed out after 30s\"\n\n\n.\u002Fscript.sh &\njob_pid=$!\n\n\ntrap \"kill $job_pid 2>\u002Fdev\u002Fnull\" EXIT\n```\n\n### Logging\n\n```bash\n#!\u002Fbin\u002Fbash\n\n\nLOG_INFO() {\n    echo \"[INFO] $(date '+%Y-%m-%d %H:%M:%S') $*\"\n}\n\nLOG_WARN() {\n    echo \"[WARN] $(date '+%Y-%m-%d %H:%M:%S') $*\" >&2\n}\n\nLOG_ERROR() {\n    echo \"[ERROR] $(date '+%Y-%m-%d %H:%M:%S') $*\" >&2\n}\n\nLOG_DEBUG() {\n    if [[ \"${DEBUG:-}\" == \"1\" ]]; then\n        echo \"[DEBUG] $(date '+%Y-%m-%d %H:%M:%S') $*\"\n    fi\n}\n\n\nLOG_INFO \"Starting deployment\"\nLOG_WARN \"This is a warning\"\nLOG_ERROR \"Deployment failed\"\nLOG_DEBUG \"Detailed debugging info\"\n```\n\n---\n\n## Part 3: PowerShell Scripting\n\n### General Practices\n\n- Use proper cmdlet names instead of aliases (e.g., `Get-ChildItem`, not `dir`)\n- Quote paths with spaces: `\"C:\\Path With Spaces\\file.txt\"`\n- Use `ShouldProcess` for destructive operations\n- Implement proper error handling with try-catch\n- Parameterize scripts for reusability\n\n### Error Handling\n\n```powershell\n\n\nSet-StrictMode -Version Latest\n\n\n$ErrorActionPreference = \"Stop\"\n\n\ntry {\n    $result = Invoke-RestMethod -Uri \"https:\u002F\u002Fapi.example.com\u002Fdata\" -Method Get\n}\ncatch [System.Net.WebException] {\n    Write-Error \"Network error occurred: $($_.Exception.Message)\"\n    exit 1\n}\ncatch {\n    Write-Error \"Unexpected error: $($_.Exception.Message)\"\n    exit 1\n}\nfinally {\n    # Cleanup code always runs\n    Write-Output \"Execution completed\"\n}\n\n\ntrap {\n    Write-Error \"Script failed: $_\"\n    # Cleanup code\n    Remove-Variable -Name tempVar -ErrorAction SilentlyContinue\n    exit 1\n}\n```\n\n### Parameter Handling\n\n```powershell\nparam(\n    [Parameter(Mandatory=$true)]\n    [string]$Name,\n\n    [Parameter(Mandatory=$false)]\n    [string]$Path = \".\",\n\n    [Parameter(Mandatory=$false)]\n    [switch]$Verbose,\n\n    [ValidateSet(\"dev\", \"staging\", \"prod\")]\n    [string]$Environment = \"dev\"\n)\n\nWrite-Output \"Name: $Name\"\nWrite-Output \"Path: $Path\"\nWrite-Output \"Environment: $Environment\"\nWrite-Output \"Verbose: $Verbose\"\n```\n\n### Working with Objects\n\n```powershell\n\n\n$user = [PSCustomObject]@{\n    Name = \"John\"\n    Age = 30\n    Email = \"john@example.com\",\n    Address = \"123 Main St\"\n}\n\n\nWrite-Output $user.Name\n\n\n$user | Add-Member -MemberType NoteProperty -Name \"City\" -Value \"Anytown\"\n\n\n$users | Where-Object { $_.Age -gt 25 }\n\n\n$users | Select-Object Name, Email\n\n\n$users | Sort-Object Name\n\n\n$users | Group-Object City\n```\n\n### Working with JSON\n\n```powershell\n\n\n$json = '{\"name\": \"John\", \"age\": 30}'\n$obj = $json | ConvertFrom-Json\n\nWrite-Output $obj.name\n\n\n$data = @{ name = \"John\"; age = 30 }\n$json = $data | ConvertTo-Json -Depth 10\nWrite-Output $json\n\n\n$config = Get-Content \"config.json\" | ConvertFrom-Json\n\n\n$config | ConvertTo-Json -Depth 10 | Set-Content \"config.json\"\n```\n\n### Working with Arrays and Hashtables\n\n```powershell\n\n\n$files = @(\"file1.txt\", \"file2.txt\", \"file3.txt\")\n\n\n$files += \"file4.txt\"\n\n\n$filtered = $files | Where-Object { $_ -like \"*.txt\" }\n\n\n$config = @{\n    host = \"localhost\"\n    port = 8080\n    tls = $true\n}\n\n\nWrite-Output $config.host\n\n\n$key = \"port\"\nWrite-Output $config[$key]\n\n\nforeach ($item in $config.GetEnumerator()) {\n    Write-Output \"$($item.Name) = $($item.Value)\"\n}\n```\n\n### File Operations\n\n```powershell\n\n\nif (Test-Path \"C:\\path\\to\\file.txt\") {\n    Write-Output \"File exists\"\n}\n\n\nNew-Item -ItemType Directory -Path \"C:\\new\\dir\" -Force\n\n\nRemove-Item \"C:\\path\\to\\file.txt\" -Force\nRemove-Item \"C:\\path\\to\\directory\" -Recurse -Force\n\n\nCopy-Item \"source.txt\" \"destination.txt\" -Force\nCopy-Item \"dir\\\" \"backup\\\" -Recurse\n\n\nMove-Item \"old_name.txt\" \"new_name.txt\"\n\n\n$content = Get-Content \"file.txt\"\n$content = Get-Content \"file.txt\" -Raw  # As single string\n\n\n$content | Set-Content \"file.txt\"\n\n\n\"more content\" | Add-Content \"file.txt\"\n```\n\n### String Operations\n\n```powershell\n\n\n$name = \"John\"\nWrite-Output \"Hello, $name!\"\n\n\nWrite-Output (\"Hello, {0}! Your score is {1:N2}\" -f $name, 95.5)\n\n\n$string = \"  Hello World  \"\n\n\n$trimmed = $string.Trim()\n\n\n$replaced = $string.Replace(\"World\", \"PowerShell\")\n\n\nif ($string -like \"*World*\") {\n    Write-Output \"Contains 'World'\"\n}\n\n\nif ($string -match \"^Hello\") {\n    Write-Output \"Starts with 'Hello'\"\n}\n\n\n$parts = \"a,b,c\".Split(\",\")\n```\n\n---\n\n## Part 4: CI\u002FCD Configuration\n\n### GitHub Actions\n\n```yaml\nname: CI\u002FCD Pipeline\n\non:\n  push:\n    branches: [ main, develop ]\n  pull_request:\n    branches: [ main ]\n  workflow_dispatch: # Allow manual trigger\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n    strategy:\n      matrix:\n        node-version: [16.x, 18.x, 20.x]\n\n    steps:\n      - name: Checkout repository\n        uses: actions\u002Fcheckout@v4\n\n      - name: Setup Node.js ${{ matrix.node-version }}\n        uses: actions\u002Fsetup-node@v4\n        with:\n          node-version: ${{ matrix.node-version }}\n\n      - name: Install dependencies\n        run: npm ci\n\n      - name: Run linter\n        run: npm run lint\n\n      - name: Run tests\n        run: npm test\n\n      - name: Upload coverage\n        uses: codecov\u002Fcodecov-action@v3\n\n  build:\n    needs: test\n    runs-on: ubuntu-latest\n\n    steps:\n      - name: Checkout\n        uses: actions\u002Fcheckout@v4\n\n      - name: Setup Node.js\n        uses: actions\u002Fsetup-node@v4\n        with:\n          node-version: '18'\n\n      - name: Install dependencies\n        run: npm ci\n\n      - name: Build\n        run: npm run build\n\n      - name: Upload artifacts\n        uses: actions\u002Fupload-artifact@v3\n        with:\n          name: build\n          path: dist\u002F\n\n  deploy:\n    needs: build\n    runs-on: ubuntu-latest\n    if: github.ref == 'refs\u002Fheads\u002Fmain'\n\n    steps:\n      - name: Checkout\n        uses: actions\u002Fcheckout@v4\n\n      - name: Download artifacts\n        uses: actions\u002Fdownload-artifact@v3\n        with:\n          name: build\n\n      - name: Deploy to Azure\n        run: az webapp up --name myapp --resource-group myrg\n```\n\n### Azure Pipelines\n\n```yaml\ntrigger:\n- main\n- develop\n\npool:\n  vmImage: 'ubuntu-latest'\n\nvariables:\n  buildConfiguration: 'Release'\n  packageFolder: '$(build.artifactStagingDirectory)\u002Fpackage'\n\nstages:\n- stage: Build\n  displayName: 'Build stage'\n  jobs:\n  - job: Build\n    displayName: 'Build job'\n    steps:\n    - task: NodeTool@0\n      inputs:\n        versionSpec: '18.x'\n      displayName: 'Install Node.js'\n\n    - script: |\n        npm ci\n      displayName: 'Install dependencies'\n\n    - script: |\n        npm run build\n      displayName: 'Build application'\n\n    - task: ArchiveFiles@2\n      inputs:\n        rootFolderOrFile: 'dist'\n        includeRootFolder: false\n        archiveType: 'zip'\n        archiveFile: $(Build.ArtifactStagingDirectory)\u002F$(Build.BuildId).zip\n      displayName: 'Archive build artifacts'\n\n    - publish: $(Build.ArtifactStagingDirectory)\u002F$(Build.BuildId).zip\n      artifact: drop\n\n- stage: Deploy\n  displayName: 'Deploy stage'\n  dependsOn: Build\n  condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs\u002Fheads\u002Fmain'))\n  jobs:\n  - deployment: Deploy\n    displayName: 'Deploy job'\n    environment: 'production'\n    strategy:\n      runOnce:\n        deploy:\n          steps:\n          - task: AzureWebApp@1\n            inputs:\n              azureSubscription: 'your_subscription_id'\n              appName: 'your_webapp_name'\n              package: $(Pipeline.Workspace)\u002Fdrop\u002F$(Build.BuildId).zip\n```\n\n---\n\n## DevOps Best Practices\n\n### Git\n- [ ] Use conventional commits\n- [ ] Keep commits small and focused\n- [ ] Write clear, descriptive messages\n- [ ] Keep feature branches short-lived\n- [ ] Rebase feature branches before merging\n- [ ] Sign commits for security-critical projects\n\n### Shell Scripting\n- [ ] Always use strict mode (`set -euo pipefail`)\n- [ ] Quote variables properly\n- [ ] Handle errors gracefully with traps\n- [ ] Validate inputs and parameters\n- [ ] Use functions for reusability\n- [ ] Add proper error messages to stderr\n\n### PowerShell\n- [ ] Use strict mode for security\n- [ ] Use proper cmdlet names (no aliases)\n- [ ] Implement error handling with try-catch\n- [ ] Test scripts thoroughly\n- [ ] Use parameter validation\n- [ ] Handle pipeline errors properly\n\n### CI\u002FCD\n- [ ] Use secure variable management for secrets\n- [ ] Cache dependencies to speed up builds\n- [ ] Run tests on multiple environments\n- [ ] Use matrix builds for different configurations\n- [ ] Implement proper artifact management\n- [ ] Add deployment gates and approvals\n- [ ] Provide clear build status\n\n---\n\n\u003C!-- MCP:START -->\n\n\u003C!-- PORTABILITY:START -->\n## Cross-Client Portability\n\nThis skill is written to stay usable across GitHub Copilot, Claude Code, and Codex.\n\n- GitHub Copilot: keep the folder in a Copilot-visible skill path or wrap the\n  workflow in project instructions when folder discovery is unavailable.\n- Claude Code: keep the folder in a local skills directory or a compatible plugin source.\n- Codex: install or sync the folder into\n  `$CODEX_HOME\u002Fskills\u002Fdevops-tooling` and restart Codex after major changes.\n\n\u003C!-- PORTABILITY:END -->\n\n## MCP Availability And Fallback\n\nPreferred MCP Server: GitHub MCP\n\n- Fallback prompt: \"Use the Devops Tooling skill without MCP. Follow the documented local or manual fallback, show the selected tool surface, and report the verification evidence.\"\n- Use standard local tools such as `git`, `gh`, CI logs, and shell automation scripts for repository and pipeline work.\n- Prefer the bundled repo scripts or direct YAML edits when the MCP host does not expose GitHub operations.\n- Do not claim an MCP operation was used when the active host does not expose it.\n\n\u003C!-- MCP:END -->\n\n## Anti-Patterns\n\n- Starting work before the plan or gate is clear: Execution drifts when success criteria are implied instead of explicit.\n- Treating verification as optional cleanup: The last mile is where regressions and missing updates are usually hiding.\n- Mixing planning, implementation, and release work in one jump: You lose the causal chain that explains why a change is safe.\n\n## Verification Protocol\n\nBefore claiming \"skill applied successfully\":\n\n1. Pass\u002Ffail: The Devops Tooling workflow starts from explicit success criteria, constraints, and stop conditions.\n2. Pass\u002Ffail: Required evidence is collected before any completion, approval, or readiness claim.\n3. Pass\u002Ffail: The next action follows the documented gate order without skipping review or verification steps.\n4. Pressure-test scenario: Apply the workflow under time pressure with one failing check and one tempting shortcut.\n5. Success metric: Zero rationalizations; blocked, failed, or unverified work is reported as such.\n\n## References & Resources\n\n### Documentation\n- [CI\u002FCD Patterns](.\u002Freferences\u002Fci-cd-patterns.md) — GitHub Actions patterns, caching, security scanning, and deployment strategies\n- [Shell Scripting Patterns](.\u002Freferences\u002Fshell-scripting-patterns.md) — PowerShell and Bash patterns side-by-side for automation\n\n### Scripts\n- [Setup Git Hooks](.\u002Fscripts\u002Fsetup-git-hooks.ps1) — PowerShell script to install pre-commit, commit-msg, and pre-push hooks\n\n### Examples\n- [GitHub Actions Templates](.\u002Fexamples\u002Fgithub-actions-templates.md) — 8 production-ready workflow templates for Node.js, Python, Docker, Terraform\n\n\n---\n\n## Related Skills\n\n- [development-workflow](..\u002Fdevelopment-workflow\u002FSKILL.md): Use it when the workflow also needs planning, quality gates, and delivery tracking.\n- [code-quality](..\u002Fcode-quality\u002FSKILL.md): Use it when the workflow also needs two-stage review (spec compliance first, then code quality), maintainability, and refactoring guidance.\n- [systematic-debugging](..\u002Fsystematic-debugging\u002FSKILL.md): Use it when the workflow also needs root-cause debugging before proposing fixes.\n- [test-driven-development](..\u002Ftest-driven-development\u002FSKILL.md): Use it when the workflow also needs test-first implementation and regression safety.\n","# Devops Tooling\n\nComprehensive toolkit for Git workflows, shell scripting, and development automation.\n\n- Leverage native parallel subagent dispatch and 200k+ context windows where available.\n\n\n## When to Use This Skill\n\nUse symptom -> action triggers: when one matches, apply this skill and verify with the protocol below.\n\n- Creating conventional commits and managing Git workflows\n- Writing Bash, Zsh, or PowerShell automation scripts\n- Configuring CI\u002FCD pipelines (GitHub Actions, Azure DevOps)\n- Automating development, testing, or deployment tasks\n- Troubleshooting Git conflicts and repository hygiene issues\n\n## Part 1: Git Workflows\n\n### Conventional Commits\n\nThe conventional commit specification provides an easy-to-extend set of rules for creating an explicit commit history.\n\n#### Commit Format\n\n```\n\u003Ctype>[optional scope]: \u003Cdescription>\n\n[optional body]\n\n[optional footer(s)]\n```\n\n#### Types\n\n| Type | Purpose | Example |\n|-------|---------|---------|\n| `feat` | New feature | `feat(auth): add OAuth2 support` |\n| `fix` | Bug fix | `fix(api): resolve null reference` |\n| `docs` | Documentation only | `docs(readme): update setup guide` |\n| `style` | Formatting\u002Fstyle (no logic) | `style(ui): fix indentation` |\n| `refactor` | Refactor production code | `refactor(svc): extract helpers` |\n| `perf` | Performance improvement | `perf(db): add index on email` |\n| `test` | Adding tests | `test(auth): add unit tests` |\n| `build` | Build system or deps | `build(ci): upgrade Node to v20` |\n| `ci` | CI configuration changes | `ci(github): add workflow for PRs` |\n| `chore` | Maintenance tasks | `chore(deps): update packages` |\n| `revert` | Revert previous commit | `revert: feat(login)` |\n\n#### Breaking Changes\n\nBreaking changes must be indicated by `!` after the type\u002Fscope, or via `BREAKING CHANGE` in footer:\n\n```bash\n\n\nfeat(api)!: remove deprecated v1 endpoint\n\n\nfeat(api): remove deprecated v1 endpoint\n\nBREAKING CHANGE: v1 endpoints are no longer supported. Use v2.\n```\n\n#### Good Examples\n\n```bash\n\n\nfeat(auth): implement JWT refresh tokens\n\n\nfix(ui): resolve mobile navigation overlap issue\n\n\ndocs(api): add authentication examples\n\n\nrefactor(user): extract validation logic to separate module\n\n\nperf(images): implement lazy loading\n\n\nfeat(core)!: change data structure from array to object\n```\n\n### Git Operations\n\n#### Branch Management\n\n```bash\n\n\ngit checkout -b feature\u002FPROJ-123\u002Fuser-auth\n\n\ngit checkout develop\n\n\ngit branch -d feature\u002FPROJ-123\u002Fuser-auth\n\n\ngit push origin --delete feature\u002FPROJ-123\u002Fuser-auth\n\n\ngit branch -m new-name\n\n\ngit branch -a\n```\n\n#### Commit Workflow\n\n```bash\n\n\ngit add .\n\n\ngit add file1.ts file2.ts\n\n\ngit add -i\n\n\ngit commit -m \"feat(auth): add OAuth2 support\"\n\n\ngit commit --amend\n\n\ngit log --oneline --graph --all\n\n\ngit show \u003Ccommit-hash>\n```\n\n#### Merge & Rebase\n\n```bash\n\n\ngit merge feature\u002Fnew-feature\n\n\ngit rebase develop\n\n\ngit rebase -i HEAD~3\n\n\ngit rebase --abort\ngit merge --abort\n\n\ngit rebase --continue\ngit merge --continue\n```\n\n#### Handling Conflicts\n\n```bash\n\n\ngit status\n\n\nvim conflicting-file.ts\n\n\ngit add conflicting-file.ts\n\n\ngit commit  # for merges\ngit rebase --continue  # for rebases\n```\n\n#### Stashing\n\n```bash\n\n\ngit stash push -m \"Work in progress\"\n\n\ngit stash pop\n\n\ngit stash apply stash@{2}\n\n\ngit stash list\n\n\ngit stash drop stash@{2}\n\n\ngit stash clear\n```\n\n#### Tagging\n\n```bash\n\n\ngit tag -a v1.0.0 -m \"Release v1.0.0\"\n\n\ngit tag v1.0.0\n\n\ngit tag\n\n\ngit push origin --tags\n\n\ngit push origin v1.0.0\n\n\ngit tag -d v1.0.0\n\n\ngit push origin --delete v1.0.0\n```\n\n#### Git Diff\n\n```bash\n\n\ngit diff\n\n\ngit diff --staged\n\n\ngit diff src\u002Fapp.ts\n\n\ngit diff HEAD~2 HEAD\n\n\ngit log --oneline v1.0.0..v2.0.0\n\n\ngit diff --stat\n```\n\n#### Git Configuration\n\n```bash\n\n\ngit config --global user.name \"Your Name\"\ngit config --global user.email \"your@email.com\"\n\n\ngit config --global init.defaultBranch main\n\n\ngit config --global commit.gpgsign true\n\n\ngit config --global alias.co checkout\ngit config --global alias.br branch\ngit config --global alias.ci commit\ngit config --global alias.st status\n\n\ngit config --unset user.name\n\n\ngit config --list\n```\n\n---\n\n## Part 2: Shell Scripting (bash\u002Fzsh)\n\n### General Principles\n\n- Generate clean, simple, and concise code\n- Ensure scripts are easily readable and understandable\n- Add comments where needed for understanding\n- Generate concise echo outputs for execution status\n- Avoid unnecessary output and excessive logging\n\n### Error Handling & Safety\n\n#### Enable Strict Mode\n\nAlways enable strict mode at the top of scripts:\n\n```bash\n#!\u002Fbin\u002Fbash\nset -euo pipefail\n```\n\n- `-e`: Exit on first error\n- `-u`: Treat unset variables as errors\n- `-o pipefail`: Surface pipeline failures\n\n#### Cleanup with Traps\n\n```bash\ncleanup() {\n    # Remove temporary files\n    if [[ -n \"${TEMP_DIR:-}\" && -d \"$TEMP_DIR\" ]]; then\n        rm -rf \"$TEMP_DIR\"\n    fi\n\n    # Close connections\n    if [[ -n \"${CONNECTION:-}\" ]]; then\n        echo \"Closing connection...\"\n        # connection close logic\n    fi\n}\n\ntrap cleanup EXIT\n\n\ntrap 'echo \"Interrupted\"; cleanup; exit 1' INT TERM\n```\n\n#### Validate Requirements\n\n```bash\nvalidate_requirements() {\n    local errors=0\n\n    # Check required variables\n    if [[ -z \"${RESOURCE_GROUP:-}\" ]]; then\n        echo \"Error: RESOURCE_GROUP environment variable not set\" >&2\n        ((errors++))\n    fi\n\n    # Check required commands\n    for cmd in curl jq az; do\n        if ! command -v \"$cmd\" &> \u002Fdev\u002Fnull; then\n            echo \"Error: $cmd is not installed\" >&2\n            ((errors++))\n        fi\n    done\n\n    # Return appropriate exit code\n    return $errors\n}\n\n\nif ! validate_requirements; then\n    exit 1\nfi\n```\n\n### Working with Variables\n\n```bash\n\n\necho \"Config: ${CONFIG_FILE:-.\u002Fconfig.default.yaml}\"\n\n\nname=\"World\"\necho \"Hello, ${name}!\"\n\n\napps=(\"app1\" \"app2\" \"app3\")\nfor app in \"${apps[@]}\"; do\n    echo \"Processing: $app\"\ndone\n\n\ndeclare -A config\nconfig[host]=\"localhost\"\nconfig[port]=\"8080\"\necho \"Connecting to ${config[host]}:${config[port]}\"\n```\n\n### Control Flow\n\n```bash\n\n\nif [[ \"$OSTYPE\" == \"linux-gnu\"* ]]; then\n    echo \"Linux detected\"\nelif [[ \"$OSTYPE\" == \"darwin\"* ]]; then\n    echo \"macOS detected\"\nelse\n    echo \"Unknown OS\"\nfi\n\n\ncase \"$1\" in\n    start)\n        echo \"Starting service...\"\n        ;;\n    stop)\n        echo \"Stopping service...\"\n        ;;\n    *)\n        echo \"Usage: $0 {start|stop}\"\n        exit 1\n        ;;\nesac\n\n\nfor i in {1..5}; do\n    echo \"Iteration $i\"\ndone\n\n\ntimeout=30\nelapsed=0\nwhile [[ $elapsed -lt $timeout ]]; do\n    if check_ready; then\n        echo \"Service ready\"\n        break\n    fi\n    sleep 1\n    ((elapsed++))\ndone\n```\n\n### Parsing JSON with jq\n\n```bash\n\n\nresult=$(curl -s \"https:\u002F\u002Fapi.example.com\u002Fdata\")\nname=$(echo \"$result\" | jq -r '.name')\ncount=$(echo \"$result\" | jq '.items | length')\nfirst_item=$(echo \"$result\" | jq -r '.items[0]')\n\n\nactive_users=$(echo \"$result\" | jq '.users[] | select(.status == \"active\")')\n\n\nread -r first_name last_name email \u003C\u003C\u003C$(echo \"$result\" | jq -r '\"\\(.firstName) \\(.lastName) \\(.email)\"')\n\n\necho \"$result\" | jq '.count += 1' > updated.json\n\n\njq -n \\\n  --arg name \"John\" \\\n  --arg age \"30\" \\\n  '{name: $name, age: ($age | tonumber)}'\n```\n\n### Parsing Arguments\n\n```bash\n#!\u002Fbin\u002Fbash\n\n\nverbose=0\noutput_file=\"output.txt\"\nconfig=\".\u002Fconfig.yaml\"\n\n\nwhile [[ $# -gt 0 ]]; do\n    case $1 in\n        -v|--verbose)\n            verbose=1\n            shift\n            ;;\n        -o|--output)\n            output_file=\"$2\"\n            shift 2\n            ;;\n        -c|--config)\n            config=\"$2\"\n            shift 2\n            ;;\n        -h|--help)\n            show_help\n            exit 0\n            ;;\n        *)\n            echo \"Unknown option: $1\" >&2\n            exit 1\n            ;;\n    esac\ndone\n\necho \"Config: $config\"\necho \"Output: $output_file\"\necho \"Verbose: $verbose\"\n```\n\n### File Operations\n\n```bash\n\n\nif [[ -f \"$FILE_PATH\" ]]; then\n    echo \"File exists\"\nfi\n\n\nif [[ ! -d \"$DIR_PATH\" ]]; then\n    mkdir -p \"$DIR_PATH\"\nfi\n\n\nmkdir -p .\u002Fdir1\u002Fdir2\n\n\ncp -r source_dir\u002F dest_dir\u002F\n\n\nrm -f file.txt          # Force delete file\nrm -rf directory\u002F       # Recursive delete directory\n\n\nfind . -name \"*.py\"           # All Python files\nfind . -type f -name \"*.js\"   # All JS files (regular files only)\nfind . -mtime -7              # Modified in last 7 days\n\n\ntemp_file=$(mktemp)\necho \"data\" > \"$temp_file\"\n\n\nrm -f \"$temp_file\"\n\n\ntemp_dir=$(mktemp -d)\n\n\nrm -rf \"$temp_dir\"\n```\n\n### Process Management\n\n```bash\n\n\nif pgrep -x \"nginx\" > \u002Fdev\u002Fnull; then\n    echo \"Nginx is running\"\nelse\n    echo \"Nginx is not running\"\nfi\n\n\nwhile pgrep -x \"script-name\" > \u002Fdev\u002Fnull; do\n    sleep 1\ndone\n\n\ntimeout 30s .\u002Flong-running-script.sh || echo \"Timed out after 30s\"\n\n\n.\u002Fscript.sh &\njob_pid=$!\n\n\ntrap \"kill $job_pid 2>\u002Fdev\u002Fnull\" EXIT\n```\n\n### Logging\n\n```bash\n#!\u002Fbin\u002Fbash\n\n\nLOG_INFO() {\n    echo \"[INFO] $(date '+%Y-%m-%d %H:%M:%S') $*\"\n}\n\nLOG_WARN() {\n    echo \"[WARN] $(date '+%Y-%m-%d %H:%M:%S') $*\" >&2\n}\n\nLOG_ERROR() {\n    echo \"[ERROR] $(date '+%Y-%m-%d %H:%M:%S') $*\" >&2\n}\n\nLOG_DEBUG() {\n    if [[ \"${DEBUG:-}\" == \"1\" ]]; then\n        echo \"[DEBUG] $(date '+%Y-%m-%d %H:%M:%S') $*\"\n    fi\n}\n\n\nLOG_INFO \"Starting deployment\"\nLOG_WARN \"This is a warning\"\nLOG_ERROR \"Deployment failed\"\nLOG_DEBUG \"Detailed debugging info\"\n```\n\n---\n\n## Part 3: PowerShell Scripting\n\n### General Practices\n\n- Use proper cmdlet names instead of aliases (e.g., `Get-ChildItem`, not `dir`)\n- Quote paths with spaces: `\"C:\\Path With Spaces\\file.txt\"`\n- Use `ShouldProcess` for destructive operations\n- Implement proper error handling with try-catch\n- Parameterize scripts for reusability\n\n### Error Handling\n\n```powershell\n\n\nSet-StrictMode -Version Latest\n\n\n$ErrorActionPreference = \"Stop\"\n\n\ntry {\n    $result = Invoke-RestMethod -Uri \"https:\u002F\u002Fapi.example.com\u002Fdata\" -Method Get\n}\ncatch [System.Net.WebException] {\n    Write-Error \"Network error occurred: $($_.Exception.Message)\"\n    exit 1\n}\ncatch {\n    Write-Error \"Unexpected error: $($_.Exception.Message)\"\n    exit 1\n}\nfinally {\n    # Cleanup code always runs\n    Write-Output \"Execution completed\"\n}\n\n\ntrap {\n    Write-Error \"Script failed: $_\"\n    # Cleanup code\n    Remove-Variable -Name tempVar -ErrorAction SilentlyContinue\n    exit 1\n}\n```\n\n### Parameter Handling\n\n```powershell\nparam(\n    [Parameter(Mandatory=$true)]\n    [string]$Name,\n\n    [Parameter(Mandatory=$false)]\n    [string]$Path = \".\",\n\n    [Parameter(Mandatory=$false)]\n    [switch]$Verbose,\n\n    [ValidateSet(\"dev\", \"staging\", \"prod\")]\n    [string]$Environment = \"dev\"\n)\n\nWrite-Output \"Name: $Name\"\nWrite-Output \"Path: $Path\"\nWrite-Output \"Environment: $Environment\"\nWrite-Output \"Verbose: $Verbose\"\n```\n\n### Working with Objects\n\n```powershell\n\n\n$user = [PSCustomObject]@{\n    Name = \"John\"\n    Age = 30\n    Email = \"john@example.com\",\n    Address = \"123 Main St\"\n}\n\n\nWrite-Output $user.Name\n\n\n$user | Add-Member -MemberType NoteProperty -Name \"City\" -Value \"Anytown\"\n\n\n$users | Where-Object { $_.Age -gt 25 }\n\n\n$users | Select-Object Name, Email\n\n\n$users | Sort-Object Name\n\n\n$users | Group-Object City\n```\n\n### Working with JSON\n\n```powershell\n\n\n$json = '{\"name\": \"John\", \"age\": 30}'\n$obj = $json | ConvertFrom-Json\n\nWrite-Output $obj.name\n\n\n$data = @{ name = \"John\"; age = 30 }\n$json = $data | ConvertTo-Json -Depth 10\nWrite-Output $json\n\n\n$config = Get-Content \"config.json\" | ConvertFrom-Json\n\n\n$config | ConvertTo-Json -Depth 10 | Set-Content \"config.json\"\n```\n\n### Working with Arrays and Hashtables\n\n```powershell\n\n\n$files = @(\"file1.txt\", \"file2.txt\", \"file3.txt\")\n\n\n$files += \"file4.txt\"\n\n\n$filtered = $files | Where-Object { $_ -like \"*.txt\" }\n\n\n$config = @{\n    host = \"localhost\"\n    port = 8080\n    tls = $true\n}\n\n\nWrite-Output $config.host\n\n\n$key = \"port\"\nWrite-Output $config[$key]\n\n\nforeach ($item in $config.GetEnumerator()) {\n    Write-Output \"$($item.Name) = $($item.Value)\"\n}\n```\n\n### File Operations\n\n```powershell\n\n\nif (Test-Path \"C:\\path\\to\\file.txt\") {\n    Write-Output \"File exists\"\n}\n\n\nNew-Item -ItemType Directory -Path \"C:\\new\\dir\" -Force\n\n\nRemove-Item \"C:\\path\\to\\file.txt\" -Force\nRemove-Item \"C:\\path\\to\\directory\" -Recurse -Force\n\n\nCopy-Item \"source.txt\" \"destination.txt\" -Force\nCopy-Item \"dir\\\" \"backup\\\" -Recurse\n\n\nMove-Item \"old_name.txt\" \"new_name.txt\"\n\n\n$content = Get-Content \"file.txt\"\n$content = Get-Content \"file.txt\" -Raw  # As single string\n\n\n$content | Set-Content \"file.txt\"\n\n\n\"more content\" | Add-Content \"file.txt\"\n```\n\n### String Operations\n\n```powershell\n\n\n$name = \"John\"\nWrite-Output \"Hello, $name!\"\n\n\nWrite-Output (\"Hello, {0}! Your score is {1:N2}\" -f $name, 95.5)\n\n\n$string = \"  Hello World  \"\n\n\n$trimmed = $string.Trim()\n\n\n$replaced = $string.Replace(\"World\", \"PowerShell\")\n\n\nif ($string -like \"*World*\") {\n    Write-Output \"Contains 'World'\"\n}\n\n\nif ($string -match \"^Hello\") {\n    Write-Output \"Starts with 'Hello'\"\n}\n\n\n$parts = \"a,b,c\".Split(\",\")\n```\n\n---\n\n## Part 4: CI\u002FCD Configuration\n\n### GitHub Actions\n\n```yaml\nname: CI\u002FCD Pipeline\n\non:\n  push:\n    branches: [ main, develop ]\n  pull_request:\n    branches: [ main ]\n  workflow_dispatch: # Allow manual trigger\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n    strategy:\n      matrix:\n        node-version: [16.x, 18.x, 20.x]\n\n    steps:\n      - name: Checkout repository\n        uses: actions\u002Fcheckout@v4\n\n      - name: Setup Node.js ${{ matrix.node-version }}\n        uses: actions\u002Fsetup-node@v4\n        with:\n          node-version: ${{ matrix.node-version }}\n\n      - name: Install dependencies\n        run: npm ci\n\n      - name: Run linter\n        run: npm run lint\n\n      - name: Run tests\n        run: npm test\n\n      - name: Upload coverage\n        uses: codecov\u002Fcodecov-action@v3\n\n  build:\n    needs: test\n    runs-on: ubuntu-latest\n\n    steps:\n      - name: Checkout\n        uses: actions\u002Fcheckout@v4\n\n      - name: Setup Node.js\n        uses: actions\u002Fsetup-node@v4\n        with:\n          node-version: '18'\n\n      - name: Install dependencies\n        run: npm ci\n\n      - name: Build\n        run: npm run build\n\n      - name: Upload artifacts\n        uses: actions\u002Fupload-artifact@v3\n        with:\n          name: build\n          path: dist\u002F\n\n  deploy:\n    needs: build\n    runs-on: ubuntu-latest\n    if: github.ref == 'refs\u002Fheads\u002Fmain'\n\n    steps:\n      - name: Checkout\n        uses: actions\u002Fcheckout@v4\n\n      - name: Download artifacts\n        uses: actions\u002Fdownload-artifact@v3\n        with:\n          name: build\n\n      - name: Deploy to Azure\n        run: az webapp up --name myapp --resource-group myrg\n```\n\n### Azure Pipelines\n\n```yaml\ntrigger:\n- main\n- develop\n\npool:\n  vmImage: 'ubuntu-latest'\n\nvariables:\n  buildConfiguration: 'Release'\n  packageFolder: '$(build.artifactStagingDirectory)\u002Fpackage'\n\nstages:\n- stage: Build\n  displayName: 'Build stage'\n  jobs:\n  - job: Build\n    displayName: 'Build job'\n    steps:\n    - task: NodeTool@0\n      inputs:\n        versionSpec: '18.x'\n      displayName: 'Install Node.js'\n\n    - script: |\n        npm ci\n      displayName: 'Install dependencies'\n\n    - script: |\n        npm run build\n      displayName: 'Build application'\n\n    - task: ArchiveFiles@2\n      inputs:\n        rootFolderOrFile: 'dist'\n        includeRootFolder: false\n        archiveType: 'zip'\n        archiveFile: $(Build.ArtifactStagingDirectory)\u002F$(Build.BuildId).zip\n      displayName: 'Archive build artifacts'\n\n    - publish: $(Build.ArtifactStagingDirectory)\u002F$(Build.BuildId).zip\n      artifact: drop\n\n- stage: Deploy\n  displayName: 'Deploy stage'\n  dependsOn: Build\n  condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs\u002Fheads\u002Fmain'))\n  jobs:\n  - deployment: Deploy\n    displayName: 'Deploy job'\n    environment: 'production'\n    strategy:\n      runOnce:\n        deploy:\n          steps:\n          - task: AzureWebApp@1\n            inputs:\n              azureSubscription: 'your_subscription_id'\n              appName: 'your_webapp_name'\n              package: $(Pipeline.Workspace)\u002Fdrop\u002F$(Build.BuildId).zip\n```\n\n---\n\n## DevOps Best Practices\n\n### Git\n- [ ] Use conventional commits\n- [ ] Keep commits small and focused\n- [ ] Write clear, descriptive messages\n- [ ] Keep feature branches short-lived\n- [ ] Rebase feature branches before merging\n- [ ] Sign commits for security-critical projects\n\n### Shell Scripting\n- [ ] Always use strict mode (`set -euo pipefail`)\n- [ ] Quote variables properly\n- [ ] Handle errors gracefully with traps\n- [ ] Validate inputs and parameters\n- [ ] Use functions for reusability\n- [ ] Add proper error messages to stderr\n\n### PowerShell\n- [ ] Use strict mode for security\n- [ ] Use proper cmdlet names (no aliases)\n- [ ] Implement error handling with try-catch\n- [ ] Test scripts thoroughly\n- [ ] Use parameter validation\n- [ ] Handle pipeline errors properly\n\n### CI\u002FCD\n- [ ] Use secure variable management for secrets\n- [ ] Cache dependencies to speed up builds\n- [ ] Run tests on multiple environments\n- [ ] Use matrix builds for different configurations\n- [ ] Implement proper artifact management\n- [ ] Add deployment gates and approvals\n- [ ] Provide clear build status\n\n---\n\n\u003C!-- MCP:START -->\n\n\u003C!-- PORTABILITY:START -->\n## Cross-Client Portability\n\nThis skill is written to stay usable across GitHub Copilot, Claude Code, and Codex.\n\n- GitHub Copilot: keep the folder in a Copilot-visible skill path or wrap the\n  workflow in project instructions when folder discovery is unavailable.\n- Claude Code: keep the folder in a local skills directory or a compatible plugin source.\n- Codex: install or sync the folder into\n  `$CODEX_HOME\u002Fskills\u002Fdevops-tooling` and restart Codex after major changes.\n\n\u003C!-- PORTABILITY:END -->\n\n## MCP Availability And Fallback\n\nPreferred MCP Server: GitHub MCP\n\n- Fallback prompt: \"Use the Devops Tooling skill without MCP. Follow the documented local or manual fallback, show the selected tool surface, and report the verification evidence.\"\n- Use standard local tools such as `git`, `gh`, CI logs, and shell automation scripts for repository and pipeline work.\n- Prefer the bundled repo scripts or direct YAML edits when the MCP host does not expose GitHub operations.\n- Do not claim an MCP operation was used when the active host does not expose it.\n\n\u003C!-- MCP:END -->\n\n## Anti-Patterns\n\n- Starting work before the plan or gate is clear: Execution drifts when success criteria are implied instead of explicit.\n- Treating verification as optional cleanup: The last mile is where regressions and missing updates are usually hiding.\n- Mixing planning, implementation, and release work in one jump: You lose the causal chain that explains why a change is safe.\n\n## Verification Protocol\n\nBefore claiming \"skill applied successfully\":\n\n1. Pass\u002Ffail: The Devops Tooling workflow starts from explicit success criteria, constraints, and stop conditions.\n2. Pass\u002Ffail: Required evidence is collected before any completion, approval, or readiness claim.\n3. Pass\u002Ffail: The next action follows the documented gate order without skipping review or verification steps.\n4. Pressure-test scenario: Apply the workflow under time pressure with one failing check and one tempting shortcut.\n5. Success metric: Zero rationalizations; blocked, failed, or unverified work is reported as such.\n\n## References & Resources\n\n### Documentation\n- [CI\u002FCD Patterns](.\u002Freferences\u002Fci-cd-patterns.md) — GitHub Actions patterns, caching, security scanning, and deployment strategies\n- [Shell Scripting Patterns](.\u002Freferences\u002Fshell-scripting-patterns.md) — PowerShell and Bash patterns side-by-side for automation\n\n### Scripts\n- [Setup Git Hooks](.\u002Fscripts\u002Fsetup-git-hooks.ps1) — PowerShell script to install pre-commit, commit-msg, and pre-push hooks\n\n### Examples\n- [GitHub Actions Templates](.\u002Fexamples\u002Fgithub-actions-templates.md) — 8 production-ready workflow templates for Node.js, Python, Docker, Terraform\n\n\n---\n\n## Related Skills\n\n- [development-workflow](..\u002Fdevelopment-workflow\u002FSKILL.md): Use it when the workflow also needs planning, quality gates, and delivery tracking.\n- [code-quality](..\u002Fcode-quality\u002FSKILL.md): Use it when the workflow also needs two-stage review (spec compliance first, then code quality), maintainability, and refactoring guidance.\n- [systematic-debugging](..\u002Fsystematic-debugging\u002FSKILL.md): Use it when the workflow also needs root-cause debugging before proposing fixes.\n- [test-driven-development](..\u002Ftest-driven-development\u002FSKILL.md): Use it when the workflow also needs test-first implementation and regression safety.\n",{"name":5,"tags":25,"version":31,"description":7,"last_updated":32},[26,27,28,29,30],"devops","tooling","workflow","quality","planning","2.0",1788825600000,"master","fd76f882a04e445e899d5cfb2732f2105ea054ee","skills\u002Fagent-skills\u002Fdevops-tooling",0,"https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS","https:\u002F\u002Fbg-szy.github.io\u002FTOP-SKILLS\u002F","https:\u002F\u002Fgithub.com\u002Fbg-szy","https:\u002F\u002Fwww.ecust.edu.cn\u002F","a student of East China University of Science and Technology","2026-11-15 03:38:02",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add bg-szy\u002FTOP-SKILLS --skill devops-tooling",{"tool":49,"command":50},"bunx","bunx skills add bg-szy\u002FTOP-SKILLS --skill devops-tooling",{"tool":52,"command":53},"pnpm","pnpm dlx skills add bg-szy\u002FTOP-SKILLS --skill devops-tooling","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fagent-skills\u002Fdevops-tooling\u002FSKILL.md",true,[57,63],{"path":58,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":62},"CHANGELOG.md","REFERENCE","参考文档",6312,"https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fagent-skills\u002Fdevops-tooling\u002FCHANGELOG.md",{"path":64,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":16},"LICENSE.txt","LICENSE","许可证",1069,[69,77,84,91,98,105],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":76},"01M7DXW9N826PKXK174PVW3038","serpmaven","Scrape Google search results (SERP) to JSON with SERP Maven (serpmaven) - a real Chrome browser on a residential proxy with sticky sessions. Run it as a CLI, a Python library, a local HTTP search API (`serve`), an MCP server or a Docker image; set the proxy login, workers, pages and cost tracking. Use when the user wants Google results, rank tracking, a self-hosted SERP API, or live Google search for an AI agent.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fserpmaven\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":76},"01M7DXVHSTWDV65475QEQ915M7","revnu-landing-page-audit","Find out why a landing page isn't turning visitors into signups, demos or sales. Audits one page against what the ad, post or search that sends people there promised, then checks the first screen, proof, call to action, friction and mobile. Returns at most 7 prioritized fixes, plus what is fine and what could not be checked; rewrites specific lines and fixes the page in the repo when asked. Never promises a conversion lift. Works without a Revnu account. Use when the user says or asks: \"audit my landing page\", \"why isn't this page converting\", \"review my homepage\", \"my ads get clicks but no signups\", \"people bounce from the pricing page\", \"CRO review\", \"improve conversion rate\", \"is my hero section clear\", \"roast my landing page\", \"rewrite my headline\", \"what's wrong with this page\", \"landing page feedback\", \"make the signup page convert better\". Not for SEO or AI-search audits, page speed engineering on its own, or building a new page from scratch.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-landing-page-audit\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":76},"01M7DXV8X2D7B3VTD4HHYYHTGR","revnu-growth-context","Write down once who buys, what they're stuck on, what it costs, what proof you have and what you've already tried, so every growth task starts from facts instead of a questionnaire. Creates or updates .agents\u002Frevnu-growth.md from the repo, the live site and the user, and imports an existing product-marketing.md. Use when the user says \"set up our marketing context\", \"who is our ideal customer\", \"write our ICP\", \"describe the product for marketing\", \"positioning doc\", \"what's our brand voice\", \"remember this about our customers\", \"log what we tried\", \"what have we learned from marketing\", \"we changed pricing, update the context\", \"update our growth notes\", \"summarize the business for the agent\", \"import my product-marketing.md\", \"start a growth doc\", or before a first marketing, SEO, outreach or launch task when no context file exists. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-growth-context\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":76},"01M7DXV0DGJ1G0A60PAHC6J3C5","revnu-get-listed","Get onto the third-party pages AI answers and search cite when buyers ask for the best tool in your category: \"best X\" roundups, directories, review sites, GitHub awesome lists, community threads and comparison pages. Finds which ones are cited, ranks them by fit and effort, and drafts each submission, PR or pitch by the target's own rules. Use when the user says \"get us listed\", \"which directories should we submit to\", \"how do we get into best-of lists\", \"why does ChatGPT recommend competitors and not us\", \"get mentioned in AI answers\", \"submit to awesome lists\", \"get on G2\", \"where are our competitors listed\", \"pitch listicle authors\", \"find backlink opportunities\", \"launch directories\", \"get into roundups\", \"Product Hunt alternatives\", \"where should we be listed\", \"get cited by Perplexity\". Never submits, pays or posts without a yes. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-get-listed\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":76},"01M7DXTSPMGT9D6DSS0HP9BSTA","revnu-ai-readiness-audit","Audit whether your website gives ChatGPT, Perplexity, Claude, Gemini and Google's AI Overviews something worth quoting, and fix the pages that don't. Use when the user says or asks \"is my site ready for AI search\", \"audit my site for AI answers\", \"AEO audit\", \"GEO audit\", \"why doesn't ChatGPT quote our pricing\", \"make our pages citable by AI\", \"do I need llms.txt\", \"does schema help with ChatGPT\", \"check our structured data\", \"is our content visible without JavaScript\", \"AI SEO audit\", \"optimize our homepage for AI answers\", \"LLM SEO check\", \"why does AI get our product wrong\", \"fix our site for AI Overviews\". Checks fetchability and indexability, answers in the raw HTML, entity facts, schema (including JS-injected markup), headings, dates and llms.txt, then gives at most 10 prioritised fixes and edits the repo when asked. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-ai-readiness-audit\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":76},"01M7DXSZHCVTRS620GC3S97JZV","proxy-troubleshooting","Diagnose residential proxy failures, with NodeMaven's gateway as the reference - 407 with correct credentials, 406, 410, 500, a connection that hangs, ERR_TUNNEL_CONNECTION_FAILED in a browser, Playwright or Puppeteer ignoring proxy credentials, a sticky session that changes IP, geo-targeting that is silently ignored, passwords with special characters, and unexpected traffic from headless Chrome. Use when a proxy connection fails, returns the wrong location, or costs more traffic than expected.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fproxy-troubleshooting\u002FSKILL.md",[],[]]