Skip to content

docs(skill): add use-vercel-action agent skill and README install steps#367

Merged
amondnet merged 2 commits into
masterfrom
amondnet/skill-vercel-action
Apr 30, 2026
Merged

docs(skill): add use-vercel-action agent skill and README install steps#367
amondnet merged 2 commits into
masterfrom
amondnet/skill-vercel-action

Conversation

@amondnet

@amondnet amondnet commented Apr 30, 2026

Copy link
Copy Markdown
Owner

Summary

This PR ships a new Claude Code agent skill that documents how consumers wire amondnet/vercel-action into a GitHub Actions workflow. AI assistants that have the skill installed can correctly set up required tokens and IDs, choose between CLI and experimental API mode, configure prebuilt flows, alias domains, and GitHub Deployments — without guessing at input names or syntax.

Changes

  • NEW skills/use-vercel-action/SKILL.md (207 lines) — agent skill with frontmatter (name: use-vercel-action), prerequisites checklist, quick-start YAML, five common deployment patterns, a full essentials input table, outputs, mutual-exclusion gotchas, and references. Every input name was cross-checked against action.yml.
  • MODIFIED README.md — added a new ## Claude Code Skill section between ## Outputs and ## How To Use, advertising the install command, sample trigger prompts, and a link to the skill source.

How to use

npx skills add amondnet/vercel-action

Once installed, prompts like "deploy to Vercel from GitHub Actions", "post a Vercel preview URL on a PR", or "set up prebuilt Vercel deployments" will surface the skill automatically in Claude Code.

Verification

  • Line count for SKILL.md is 207 lines — well under the 300 LOC file budget.
  • Every input name documented in the skill was cross-checked against action.yml to ensure accuracy.
  • All YAML examples use proper ${{ secrets.* }} references for tokens and IDs.
  • The GitHub Deployments pattern example includes permissions: deployments: write as required by the GitHub API.

Summary by cubic

Adds a Claude Code skill that shows how to wire amondnet/vercel-action into GitHub Actions and updates the README with install steps. Also applies review feedback to tighten prerequisites, prebuilt flow steps, and deployment environment behavior.

  • New Features

    • Added skills/use-vercel-action/SKILL.md with prerequisites, quick-start YAML, common patterns (prod, prebuilt flows, alias domains, GitHub Deployments), essentials inputs/outputs, and mutual-exclusion notes; inputs verified against action.yml.
    • Updated README.md with a "Claude Code Skill" section, install command (npx skills add amondnet/vercel-action), and a link to the skill.
  • Bug Fixes

    • Marked vercel-org-id and vercel-project-id as required in the skill to align with the README.
    • Prebuilt Method 1 now includes npm install --global vercel@latest and links to the official Vercel CLI docs.
    • Clarified constraints: vercel-build cannot be combined with vercel-args; GitHub Deployment environment auto-detection is mode-dependent (CLI reads vercel-args, API reads target).

Written for commit 28ca884. Summary will update on new commits. Review in cubic

Adds a Claude Code agent skill that documents how to wire amondnet/vercel-action
into a GitHub Actions workflow. Consumers install it with:

  npx skills add amondnet/vercel-action

The skill (skills/use-vercel-action/SKILL.md) covers:
- Prerequisites checklist (tokens, org/project IDs, vercel.json flag)
- Quick-start YAML and five common patterns (production deploy, two prebuilt
  flows, alias domains, GitHub Deployments)
- Essentials input table with every name cross-checked against action.yml
- Outputs, mutual-exclusion gotchas, and references

README.md gains a new ## Claude Code Skill section between ## Outputs and
## How To Use, advertising the install command and linking to the skill source.
Copilot AI review requested due to automatic review settings April 30, 2026 05:12
@github-actions

github-actions Bot commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

Deploy preview for express-basic-auth ready!

Project:express-basic-auth
Status: ✅  Deploy successful!
Preview URL:https://express-basic-auth-3r40exs6y-minsu-lees-projects-b1e388b7.vercel.app
Latest Commit:28ca884

Deployed with vercel-action

@github-actions

github-actions Bot commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

Deploy preview for zeit-now-deployment-action-example-angular ready!

Project:zeit-now-deployment-action-example-angular
Status: ✅  Deploy successful!
Preview URL:https://zeit-now-deployment-action-example-angular-fjmvpy786.vercel.app
Latest Commit:28ca884
Alias:https://staging.angular.vercel-action.amond.dev
Alias:https://pr-367.angular.vercel-action.amond.dev

Deployed with vercel-action

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a Claude Code skill for the amondnet/vercel-action, adding a new SKILL.md file and updating the README.md to facilitate AI-driven workflow configuration. The new documentation covers prerequisites, deployment patterns, and input/output specifications. Review feedback recommends updating the documentation to explicitly mark vercel-org-id and vercel-project-id as required inputs, ensuring consistency with the main README and modern Vercel CLI requirements.

Comment thread skills/use-vercel-action/SKILL.md Outdated
Comment thread skills/use-vercel-action/SKILL.md Outdated
@github-actions

github-actions Bot commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

Deploy preview for team-scope-test ready!

Project:team-scope-test
Status: ✅  Deploy successful!
Preview URL:https://team-scope-test-2jc7udlts-dietfriends.vercel.app
Latest Commit:28ca884

Deployed with vercel-action

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds end-user documentation to help AI assistants and humans correctly configure amondnet/vercel-action in GitHub Actions, with a new Claude Code “agent skill” doc and a README entry pointing to it.

Changes:

  • Added skills/use-vercel-action/SKILL.md documenting prerequisites, common workflow patterns, essential inputs/outputs, and gotchas.
  • Updated README.md with a new “Claude Code Skill” section including install instructions and a link to the skill source.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
skills/use-vercel-action/SKILL.md New skill documentation for wiring the action into workflows, including patterns, inputs/outputs, and exclusions.
README.md Adds a section advertising the Claude Code skill and how to install it.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread skills/use-vercel-action/SKILL.md
Comment thread skills/use-vercel-action/SKILL.md
Comment thread skills/use-vercel-action/SKILL.md Outdated

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 issues found across 2 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="skills/use-vercel-action/SKILL.md">

<violation number="1" location="skills/use-vercel-action/SKILL.md:19">
P2: This references a `vercel:vercel-cli` skill that does not exist in this repository (only `use-vercel-action` is shipped under `skills/`). Link to the official Vercel CLI docs instead to avoid sending users to a non-existent resource.</violation>

<violation number="2" location="skills/use-vercel-action/SKILL.md:199">
P2: Clarify that GitHub Deployment environment auto-detection depends on deployment mode: CLI mode uses `vercel-args`, but experimental API mode follows `target`.

(Based on your team's feedback about using the typed deployment target in experimental API mode.) [FEEDBACK_USED]</violation>
</file>
Architecture diagram
sequenceDiagram
    participant Dev as Developer
    participant AI as Claude Code (AI Agent)
    participant Repo as GitHub Repository
    participant GHA as GitHub Actions Runner
    participant Vercel as Vercel API / CLI
    participant GH_API as GitHub API

    Note over Dev,Repo: Setup & Knowledge Injection
    Dev->>Repo: NEW: Install Skill via npx skills add
    Repo-->>AI: Load SKILL.md (Inputs, Outputs, Logic)
    
    Note over Dev,GHA: Development & Configuration Flow
    Dev->>AI: "Configure Vercel preview deploys"
    AI->>AI: Process SKILL.md patterns
    Note right of AI: Checks for mutual exclusions<br/>(e.g., prebuilt vs vercel-build)
    AI->>Dev: Suggests vercel.json (disable native git)
    AI->>Dev: Generates YAML workflow with secrets
    Dev->>Repo: Push .github/workflows/deploy.yml

    Note over GHA,GH_API: Runtime Execution (The Action)
    Repo->>GHA: Trigger Workflow (Push/PR)
    GHA->>GHA: Load amondnet/vercel-action
    
    alt Mode: CLI (Default)
        GHA->>Vercel: Execute 'vercel deploy' with vercel-args
    else Mode: NEW/CHANGED: Experimental API
        GHA->>Vercel: Call @vercel/client directly
    end

    opt Mode: Prebuilt Flow (documented in skill)
        GHA->>GHA: NEW: vercel pull && vercel build
        GHA->>Vercel: Deploy .vercel/output
    end

    GHA-->>Vercel: Perform Deployment
    Vercel-->>GHA: Return preview-url & name

    opt CHANGED: GitHub Integrations (via SKILL.md config)
        alt Create Deployment
            GHA->>GH_API: NEW: Update Deployment Status (success/failure)
            Note right of GH_API: Requires 'permissions: deployments: write'
        else PR Comment
            GHA->>GH_API: Post preview-url to Pull Request
        end
    end

    GHA-->>Dev: Final deployment state
Loading

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

Comment thread skills/use-vercel-action/SKILL.md Outdated
Comment thread skills/use-vercel-action/SKILL.md Outdated
@amondnet amondnet self-assigned this Apr 30, 2026
- Mark vercel-org-id and vercel-project-id as required to align with README
- Add npm install --global vercel@latest step to Prebuilt Method 1 example
- Replace vercel:vercel-cli skill reference with vercel.com/docs/cli
- Document vercel-build/vercel-args mutual exclusion (enforced at src/config.ts:120)
- Clarify GitHub Deployment env auto-detection is mode-dependent (CLI reads vercel-args, API reads target — src/config.ts:74-86)

Addresses gemini-code-assist, copilot-pull-request-reviewer, and cubic-dev-ai
review threads on PR #367.
@sonarqubecloud

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 issues found across 1 file (changes from recent commits).

Auto-approved: Documentation-only changes adding a new Claude Code skill and updating the README.

@amondnet amondnet merged commit 9471a56 into master Apr 30, 2026
16 of 17 checks passed
@amondnet amondnet deleted the amondnet/skill-vercel-action branch April 30, 2026 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants