Skip to content

Write install.sh (curl installer) #25

@jdelfino

Description

@jdelfino

Write the install.sh script — the curl-able installer that adds the workflow to any project.

File

install.sh at repo root

What

Users run: curl -fsSL https://raw.githubusercontent.com/jdelfino/agent-workflow/main/install.sh | bash

The script:

  1. Downloads .claude/, .github/, and templates/ from GitHub
  2. Copies files into the current project:
    • .claude/skills/* — safe copy (new directories)
    • .claude/commands/* — safe copy (new files)
    • .github/workflows/* — safe copy (warn if exists)
    • .github/agent-workflow/config.yaml — write if absent, warn if exists
    • .github/ISSUE_TEMPLATE/* — safe copy
    • AGENTS.md — write if absent, warn if exists
  3. Merges config files:
    • .claude/settings.json — merge permissions (add gh:* and git:* if not present)
    • CLAUDE.md — append workflow section if not present (detect by marker <!-- agent-workflow -->)
  4. Reports what was installed/skipped/needs attention

Design decisions

  • No dependencies (pure bash + curl + jq for JSON merge)
  • Never overwrites existing files
  • All downloads from raw.githubusercontent.com/jdelfino/agent-workflow/main/

Dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    taskImplementation work item

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions