agentleFS
lenseteklensetek/Startup-Agent-Skills-Hub/skills/devops-update-manager/SKILL.md

devops-update-manager

Skill1 starsChanged 2 months agoApache-2.0View on GitHub

The DevOps Update Manager checks for Startup Agent Skills Hub updates, applies Git-based updates by default, and uses a guarded ZIP fallback only when Git is unavailable.

  • Reads credentials

The file

Show its rules and text

We split this skill into the rules it gives an agent

24 rules. About 0 are common, 20 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈20

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Architecture Drift Detection (Graphify Intelligence): If graphify is installed, run graph diffs during version upgrades to detect breaking …

    line 14
  2. Distinctive:

    Use the safe ZIP fallback only when Git is unavailable or not applicable, and only after validating the archive structure and backing up …

    line 17
  3. Distinctive:

    Do not perform updates without user confirmation.

    line 20
  4. Distinctive:

    Do not edit or modify product requirements, database designs, or source code features.

    line 21
  5. Distinctive:

    Prefer auditable Git update logic whenever possible.

    line 22
  6. Distinctive:

    Never run scripts from downloaded archives automatically.

    line 23
  7. Distinctive:

    Never overwrite user files without backup and confirmation.

    line 24
  8. Very specific:

    Never leak credentials, copy .env, or modify .agents/session_memory.md.

    line 25
  9. Distinctive:

    Check whether Git is available:

    line 41
  10. Distinctive:

    Check whether the current workspace is a Git checkout with the expected remote:

    line 45
  11. Distinctive:

    If Git is available and the expected remote exists, use the Git update path.

    line 49
  12. Distinctive:

    If Git is unavailable or the workspace is not a Git checkout, explain that the update will use the guarded ZIP fallback and ask for …

    line 50
  13. Distinctive:

    If the remote version is newer (or if the user requests a force update):

    line 63
  14. Distinctive:

    Wait for user confirmation before executing any write commands.

    line 75
  15. Distinctive:

    If fast-forward is not possible, stop and report the conflict or divergence.

    line 87
  16. Very specific:

    Verify Browser MCP & Tool Readiness: Run node bin/cli.js setup-browser-mcp to guarantee that .mcp.json contains chrome-devtools and …

    line 92
  17. Distinctive:

    Use this path only when Git is not installed or the workspace is not a Git checkout.

    line 96
  18. Distinctive:

    Before writing anything, ask the user to confirm the fallback update method:

    line 97
  19. Distinctive:

    If validation fails, delete the temporary files and stop.

    line 112
  20. Distinctive:

    Create timestamped backups before overwriting any managed paths:

    line 113
  21. Very specific:

    Never copy .env, .agents/, .git/, local cache folders, or user-generated project files.

    line 123
  22. Distinctive:

    After copying, report changed targets and re-run installation if the user asks for a target agent reinstall.

    line 124
  23. Distinctive:

    If any copy step fails, restore from backup and report the failure.

    line 125
  24. Distinctive:

    If ZIP fallback was used, were archive structure validation, backup, restricted copy targets, cleanup, and restore-on-failure enforced?

    line 131

≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

DevOps Update Manager

Role

The DevOps Update Manager periodically checks for version updates of the Startup Agent Skills Hub, reads version information, informs the user of changes, and applies updates through auditable Git operations by default. If the user does not have Git or the workspace is not a Git checkout, it may use a guarded ZIP fallback with validation, backup, preview, and restore behavior.

Responsibilities

  • Fetch the latest version information from the remote repository's package.json file.
  • Compare the remote version with the local package.json version.
  • Query the remote release log (e.g. WHATS_NEW.md or git commits) if there is an update.
  • Architecture Drift Detection (Graphify Intelligence): If graphify is installed, run graph diffs during version upgrades to detect breaking structural changes across modules. If Graphify is unindexed or inactive, fall back to git diff --stat and version number comparisons in package.json.
  • Notify the user in clear, friendly natural language of any available version updates.
  • Fetch remote Git metadata, preview incoming changes, update the local workspace through Git, and re-run installation to target agent platforms (e.g., Antigravity, Codex, Claude Code) upon user confirmation.
  • Use the safe ZIP fallback only when Git is unavailable or not applicable, and only after validating the archive structure and backing up existing files.

Boundaries

  • Do not perform updates without user confirmation.
  • Do not edit or modify product requirements, database designs, or source code features.
  • Prefer auditable Git update logic whenever possible.
  • Never run scripts from downloaded archives automatically.
  • Never overwrite user files without backup and confirmation.
  • Never leak credentials, copy .env, or modify .agents/session_memory.md.

Inputs

  • Local package.json: c:/Users/ACER/Documents/antigravity/Startup-Agents/package.json
  • Remote Git Repository: https://github.com/lensetek/Startup-Agent-Skills-Hub
  • Remote Branch: main
  • Fallback ZIP Source: https://github.com/lensetek/Startup-Agent-Skills-Hub/archive/refs/heads/main.zip

Outputs

  • Version Check Status: Notification of whether the workspace is up-to-date or has an update available.
  • Update Confirmation Prompt: A message describing changes and asking the user if they want to apply the update.
  • Installation Status: Summary of update process results, including files copied and target plugins reinstalled.

Workflow

1. Capability Check

  • Check whether Git is available:
    git --version
  • Check whether the current workspace is a Git checkout with the expected remote:
    git remote -v
  • If Git is available and the expected remote exists, use the Git update path.
  • If Git is unavailable or the workspace is not a Git checkout, explain that the update will use the guarded ZIP fallback and ask for confirmation before downloading anything.

2. Git Version Verification

  • Fetch remote metadata without modifying the working tree:
    git fetch origin main
  • Compare the remote package.json version with the local package.json version:
    git show origin/main:package.json
  • If they match:
    • Report to the user: Your Startup Agent Skills Hub is up-to-date (vA.B.C).
  • If the remote version is newer (or if the user requests a force update):
    • Proceed to the Update Alert step.

3. Git Update Alert & Confirmation

  • Present the available version and release notes/changes (if available).
  • Show a concise preview of incoming changes before asking for confirmation:
    git log --oneline HEAD..origin/main
    git diff --stat HEAD..origin/main
  • Present a clear prompt to the user:

    "Sebuah update versi terbaru (vX.Y.Z) tersedia. Apakah Anda ingin menerapkan update ini melalui Git setelah melihat ringkasan perubahannya?"

  • Wait for user confirmation before executing any write commands.

4. Applying the Update via Git

  • Once the user confirms the update, execute the following terminal commands to update the files securely:
    1. Confirm there are no uncommitted user changes that would be overwritten:
      git status --short
    2. Apply the remote update through Git:
      git merge --ff-only origin/main
    3. If fast-forward is not possible, stop and report the conflict or divergence. Do not force reset or overwrite user changes.
    4. Detect existing plugin installations and re-run installation to apply changes. For example, run:
      node bin/cli.js install-plugin --target antigravity
    5. Verify Browser MCP & Tool Readiness: Run node bin/cli.js setup-browser-mcp to guarantee that .mcp.json contains chrome-devtools and pre-caches npx -y chrome-devtools-mcp@latest.
    6. Report the final installed version and any files changed by the update.

5. Safe ZIP Fallback (Only Without Git)

  • Use this path only when Git is not installed or the workspace is not a Git checkout.
  • Before writing anything, ask the user to confirm the fallback update method:

    "Git tidak tersedia di environment ini. Apakah Anda ingin menggunakan ZIP fallback yang aman dengan validasi struktur, backup, dan restore otomatis jika gagal?"

  • Download the ZIP to a temporary path:
    Invoke-WebRequest -Uri "https://github.com/lensetek/Startup-Agent-Skills-Hub/archive/refs/heads/main.zip" -OutFile "startup-agent-skills-update.zip"
  • Extract only into a temporary folder:
    Expand-Archive -Path "startup-agent-skills-update.zip" -DestinationPath "startup-agent-skills-update-temp" -Force
  • Validate that the extracted archive contains the expected structure before copying:
    • Startup-Agent-Skills-Hub-main/package.json
    • Startup-Agent-Skills-Hub-main/README.md
    • Startup-Agent-Skills-Hub-main/bin/cli.js
    • Startup-Agent-Skills-Hub-main/skills/
  • If validation fails, delete the temporary files and stop.
  • Create timestamped backups before overwriting any managed paths:
    • skills.backup-YYYYMMDD-HHMMSS
    • bin.backup-YYYYMMDD-HHMMSS
    • README.backup-YYYYMMDD-HHMMSS.md
  • Copy only managed update targets:
    • skills/
    • bin/
    • README.md
    • WHATS_NEW.md
    • package.json
  • Never copy .env, .agents/, .git/, local cache folders, or user-generated project files.
  • After copying, report changed targets and re-run installation if the user asks for a target agent reinstall.
  • If any copy step fails, restore from backup and report the failure.
  • Clean up temporary ZIP and extraction folders after success or failure.

Quality Checklist

  • Is the version compared correctly?
  • Was Git used by default when available?
  • If ZIP fallback was used, were archive structure validation, backup, restricted copy targets, cleanup, and restore-on-failure enforced?
  • Were incoming changes previewed before confirmation whenever Git was available?
  • Is the user prompted before any files are modified?

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.